|
10585 | 10585 | "type": "object", |
10586 | 10586 | "description": "Trigger for when the activity is closed." |
10587 | 10587 | }, |
| 10588 | + "CallbackInfoUpdateWorkflowExecutionCompleted": { |
| 10589 | + "type": "object", |
| 10590 | + "properties": { |
| 10591 | + "updateId": { |
| 10592 | + "type": "string" |
| 10593 | + } |
| 10594 | + }, |
| 10595 | + "description": "Trigger for when a workflow update is completed." |
| 10596 | + }, |
10588 | 10597 | "CallbackInfoWorkflowClosed": { |
10589 | 10598 | "type": "object", |
10590 | 10599 | "description": "Trigger for when the workflow is closed." |
|
10731 | 10740 | }, |
10732 | 10741 | "description": "A link to a standalone Nexus operation." |
10733 | 10742 | }, |
| 10743 | + "LinkWorkflow": { |
| 10744 | + "type": "object", |
| 10745 | + "properties": { |
| 10746 | + "namespace": { |
| 10747 | + "type": "string" |
| 10748 | + }, |
| 10749 | + "workflowId": { |
| 10750 | + "type": "string" |
| 10751 | + }, |
| 10752 | + "runId": { |
| 10753 | + "type": "string" |
| 10754 | + }, |
| 10755 | + "reason": { |
| 10756 | + "$ref": "#/definitions/v1LinkReason" |
| 10757 | + } |
| 10758 | + }, |
| 10759 | + "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." |
| 10760 | + }, |
10734 | 10761 | "LinkWorkflowEvent": { |
10735 | 10762 | "type": "object", |
10736 | 10763 | "properties": { |
|
11068 | 11095 | }, |
11069 | 11096 | "description": "RequestIdReference is a indirect reference to a history event through the request ID." |
11070 | 11097 | }, |
| 11098 | + "WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate": { |
| 11099 | + "type": "object", |
| 11100 | + "properties": { |
| 11101 | + "updateId": { |
| 11102 | + "type": "string", |
| 11103 | + "description": "The ID of the workflow update this update options update corresponds to." |
| 11104 | + }, |
| 11105 | + "attachedRequestId": { |
| 11106 | + "type": "string", |
| 11107 | + "title": "Request ID attached to the running workflow update so that subsequent requests with same\nrequest ID will be deduped" |
| 11108 | + }, |
| 11109 | + "attachedCompletionCallbacks": { |
| 11110 | + "type": "array", |
| 11111 | + "items": { |
| 11112 | + "type": "object", |
| 11113 | + "$ref": "#/definitions/v1Callback" |
| 11114 | + }, |
| 11115 | + "description": "Completion callbacks attached to the running workflow update." |
| 11116 | + } |
| 11117 | + } |
| 11118 | + }, |
11071 | 11119 | "WorkflowRuleActionActionActivityPause": { |
11072 | 11120 | "type": "object" |
11073 | 11121 | }, |
|
12843 | 12891 | "description": "The arguments to pass to the named Update handler." |
12844 | 12892 | } |
12845 | 12893 | } |
| 12894 | + }, |
| 12895 | + "requestId": { |
| 12896 | + "type": "string", |
| 12897 | + "description": "The request ID of the request." |
| 12898 | + }, |
| 12899 | + "completionCallbacks": { |
| 12900 | + "type": "array", |
| 12901 | + "items": { |
| 12902 | + "type": "object", |
| 12903 | + "$ref": "#/definitions/v1Callback" |
| 12904 | + }, |
| 12905 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 12906 | + }, |
| 12907 | + "links": { |
| 12908 | + "type": "array", |
| 12909 | + "items": { |
| 12910 | + "type": "object", |
| 12911 | + "$ref": "#/definitions/apiCommonV1Link" |
| 12912 | + }, |
| 12913 | + "description": "Links to be associated with this update." |
12846 | 12914 | } |
12847 | 12915 | }, |
12848 | 12916 | "description": "The request information that will be delivered all the way down to the\nWorkflow Execution." |
|
13038 | 13106 | "properties": { |
13039 | 13107 | "workflowClosed": { |
13040 | 13108 | "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
| 13109 | + }, |
| 13110 | + "updateWorkflowExecutionCompleted": { |
| 13111 | + "$ref": "#/definitions/CallbackInfoUpdateWorkflowExecutionCompleted" |
13041 | 13112 | } |
13042 | 13113 | } |
13043 | 13114 | }, |
@@ -15978,10 +16049,23 @@ |
15978 | 16049 | }, |
15979 | 16050 | "nexusOperation": { |
15980 | 16051 | "$ref": "#/definitions/LinkNexusOperation" |
| 16052 | + }, |
| 16053 | + "workflow": { |
| 16054 | + "$ref": "#/definitions/LinkWorkflow" |
15981 | 16055 | } |
15982 | 16056 | }, |
15983 | 16057 | "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." |
15984 | 16058 | }, |
| 16059 | + "v1LinkReason": { |
| 16060 | + "type": "string", |
| 16061 | + "enum": [ |
| 16062 | + "LINK_REASON_UNSPECIFIED", |
| 16063 | + "LINK_REASON_QUERY", |
| 16064 | + "LINK_REASON_UPDATE_REJECTED" |
| 16065 | + ], |
| 16066 | + "default": "LINK_REASON_UNSPECIFIED", |
| 16067 | + "description": "LinkReason is the reason for linking to a workflow execution." |
| 16068 | + }, |
15985 | 16069 | "v1ListActivityExecutionsResponse": { |
15986 | 16070 | "type": "object", |
15987 | 16071 | "properties": { |
|
16440 | 16524 | "workerCommands": { |
16441 | 16525 | "type": "boolean", |
16442 | 16526 | "description": "True if the namespace supports worker commands (server-to-worker communication via control queues)." |
| 16527 | + }, |
| 16528 | + "workflowUpdateCallbacks": { |
| 16529 | + "type": "boolean", |
| 16530 | + "title": "True if the namespace supports attaching callbacks on workflow updates" |
16443 | 16531 | } |
16444 | 16532 | }, |
16445 | 16533 | "description": "Namespace capability details. Should contain what features are enabled in a namespace." |
|
17891 | 17979 | }, |
17892 | 17980 | "input": { |
17893 | 17981 | "$ref": "#/definitions/v1Input" |
| 17982 | + }, |
| 17983 | + "requestId": { |
| 17984 | + "type": "string", |
| 17985 | + "description": "The request ID of the request." |
| 17986 | + }, |
| 17987 | + "completionCallbacks": { |
| 17988 | + "type": "array", |
| 17989 | + "items": { |
| 17990 | + "type": "object", |
| 17991 | + "$ref": "#/definitions/v1Callback" |
| 17992 | + }, |
| 17993 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 17994 | + }, |
| 17995 | + "links": { |
| 17996 | + "type": "array", |
| 17997 | + "items": { |
| 17998 | + "type": "object", |
| 17999 | + "$ref": "#/definitions/v1Link" |
| 18000 | + }, |
| 18001 | + "description": "Links to be associated with this update." |
17894 | 18002 | } |
17895 | 18003 | }, |
17896 | 18004 | "description": "The client request that triggers a Workflow Update." |
|
19658 | 19766 | "stage": { |
19659 | 19767 | "$ref": "#/definitions/v1UpdateWorkflowExecutionLifecycleStage", |
19660 | 19768 | "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." |
| 19769 | + }, |
| 19770 | + "link": { |
| 19771 | + "$ref": "#/definitions/v1Link", |
| 19772 | + "description": "Link to the update event. May be null if the update has not yet been accepted." |
19661 | 19773 | } |
19662 | 19774 | } |
19663 | 19775 | }, |
|
20680 | 20792 | "timeSkippingConfig": { |
20681 | 20793 | "$ref": "#/definitions/v1TimeSkippingConfig", |
20682 | 20794 | "description": "If set, the time-skipping configuration was changed. Contains the full updated configuration." |
| 20795 | + }, |
| 20796 | + "workflowUpdateOptions": { |
| 20797 | + "type": "array", |
| 20798 | + "items": { |
| 20799 | + "type": "object", |
| 20800 | + "$ref": "#/definitions/WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate" |
| 20801 | + }, |
| 20802 | + "description": "Updates to workflow updates options." |
20683 | 20803 | } |
20684 | 20804 | } |
20685 | 20805 | }, |
|
0 commit comments