@superdurable/dex 0.8.0 → 0.11.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.
@@ -219,6 +219,69 @@ export var SubFlowCompletionDeliveryStatus;
219
219
  SubFlowCompletionDeliveryStatus[SubFlowCompletionDeliveryStatus["SUB_FLOW_COMPLETION_DELIVERY_STATUS_PARENT_CLOSED_OR_NOT_FOUND"] = 2] = "SUB_FLOW_COMPLETION_DELIVERY_STATUS_PARENT_CLOSED_OR_NOT_FOUND";
220
220
  SubFlowCompletionDeliveryStatus[SubFlowCompletionDeliveryStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
221
221
  })(SubFlowCompletionDeliveryStatus || (SubFlowCompletionDeliveryStatus = {}));
222
+ function createBaseServerInfo() {
223
+ return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0 };
224
+ }
225
+ export const ServerInfo = {
226
+ encode(message, writer = new BinaryWriter()) {
227
+ if (message.serverVersion !== "") {
228
+ writer.uint32(10).string(message.serverVersion);
229
+ }
230
+ if (message.minimumSupportedProtocolVersion !== 0) {
231
+ writer.uint32(16).uint32(message.minimumSupportedProtocolVersion);
232
+ }
233
+ if (message.currentProtocolVersion !== 0) {
234
+ writer.uint32(24).uint32(message.currentProtocolVersion);
235
+ }
236
+ return writer;
237
+ },
238
+ decode(input, length) {
239
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
240
+ const end = length === undefined ? reader.len : reader.pos + length;
241
+ const message = createBaseServerInfo();
242
+ while (reader.pos < end) {
243
+ const tag = reader.uint32();
244
+ switch (tag >>> 3) {
245
+ case 1: {
246
+ if (tag !== 10) {
247
+ break;
248
+ }
249
+ message.serverVersion = reader.string();
250
+ continue;
251
+ }
252
+ case 2: {
253
+ if (tag !== 16) {
254
+ break;
255
+ }
256
+ message.minimumSupportedProtocolVersion = reader.uint32();
257
+ continue;
258
+ }
259
+ case 3: {
260
+ if (tag !== 24) {
261
+ break;
262
+ }
263
+ message.currentProtocolVersion = reader.uint32();
264
+ continue;
265
+ }
266
+ }
267
+ if ((tag & 7) === 4 || tag === 0) {
268
+ break;
269
+ }
270
+ reader.skip(tag & 7);
271
+ }
272
+ return message;
273
+ },
274
+ create(base) {
275
+ return ServerInfo.fromPartial(base ?? {});
276
+ },
277
+ fromPartial(object) {
278
+ const message = createBaseServerInfo();
279
+ message.serverVersion = object.serverVersion ?? "";
280
+ message.minimumSupportedProtocolVersion = object.minimumSupportedProtocolVersion ?? 0;
281
+ message.currentProtocolVersion = object.currentProtocolVersion ?? 0;
282
+ return message;
283
+ },
284
+ };
222
285
  function createBaseValue() {
223
286
  return { kind: undefined };
224
287
  }
@@ -514,6 +577,110 @@ export const AttributeWrite = {
514
577
  return message;
515
578
  },
516
579
  };
580
+ function createBaseActionPermissionMapping() {
581
+ return { attributeKey: "", equalValues: [], requiredPermission: "" };
582
+ }
583
+ export const ActionPermissionMapping = {
584
+ encode(message, writer = new BinaryWriter()) {
585
+ if (message.attributeKey !== "") {
586
+ writer.uint32(10).string(message.attributeKey);
587
+ }
588
+ for (const v of message.equalValues) {
589
+ Value.encode(v, writer.uint32(18).fork()).join();
590
+ }
591
+ if (message.requiredPermission !== "") {
592
+ writer.uint32(26).string(message.requiredPermission);
593
+ }
594
+ return writer;
595
+ },
596
+ decode(input, length) {
597
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
598
+ const end = length === undefined ? reader.len : reader.pos + length;
599
+ const message = createBaseActionPermissionMapping();
600
+ while (reader.pos < end) {
601
+ const tag = reader.uint32();
602
+ switch (tag >>> 3) {
603
+ case 1: {
604
+ if (tag !== 10) {
605
+ break;
606
+ }
607
+ message.attributeKey = reader.string();
608
+ continue;
609
+ }
610
+ case 2: {
611
+ if (tag !== 18) {
612
+ break;
613
+ }
614
+ message.equalValues.push(Value.decode(reader, reader.uint32()));
615
+ continue;
616
+ }
617
+ case 3: {
618
+ if (tag !== 26) {
619
+ break;
620
+ }
621
+ message.requiredPermission = reader.string();
622
+ continue;
623
+ }
624
+ }
625
+ if ((tag & 7) === 4 || tag === 0) {
626
+ break;
627
+ }
628
+ reader.skip(tag & 7);
629
+ }
630
+ return message;
631
+ },
632
+ create(base) {
633
+ return ActionPermissionMapping.fromPartial(base ?? {});
634
+ },
635
+ fromPartial(object) {
636
+ const message = createBaseActionPermissionMapping();
637
+ message.attributeKey = object.attributeKey ?? "";
638
+ message.equalValues = object.equalValues?.map((e) => Value.fromPartial(e)) || [];
639
+ message.requiredPermission = object.requiredPermission ?? "";
640
+ return message;
641
+ },
642
+ };
643
+ function createBaseActionPermissionMappings() {
644
+ return { mappings: [] };
645
+ }
646
+ export const ActionPermissionMappings = {
647
+ encode(message, writer = new BinaryWriter()) {
648
+ for (const v of message.mappings) {
649
+ ActionPermissionMapping.encode(v, writer.uint32(10).fork()).join();
650
+ }
651
+ return writer;
652
+ },
653
+ decode(input, length) {
654
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
655
+ const end = length === undefined ? reader.len : reader.pos + length;
656
+ const message = createBaseActionPermissionMappings();
657
+ while (reader.pos < end) {
658
+ const tag = reader.uint32();
659
+ switch (tag >>> 3) {
660
+ case 1: {
661
+ if (tag !== 10) {
662
+ break;
663
+ }
664
+ message.mappings.push(ActionPermissionMapping.decode(reader, reader.uint32()));
665
+ continue;
666
+ }
667
+ }
668
+ if ((tag & 7) === 4 || tag === 0) {
669
+ break;
670
+ }
671
+ reader.skip(tag & 7);
672
+ }
673
+ return message;
674
+ },
675
+ create(base) {
676
+ return ActionPermissionMappings.fromPartial(base ?? {});
677
+ },
678
+ fromPartial(object) {
679
+ const message = createBaseActionPermissionMappings();
680
+ message.mappings = object.mappings?.map((e) => ActionPermissionMapping.fromPartial(e)) || [];
681
+ return message;
682
+ },
683
+ };
517
684
  function createBaseAttributeSyncConfig() {
518
685
  return { enabled: false };
519
686
  }
@@ -3036,7 +3203,7 @@ export const GetAttributesResponse = {
3036
3203
  },
3037
3204
  };
3038
3205
  function createBaseSetAttributesRequest() {
3039
- return { flowId: "", runId: "", attributes: [], requestId: "" };
3206
+ return { flowId: "", runId: "", attributes: [], requestId: "", actionPermissionMappings: undefined };
3040
3207
  }
3041
3208
  export const SetAttributesRequest = {
3042
3209
  encode(message, writer = new BinaryWriter()) {
@@ -3052,6 +3219,9 @@ export const SetAttributesRequest = {
3052
3219
  if (message.requestId !== "") {
3053
3220
  writer.uint32(34).string(message.requestId);
3054
3221
  }
3222
+ if (message.actionPermissionMappings !== undefined) {
3223
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(42).fork()).join();
3224
+ }
3055
3225
  return writer;
3056
3226
  },
3057
3227
  decode(input, length) {
@@ -3089,6 +3259,13 @@ export const SetAttributesRequest = {
3089
3259
  message.requestId = reader.string();
3090
3260
  continue;
3091
3261
  }
3262
+ case 5: {
3263
+ if (tag !== 42) {
3264
+ break;
3265
+ }
3266
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
3267
+ continue;
3268
+ }
3092
3269
  }
3093
3270
  if ((tag & 7) === 4 || tag === 0) {
3094
3271
  break;
@@ -3106,6 +3283,10 @@ export const SetAttributesRequest = {
3106
3283
  message.runId = object.runId ?? "";
3107
3284
  message.attributes = object.attributes?.map((e) => AttributeWrite.fromPartial(e)) || [];
3108
3285
  message.requestId = object.requestId ?? "";
3286
+ message.actionPermissionMappings =
3287
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
3288
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
3289
+ : undefined;
3109
3290
  return message;
3110
3291
  },
3111
3292
  };
@@ -8618,6 +8799,7 @@ function createBaseInvokeWaitForMethodResponse() {
8618
8799
  recordEvents: [],
8619
8800
  publishToChannel: [],
8620
8801
  deleteFromChannel: [],
8802
+ actionPermissionMappings: undefined,
8621
8803
  };
8622
8804
  }
8623
8805
  export const InvokeWaitForMethodResponse = {
@@ -8643,6 +8825,9 @@ export const InvokeWaitForMethodResponse = {
8643
8825
  for (const v of message.deleteFromChannel) {
8644
8826
  ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
8645
8827
  }
8828
+ if (message.actionPermissionMappings !== undefined) {
8829
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(66).fork()).join();
8830
+ }
8646
8831
  return writer;
8647
8832
  },
8648
8833
  decode(input, length) {
@@ -8701,6 +8886,13 @@ export const InvokeWaitForMethodResponse = {
8701
8886
  message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
8702
8887
  continue;
8703
8888
  }
8889
+ case 8: {
8890
+ if (tag !== 66) {
8891
+ break;
8892
+ }
8893
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
8894
+ continue;
8895
+ }
8704
8896
  }
8705
8897
  if ((tag & 7) === 4 || tag === 0) {
8706
8898
  break;
@@ -8726,6 +8918,10 @@ export const InvokeWaitForMethodResponse = {
8726
8918
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
8727
8919
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
8728
8920
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
8921
+ message.actionPermissionMappings =
8922
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
8923
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
8924
+ : undefined;
8729
8925
  return message;
8730
8926
  },
8731
8927
  };
@@ -9236,6 +9432,7 @@ function createBaseInvokeExecuteMethodResponse() {
9236
9432
  upsertStepExeLocals: [],
9237
9433
  publishToChannel: [],
9238
9434
  deleteFromChannel: [],
9435
+ actionPermissionMappings: undefined,
9239
9436
  };
9240
9437
  }
9241
9438
  export const InvokeExecuteMethodResponse = {
@@ -9261,6 +9458,9 @@ export const InvokeExecuteMethodResponse = {
9261
9458
  for (const v of message.deleteFromChannel) {
9262
9459
  ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
9263
9460
  }
9461
+ if (message.actionPermissionMappings !== undefined) {
9462
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(66).fork()).join();
9463
+ }
9264
9464
  return writer;
9265
9465
  },
9266
9466
  decode(input, length) {
@@ -9319,6 +9519,13 @@ export const InvokeExecuteMethodResponse = {
9319
9519
  message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
9320
9520
  continue;
9321
9521
  }
9522
+ case 8: {
9523
+ if (tag !== 66) {
9524
+ break;
9525
+ }
9526
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
9527
+ continue;
9528
+ }
9322
9529
  }
9323
9530
  if ((tag & 7) === 4 || tag === 0) {
9324
9531
  break;
@@ -9344,6 +9551,10 @@ export const InvokeExecuteMethodResponse = {
9344
9551
  message.upsertStepExeLocals = object.upsertStepExeLocals?.map((e) => KV.fromPartial(e)) || [];
9345
9552
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
9346
9553
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
9554
+ message.actionPermissionMappings =
9555
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
9556
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
9557
+ : undefined;
9347
9558
  return message;
9348
9559
  },
9349
9560
  };
@@ -9716,6 +9927,7 @@ function createBaseInvokeWorkerRPCResponse() {
9716
9927
  recordEvents: [],
9717
9928
  deleteFromChannel: [],
9718
9929
  publishToChannel: [],
9930
+ actionPermissionMappings: undefined,
9719
9931
  };
9720
9932
  }
9721
9933
  export const InvokeWorkerRPCResponse = {
@@ -9738,6 +9950,9 @@ export const InvokeWorkerRPCResponse = {
9738
9950
  for (const v of message.publishToChannel) {
9739
9951
  ChannelMessage.encode(v, writer.uint32(50).fork()).join();
9740
9952
  }
9953
+ if (message.actionPermissionMappings !== undefined) {
9954
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(58).fork()).join();
9955
+ }
9741
9956
  return writer;
9742
9957
  },
9743
9958
  decode(input, length) {
@@ -9789,6 +10004,13 @@ export const InvokeWorkerRPCResponse = {
9789
10004
  message.publishToChannel.push(ChannelMessage.decode(reader, reader.uint32()));
9790
10005
  continue;
9791
10006
  }
10007
+ case 7: {
10008
+ if (tag !== 58) {
10009
+ break;
10010
+ }
10011
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
10012
+ continue;
10013
+ }
9792
10014
  }
9793
10015
  if ((tag & 7) === 4 || tag === 0) {
9794
10016
  break;
@@ -9812,6 +10034,10 @@ export const InvokeWorkerRPCResponse = {
9812
10034
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
9813
10035
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
9814
10036
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
10037
+ message.actionPermissionMappings =
10038
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
10039
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
10040
+ : undefined;
9815
10041
  return message;
9816
10042
  },
9817
10043
  };
@@ -13271,6 +13497,7 @@ function createBaseExecuteRpcSignalRequest() {
13271
13497
  isSetAttributeApi: false,
13272
13498
  deleteFromChannel: [],
13273
13499
  isDeleteChannelMessageApi: false,
13500
+ actionPermissionMappings: undefined,
13274
13501
  };
13275
13502
  }
13276
13503
  export const ExecuteRpcSignalRequest = {
@@ -13302,6 +13529,9 @@ export const ExecuteRpcSignalRequest = {
13302
13529
  if (message.isDeleteChannelMessageApi !== false) {
13303
13530
  writer.uint32(72).bool(message.isDeleteChannelMessageApi);
13304
13531
  }
13532
+ if (message.actionPermissionMappings !== undefined) {
13533
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(82).fork()).join();
13534
+ }
13305
13535
  return writer;
13306
13536
  },
13307
13537
  decode(input, length) {
@@ -13374,6 +13604,13 @@ export const ExecuteRpcSignalRequest = {
13374
13604
  message.isDeleteChannelMessageApi = reader.bool();
13375
13605
  continue;
13376
13606
  }
13607
+ case 10: {
13608
+ if (tag !== 82) {
13609
+ break;
13610
+ }
13611
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
13612
+ continue;
13613
+ }
13377
13614
  }
13378
13615
  if ((tag & 7) === 4 || tag === 0) {
13379
13616
  break;
@@ -13402,6 +13639,10 @@ export const ExecuteRpcSignalRequest = {
13402
13639
  message.isSetAttributeApi = object.isSetAttributeApi ?? false;
13403
13640
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
13404
13641
  message.isDeleteChannelMessageApi = object.isDeleteChannelMessageApi ?? false;
13642
+ message.actionPermissionMappings =
13643
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
13644
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
13645
+ : undefined;
13405
13646
  return message;
13406
13647
  },
13407
13648
  };
@@ -14400,6 +14641,16 @@ export const StepExecutionNumbers = {
14400
14641
  },
14401
14642
  };
14402
14643
  export const FlowServiceService = {
14644
+ /** Returns diagnostic release metadata and the Server's inclusive protocol interval. */
14645
+ getServerInfo: {
14646
+ path: "/dex.FlowService/GetServerInfo",
14647
+ requestStream: false,
14648
+ responseStream: false,
14649
+ requestSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
14650
+ requestDeserialize: (value) => Empty.decode(value),
14651
+ responseSerialize: (value) => Buffer.from(ServerInfo.encode(value).finish()),
14652
+ responseDeserialize: (value) => ServerInfo.decode(value),
14653
+ },
14403
14654
  startFlow: {
14404
14655
  path: "/dex.FlowService/StartFlow",
14405
14656
  requestStream: false,