|
9765 | 9765 | "type": "object", |
9766 | 9766 | "description": "Trigger for when the activity is closed." |
9767 | 9767 | }, |
| 9768 | + "CallbackInfoUpdateWorkflowExecutionCompleted": { |
| 9769 | + "type": "object", |
| 9770 | + "properties": { |
| 9771 | + "updateId": { |
| 9772 | + "type": "string" |
| 9773 | + } |
| 9774 | + }, |
| 9775 | + "description": "Trigger for when a workflow update is completed." |
| 9776 | + }, |
9768 | 9777 | "CallbackInfoWorkflowClosed": { |
9769 | 9778 | "type": "object", |
9770 | 9779 | "description": "Trigger for when the workflow is closed." |
|
9911 | 9920 | }, |
9912 | 9921 | "description": "A link to a standalone Nexus operation." |
9913 | 9922 | }, |
| 9923 | + "LinkWorkflow": { |
| 9924 | + "type": "object", |
| 9925 | + "properties": { |
| 9926 | + "namespace": { |
| 9927 | + "type": "string" |
| 9928 | + }, |
| 9929 | + "workflowId": { |
| 9930 | + "type": "string" |
| 9931 | + }, |
| 9932 | + "runId": { |
| 9933 | + "type": "string" |
| 9934 | + }, |
| 9935 | + "reason": { |
| 9936 | + "$ref": "#/definitions/v1LinkReason" |
| 9937 | + } |
| 9938 | + }, |
| 9939 | + "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." |
| 9940 | + }, |
9914 | 9941 | "LinkWorkflowEvent": { |
9915 | 9942 | "type": "object", |
9916 | 9943 | "properties": { |
|
10248 | 10275 | }, |
10249 | 10276 | "description": "RequestIdReference is a indirect reference to a history event through the request ID." |
10250 | 10277 | }, |
| 10278 | + "WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate": { |
| 10279 | + "type": "object", |
| 10280 | + "properties": { |
| 10281 | + "updateId": { |
| 10282 | + "type": "string", |
| 10283 | + "description": "The ID of the workflow update this update options update corresponds to." |
| 10284 | + }, |
| 10285 | + "attachedRequestId": { |
| 10286 | + "type": "string", |
| 10287 | + "title": "Request ID attached to the running workflow update so that subsequent requests with same\nrequest ID will be deduped" |
| 10288 | + }, |
| 10289 | + "attachedCompletionCallbacks": { |
| 10290 | + "type": "array", |
| 10291 | + "items": { |
| 10292 | + "type": "object", |
| 10293 | + "$ref": "#/definitions/v1Callback" |
| 10294 | + }, |
| 10295 | + "description": "Completion callbacks attached to the running workflow update." |
| 10296 | + } |
| 10297 | + } |
| 10298 | + }, |
10251 | 10299 | "WorkflowRuleActionActionActivityPause": { |
10252 | 10300 | "type": "object" |
10253 | 10301 | }, |
|
11897 | 11945 | "description": "The arguments to pass to the named Update handler." |
11898 | 11946 | } |
11899 | 11947 | } |
| 11948 | + }, |
| 11949 | + "requestId": { |
| 11950 | + "type": "string", |
| 11951 | + "description": "The request ID of the request." |
| 11952 | + }, |
| 11953 | + "completionCallbacks": { |
| 11954 | + "type": "array", |
| 11955 | + "items": { |
| 11956 | + "type": "object", |
| 11957 | + "$ref": "#/definitions/v1Callback" |
| 11958 | + }, |
| 11959 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 11960 | + }, |
| 11961 | + "links": { |
| 11962 | + "type": "array", |
| 11963 | + "items": { |
| 11964 | + "type": "object", |
| 11965 | + "$ref": "#/definitions/apiCommonV1Link" |
| 11966 | + }, |
| 11967 | + "description": "Links to be associated with this update." |
11900 | 11968 | } |
11901 | 11969 | }, |
11902 | 11970 | "description": "The request information that will be delivered all the way down to the\nWorkflow Execution." |
|
12092 | 12160 | "properties": { |
12093 | 12161 | "workflowClosed": { |
12094 | 12162 | "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
| 12163 | + }, |
| 12164 | + "updateWorkflowExecutionCompleted": { |
| 12165 | + "$ref": "#/definitions/CallbackInfoUpdateWorkflowExecutionCompleted" |
12095 | 12166 | } |
12096 | 12167 | } |
12097 | 12168 | }, |
@@ -15032,10 +15103,23 @@ |
15032 | 15103 | }, |
15033 | 15104 | "nexusOperation": { |
15034 | 15105 | "$ref": "#/definitions/LinkNexusOperation" |
| 15106 | + }, |
| 15107 | + "workflow": { |
| 15108 | + "$ref": "#/definitions/LinkWorkflow" |
15035 | 15109 | } |
15036 | 15110 | }, |
15037 | 15111 | "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." |
15038 | 15112 | }, |
| 15113 | + "v1LinkReason": { |
| 15114 | + "type": "string", |
| 15115 | + "enum": [ |
| 15116 | + "LINK_REASON_UNSPECIFIED", |
| 15117 | + "LINK_REASON_QUERY", |
| 15118 | + "LINK_REASON_UPDATE_REJECTED" |
| 15119 | + ], |
| 15120 | + "default": "LINK_REASON_UNSPECIFIED", |
| 15121 | + "description": "LinkReason is the reason for linking to a workflow execution." |
| 15122 | + }, |
15039 | 15123 | "v1ListActivityExecutionsResponse": { |
15040 | 15124 | "type": "object", |
15041 | 15125 | "properties": { |
|
15494 | 15578 | "workerCommands": { |
15495 | 15579 | "type": "boolean", |
15496 | 15580 | "description": "True if the namespace supports worker commands (server-to-worker communication via control queues)." |
| 15581 | + }, |
| 15582 | + "workflowUpdateCallbacks": { |
| 15583 | + "type": "boolean", |
| 15584 | + "title": "True if the namespace supports attaching callbacks on workflow updates" |
15497 | 15585 | } |
15498 | 15586 | }, |
15499 | 15587 | "description": "Namespace capability details. Should contain what features are enabled in a namespace." |
|
16941 | 17029 | }, |
16942 | 17030 | "input": { |
16943 | 17031 | "$ref": "#/definitions/v1Input" |
| 17032 | + }, |
| 17033 | + "requestId": { |
| 17034 | + "type": "string", |
| 17035 | + "description": "The request ID of the request." |
| 17036 | + }, |
| 17037 | + "completionCallbacks": { |
| 17038 | + "type": "array", |
| 17039 | + "items": { |
| 17040 | + "type": "object", |
| 17041 | + "$ref": "#/definitions/v1Callback" |
| 17042 | + }, |
| 17043 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 17044 | + }, |
| 17045 | + "links": { |
| 17046 | + "type": "array", |
| 17047 | + "items": { |
| 17048 | + "type": "object", |
| 17049 | + "$ref": "#/definitions/v1Link" |
| 17050 | + }, |
| 17051 | + "description": "Links to be associated with this update." |
16944 | 17052 | } |
16945 | 17053 | }, |
16946 | 17054 | "description": "The client request that triggers a Workflow Update." |
|
18690 | 18798 | "stage": { |
18691 | 18799 | "$ref": "#/definitions/v1UpdateWorkflowExecutionLifecycleStage", |
18692 | 18800 | "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." |
| 18801 | + }, |
| 18802 | + "link": { |
| 18803 | + "$ref": "#/definitions/v1Link", |
| 18804 | + "description": "Link to the update event. May be null if the update has not yet been accepted." |
18693 | 18805 | } |
18694 | 18806 | } |
18695 | 18807 | }, |
|
19712 | 19824 | "timeSkippingConfig": { |
19713 | 19825 | "$ref": "#/definitions/v1TimeSkippingConfig", |
19714 | 19826 | "description": "If set, the time-skipping configuration was changed. Contains the full updated configuration." |
| 19827 | + }, |
| 19828 | + "workflowUpdateOptions": { |
| 19829 | + "type": "array", |
| 19830 | + "items": { |
| 19831 | + "type": "object", |
| 19832 | + "$ref": "#/definitions/WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate" |
| 19833 | + }, |
| 19834 | + "description": "Updates to workflow updates options." |
19715 | 19835 | } |
19716 | 19836 | } |
19717 | 19837 | }, |
|
0 commit comments