|
9047 | 9047 | "type": "object", |
9048 | 9048 | "description": "Trigger for when the activity is closed." |
9049 | 9049 | }, |
| 9050 | + "CallbackInfoUpdateWorkflowExecutionCompleted": { |
| 9051 | + "type": "object", |
| 9052 | + "properties": { |
| 9053 | + "updateId": { |
| 9054 | + "type": "string" |
| 9055 | + } |
| 9056 | + }, |
| 9057 | + "description": "Trigger for when a workflow update is completed." |
| 9058 | + }, |
9050 | 9059 | "CallbackInfoWorkflowClosed": { |
9051 | 9060 | "type": "object", |
9052 | 9061 | "description": "Trigger for when the workflow is closed." |
|
9178 | 9187 | }, |
9179 | 9188 | "description": "A link to a built-in batch job.\nBatch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc).\nThis link can be put on workflow history events generated by actions taken by a batch job." |
9180 | 9189 | }, |
| 9190 | + "LinkWorkflow": { |
| 9191 | + "type": "object", |
| 9192 | + "properties": { |
| 9193 | + "namespace": { |
| 9194 | + "type": "string" |
| 9195 | + }, |
| 9196 | + "workflowId": { |
| 9197 | + "type": "string" |
| 9198 | + }, |
| 9199 | + "runId": { |
| 9200 | + "type": "string" |
| 9201 | + }, |
| 9202 | + "reason": { |
| 9203 | + "$ref": "#/definitions/v1LinkReason" |
| 9204 | + } |
| 9205 | + }, |
| 9206 | + "description": "A link to a workflow execution. This is a more general version of WorkflowEvent that doesn't specify a \nparticular event within the workflow, useful when you want to link to a workflow but there is no particular event to link to,\nsuch as a Query or a Rejected Update." |
| 9207 | + }, |
9181 | 9208 | "LinkWorkflowEvent": { |
9182 | 9209 | "type": "object", |
9183 | 9210 | "properties": { |
|
9515 | 9542 | }, |
9516 | 9543 | "description": "RequestIdReference is a indirect reference to a history event through the request ID." |
9517 | 9544 | }, |
| 9545 | + "WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate": { |
| 9546 | + "type": "object", |
| 9547 | + "properties": { |
| 9548 | + "updateId": { |
| 9549 | + "type": "string", |
| 9550 | + "description": "The ID of the workflow update this update options update corresponds to." |
| 9551 | + }, |
| 9552 | + "attachedRequestId": { |
| 9553 | + "type": "string", |
| 9554 | + "title": "Request ID attached to the running workflow update so that subsequent requests with same\nrequest ID will be deduped" |
| 9555 | + }, |
| 9556 | + "attachedCompletionCallbacks": { |
| 9557 | + "type": "array", |
| 9558 | + "items": { |
| 9559 | + "type": "object", |
| 9560 | + "$ref": "#/definitions/v1Callback" |
| 9561 | + }, |
| 9562 | + "description": "Completion callbacks attached to the running workflow update." |
| 9563 | + } |
| 9564 | + } |
| 9565 | + }, |
9518 | 9566 | "WorkflowRuleActionActionActivityPause": { |
9519 | 9567 | "type": "object" |
9520 | 9568 | }, |
|
11054 | 11102 | "description": "The arguments to pass to the named Update handler." |
11055 | 11103 | } |
11056 | 11104 | } |
| 11105 | + }, |
| 11106 | + "requestId": { |
| 11107 | + "type": "string", |
| 11108 | + "description": "The request ID of the request." |
| 11109 | + }, |
| 11110 | + "completionCallbacks": { |
| 11111 | + "type": "array", |
| 11112 | + "items": { |
| 11113 | + "type": "object", |
| 11114 | + "$ref": "#/definitions/v1Callback" |
| 11115 | + }, |
| 11116 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 11117 | + }, |
| 11118 | + "links": { |
| 11119 | + "type": "array", |
| 11120 | + "items": { |
| 11121 | + "type": "object", |
| 11122 | + "$ref": "#/definitions/apiCommonV1Link" |
| 11123 | + }, |
| 11124 | + "description": "Links to be associated with this update." |
11057 | 11125 | } |
11058 | 11126 | }, |
11059 | 11127 | "description": "The request information that will be delivered all the way down to the\nWorkflow Execution." |
|
11249 | 11317 | "properties": { |
11250 | 11318 | "workflowClosed": { |
11251 | 11319 | "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
| 11320 | + }, |
| 11321 | + "updateWorkflowExecutionCompleted": { |
| 11322 | + "$ref": "#/definitions/CallbackInfoUpdateWorkflowExecutionCompleted" |
11252 | 11323 | } |
11253 | 11324 | } |
11254 | 11325 | }, |
@@ -14122,10 +14193,23 @@ |
14122 | 14193 | }, |
14123 | 14194 | "activity": { |
14124 | 14195 | "$ref": "#/definitions/LinkActivity" |
| 14196 | + }, |
| 14197 | + "workflow": { |
| 14198 | + "$ref": "#/definitions/LinkWorkflow" |
14125 | 14199 | } |
14126 | 14200 | }, |
14127 | 14201 | "description": "Link can be associated with history events. It might contain information about an external entity\nrelated to the history event. For example, workflow A makes a Nexus call that starts workflow B:\nin this case, a history event in workflow A could contain a Link to the workflow started event in\nworkflow B, and vice-versa." |
14128 | 14202 | }, |
| 14203 | + "v1LinkReason": { |
| 14204 | + "type": "string", |
| 14205 | + "enum": [ |
| 14206 | + "LINK_REASON_UNSPECIFIED", |
| 14207 | + "LINK_REASON_QUERY", |
| 14208 | + "LINK_REASON_UPDATE_REJECTED" |
| 14209 | + ], |
| 14210 | + "default": "LINK_REASON_UNSPECIFIED", |
| 14211 | + "description": "LinkReason is the reason for linking to a workflow execution." |
| 14212 | + }, |
14129 | 14213 | "v1ListActivityExecutionsResponse": { |
14130 | 14214 | "type": "object", |
14131 | 14215 | "properties": { |
|
14563 | 14647 | "pollerAutoscaling": { |
14564 | 14648 | "type": "boolean", |
14565 | 14649 | "title": "True if the namespace supports poller autoscaling" |
| 14650 | + }, |
| 14651 | + "workflowUpdateCallbacks": { |
| 14652 | + "type": "boolean", |
| 14653 | + "title": "True if the namespace supports attaching callbacks on workflow updates" |
14566 | 14654 | } |
14567 | 14655 | }, |
14568 | 14656 | "description": "Namespace capability details. Should contain what features are enabled in a namespace." |
|
15717 | 15805 | }, |
15718 | 15806 | "input": { |
15719 | 15807 | "$ref": "#/definitions/v1Input" |
| 15808 | + }, |
| 15809 | + "requestId": { |
| 15810 | + "type": "string", |
| 15811 | + "description": "The request ID of the request." |
| 15812 | + }, |
| 15813 | + "completionCallbacks": { |
| 15814 | + "type": "array", |
| 15815 | + "items": { |
| 15816 | + "type": "object", |
| 15817 | + "$ref": "#/definitions/v1Callback" |
| 15818 | + }, |
| 15819 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 15820 | + }, |
| 15821 | + "links": { |
| 15822 | + "type": "array", |
| 15823 | + "items": { |
| 15824 | + "type": "object", |
| 15825 | + "$ref": "#/definitions/v1Link" |
| 15826 | + }, |
| 15827 | + "description": "Links to be associated with this update." |
15720 | 15828 | } |
15721 | 15829 | }, |
15722 | 15830 | "description": "The client request that triggers a Workflow Update." |
|
17448 | 17556 | "stage": { |
17449 | 17557 | "$ref": "#/definitions/v1UpdateWorkflowExecutionLifecycleStage", |
17450 | 17558 | "description": "The most advanced lifecycle stage that the Update is known to have\nreached, where lifecycle stages are ordered\nUPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <\nUPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <\nUPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <\nUPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.\nUNSPECIFIED will be returned if and only if the server's maximum wait\ntime was reached before the Update reached the stage specified in the\nrequest WaitPolicy, and before the context deadline expired; clients may\nmay then retry the call as needed." |
| 17559 | + }, |
| 17560 | + "link": { |
| 17561 | + "$ref": "#/definitions/v1Link", |
| 17562 | + "description": "Link to the update event. May be null if the update has not yet been accepted." |
17451 | 17563 | } |
17452 | 17564 | } |
17453 | 17565 | }, |
|
18470 | 18582 | "timeSkippingConfig": { |
18471 | 18583 | "$ref": "#/definitions/v1TimeSkippingConfig", |
18472 | 18584 | "description": "If set, the time-skipping configuration was changed. Contains the full updated configuration." |
| 18585 | + }, |
| 18586 | + "workflowUpdateOptions": { |
| 18587 | + "type": "array", |
| 18588 | + "items": { |
| 18589 | + "type": "object", |
| 18590 | + "$ref": "#/definitions/WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate" |
| 18591 | + }, |
| 18592 | + "description": "Updates to workflow updates options." |
18473 | 18593 | } |
18474 | 18594 | } |
18475 | 18595 | }, |
|
0 commit comments