Skip to content

Commit 0b8ef8e

Browse files
authored
Update API to 1.49.0 (#912)
1 parent 9af3cb5 commit 0b8ef8e

8 files changed

Lines changed: 405 additions & 16 deletions

File tree

sdk-core-protos/protos/api_upstream/buf.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ breaking:
1313
- WIRE_JSON
1414
ignore:
1515
- google
16+
# TODO (yuri) remove this
17+
- temporal/api/workflow/v1/message.proto
1618
lint:
1719
use:
1820
- DEFAULT

sdk-core-protos/protos/api_upstream/openapi/openapiv2.json

Lines changed: 97 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6724,6 +6724,9 @@
67246724
},
67256725
"eventRef": {
67266726
"$ref": "#/definitions/WorkflowEventEventReference"
6727+
},
6728+
"requestIdRef": {
6729+
"$ref": "#/definitions/WorkflowEventRequestIdReference"
67276730
}
67286731
}
67296732
},
@@ -6769,6 +6772,23 @@
67696772
}
67706773
}
67716774
},
6775+
"PauseInfoRule": {
6776+
"type": "object",
6777+
"properties": {
6778+
"ruleId": {
6779+
"type": "string",
6780+
"description": "The rule that paused the activity."
6781+
},
6782+
"identity": {
6783+
"type": "string",
6784+
"description": "The identity of the actor that created the rule."
6785+
},
6786+
"reason": {
6787+
"type": "string",
6788+
"description": "Reason why rule was created. Populated from rule description."
6789+
}
6790+
}
6791+
},
67726792
"PendingActivityInfoPauseInfo": {
67736793
"type": "object",
67746794
"properties": {
@@ -6781,9 +6801,9 @@
67816801
"$ref": "#/definitions/PauseInfoManual",
67826802
"title": "activity was paused by the manual intervention"
67836803
},
6784-
"ruleId": {
6785-
"type": "string",
6786-
"description": "Id of the rule that paused the activity."
6804+
"rule": {
6805+
"$ref": "#/definitions/PauseInfoRule",
6806+
"title": "activity was paused by the rule"
67876807
}
67886808
}
67896809
},
@@ -6973,7 +6993,20 @@
69736993
"eventType": {
69746994
"$ref": "#/definitions/v1EventType"
69756995
}
6976-
}
6996+
},
6997+
"description": "EventReference is a direct reference to a history event through the event ID."
6998+
},
6999+
"WorkflowEventRequestIdReference": {
7000+
"type": "object",
7001+
"properties": {
7002+
"requestId": {
7003+
"type": "string"
7004+
},
7005+
"eventType": {
7006+
"$ref": "#/definitions/v1EventType"
7007+
}
7008+
},
7009+
"description": "RequestIdReference is a indirect reference to a history event through the request ID."
69777010
},
69787011
"WorkflowRuleActionActionActivityPause": {
69797012
"type": "object"
@@ -7030,6 +7063,14 @@
70307063
"requestId": {
70317064
"type": "string",
70327065
"description": "Used to de-dupe requests. Typically should be UUID."
7066+
},
7067+
"identity": {
7068+
"type": "string",
7069+
"description": "Identity of the actor who created the rule. Will be stored with the rule."
7070+
},
7071+
"description": {
7072+
"type": "string",
7073+
"description": "Rule description.Will be stored with the rule."
70337074
}
70347075
}
70357076
},
@@ -8911,6 +8952,14 @@
89118952
},
89128953
"internal": {
89138954
"$ref": "#/definitions/CallbackInternal"
8955+
},
8956+
"links": {
8957+
"type": "array",
8958+
"items": {
8959+
"type": "object",
8960+
"$ref": "#/definitions/apicommonv1Link"
8961+
},
8962+
"description": "Links associated with the callback. It can be used to link to underlying resources of the\ncallback."
89148963
}
89158964
},
89168965
"description": "Callback to attach to various events in the system, e.g. workflow run completion."
@@ -10042,7 +10091,8 @@
1004210091
"$ref": "#/definitions/v1ExecuteMultiOperationResponseResponse"
1004310092
}
1004410093
}
10045-
}
10094+
},
10095+
"description": "IMPORTANT: For [StartWorkflow, UpdateWorkflow] combination (\"Update-with-Start\") when both\n 1. the workflow update for the requested update ID has already completed, and\n 2. the workflow for the requested workflow ID has already been closed,\nthen you'll receive\n - an update response containing the update's outcome, and\n - a start response with a `status` field that reflects the workflow's current state."
1004610096
},
1004710097
"v1ExecuteMultiOperationResponseResponse": {
1004810098
"type": "object",
@@ -12390,6 +12440,25 @@
1239012440
"v1RequestCancelWorkflowExecutionResponse": {
1239112441
"type": "object"
1239212442
},
12443+
"v1RequestIdInfo": {
12444+
"type": "object",
12445+
"properties": {
12446+
"eventType": {
12447+
"$ref": "#/definitions/v1EventType",
12448+
"description": "The event type of the history event generated by the request."
12449+
},
12450+
"eventId": {
12451+
"type": "string",
12452+
"format": "int64",
12453+
"description": "The event id of the history event generated by the request. It's possible the event ID is not\nknown (unflushed buffered event). In this case, the value will be zero or a negative value,\nrepresenting an invalid ID."
12454+
},
12455+
"buffered": {
12456+
"type": "boolean",
12457+
"description": "Indicate if the request is still buffered. If so, the event ID is not known and its value\nwill be an invalid event ID."
12458+
}
12459+
},
12460+
"description": "RequestIdInfo contains details of a request ID."
12461+
},
1239312462
"v1ResetActivityResponse": {
1239412463
"type": "object"
1239512464
},
@@ -13722,9 +13791,17 @@
1372213791
"type": "boolean",
1372313792
"description": "If true, a new workflow was started."
1372413793
},
13794+
"status": {
13795+
"$ref": "#/definitions/v1WorkflowExecutionStatus",
13796+
"description": "Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING\nunless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs)."
13797+
},
1372513798
"eagerWorkflowTask": {
1372613799
"$ref": "#/definitions/v1PollWorkflowTaskQueueResponse",
1372713800
"description": "When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will\nreturn the first workflow task to be eagerly executed.\nThe caller is expected to have a worker available to process the task."
13801+
},
13802+
"link": {
13803+
"$ref": "#/definitions/apicommonv1Link",
13804+
"description": "Link to the workflow event."
1372813805
}
1372913806
}
1373013807
},
@@ -14846,6 +14923,13 @@
1484614923
"resetRunId": {
1484714924
"type": "string",
1484814925
"description": "Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run."
14926+
},
14927+
"requestIdInfos": {
14928+
"type": "object",
14929+
"additionalProperties": {
14930+
"$ref": "#/definitions/v1RequestIdInfo"
14931+
},
14932+
"description": "Request ID information (eg: history event information associated with the request ID).\nNote: It only contains request IDs from StartWorkflowExecution requests, including indirect\ncalls (eg: if SignalWithStartWorkflowExecution starts a new workflow, then the request ID is\nused in the StartWorkflowExecution request)."
1484914933
}
1485014934
},
1485114935
"description": "Holds all the extra information about workflow execution that is not part of Visibility."
@@ -15447,6 +15531,14 @@
1544715531
"spec": {
1544815532
"$ref": "#/definitions/v1WorkflowRuleSpec",
1544915533
"title": "Rule specification"
15534+
},
15535+
"createdByIdentity": {
15536+
"type": "string",
15537+
"title": "Identity of the actor that created the rule"
15538+
},
15539+
"description": {
15540+
"type": "string",
15541+
"description": "Rule description."
1545015542
}
1545115543
},
1545215544
"description": "WorkflowRule describes a rule that can be applied to any workflow in this namespace."

0 commit comments

Comments
 (0)