@temporalio/proto 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/coresdk.d.ts +4303 -3729
- package/lib/coresdk.js +8326 -7428
- package/lib/temporal.d.ts +57 -2
- package/lib/temporal.js +150 -2
- package/package.json +2 -2
- package/scripts/compile-proto.js +4 -2
package/lib/temporal.js
CHANGED
|
@@ -1082,6 +1082,8 @@ $root.temporal = (function() {
|
|
|
1082
1082
|
|
|
1083
1083
|
UpdateNamespaceRequest.prototype.deleteBadBinary = "";
|
|
1084
1084
|
|
|
1085
|
+
UpdateNamespaceRequest.prototype.promoteNamespace = false;
|
|
1086
|
+
|
|
1085
1087
|
UpdateNamespaceRequest.encode = function encode(message, writer) {
|
|
1086
1088
|
if (!writer)
|
|
1087
1089
|
writer = $Writer.create();
|
|
@@ -1097,6 +1099,8 @@ $root.temporal = (function() {
|
|
|
1097
1099
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.securityToken);
|
|
1098
1100
|
if (message.deleteBadBinary != null && Object.hasOwnProperty.call(message, "deleteBadBinary"))
|
|
1099
1101
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.deleteBadBinary);
|
|
1102
|
+
if (message.promoteNamespace != null && Object.hasOwnProperty.call(message, "promoteNamespace"))
|
|
1103
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.promoteNamespace);
|
|
1100
1104
|
return writer;
|
|
1101
1105
|
};
|
|
1102
1106
|
|
|
@@ -1129,6 +1133,9 @@ $root.temporal = (function() {
|
|
|
1129
1133
|
case 6:
|
|
1130
1134
|
message.deleteBadBinary = reader.string();
|
|
1131
1135
|
break;
|
|
1136
|
+
case 7:
|
|
1137
|
+
message.promoteNamespace = reader.bool();
|
|
1138
|
+
break;
|
|
1132
1139
|
default:
|
|
1133
1140
|
reader.skipType(tag & 7);
|
|
1134
1141
|
break;
|
|
@@ -1168,6 +1175,8 @@ $root.temporal = (function() {
|
|
|
1168
1175
|
message.securityToken = String(object.securityToken);
|
|
1169
1176
|
if (object.deleteBadBinary != null)
|
|
1170
1177
|
message.deleteBadBinary = String(object.deleteBadBinary);
|
|
1178
|
+
if (object.promoteNamespace != null)
|
|
1179
|
+
message.promoteNamespace = Boolean(object.promoteNamespace);
|
|
1171
1180
|
return message;
|
|
1172
1181
|
};
|
|
1173
1182
|
|
|
@@ -1182,6 +1191,7 @@ $root.temporal = (function() {
|
|
|
1182
1191
|
object.replicationConfig = null;
|
|
1183
1192
|
object.securityToken = "";
|
|
1184
1193
|
object.deleteBadBinary = "";
|
|
1194
|
+
object.promoteNamespace = false;
|
|
1185
1195
|
}
|
|
1186
1196
|
if (message.namespace != null && message.hasOwnProperty("namespace"))
|
|
1187
1197
|
object.namespace = message.namespace;
|
|
@@ -1195,6 +1205,8 @@ $root.temporal = (function() {
|
|
|
1195
1205
|
object.securityToken = message.securityToken;
|
|
1196
1206
|
if (message.deleteBadBinary != null && message.hasOwnProperty("deleteBadBinary"))
|
|
1197
1207
|
object.deleteBadBinary = message.deleteBadBinary;
|
|
1208
|
+
if (message.promoteNamespace != null && message.hasOwnProperty("promoteNamespace"))
|
|
1209
|
+
object.promoteNamespace = message.promoteNamespace;
|
|
1198
1210
|
return object;
|
|
1199
1211
|
};
|
|
1200
1212
|
|
|
@@ -5464,6 +5476,8 @@ $root.temporal = (function() {
|
|
|
5464
5476
|
|
|
5465
5477
|
SignalWorkflowExecutionRequest.prototype.control = "";
|
|
5466
5478
|
|
|
5479
|
+
SignalWorkflowExecutionRequest.prototype.header = null;
|
|
5480
|
+
|
|
5467
5481
|
SignalWorkflowExecutionRequest.encode = function encode(message, writer) {
|
|
5468
5482
|
if (!writer)
|
|
5469
5483
|
writer = $Writer.create();
|
|
@@ -5481,6 +5495,8 @@ $root.temporal = (function() {
|
|
|
5481
5495
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.requestId);
|
|
5482
5496
|
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
5483
5497
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.control);
|
|
5498
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
5499
|
+
$root.temporal.api.common.v1.Header.encode(message.header, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
5484
5500
|
return writer;
|
|
5485
5501
|
};
|
|
5486
5502
|
|
|
@@ -5516,6 +5532,9 @@ $root.temporal = (function() {
|
|
|
5516
5532
|
case 7:
|
|
5517
5533
|
message.control = reader.string();
|
|
5518
5534
|
break;
|
|
5535
|
+
case 8:
|
|
5536
|
+
message.header = $root.temporal.api.common.v1.Header.decode(reader, reader.uint32());
|
|
5537
|
+
break;
|
|
5519
5538
|
default:
|
|
5520
5539
|
reader.skipType(tag & 7);
|
|
5521
5540
|
break;
|
|
@@ -5554,6 +5573,11 @@ $root.temporal = (function() {
|
|
|
5554
5573
|
message.requestId = String(object.requestId);
|
|
5555
5574
|
if (object.control != null)
|
|
5556
5575
|
message.control = String(object.control);
|
|
5576
|
+
if (object.header != null) {
|
|
5577
|
+
if (typeof object.header !== "object")
|
|
5578
|
+
throw TypeError(".temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest.header: object expected");
|
|
5579
|
+
message.header = $root.temporal.api.common.v1.Header.fromObject(object.header);
|
|
5580
|
+
}
|
|
5557
5581
|
return message;
|
|
5558
5582
|
};
|
|
5559
5583
|
|
|
@@ -5569,6 +5593,7 @@ $root.temporal = (function() {
|
|
|
5569
5593
|
object.identity = "";
|
|
5570
5594
|
object.requestId = "";
|
|
5571
5595
|
object.control = "";
|
|
5596
|
+
object.header = null;
|
|
5572
5597
|
}
|
|
5573
5598
|
if (message.namespace != null && message.hasOwnProperty("namespace"))
|
|
5574
5599
|
object.namespace = message.namespace;
|
|
@@ -5584,6 +5609,8 @@ $root.temporal = (function() {
|
|
|
5584
5609
|
object.requestId = message.requestId;
|
|
5585
5610
|
if (message.control != null && message.hasOwnProperty("control"))
|
|
5586
5611
|
object.control = message.control;
|
|
5612
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
5613
|
+
object.header = $root.temporal.api.common.v1.Header.toObject(message.header, options);
|
|
5587
5614
|
return object;
|
|
5588
5615
|
};
|
|
5589
5616
|
|
|
@@ -8098,7 +8125,7 @@ $root.temporal = (function() {
|
|
|
8098
8125
|
case 0:
|
|
8099
8126
|
message.keys[keys[i]] = 0;
|
|
8100
8127
|
break;
|
|
8101
|
-
case "
|
|
8128
|
+
case "INDEXED_VALUE_TYPE_TEXT":
|
|
8102
8129
|
case 1:
|
|
8103
8130
|
message.keys[keys[i]] = 1;
|
|
8104
8131
|
break;
|
|
@@ -9287,6 +9314,10 @@ $root.temporal = (function() {
|
|
|
9287
9314
|
|
|
9288
9315
|
GetClusterInfoResponse.prototype.historyShardCount = 0;
|
|
9289
9316
|
|
|
9317
|
+
GetClusterInfoResponse.prototype.persistenceStore = "";
|
|
9318
|
+
|
|
9319
|
+
GetClusterInfoResponse.prototype.visibilityStore = "";
|
|
9320
|
+
|
|
9290
9321
|
GetClusterInfoResponse.encode = function encode(message, writer) {
|
|
9291
9322
|
if (!writer)
|
|
9292
9323
|
writer = $Writer.create();
|
|
@@ -9303,6 +9334,10 @@ $root.temporal = (function() {
|
|
|
9303
9334
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.clusterName);
|
|
9304
9335
|
if (message.historyShardCount != null && Object.hasOwnProperty.call(message, "historyShardCount"))
|
|
9305
9336
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.historyShardCount);
|
|
9337
|
+
if (message.persistenceStore != null && Object.hasOwnProperty.call(message, "persistenceStore"))
|
|
9338
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.persistenceStore);
|
|
9339
|
+
if (message.visibilityStore != null && Object.hasOwnProperty.call(message, "visibilityStore"))
|
|
9340
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.visibilityStore);
|
|
9306
9341
|
return writer;
|
|
9307
9342
|
};
|
|
9308
9343
|
|
|
@@ -9354,6 +9389,12 @@ $root.temporal = (function() {
|
|
|
9354
9389
|
case 6:
|
|
9355
9390
|
message.historyShardCount = reader.int32();
|
|
9356
9391
|
break;
|
|
9392
|
+
case 7:
|
|
9393
|
+
message.persistenceStore = reader.string();
|
|
9394
|
+
break;
|
|
9395
|
+
case 8:
|
|
9396
|
+
message.visibilityStore = reader.string();
|
|
9397
|
+
break;
|
|
9357
9398
|
default:
|
|
9358
9399
|
reader.skipType(tag & 7);
|
|
9359
9400
|
break;
|
|
@@ -9392,6 +9433,10 @@ $root.temporal = (function() {
|
|
|
9392
9433
|
message.clusterName = String(object.clusterName);
|
|
9393
9434
|
if (object.historyShardCount != null)
|
|
9394
9435
|
message.historyShardCount = object.historyShardCount | 0;
|
|
9436
|
+
if (object.persistenceStore != null)
|
|
9437
|
+
message.persistenceStore = String(object.persistenceStore);
|
|
9438
|
+
if (object.visibilityStore != null)
|
|
9439
|
+
message.visibilityStore = String(object.visibilityStore);
|
|
9395
9440
|
return message;
|
|
9396
9441
|
};
|
|
9397
9442
|
|
|
@@ -9407,6 +9452,8 @@ $root.temporal = (function() {
|
|
|
9407
9452
|
object.versionInfo = null;
|
|
9408
9453
|
object.clusterName = "";
|
|
9409
9454
|
object.historyShardCount = 0;
|
|
9455
|
+
object.persistenceStore = "";
|
|
9456
|
+
object.visibilityStore = "";
|
|
9410
9457
|
}
|
|
9411
9458
|
var keys2;
|
|
9412
9459
|
if (message.supportedClients && (keys2 = Object.keys(message.supportedClients)).length) {
|
|
@@ -9424,6 +9471,10 @@ $root.temporal = (function() {
|
|
|
9424
9471
|
object.clusterName = message.clusterName;
|
|
9425
9472
|
if (message.historyShardCount != null && message.hasOwnProperty("historyShardCount"))
|
|
9426
9473
|
object.historyShardCount = message.historyShardCount;
|
|
9474
|
+
if (message.persistenceStore != null && message.hasOwnProperty("persistenceStore"))
|
|
9475
|
+
object.persistenceStore = message.persistenceStore;
|
|
9476
|
+
if (message.visibilityStore != null && message.hasOwnProperty("visibilityStore"))
|
|
9477
|
+
object.visibilityStore = message.visibilityStore;
|
|
9427
9478
|
return object;
|
|
9428
9479
|
};
|
|
9429
9480
|
|
|
@@ -9743,6 +9794,7 @@ $root.temporal = (function() {
|
|
|
9743
9794
|
values[valuesById[1] = "NAMESPACE_STATE_REGISTERED"] = 1;
|
|
9744
9795
|
values[valuesById[2] = "NAMESPACE_STATE_DEPRECATED"] = 2;
|
|
9745
9796
|
values[valuesById[3] = "NAMESPACE_STATE_DELETED"] = 3;
|
|
9797
|
+
values[valuesById[4] = "NAMESPACE_STATE_HANDOVER"] = 4;
|
|
9746
9798
|
return values;
|
|
9747
9799
|
})();
|
|
9748
9800
|
|
|
@@ -9816,7 +9868,7 @@ $root.temporal = (function() {
|
|
|
9816
9868
|
v1.IndexedValueType = (function() {
|
|
9817
9869
|
var valuesById = {}, values = Object.create(valuesById);
|
|
9818
9870
|
values[valuesById[0] = "INDEXED_VALUE_TYPE_UNSPECIFIED"] = 0;
|
|
9819
|
-
values[valuesById[1] = "
|
|
9871
|
+
values[valuesById[1] = "INDEXED_VALUE_TYPE_TEXT"] = 1;
|
|
9820
9872
|
values[valuesById[2] = "INDEXED_VALUE_TYPE_KEYWORD"] = 2;
|
|
9821
9873
|
values[valuesById[3] = "INDEXED_VALUE_TYPE_INT"] = 3;
|
|
9822
9874
|
values[valuesById[4] = "INDEXED_VALUE_TYPE_DOUBLE"] = 4;
|
|
@@ -14937,6 +14989,8 @@ $root.temporal = (function() {
|
|
|
14937
14989
|
|
|
14938
14990
|
WorkflowExecutionSignaledEventAttributes.prototype.identity = "";
|
|
14939
14991
|
|
|
14992
|
+
WorkflowExecutionSignaledEventAttributes.prototype.header = null;
|
|
14993
|
+
|
|
14940
14994
|
WorkflowExecutionSignaledEventAttributes.encode = function encode(message, writer) {
|
|
14941
14995
|
if (!writer)
|
|
14942
14996
|
writer = $Writer.create();
|
|
@@ -14946,6 +15000,8 @@ $root.temporal = (function() {
|
|
|
14946
15000
|
$root.temporal.api.common.v1.Payloads.encode(message.input, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14947
15001
|
if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
|
|
14948
15002
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.identity);
|
|
15003
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
15004
|
+
$root.temporal.api.common.v1.Header.encode(message.header, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
14949
15005
|
return writer;
|
|
14950
15006
|
};
|
|
14951
15007
|
|
|
@@ -14969,6 +15025,9 @@ $root.temporal = (function() {
|
|
|
14969
15025
|
case 3:
|
|
14970
15026
|
message.identity = reader.string();
|
|
14971
15027
|
break;
|
|
15028
|
+
case 4:
|
|
15029
|
+
message.header = $root.temporal.api.common.v1.Header.decode(reader, reader.uint32());
|
|
15030
|
+
break;
|
|
14972
15031
|
default:
|
|
14973
15032
|
reader.skipType(tag & 7);
|
|
14974
15033
|
break;
|
|
@@ -14996,6 +15055,11 @@ $root.temporal = (function() {
|
|
|
14996
15055
|
}
|
|
14997
15056
|
if (object.identity != null)
|
|
14998
15057
|
message.identity = String(object.identity);
|
|
15058
|
+
if (object.header != null) {
|
|
15059
|
+
if (typeof object.header !== "object")
|
|
15060
|
+
throw TypeError(".temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes.header: object expected");
|
|
15061
|
+
message.header = $root.temporal.api.common.v1.Header.fromObject(object.header);
|
|
15062
|
+
}
|
|
14999
15063
|
return message;
|
|
15000
15064
|
};
|
|
15001
15065
|
|
|
@@ -15007,6 +15071,7 @@ $root.temporal = (function() {
|
|
|
15007
15071
|
object.signalName = "";
|
|
15008
15072
|
object.input = null;
|
|
15009
15073
|
object.identity = "";
|
|
15074
|
+
object.header = null;
|
|
15010
15075
|
}
|
|
15011
15076
|
if (message.signalName != null && message.hasOwnProperty("signalName"))
|
|
15012
15077
|
object.signalName = message.signalName;
|
|
@@ -15014,6 +15079,8 @@ $root.temporal = (function() {
|
|
|
15014
15079
|
object.input = $root.temporal.api.common.v1.Payloads.toObject(message.input, options);
|
|
15015
15080
|
if (message.identity != null && message.hasOwnProperty("identity"))
|
|
15016
15081
|
object.identity = message.identity;
|
|
15082
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
15083
|
+
object.header = $root.temporal.api.common.v1.Header.toObject(message.header, options);
|
|
15017
15084
|
return object;
|
|
15018
15085
|
};
|
|
15019
15086
|
|
|
@@ -15584,6 +15651,8 @@ $root.temporal = (function() {
|
|
|
15584
15651
|
|
|
15585
15652
|
SignalExternalWorkflowExecutionInitiatedEventAttributes.prototype.childWorkflowOnly = false;
|
|
15586
15653
|
|
|
15654
|
+
SignalExternalWorkflowExecutionInitiatedEventAttributes.prototype.header = null;
|
|
15655
|
+
|
|
15587
15656
|
SignalExternalWorkflowExecutionInitiatedEventAttributes.encode = function encode(message, writer) {
|
|
15588
15657
|
if (!writer)
|
|
15589
15658
|
writer = $Writer.create();
|
|
@@ -15601,6 +15670,8 @@ $root.temporal = (function() {
|
|
|
15601
15670
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.control);
|
|
15602
15671
|
if (message.childWorkflowOnly != null && Object.hasOwnProperty.call(message, "childWorkflowOnly"))
|
|
15603
15672
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.childWorkflowOnly);
|
|
15673
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
15674
|
+
$root.temporal.api.common.v1.Header.encode(message.header, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
15604
15675
|
return writer;
|
|
15605
15676
|
};
|
|
15606
15677
|
|
|
@@ -15636,6 +15707,9 @@ $root.temporal = (function() {
|
|
|
15636
15707
|
case 7:
|
|
15637
15708
|
message.childWorkflowOnly = reader.bool();
|
|
15638
15709
|
break;
|
|
15710
|
+
case 8:
|
|
15711
|
+
message.header = $root.temporal.api.common.v1.Header.decode(reader, reader.uint32());
|
|
15712
|
+
break;
|
|
15639
15713
|
default:
|
|
15640
15714
|
reader.skipType(tag & 7);
|
|
15641
15715
|
break;
|
|
@@ -15681,6 +15755,11 @@ $root.temporal = (function() {
|
|
|
15681
15755
|
message.control = String(object.control);
|
|
15682
15756
|
if (object.childWorkflowOnly != null)
|
|
15683
15757
|
message.childWorkflowOnly = Boolean(object.childWorkflowOnly);
|
|
15758
|
+
if (object.header != null) {
|
|
15759
|
+
if (typeof object.header !== "object")
|
|
15760
|
+
throw TypeError(".temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.header: object expected");
|
|
15761
|
+
message.header = $root.temporal.api.common.v1.Header.fromObject(object.header);
|
|
15762
|
+
}
|
|
15684
15763
|
return message;
|
|
15685
15764
|
};
|
|
15686
15765
|
|
|
@@ -15700,6 +15779,7 @@ $root.temporal = (function() {
|
|
|
15700
15779
|
object.input = null;
|
|
15701
15780
|
object.control = "";
|
|
15702
15781
|
object.childWorkflowOnly = false;
|
|
15782
|
+
object.header = null;
|
|
15703
15783
|
}
|
|
15704
15784
|
if (message.workflowTaskCompletedEventId != null && message.hasOwnProperty("workflowTaskCompletedEventId"))
|
|
15705
15785
|
if (typeof message.workflowTaskCompletedEventId === "number")
|
|
@@ -15718,6 +15798,8 @@ $root.temporal = (function() {
|
|
|
15718
15798
|
object.control = message.control;
|
|
15719
15799
|
if (message.childWorkflowOnly != null && message.hasOwnProperty("childWorkflowOnly"))
|
|
15720
15800
|
object.childWorkflowOnly = message.childWorkflowOnly;
|
|
15801
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
15802
|
+
object.header = $root.temporal.api.common.v1.Header.toObject(message.header, options);
|
|
15721
15803
|
return object;
|
|
15722
15804
|
};
|
|
15723
15805
|
|
|
@@ -22762,6 +22844,8 @@ $root.temporal = (function() {
|
|
|
22762
22844
|
|
|
22763
22845
|
SignalExternalWorkflowExecutionCommandAttributes.prototype.childWorkflowOnly = false;
|
|
22764
22846
|
|
|
22847
|
+
SignalExternalWorkflowExecutionCommandAttributes.prototype.header = null;
|
|
22848
|
+
|
|
22765
22849
|
SignalExternalWorkflowExecutionCommandAttributes.encode = function encode(message, writer) {
|
|
22766
22850
|
if (!writer)
|
|
22767
22851
|
writer = $Writer.create();
|
|
@@ -22777,6 +22861,8 @@ $root.temporal = (function() {
|
|
|
22777
22861
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.control);
|
|
22778
22862
|
if (message.childWorkflowOnly != null && Object.hasOwnProperty.call(message, "childWorkflowOnly"))
|
|
22779
22863
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.childWorkflowOnly);
|
|
22864
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
22865
|
+
$root.temporal.api.common.v1.Header.encode(message.header, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
22780
22866
|
return writer;
|
|
22781
22867
|
};
|
|
22782
22868
|
|
|
@@ -22809,6 +22895,9 @@ $root.temporal = (function() {
|
|
|
22809
22895
|
case 6:
|
|
22810
22896
|
message.childWorkflowOnly = reader.bool();
|
|
22811
22897
|
break;
|
|
22898
|
+
case 7:
|
|
22899
|
+
message.header = $root.temporal.api.common.v1.Header.decode(reader, reader.uint32());
|
|
22900
|
+
break;
|
|
22812
22901
|
default:
|
|
22813
22902
|
reader.skipType(tag & 7);
|
|
22814
22903
|
break;
|
|
@@ -22845,6 +22934,11 @@ $root.temporal = (function() {
|
|
|
22845
22934
|
message.control = String(object.control);
|
|
22846
22935
|
if (object.childWorkflowOnly != null)
|
|
22847
22936
|
message.childWorkflowOnly = Boolean(object.childWorkflowOnly);
|
|
22937
|
+
if (object.header != null) {
|
|
22938
|
+
if (typeof object.header !== "object")
|
|
22939
|
+
throw TypeError(".temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes.header: object expected");
|
|
22940
|
+
message.header = $root.temporal.api.common.v1.Header.fromObject(object.header);
|
|
22941
|
+
}
|
|
22848
22942
|
return message;
|
|
22849
22943
|
};
|
|
22850
22944
|
|
|
@@ -22859,6 +22953,7 @@ $root.temporal = (function() {
|
|
|
22859
22953
|
object.input = null;
|
|
22860
22954
|
object.control = "";
|
|
22861
22955
|
object.childWorkflowOnly = false;
|
|
22956
|
+
object.header = null;
|
|
22862
22957
|
}
|
|
22863
22958
|
if (message.namespace != null && message.hasOwnProperty("namespace"))
|
|
22864
22959
|
object.namespace = message.namespace;
|
|
@@ -22872,6 +22967,8 @@ $root.temporal = (function() {
|
|
|
22872
22967
|
object.control = message.control;
|
|
22873
22968
|
if (message.childWorkflowOnly != null && message.hasOwnProperty("childWorkflowOnly"))
|
|
22874
22969
|
object.childWorkflowOnly = message.childWorkflowOnly;
|
|
22970
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
22971
|
+
object.header = $root.temporal.api.common.v1.Header.toObject(message.header, options);
|
|
22875
22972
|
return object;
|
|
22876
22973
|
};
|
|
22877
22974
|
|
|
@@ -24595,6 +24692,10 @@ $root.temporal = (function() {
|
|
|
24595
24692
|
case 3:
|
|
24596
24693
|
message.state = 3;
|
|
24597
24694
|
break;
|
|
24695
|
+
case "NAMESPACE_STATE_HANDOVER":
|
|
24696
|
+
case 4:
|
|
24697
|
+
message.state = 4;
|
|
24698
|
+
break;
|
|
24598
24699
|
}
|
|
24599
24700
|
if (object.description != null)
|
|
24600
24701
|
message.description = String(object.description);
|
|
@@ -25047,6 +25148,8 @@ $root.temporal = (function() {
|
|
|
25047
25148
|
|
|
25048
25149
|
UpdateNamespaceInfo.prototype.data = $util.emptyObject;
|
|
25049
25150
|
|
|
25151
|
+
UpdateNamespaceInfo.prototype.state = 0;
|
|
25152
|
+
|
|
25050
25153
|
UpdateNamespaceInfo.encode = function encode(message, writer) {
|
|
25051
25154
|
if (!writer)
|
|
25052
25155
|
writer = $Writer.create();
|
|
@@ -25057,6 +25160,8 @@ $root.temporal = (function() {
|
|
|
25057
25160
|
if (message.data != null && Object.hasOwnProperty.call(message, "data"))
|
|
25058
25161
|
for (var keys = Object.keys(message.data), i = 0; i < keys.length; ++i)
|
|
25059
25162
|
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.data[keys[i]]).ldelim();
|
|
25163
|
+
if (message.state != null && Object.hasOwnProperty.call(message, "state"))
|
|
25164
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state);
|
|
25060
25165
|
return writer;
|
|
25061
25166
|
};
|
|
25062
25167
|
|
|
@@ -25099,6 +25204,9 @@ $root.temporal = (function() {
|
|
|
25099
25204
|
}
|
|
25100
25205
|
message.data[key] = value;
|
|
25101
25206
|
break;
|
|
25207
|
+
case 4:
|
|
25208
|
+
message.state = reader.int32();
|
|
25209
|
+
break;
|
|
25102
25210
|
default:
|
|
25103
25211
|
reader.skipType(tag & 7);
|
|
25104
25212
|
break;
|
|
@@ -25128,6 +25236,28 @@ $root.temporal = (function() {
|
|
|
25128
25236
|
for (var keys = Object.keys(object.data), i = 0; i < keys.length; ++i)
|
|
25129
25237
|
message.data[keys[i]] = String(object.data[keys[i]]);
|
|
25130
25238
|
}
|
|
25239
|
+
switch (object.state) {
|
|
25240
|
+
case "NAMESPACE_STATE_UNSPECIFIED":
|
|
25241
|
+
case 0:
|
|
25242
|
+
message.state = 0;
|
|
25243
|
+
break;
|
|
25244
|
+
case "NAMESPACE_STATE_REGISTERED":
|
|
25245
|
+
case 1:
|
|
25246
|
+
message.state = 1;
|
|
25247
|
+
break;
|
|
25248
|
+
case "NAMESPACE_STATE_DEPRECATED":
|
|
25249
|
+
case 2:
|
|
25250
|
+
message.state = 2;
|
|
25251
|
+
break;
|
|
25252
|
+
case "NAMESPACE_STATE_DELETED":
|
|
25253
|
+
case 3:
|
|
25254
|
+
message.state = 3;
|
|
25255
|
+
break;
|
|
25256
|
+
case "NAMESPACE_STATE_HANDOVER":
|
|
25257
|
+
case 4:
|
|
25258
|
+
message.state = 4;
|
|
25259
|
+
break;
|
|
25260
|
+
}
|
|
25131
25261
|
return message;
|
|
25132
25262
|
};
|
|
25133
25263
|
|
|
@@ -25140,6 +25270,7 @@ $root.temporal = (function() {
|
|
|
25140
25270
|
if (options.defaults) {
|
|
25141
25271
|
object.description = "";
|
|
25142
25272
|
object.ownerEmail = "";
|
|
25273
|
+
object.state = options.enums === String ? "NAMESPACE_STATE_UNSPECIFIED" : 0;
|
|
25143
25274
|
}
|
|
25144
25275
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
25145
25276
|
object.description = message.description;
|
|
@@ -25151,6 +25282,8 @@ $root.temporal = (function() {
|
|
|
25151
25282
|
for (var j = 0; j < keys2.length; ++j)
|
|
25152
25283
|
object.data[keys2[j]] = message.data[keys2[j]];
|
|
25153
25284
|
}
|
|
25285
|
+
if (message.state != null && message.hasOwnProperty("state"))
|
|
25286
|
+
object.state = options.enums === String ? $root.temporal.api.enums.v1.NamespaceState[message.state] : message.state;
|
|
25154
25287
|
return object;
|
|
25155
25288
|
};
|
|
25156
25289
|
|
|
@@ -25189,6 +25322,8 @@ $root.temporal = (function() {
|
|
|
25189
25322
|
|
|
25190
25323
|
WorkflowQuery.prototype.queryArgs = null;
|
|
25191
25324
|
|
|
25325
|
+
WorkflowQuery.prototype.header = null;
|
|
25326
|
+
|
|
25192
25327
|
WorkflowQuery.encode = function encode(message, writer) {
|
|
25193
25328
|
if (!writer)
|
|
25194
25329
|
writer = $Writer.create();
|
|
@@ -25196,6 +25331,8 @@ $root.temporal = (function() {
|
|
|
25196
25331
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.queryType);
|
|
25197
25332
|
if (message.queryArgs != null && Object.hasOwnProperty.call(message, "queryArgs"))
|
|
25198
25333
|
$root.temporal.api.common.v1.Payloads.encode(message.queryArgs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
25334
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
25335
|
+
$root.temporal.api.common.v1.Header.encode(message.header, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
25199
25336
|
return writer;
|
|
25200
25337
|
};
|
|
25201
25338
|
|
|
@@ -25216,6 +25353,9 @@ $root.temporal = (function() {
|
|
|
25216
25353
|
case 2:
|
|
25217
25354
|
message.queryArgs = $root.temporal.api.common.v1.Payloads.decode(reader, reader.uint32());
|
|
25218
25355
|
break;
|
|
25356
|
+
case 3:
|
|
25357
|
+
message.header = $root.temporal.api.common.v1.Header.decode(reader, reader.uint32());
|
|
25358
|
+
break;
|
|
25219
25359
|
default:
|
|
25220
25360
|
reader.skipType(tag & 7);
|
|
25221
25361
|
break;
|
|
@@ -25241,6 +25381,11 @@ $root.temporal = (function() {
|
|
|
25241
25381
|
throw TypeError(".temporal.api.query.v1.WorkflowQuery.queryArgs: object expected");
|
|
25242
25382
|
message.queryArgs = $root.temporal.api.common.v1.Payloads.fromObject(object.queryArgs);
|
|
25243
25383
|
}
|
|
25384
|
+
if (object.header != null) {
|
|
25385
|
+
if (typeof object.header !== "object")
|
|
25386
|
+
throw TypeError(".temporal.api.query.v1.WorkflowQuery.header: object expected");
|
|
25387
|
+
message.header = $root.temporal.api.common.v1.Header.fromObject(object.header);
|
|
25388
|
+
}
|
|
25244
25389
|
return message;
|
|
25245
25390
|
};
|
|
25246
25391
|
|
|
@@ -25251,11 +25396,14 @@ $root.temporal = (function() {
|
|
|
25251
25396
|
if (options.defaults) {
|
|
25252
25397
|
object.queryType = "";
|
|
25253
25398
|
object.queryArgs = null;
|
|
25399
|
+
object.header = null;
|
|
25254
25400
|
}
|
|
25255
25401
|
if (message.queryType != null && message.hasOwnProperty("queryType"))
|
|
25256
25402
|
object.queryType = message.queryType;
|
|
25257
25403
|
if (message.queryArgs != null && message.hasOwnProperty("queryArgs"))
|
|
25258
25404
|
object.queryArgs = $root.temporal.api.common.v1.Payloads.toObject(message.queryArgs, options);
|
|
25405
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
25406
|
+
object.header = $root.temporal.api.common.v1.Header.toObject(message.header, options);
|
|
25259
25407
|
return object;
|
|
25260
25408
|
};
|
|
25261
25409
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Temporal.io SDK compiled protobuf definitions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "1f8030e0e003fac70969bee9bb816d9520910d02"
|
|
33
33
|
}
|
package/scripts/compile-proto.js
CHANGED
|
@@ -11,7 +11,7 @@ const coresdkJsOutputFile = resolve(outputDir, 'coresdk.js');
|
|
|
11
11
|
const serviceJsOutputFile = resolve(outputDir, 'temporal.js');
|
|
12
12
|
const protoBaseDir = resolve(__dirname, '../../core-bridge/sdk-core/protos');
|
|
13
13
|
|
|
14
|
-
const coreProtoPath = resolve(protoBaseDir, 'local/core_interface.proto');
|
|
14
|
+
const coreProtoPath = resolve(protoBaseDir, 'local/temporal/sdk/core/core_interface.proto');
|
|
15
15
|
const serviceProtoPath = resolve(protoBaseDir, 'api_upstream/temporal/api/workflowservice/v1/service.proto');
|
|
16
16
|
|
|
17
17
|
function mtime(path) {
|
|
@@ -82,7 +82,9 @@ async function main() {
|
|
|
82
82
|
coresdkJsOutputFile,
|
|
83
83
|
resolve(outputDir, 'coresdk.d.ts'),
|
|
84
84
|
'--path',
|
|
85
|
-
resolve(protoBaseDir, 'api_upstream')
|
|
85
|
+
resolve(protoBaseDir, 'api_upstream'),
|
|
86
|
+
'--path',
|
|
87
|
+
resolve(protoBaseDir, 'local')
|
|
86
88
|
);
|
|
87
89
|
await compileProtos(
|
|
88
90
|
serviceProtoPath,
|