|
10599 | 10599 | "type": "object", |
10600 | 10600 | "description": "Trigger for when the activity is closed." |
10601 | 10601 | }, |
| 10602 | + "CallbackInfoUpdateWorkflowExecutionCompleted": { |
| 10603 | + "type": "object", |
| 10604 | + "properties": { |
| 10605 | + "updateId": { |
| 10606 | + "type": "string" |
| 10607 | + } |
| 10608 | + }, |
| 10609 | + "description": "Trigger for when a workflow update is completed." |
| 10610 | + }, |
10602 | 10611 | "CallbackInfoWorkflowClosed": { |
10603 | 10612 | "type": "object", |
10604 | 10613 | "description": "Trigger for when the workflow is closed." |
|
10745 | 10754 | }, |
10746 | 10755 | "description": "A link to a standalone Nexus operation." |
10747 | 10756 | }, |
| 10757 | + "LinkWorkflow": { |
| 10758 | + "type": "object", |
| 10759 | + "properties": { |
| 10760 | + "namespace": { |
| 10761 | + "type": "string" |
| 10762 | + }, |
| 10763 | + "workflowId": { |
| 10764 | + "type": "string" |
| 10765 | + }, |
| 10766 | + "runId": { |
| 10767 | + "type": "string" |
| 10768 | + }, |
| 10769 | + "reason": { |
| 10770 | + "$ref": "#/definitions/v1LinkReason" |
| 10771 | + } |
| 10772 | + }, |
| 10773 | + "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." |
| 10774 | + }, |
10748 | 10775 | "LinkWorkflowEvent": { |
10749 | 10776 | "type": "object", |
10750 | 10777 | "properties": { |
|
11082 | 11109 | }, |
11083 | 11110 | "description": "RequestIdReference is a indirect reference to a history event through the request ID." |
11084 | 11111 | }, |
| 11112 | + "WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate": { |
| 11113 | + "type": "object", |
| 11114 | + "properties": { |
| 11115 | + "updateId": { |
| 11116 | + "type": "string", |
| 11117 | + "description": "The ID of the workflow update this update options update corresponds to." |
| 11118 | + }, |
| 11119 | + "attachedRequestId": { |
| 11120 | + "type": "string", |
| 11121 | + "title": "Request ID attached to the running workflow update so that subsequent requests with same\nrequest ID will be deduped" |
| 11122 | + }, |
| 11123 | + "attachedCompletionCallbacks": { |
| 11124 | + "type": "array", |
| 11125 | + "items": { |
| 11126 | + "type": "object", |
| 11127 | + "$ref": "#/definitions/v1Callback" |
| 11128 | + }, |
| 11129 | + "description": "Completion callbacks attached to the running workflow update." |
| 11130 | + } |
| 11131 | + } |
| 11132 | + }, |
11085 | 11133 | "WorkflowRuleActionActionActivityPause": { |
11086 | 11134 | "type": "object" |
11087 | 11135 | }, |
|
12857 | 12905 | "description": "The arguments to pass to the named Update handler." |
12858 | 12906 | } |
12859 | 12907 | } |
| 12908 | + }, |
| 12909 | + "requestId": { |
| 12910 | + "type": "string", |
| 12911 | + "description": "The request ID of the request." |
| 12912 | + }, |
| 12913 | + "completionCallbacks": { |
| 12914 | + "type": "array", |
| 12915 | + "items": { |
| 12916 | + "type": "object", |
| 12917 | + "$ref": "#/definitions/v1Callback" |
| 12918 | + }, |
| 12919 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 12920 | + }, |
| 12921 | + "links": { |
| 12922 | + "type": "array", |
| 12923 | + "items": { |
| 12924 | + "type": "object", |
| 12925 | + "$ref": "#/definitions/apiCommonV1Link" |
| 12926 | + }, |
| 12927 | + "description": "Links to be associated with this update." |
12860 | 12928 | } |
12861 | 12929 | }, |
12862 | 12930 | "description": "The request information that will be delivered all the way down to the\nWorkflow Execution." |
|
13052 | 13120 | "properties": { |
13053 | 13121 | "workflowClosed": { |
13054 | 13122 | "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
| 13123 | + }, |
| 13124 | + "updateWorkflowExecutionCompleted": { |
| 13125 | + "$ref": "#/definitions/CallbackInfoUpdateWorkflowExecutionCompleted" |
13055 | 13126 | } |
13056 | 13127 | } |
13057 | 13128 | }, |
@@ -15992,10 +16063,23 @@ |
15992 | 16063 | }, |
15993 | 16064 | "nexusOperation": { |
15994 | 16065 | "$ref": "#/definitions/LinkNexusOperation" |
| 16066 | + }, |
| 16067 | + "workflow": { |
| 16068 | + "$ref": "#/definitions/LinkWorkflow" |
15995 | 16069 | } |
15996 | 16070 | }, |
15997 | 16071 | "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." |
15998 | 16072 | }, |
| 16073 | + "v1LinkReason": { |
| 16074 | + "type": "string", |
| 16075 | + "enum": [ |
| 16076 | + "LINK_REASON_UNSPECIFIED", |
| 16077 | + "LINK_REASON_QUERY", |
| 16078 | + "LINK_REASON_UPDATE_REJECTED" |
| 16079 | + ], |
| 16080 | + "default": "LINK_REASON_UNSPECIFIED", |
| 16081 | + "description": "LinkReason is the reason for linking to a workflow execution." |
| 16082 | + }, |
15999 | 16083 | "v1ListActivityExecutionsResponse": { |
16000 | 16084 | "type": "object", |
16001 | 16085 | "properties": { |
|
16454 | 16538 | "workerCommands": { |
16455 | 16539 | "type": "boolean", |
16456 | 16540 | "description": "True if the namespace supports worker commands (server-to-worker communication via control queues)." |
| 16541 | + }, |
| 16542 | + "workflowUpdateCallbacks": { |
| 16543 | + "type": "boolean", |
| 16544 | + "title": "True if the namespace supports attaching callbacks on workflow updates" |
16457 | 16545 | } |
16458 | 16546 | }, |
16459 | 16547 | "description": "Namespace capability details. Should contain what features are enabled in a namespace." |
|
17905 | 17993 | }, |
17906 | 17994 | "input": { |
17907 | 17995 | "$ref": "#/definitions/v1Input" |
| 17996 | + }, |
| 17997 | + "requestId": { |
| 17998 | + "type": "string", |
| 17999 | + "description": "The request ID of the request." |
| 18000 | + }, |
| 18001 | + "completionCallbacks": { |
| 18002 | + "type": "array", |
| 18003 | + "items": { |
| 18004 | + "type": "object", |
| 18005 | + "$ref": "#/definitions/v1Callback" |
| 18006 | + }, |
| 18007 | + "description": "Callbacks to be called by the server when this update reaches a terminal state." |
| 18008 | + }, |
| 18009 | + "links": { |
| 18010 | + "type": "array", |
| 18011 | + "items": { |
| 18012 | + "type": "object", |
| 18013 | + "$ref": "#/definitions/v1Link" |
| 18014 | + }, |
| 18015 | + "description": "Links to be associated with this update." |
17908 | 18016 | } |
17909 | 18017 | }, |
17910 | 18018 | "description": "The client request that triggers a Workflow Update." |
|
19672 | 19780 | "stage": { |
19673 | 19781 | "$ref": "#/definitions/v1UpdateWorkflowExecutionLifecycleStage", |
19674 | 19782 | "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." |
| 19783 | + }, |
| 19784 | + "link": { |
| 19785 | + "$ref": "#/definitions/v1Link", |
| 19786 | + "description": "Link to the update event. May be null if the update has not yet been accepted." |
19675 | 19787 | } |
19676 | 19788 | } |
19677 | 19789 | }, |
|
20694 | 20806 | "timeSkippingConfig": { |
20695 | 20807 | "$ref": "#/definitions/v1TimeSkippingConfig", |
20696 | 20808 | "description": "If set, the time-skipping configuration was changed. Contains the full updated configuration." |
| 20809 | + }, |
| 20810 | + "workflowUpdateOptions": { |
| 20811 | + "type": "array", |
| 20812 | + "items": { |
| 20813 | + "type": "object", |
| 20814 | + "$ref": "#/definitions/WorkflowExecutionOptionsUpdatedEventAttributesWorkflowUpdateOptionsUpdate" |
| 20815 | + }, |
| 20816 | + "description": "Updates to workflow updates options." |
20697 | 20817 | } |
20698 | 20818 | } |
20699 | 20819 | }, |
|
0 commit comments