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": { "work_order_snapshot": {
"anyOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot-Input" "$ref": "#/components/schemas/ExternalWorkOrderSnapshot"
}, },
{ {
"type": "null" "type": "null"
@@ -2235,9 +2235,16 @@
"title": "ExternalFeedbackResult", "title": "ExternalFeedbackResult",
"type": "object" "type": "object"
}, },
"ExternalWorkOrderSnapshot-Input": { "ExternalWorkOrderSnapshot": {
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"activity": {
"items": {
"$ref": "#/components/schemas/WorkOrderActivity"
},
"title": "Activity",
"type": "array"
},
"assignee": { "assignee": {
"anyOf": [ "anyOf": [
{ {
@@ -2250,6 +2257,14 @@
], ],
"title": "Assignee" "title": "Assignee"
}, },
"feedback_requirements": {
"items": {
"minLength": 1,
"type": "string"
},
"title": "Feedback Requirements",
"type": "array"
},
"location": { "location": {
"anyOf": [ "anyOf": [
{ {
@@ -2318,165 +2333,6 @@
"title": "Status", "title": "Status",
"type": "string" "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": { "summary": {
"minLength": 1, "minLength": 1,
"title": "Summary", "title": "Summary",
@@ -3705,7 +3561,7 @@
"work_order_snapshot": { "work_order_snapshot": {
"anyOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/ExternalWorkOrderSnapshot-Output" "$ref": "#/components/schemas/ExternalWorkOrderSnapshot"
}, },
{ {
"type": "null" "type": "null"
@@ -6577,6 +6433,55 @@
"title": "WebSearchRequest", "title": "WebSearchRequest",
"type": "object" "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": { "WorkbenchAlertSource": {
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
@@ -7217,6 +7122,25 @@
"WorkbenchRuntimeWorkOrder": { "WorkbenchRuntimeWorkOrder": {
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"activity": {
"items": {
"$ref": "#/components/schemas/WorkOrderActivity"
},
"title": "Activity",
"type": "array"
},
"assignee": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Assignee"
},
"code": { "code": {
"minLength": 1, "minLength": 1,
"title": "Code", "title": "Code",
@@ -7237,11 +7161,31 @@
"title": "Duration Minutes", "title": "Duration Minutes",
"type": "integer" "type": "integer"
}, },
"feedback_requirements": {
"items": {
"minLength": 1,
"type": "string"
},
"title": "Feedback Requirements",
"type": "array"
},
"id": { "id": {
"minLength": 1, "minLength": 1,
"title": "Id", "title": "Id",
"type": "string" "type": "string"
}, },
"location": {
"anyOf": [
{
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"title": "Location"
},
"priority": { "priority": {
"enum": [ "enum": [
"normal", "normal",
@@ -7291,13 +7235,6 @@
"title": "Status", "title": "Status",
"type": "string" "type": "string"
}, },
"subtasks": {
"items": {
"$ref": "#/components/schemas/WorkbenchRuntimeWorkOrderSubtask"
},
"title": "Subtasks",
"type": "array"
},
"summary": { "summary": {
"minLength": 1, "minLength": 1,
"title": "Summary", "title": "Summary",
@@ -7328,155 +7265,11 @@
"duration_minutes", "duration_minutes",
"source", "source",
"dispatcher", "dispatcher",
"priority", "priority"
"subtasks"
], ],
"title": "WorkbenchRuntimeWorkOrder", "title": "WorkbenchRuntimeWorkOrder",
"type": "object" "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": { "WorkbenchSyncSnapshot": {
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
+36 -108
View File
@@ -6066,7 +6066,7 @@ export interface components {
* @enum {string} * @enum {string}
*/ */
status: "scheduled" | "assigned" | "in_progress" | "awaiting_feedback" | "completed" | "cancelled" | "failed"; 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 */
ExternalFeedbackEvidence: { ExternalFeedbackEvidence: {
@@ -6104,9 +6104,13 @@ export interface components {
task: components["schemas"]["OperationalTaskDetail"]; task: components["schemas"]["OperationalTaskDetail"];
}; };
/** ExternalWorkOrderSnapshot */ /** ExternalWorkOrderSnapshot */
"ExternalWorkOrderSnapshot-Input": { ExternalWorkOrderSnapshot: {
/** Activity */
activity?: components["schemas"]["WorkOrderActivity"][];
/** Assignee */ /** Assignee */
assignee?: string | null; assignee?: string | null;
/** Feedback Requirements */
feedback_requirements?: string[];
/** Location */ /** Location */
location?: string | null; location?: string | null;
/** /**
@@ -6130,58 +6134,6 @@ export interface components {
* @enum {string} * @enum {string}
*/ */
status: "draft" | "open" | "in_progress" | "awaiting_reply" | "completed" | "cancelled"; 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 */
summary: string; summary: string;
/** Title */ /** Title */
@@ -6674,7 +6626,7 @@ export interface components {
* Format: date-time * Format: date-time
*/ */
updated_at: string; updated_at: string;
work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot-Output"] | null; work_order_snapshot?: components["schemas"]["ExternalWorkOrderSnapshot"] | null;
/** Workflow */ /** Workflow */
workflow: string; workflow: string;
}; };
@@ -7769,6 +7721,27 @@ export interface components {
*/ */
summary: boolean; 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 */
WorkbenchAlertSource: { WorkbenchAlertSource: {
/** Run Id */ /** Run Id */
@@ -8023,6 +7996,10 @@ export interface components {
}; };
/** WorkbenchRuntimeWorkOrder */ /** WorkbenchRuntimeWorkOrder */
WorkbenchRuntimeWorkOrder: { WorkbenchRuntimeWorkOrder: {
/** Activity */
activity?: components["schemas"]["WorkOrderActivity"][];
/** Assignee */
assignee?: string | null;
/** Code */ /** Code */
code: string; code: string;
/** Detail */ /** Detail */
@@ -8031,8 +8008,12 @@ export interface components {
dispatcher: string; dispatcher: string;
/** Duration Minutes */ /** Duration Minutes */
duration_minutes: number; duration_minutes: number;
/** Feedback Requirements */
feedback_requirements?: string[];
/** Id */ /** Id */
id: string; id: string;
/** Location */
location?: string | null;
/** /**
* Priority * Priority
* @enum {string} * @enum {string}
@@ -8057,8 +8038,6 @@ export interface components {
* @enum {string} * @enum {string}
*/ */
status: "pending" | "running" | "awaiting_reply" | "completed"; status: "pending" | "running" | "awaiting_reply" | "completed";
/** Subtasks */
subtasks: components["schemas"]["WorkbenchRuntimeWorkOrderSubtask"][];
/** Summary */ /** Summary */
summary: string; summary: string;
/** Title */ /** Title */
@@ -8069,57 +8048,6 @@ export interface components {
*/ */
updated_at: string; 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 */
WorkbenchSyncSnapshot: { WorkbenchSyncSnapshot: {
/** Event Cursor */ /** Event Cursor */