|
9041 | 9041 | } |
9042 | 9042 | }, |
9043 | 9043 | "definitions": { |
9044 | | - "CallbackInfoTrigger": { |
| 9044 | + "CallbackInfoActivityClosed": { |
9045 | 9045 | "type": "object", |
9046 | | - "properties": { |
9047 | | - "workflowClosed": { |
9048 | | - "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
9049 | | - } |
9050 | | - } |
| 9046 | + "description": "Trigger for when the activity is closed." |
9051 | 9047 | }, |
9052 | 9048 | "CallbackInfoWorkflowClosed": { |
9053 | 9049 | "type": "object", |
@@ -11115,6 +11111,113 @@ |
11115 | 11111 | }, |
11116 | 11112 | "description": "Used to validate the compute config without attaching it to a Worker Deployment Version." |
11117 | 11113 | }, |
| 11114 | + "apiActivityV1CallbackInfo": { |
| 11115 | + "type": "object", |
| 11116 | + "properties": { |
| 11117 | + "callback": { |
| 11118 | + "$ref": "#/definitions/v1Callback", |
| 11119 | + "description": "Information on how this callback should be invoked (e.g. its URL and type)." |
| 11120 | + }, |
| 11121 | + "trigger": { |
| 11122 | + "$ref": "#/definitions/apiActivityV1CallbackInfoTrigger", |
| 11123 | + "description": "Trigger for this callback." |
| 11124 | + }, |
| 11125 | + "registrationTime": { |
| 11126 | + "type": "string", |
| 11127 | + "format": "date-time", |
| 11128 | + "description": "The time when the callback was registered." |
| 11129 | + }, |
| 11130 | + "state": { |
| 11131 | + "$ref": "#/definitions/v1CallbackState", |
| 11132 | + "description": "The current state of the callback." |
| 11133 | + }, |
| 11134 | + "attempt": { |
| 11135 | + "type": "integer", |
| 11136 | + "format": "int32", |
| 11137 | + "description": "The number of attempts made to deliver the callback.\nThis number represents a minimum bound since the attempt is incremented after the callback request completes." |
| 11138 | + }, |
| 11139 | + "lastAttemptCompleteTime": { |
| 11140 | + "type": "string", |
| 11141 | + "format": "date-time", |
| 11142 | + "description": "The time when the last attempt completed." |
| 11143 | + }, |
| 11144 | + "lastAttemptFailure": { |
| 11145 | + "$ref": "#/definitions/v1Failure", |
| 11146 | + "description": "The last attempt's failure, if any." |
| 11147 | + }, |
| 11148 | + "nextAttemptScheduleTime": { |
| 11149 | + "type": "string", |
| 11150 | + "format": "date-time", |
| 11151 | + "description": "The time when the next attempt is scheduled." |
| 11152 | + }, |
| 11153 | + "blockedReason": { |
| 11154 | + "type": "string", |
| 11155 | + "description": "If the state is BLOCKED, blocked reason provides additional information." |
| 11156 | + } |
| 11157 | + }, |
| 11158 | + "description": "CallbackInfo contains the state of an attached activity callback." |
| 11159 | + }, |
| 11160 | + "apiActivityV1CallbackInfoTrigger": { |
| 11161 | + "type": "object", |
| 11162 | + "properties": { |
| 11163 | + "activityClosed": { |
| 11164 | + "$ref": "#/definitions/CallbackInfoActivityClosed" |
| 11165 | + } |
| 11166 | + } |
| 11167 | + }, |
| 11168 | + "apiWorkflowV1CallbackInfo": { |
| 11169 | + "type": "object", |
| 11170 | + "properties": { |
| 11171 | + "callback": { |
| 11172 | + "$ref": "#/definitions/v1Callback", |
| 11173 | + "description": "Information on how this callback should be invoked (e.g. its URL and type)." |
| 11174 | + }, |
| 11175 | + "trigger": { |
| 11176 | + "$ref": "#/definitions/apiWorkflowV1CallbackInfoTrigger", |
| 11177 | + "description": "Trigger for this callback." |
| 11178 | + }, |
| 11179 | + "registrationTime": { |
| 11180 | + "type": "string", |
| 11181 | + "format": "date-time", |
| 11182 | + "description": "The time when the callback was registered." |
| 11183 | + }, |
| 11184 | + "state": { |
| 11185 | + "$ref": "#/definitions/v1CallbackState" |
| 11186 | + }, |
| 11187 | + "attempt": { |
| 11188 | + "type": "integer", |
| 11189 | + "format": "int32", |
| 11190 | + "description": "The number of attempts made to deliver the callback.\nThis number represents a minimum bound since the attempt is incremented after the callback request completes." |
| 11191 | + }, |
| 11192 | + "lastAttemptCompleteTime": { |
| 11193 | + "type": "string", |
| 11194 | + "format": "date-time", |
| 11195 | + "description": "The time when the last attempt completed." |
| 11196 | + }, |
| 11197 | + "lastAttemptFailure": { |
| 11198 | + "$ref": "#/definitions/v1Failure", |
| 11199 | + "description": "The last attempt's failure, if any." |
| 11200 | + }, |
| 11201 | + "nextAttemptScheduleTime": { |
| 11202 | + "type": "string", |
| 11203 | + "format": "date-time", |
| 11204 | + "description": "The time when the next attempt is scheduled." |
| 11205 | + }, |
| 11206 | + "blockedReason": { |
| 11207 | + "type": "string", |
| 11208 | + "description": "If the state is BLOCKED, blocked reason provides additional information." |
| 11209 | + } |
| 11210 | + }, |
| 11211 | + "description": "CallbackInfo contains the state of an attached workflow callback." |
| 11212 | + }, |
| 11213 | + "apiWorkflowV1CallbackInfoTrigger": { |
| 11214 | + "type": "object", |
| 11215 | + "properties": { |
| 11216 | + "workflowClosed": { |
| 11217 | + "$ref": "#/definitions/CallbackInfoWorkflowClosed" |
| 11218 | + } |
| 11219 | + } |
| 11220 | + }, |
11118 | 11221 | "protobufAny": { |
11119 | 11222 | "type": "object", |
11120 | 11223 | "properties": { |
|
11287 | 11390 | "type": "object", |
11288 | 11391 | "$ref": "#/definitions/v1Link" |
11289 | 11392 | }, |
11290 | | - "description": "Links associated with the activity." |
| 11393 | + "description": "Links to related entities, such as the entity that started this activity." |
11291 | 11394 | } |
11292 | 11395 | }, |
11293 | 11396 | "description": "Information about a standalone activity." |
|
12131 | 12234 | }, |
12132 | 12235 | "description": "Callback to attach to various events in the system, e.g. workflow run completion." |
12133 | 12236 | }, |
12134 | | - "v1CallbackInfo": { |
12135 | | - "type": "object", |
12136 | | - "properties": { |
12137 | | - "callback": { |
12138 | | - "$ref": "#/definitions/v1Callback", |
12139 | | - "description": "Information on how this callback should be invoked (e.g. its URL and type)." |
12140 | | - }, |
12141 | | - "trigger": { |
12142 | | - "$ref": "#/definitions/CallbackInfoTrigger", |
12143 | | - "description": "Trigger for this callback." |
12144 | | - }, |
12145 | | - "registrationTime": { |
12146 | | - "type": "string", |
12147 | | - "format": "date-time", |
12148 | | - "description": "The time when the callback was registered." |
12149 | | - }, |
12150 | | - "state": { |
12151 | | - "$ref": "#/definitions/v1CallbackState" |
12152 | | - }, |
12153 | | - "attempt": { |
12154 | | - "type": "integer", |
12155 | | - "format": "int32", |
12156 | | - "description": "The number of attempts made to deliver the callback.\nThis number represents a minimum bound since the attempt is incremented after the callback request completes." |
12157 | | - }, |
12158 | | - "lastAttemptCompleteTime": { |
12159 | | - "type": "string", |
12160 | | - "format": "date-time", |
12161 | | - "description": "The time when the last attempt completed." |
12162 | | - }, |
12163 | | - "lastAttemptFailure": { |
12164 | | - "$ref": "#/definitions/v1Failure", |
12165 | | - "description": "The last attempt's failure, if any." |
12166 | | - }, |
12167 | | - "nextAttemptScheduleTime": { |
12168 | | - "type": "string", |
12169 | | - "format": "date-time", |
12170 | | - "description": "The time when the next attempt is scheduled." |
12171 | | - }, |
12172 | | - "blockedReason": { |
12173 | | - "type": "string", |
12174 | | - "description": "If the state is BLOCKED, blocked reason provides additional information." |
12175 | | - } |
12176 | | - }, |
12177 | | - "description": "CallbackInfo contains the state of an attached workflow callback." |
12178 | | - }, |
12179 | 12237 | "v1CallbackState": { |
12180 | 12238 | "type": "string", |
12181 | 12239 | "enum": [ |
|
12909 | 12967 | "type": "array", |
12910 | 12968 | "items": { |
12911 | 12969 | "type": "object", |
12912 | | - "$ref": "#/definitions/v1CallbackInfo" |
| 12970 | + "$ref": "#/definitions/apiActivityV1CallbackInfo" |
12913 | 12971 | }, |
12914 | 12972 | "description": "Callbacks attached to this activity execution and their current state." |
12915 | 12973 | } |
|
13149 | 13207 | "type": "array", |
13150 | 13208 | "items": { |
13151 | 13209 | "type": "object", |
13152 | | - "$ref": "#/definitions/v1CallbackInfo" |
| 13210 | + "$ref": "#/definitions/apiWorkflowV1CallbackInfo" |
13153 | 13211 | } |
13154 | 13212 | }, |
13155 | 13213 | "pendingNexusOperations": { |
|
13731 | 13789 | "type": "object", |
13732 | 13790 | "$ref": "#/definitions/v1Link" |
13733 | 13791 | }, |
13734 | | - "description": "Links associated with the event." |
| 13792 | + "description": "Links to related entities, such as the entity that started this event's workflow." |
13735 | 13793 | }, |
13736 | 13794 | "principal": { |
13737 | 13795 | "$ref": "#/definitions/v1Principal", |
|
0 commit comments