Skip to content

Commit 7b57017

Browse files
committed
Add NexusSDKFailureInfo
1 parent 1f1ef73 commit 7b57017

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

openapi/openapiv2.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,6 +9255,9 @@
92559255
},
92569256
"nexusSdkOperationFailureInfo": {
92579257
"$ref": "#/definitions/v1NexusSDKOperationFailureInfo"
9258+
},
9259+
"nexusSdkFailureErrorInfo": {
9260+
"$ref": "#/definitions/v1NexusSDKFailureErrorFailureInfo"
92589261
}
92599262
}
92609263
},
@@ -12797,6 +12800,22 @@
1279712800
},
1279812801
"description": "Nexus operation timed out."
1279912802
},
12803+
"v1NexusSDKFailureErrorFailureInfo": {
12804+
"type": "object",
12805+
"properties": {
12806+
"metadata": {
12807+
"type": "object",
12808+
"additionalProperties": {
12809+
"type": "string"
12810+
}
12811+
},
12812+
"data": {
12813+
"type": "string",
12814+
"format": "byte"
12815+
}
12816+
},
12817+
"description": "Representation of the Nexus SDK FailureError object."
12818+
},
1280012819
"v1NexusSDKOperationFailureInfo": {
1280112820
"type": "object",
1280212821
"properties": {

openapi/openapiv3.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8339,6 +8339,8 @@ components:
83398339
$ref: '#/components/schemas/NexusHandlerFailureInfo'
83408340
nexusSdkOperationFailureInfo:
83418341
$ref: '#/components/schemas/NexusSDKOperationFailureInfo'
8342+
nexusSdkFailureErrorInfo:
8343+
$ref: '#/components/schemas/NexusSDKFailureErrorFailureInfo'
83428344
FetchWorkerConfigRequest:
83438345
type: object
83448346
properties:
@@ -9553,6 +9555,17 @@ components:
95539555
type: string
95549556
description: The request ID allocated at schedule time.
95559557
description: Nexus operation timed out.
9558+
NexusSDKFailureErrorFailureInfo:
9559+
type: object
9560+
properties:
9561+
metadata:
9562+
type: object
9563+
additionalProperties:
9564+
type: string
9565+
data:
9566+
type: string
9567+
format: bytes
9568+
description: Representation of the Nexus SDK FailureError object.
95569569
NexusSDKOperationFailureInfo:
95579570
type: object
95589571
properties:

temporal/api/failure/v1/message.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ message NexusSDKOperationFailureInfo {
9797
string state = 1;
9898
}
9999

100+
// Representation of the Nexus SDK FailureError object.
101+
message NexusSDKFailureErrorFailureInfo {
102+
map<string, string> metadata = 1;
103+
bytes data = 2;
104+
}
105+
100106
message Failure {
101107
string message = 1;
102108
// The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
@@ -132,6 +138,7 @@ message Failure {
132138
NexusOperationFailureInfo nexus_operation_execution_failure_info = 13;
133139
NexusHandlerFailureInfo nexus_handler_failure_info = 14;
134140
NexusSDKOperationFailureInfo nexus_sdk_operation_failure_info = 15;
141+
NexusSDKFailureErrorFailureInfo nexus_sdk_failure_error_info = 16;
135142
}
136143
}
137144

0 commit comments

Comments
 (0)