chore(api): regenerate server contract

This commit is contained in:
2026-09-24 12:01:11 +08:00
parent b31033e9ce
commit ac31875019
2 changed files with 143 additions and 422 deletions
+107 -314
View File
@@ -2131,7 +2131,7 @@
"work_order_snapshot": {
"anyOf": [
{
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot-Input"
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot"
},
{
"type": "null"
@@ -2235,9 +2235,16 @@
"title": "ExternalFeedbackResult",
"type": "object"
},
"ExternalWorkOrderSnapshot-Input": {
"ExternalWorkOrderSnapshot": {
"additionalProperties": false,
"properties": {
"activity": {
"items": {
"$ref": "#/components/schemas/WorkOrderActivity"
},
"title": "Activity",
"type": "array"
},
"assignee": {
"anyOf": [
{
@@ -2250,6 +2257,14 @@
],
"title": "Assignee"
},
"feedback_requirements": {
"items": {
"minLength": 1,
"type": "string"
},
"title": "Feedback Requirements",
"type": "array"
},
"location": {
"anyOf": [
{
@@ -2318,165 +2333,6 @@
"title": "Status",
"type": "string"
},
"subtasks": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/WorkbenchRuntimeWorkOrderSubtask"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"title": "Subtasks"
},
"summary": {
"minLength": 1,
"title": "Summary",
"type": "string"
},
"title": {
"minLength": 1,
"title": "Title",
"type": "string"
},
"updated_at": {
"format": "date-time",
"title": "Updated At",
"type": "string"
},
"work_order_id": {
"format": "uuid",
"title": "Work Order Id",
"type": "string"
},
"work_order_type": {
"default": "general",
"enum": [
"general",
"water_quality_complaint",
"burst_report"
],
"title": "Work Order Type",
"type": "string"
}
},
"required": [
"work_order_id",
"revision",
"title",
"summary",
"status",
"priority",
"origin",
"updated_at"
],
"title": "ExternalWorkOrderSnapshot",
"type": "object"
},
"ExternalWorkOrderSnapshot-Output": {
"additionalProperties": false,
"properties": {
"assignee": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Assignee"
},
"location": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Location"
},
"origin": {
"const": "synthetic",
"title": "Origin",
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"title": "Priority",
"type": "string"
},
"revision": {
"minimum": 1.0,
"title": "Revision",
"type": "integer"
},
"scenario_code": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Scenario Code"
},
"scheduled_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"title": "Scheduled At"
},
"status": {
"enum": [
"draft",
"open",
"in_progress",
"awaiting_reply",
"completed",
"cancelled"
],
"title": "Status",
"type": "string"
},
"subtasks": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/WorkbenchRuntimeWorkOrderSubtask"
},
"maxItems": 50,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"title": "Subtasks"
},
"summary": {
"minLength": 1,
"title": "Summary",
@@ -3705,7 +3561,7 @@
"work_order_snapshot": {
"anyOf": [
{
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot-Output"
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot"
},
{
"type": "null"
@@ -6577,6 +6433,55 @@
"title": "WebSearchRequest",
"type": "object"
},
"WorkOrderActivity": {
"additionalProperties": false,
"properties": {
"actor": {
"minLength": 1,
"title": "Actor",
"type": "string"
},
"detail": {
"minLength": 1,
"title": "Detail",
"type": "string"
},
"kind": {
"enum": [
"created",
"updated",
"feedback"
],
"title": "Kind",
"type": "string"
},
"occurred_at": {
"format": "date-time",
"title": "Occurred At",
"type": "string"
},
"sequence": {
"minimum": 1.0,
"title": "Sequence",
"type": "integer"
},
"title": {
"minLength": 1,
"title": "Title",
"type": "string"
}
},
"required": [
"sequence",
"occurred_at",
"actor",
"kind",
"title",
"detail"
],
"title": "WorkOrderActivity",
"type": "object"
},
"WorkbenchAlertSource": {
"additionalProperties": false,
"properties": {
@@ -7217,6 +7122,25 @@
"WorkbenchRuntimeWorkOrder": {
"additionalProperties": false,
"properties": {
"activity": {
"items": {
"$ref": "#/components/schemas/WorkOrderActivity"
},
"title": "Activity",
"type": "array"
},
"assignee": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Assignee"
},
"code": {
"minLength": 1,
"title": "Code",
@@ -7237,11 +7161,31 @@
"title": "Duration Minutes",
"type": "integer"
},
"feedback_requirements": {
"items": {
"minLength": 1,
"type": "string"
},
"title": "Feedback Requirements",
"type": "array"
},
"id": {
"minLength": 1,
"title": "Id",
"type": "string"
},
"location": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Location"
},
"priority": {
"enum": [
"normal",
@@ -7291,13 +7235,6 @@
"title": "Status",
"type": "string"
},
"subtasks": {
"items": {
"$ref": "#/components/schemas/WorkbenchRuntimeWorkOrderSubtask"
},
"title": "Subtasks",
"type": "array"
},
"summary": {
"minLength": 1,
"title": "Summary",
@@ -7328,155 +7265,11 @@
"duration_minutes",
"source",
"dispatcher",
"priority",
"subtasks"
"priority"
],
"title": "WorkbenchRuntimeWorkOrder",
"type": "object"
},
"WorkbenchRuntimeWorkOrderStage": {
"additionalProperties": false,
"properties": {
"description": {
"minLength": 1,
"title": "Description",
"type": "string"
},
"id": {
"minLength": 1,
"title": "Id",
"type": "string"
},
"owner": {
"minLength": 1,
"title": "Owner",
"type": "string"
},
"sequence": {
"minimum": 1.0,
"title": "Sequence",
"type": "integer"
},
"status": {
"enum": [
"done",
"current",
"pending",
"blocked",
"skipped"
],
"title": "Status",
"type": "string"
},
"time_label": {
"minLength": 1,
"title": "Time Label",
"type": "string"
},
"title": {
"minLength": 1,
"title": "Title",
"type": "string"
}
},
"required": [
"id",
"sequence",
"title",
"status",
"owner",
"time_label",
"description"
],
"title": "WorkbenchRuntimeWorkOrderStage",
"type": "object"
},
"WorkbenchRuntimeWorkOrderSubtask": {
"additionalProperties": false,
"properties": {
"assignee": {
"minLength": 1,
"title": "Assignee",
"type": "string"
},
"duration_minutes": {
"minimum": 1.0,
"title": "Duration Minutes",
"type": "integer"
},
"id": {
"minLength": 1,
"title": "Id",
"type": "string"
},
"location": {
"minLength": 1,
"title": "Location",
"type": "string"
},
"reply_requirements": {
"items": {
"minLength": 1,
"type": "string"
},
"title": "Reply Requirements",
"type": "array"
},
"reply_window_minutes": {
"minimum": 1.0,
"title": "Reply Window Minutes",
"type": "integer"
},
"scheduled_at": {
"format": "date-time",
"title": "Scheduled At",
"type": "string"
},
"stages": {
"items": {
"$ref": "#/components/schemas/WorkbenchRuntimeWorkOrderStage"
},
"title": "Stages",
"type": "array"
},
"status": {
"enum": [
"pending",
"running",
"blocked",
"completed",
"cancelled"
],
"title": "Status",
"type": "string"
},
"summary": {
"minLength": 1,
"title": "Summary",
"type": "string"
},
"title": {
"minLength": 1,
"title": "Title",
"type": "string"
}
},
"required": [
"id",
"title",
"summary",
"status",
"scheduled_at",
"location",
"assignee",
"duration_minutes",
"reply_window_minutes",
"stages",
"reply_requirements"
],
"title": "WorkbenchRuntimeWorkOrderSubtask",
"type": "object"
},
"WorkbenchSyncSnapshot": {
"additionalProperties": false,
"properties": {
+36 -108
View File
@@ -6066,7 +6066,7 @@ export interface components {
* @enum {string}
*/
status: "scheduled" | "assigned" | "in_progress" | "awaiting_feedback" | "completed" | "cancelled" | "failed";
work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot-Input"] | null;
work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot"] | null;
};
/** ExternalFeedbackEvidence */
ExternalFeedbackEvidence: {
@@ -6104,9 +6104,13 @@ export interface components {
task: components["schemas"]["OperationalTaskDetail"];
};
/** ExternalWorkOrderSnapshot */
"ExternalWorkOrderSnapshot-Input": {
ExternalWorkOrderSnapshot: {
/** Activity */
activity?: components["schemas"]["WorkOrderActivity"][];
/** Assignee */
assignee?: string | null;
/** Feedback Requirements */
feedback_requirements?: string[];
/** Location */
location?: string | null;
/**
@@ -6130,58 +6134,6 @@ export interface components {
* @enum {string}
*/
status: "draft" | "open" | "in_progress" | "awaiting_reply" | "completed" | "cancelled";
/** Subtasks */
subtasks?: components["schemas"]["WorkbenchRuntimeWorkOrderSubtask"][] | null;
/** Summary */
summary: string;
/** Title */
title: string;
/**
* Updated At
* Format: date-time
*/
updated_at: string;
/**
* Work Order Id
* Format: uuid
*/
work_order_id: string;
/**
* Work Order Type
* @default general
* @enum {string}
*/
work_order_type: "general" | "water_quality_complaint" | "burst_report";
};
/** ExternalWorkOrderSnapshot */
"ExternalWorkOrderSnapshot-Output": {
/** Assignee */
assignee?: string | null;
/** Location */
location?: string | null;
/**
* Origin
* @constant
*/
origin: "synthetic";
/**
* Priority
* @enum {string}
*/
priority: "low" | "normal" | "high" | "urgent";
/** Revision */
revision: number;
/** Scenario Code */
scenario_code?: string | null;
/** Scheduled At */
scheduled_at?: string | null;
/**
* Status
* @enum {string}
*/
status: "draft" | "open" | "in_progress" | "awaiting_reply" | "completed" | "cancelled";
/** Subtasks */
subtasks?: components["schemas"]["WorkbenchRuntimeWorkOrderSubtask"][] | null;
/** Summary */
summary: string;
/** Title */
@@ -6674,7 +6626,7 @@ export interface components {
* Format: date-time
*/
updated_at: string;
work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot-Output"] | null;
work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot"] | null;
/** Workflow */
workflow: string;
};
@@ -7769,6 +7721,27 @@ export interface components {
*/
summary: boolean;
};
/** WorkOrderActivity */
WorkOrderActivity: {
/** Actor */
actor: string;
/** Detail */
detail: string;
/**
* Kind
* @enum {string}
*/
kind: "created" | "updated" | "feedback";
/**
* Occurred At
* Format: date-time
*/
occurred_at: string;
/** Sequence */
sequence: number;
/** Title */
title: string;
};
/** WorkbenchAlertSource */
WorkbenchAlertSource: {
/** Run Id */
@@ -8023,6 +7996,10 @@ export interface components {
};
/** WorkbenchRuntimeWorkOrder */
WorkbenchRuntimeWorkOrder: {
/** Activity */
activity?: components["schemas"]["WorkOrderActivity"][];
/** Assignee */
assignee?: string | null;
/** Code */
code: string;
/** Detail */
@@ -8031,8 +8008,12 @@ export interface components {
dispatcher: string;
/** Duration Minutes */
duration_minutes: number;
/** Feedback Requirements */
feedback_requirements?: string[];
/** Id */
id: string;
/** Location */
location?: string | null;
/**
* Priority
* @enum {string}
@@ -8057,8 +8038,6 @@ export interface components {
* @enum {string}
*/
status: "pending" | "running" | "awaiting_reply" | "completed";
/** Subtasks */
subtasks: components["schemas"]["WorkbenchRuntimeWorkOrderSubtask"][];
/** Summary */
summary: string;
/** Title */
@@ -8069,57 +8048,6 @@ export interface components {
*/
updated_at: string;
};
/** WorkbenchRuntimeWorkOrderStage */
WorkbenchRuntimeWorkOrderStage: {
/** Description */
description: string;
/** Id */
id: string;
/** Owner */
owner: string;
/** Sequence */
sequence: number;
/**
* Status
* @enum {string}
*/
status: "done" | "current" | "pending" | "blocked" | "skipped";
/** Time Label */
time_label: string;
/** Title */
title: string;
};
/** WorkbenchRuntimeWorkOrderSubtask */
WorkbenchRuntimeWorkOrderSubtask: {
/** Assignee */
assignee: string;
/** Duration Minutes */
duration_minutes: number;
/** Id */
id: string;
/** Location */
location: string;
/** Reply Requirements */
reply_requirements: string[];
/** Reply Window Minutes */
reply_window_minutes: number;
/**
* Scheduled At
* Format: date-time
*/
scheduled_at: string;
/** Stages */
stages: components["schemas"]["WorkbenchRuntimeWorkOrderStage"][];
/**
* Status
* @enum {string}
*/
status: "pending" | "running" | "blocked" | "completed" | "cancelled";
/** Summary */
summary: string;
/** Title */
title: string;
};
/** WorkbenchSyncSnapshot */
WorkbenchSyncSnapshot: {
/** Event Cursor */