Skip to content

Commit 2bc9df1

Browse files
committed
Update openapi
1 parent 05c3da9 commit 2bc9df1

2 files changed

Lines changed: 117 additions & 58 deletions

File tree

openapi/openapiv2.json

Lines changed: 113 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -9041,13 +9041,9 @@
90419041
}
90429042
},
90439043
"definitions": {
9044-
"CallbackInfoTrigger": {
9044+
"CallbackInfoActivityClosed": {
90459045
"type": "object",
9046-
"properties": {
9047-
"workflowClosed": {
9048-
"$ref": "#/definitions/CallbackInfoWorkflowClosed"
9049-
}
9050-
}
9046+
"description": "Trigger for when the activity is closed."
90519047
},
90529048
"CallbackInfoWorkflowClosed": {
90539049
"type": "object",
@@ -11115,6 +11111,113 @@
1111511111
},
1111611112
"description": "Used to validate the compute config without attaching it to a Worker Deployment Version."
1111711113
},
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+
},
1111811221
"protobufAny": {
1111911222
"type": "object",
1112011223
"properties": {
@@ -11287,7 +11390,7 @@
1128711390
"type": "object",
1128811391
"$ref": "#/definitions/v1Link"
1128911392
},
11290-
"description": "Links associated with the activity."
11393+
"description": "Links to related entities, such as the entity that started this activity."
1129111394
}
1129211395
},
1129311396
"description": "Information about a standalone activity."
@@ -12131,51 +12234,6 @@
1213112234
},
1213212235
"description": "Callback to attach to various events in the system, e.g. workflow run completion."
1213312236
},
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-
},
1217912237
"v1CallbackState": {
1218012238
"type": "string",
1218112239
"enum": [
@@ -12909,7 +12967,7 @@
1290912967
"type": "array",
1291012968
"items": {
1291112969
"type": "object",
12912-
"$ref": "#/definitions/v1CallbackInfo"
12970+
"$ref": "#/definitions/apiActivityV1CallbackInfo"
1291312971
},
1291412972
"description": "Callbacks attached to this activity execution and their current state."
1291512973
}
@@ -13149,7 +13207,7 @@
1314913207
"type": "array",
1315013208
"items": {
1315113209
"type": "object",
13152-
"$ref": "#/definitions/v1CallbackInfo"
13210+
"$ref": "#/definitions/apiWorkflowV1CallbackInfo"
1315313211
}
1315413212
},
1315513213
"pendingNexusOperations": {
@@ -13731,7 +13789,7 @@
1373113789
"type": "object",
1373213790
"$ref": "#/definitions/v1Link"
1373313791
},
13734-
"description": "Links associated with the event."
13792+
"description": "Links to related entities, such as the entity that started this event's workflow."
1373513793
},
1373613794
"principal": {
1373713795
"$ref": "#/definitions/v1Principal",

openapi/openapiv3.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8240,7 +8240,7 @@ components:
82408240
type: array
82418241
items:
82428242
$ref: '#/components/schemas/Link'
8243-
description: Links associated with the activity.
8243+
description: Links to related entities, such as the entity that started this activity.
82448244
description: Information about a standalone activity.
82458245
ActivityExecutionListInfo:
82468246
type: object
@@ -9089,6 +9089,7 @@ components:
90899089
- CALLBACK_STATE_SUCCEEDED
90909090
- CALLBACK_STATE_BLOCKED
90919091
type: string
9092+
description: The current state of the callback.
90929093
format: enum
90939094
attempt:
90949095
type: integer
@@ -9111,7 +9112,7 @@ components:
91119112
blockedReason:
91129113
type: string
91139114
description: If the state is BLOCKED, blocked reason provides additional information.
9114-
description: CallbackInfo contains the state of an attached workflow callback.
9115+
description: CallbackInfo contains the state of an attached activity callback.
91159116
CallbackInfo_Trigger:
91169117
type: object
91179118
properties:
@@ -10740,7 +10741,7 @@ components:
1074010741
type: array
1074110742
items:
1074210743
$ref: '#/components/schemas/Link'
10743-
description: Links associated with the event.
10744+
description: Links to related entities, such as the entity that started this event's workflow.
1074410745
principal:
1074510746
allOf:
1074610747
- $ref: '#/components/schemas/Principal'

0 commit comments

Comments
 (0)