@superdurable/dex 0.9.0 → 0.11.2

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.
@@ -577,6 +577,110 @@ export const AttributeWrite = {
577
577
  return message;
578
578
  },
579
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
+ };
580
684
  function createBaseAttributeSyncConfig() {
581
685
  return { enabled: false };
582
686
  }
@@ -3099,7 +3203,7 @@ export const GetAttributesResponse = {
3099
3203
  },
3100
3204
  };
3101
3205
  function createBaseSetAttributesRequest() {
3102
- return { flowId: "", runId: "", attributes: [], requestId: "" };
3206
+ return { flowId: "", runId: "", attributes: [], requestId: "", actionPermissionMappings: undefined };
3103
3207
  }
3104
3208
  export const SetAttributesRequest = {
3105
3209
  encode(message, writer = new BinaryWriter()) {
@@ -3115,6 +3219,9 @@ export const SetAttributesRequest = {
3115
3219
  if (message.requestId !== "") {
3116
3220
  writer.uint32(34).string(message.requestId);
3117
3221
  }
3222
+ if (message.actionPermissionMappings !== undefined) {
3223
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(42).fork()).join();
3224
+ }
3118
3225
  return writer;
3119
3226
  },
3120
3227
  decode(input, length) {
@@ -3152,6 +3259,13 @@ export const SetAttributesRequest = {
3152
3259
  message.requestId = reader.string();
3153
3260
  continue;
3154
3261
  }
3262
+ case 5: {
3263
+ if (tag !== 42) {
3264
+ break;
3265
+ }
3266
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
3267
+ continue;
3268
+ }
3155
3269
  }
3156
3270
  if ((tag & 7) === 4 || tag === 0) {
3157
3271
  break;
@@ -3169,6 +3283,10 @@ export const SetAttributesRequest = {
3169
3283
  message.runId = object.runId ?? "";
3170
3284
  message.attributes = object.attributes?.map((e) => AttributeWrite.fromPartial(e)) || [];
3171
3285
  message.requestId = object.requestId ?? "";
3286
+ message.actionPermissionMappings =
3287
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
3288
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
3289
+ : undefined;
3172
3290
  return message;
3173
3291
  },
3174
3292
  };
@@ -8681,6 +8799,7 @@ function createBaseInvokeWaitForMethodResponse() {
8681
8799
  recordEvents: [],
8682
8800
  publishToChannel: [],
8683
8801
  deleteFromChannel: [],
8802
+ actionPermissionMappings: undefined,
8684
8803
  };
8685
8804
  }
8686
8805
  export const InvokeWaitForMethodResponse = {
@@ -8706,6 +8825,9 @@ export const InvokeWaitForMethodResponse = {
8706
8825
  for (const v of message.deleteFromChannel) {
8707
8826
  ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
8708
8827
  }
8828
+ if (message.actionPermissionMappings !== undefined) {
8829
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(66).fork()).join();
8830
+ }
8709
8831
  return writer;
8710
8832
  },
8711
8833
  decode(input, length) {
@@ -8764,6 +8886,13 @@ export const InvokeWaitForMethodResponse = {
8764
8886
  message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
8765
8887
  continue;
8766
8888
  }
8889
+ case 8: {
8890
+ if (tag !== 66) {
8891
+ break;
8892
+ }
8893
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
8894
+ continue;
8895
+ }
8767
8896
  }
8768
8897
  if ((tag & 7) === 4 || tag === 0) {
8769
8898
  break;
@@ -8789,6 +8918,10 @@ export const InvokeWaitForMethodResponse = {
8789
8918
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
8790
8919
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
8791
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;
8792
8925
  return message;
8793
8926
  },
8794
8927
  };
@@ -9299,6 +9432,7 @@ function createBaseInvokeExecuteMethodResponse() {
9299
9432
  upsertStepExeLocals: [],
9300
9433
  publishToChannel: [],
9301
9434
  deleteFromChannel: [],
9435
+ actionPermissionMappings: undefined,
9302
9436
  };
9303
9437
  }
9304
9438
  export const InvokeExecuteMethodResponse = {
@@ -9324,6 +9458,9 @@ export const InvokeExecuteMethodResponse = {
9324
9458
  for (const v of message.deleteFromChannel) {
9325
9459
  ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
9326
9460
  }
9461
+ if (message.actionPermissionMappings !== undefined) {
9462
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(66).fork()).join();
9463
+ }
9327
9464
  return writer;
9328
9465
  },
9329
9466
  decode(input, length) {
@@ -9382,6 +9519,13 @@ export const InvokeExecuteMethodResponse = {
9382
9519
  message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
9383
9520
  continue;
9384
9521
  }
9522
+ case 8: {
9523
+ if (tag !== 66) {
9524
+ break;
9525
+ }
9526
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
9527
+ continue;
9528
+ }
9385
9529
  }
9386
9530
  if ((tag & 7) === 4 || tag === 0) {
9387
9531
  break;
@@ -9407,6 +9551,10 @@ export const InvokeExecuteMethodResponse = {
9407
9551
  message.upsertStepExeLocals = object.upsertStepExeLocals?.map((e) => KV.fromPartial(e)) || [];
9408
9552
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
9409
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;
9410
9558
  return message;
9411
9559
  },
9412
9560
  };
@@ -9779,6 +9927,7 @@ function createBaseInvokeWorkerRPCResponse() {
9779
9927
  recordEvents: [],
9780
9928
  deleteFromChannel: [],
9781
9929
  publishToChannel: [],
9930
+ actionPermissionMappings: undefined,
9782
9931
  };
9783
9932
  }
9784
9933
  export const InvokeWorkerRPCResponse = {
@@ -9801,6 +9950,9 @@ export const InvokeWorkerRPCResponse = {
9801
9950
  for (const v of message.publishToChannel) {
9802
9951
  ChannelMessage.encode(v, writer.uint32(50).fork()).join();
9803
9952
  }
9953
+ if (message.actionPermissionMappings !== undefined) {
9954
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(58).fork()).join();
9955
+ }
9804
9956
  return writer;
9805
9957
  },
9806
9958
  decode(input, length) {
@@ -9852,6 +10004,13 @@ export const InvokeWorkerRPCResponse = {
9852
10004
  message.publishToChannel.push(ChannelMessage.decode(reader, reader.uint32()));
9853
10005
  continue;
9854
10006
  }
10007
+ case 7: {
10008
+ if (tag !== 58) {
10009
+ break;
10010
+ }
10011
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
10012
+ continue;
10013
+ }
9855
10014
  }
9856
10015
  if ((tag & 7) === 4 || tag === 0) {
9857
10016
  break;
@@ -9875,6 +10034,10 @@ export const InvokeWorkerRPCResponse = {
9875
10034
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
9876
10035
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
9877
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;
9878
10041
  return message;
9879
10042
  },
9880
10043
  };
@@ -13334,6 +13497,7 @@ function createBaseExecuteRpcSignalRequest() {
13334
13497
  isSetAttributeApi: false,
13335
13498
  deleteFromChannel: [],
13336
13499
  isDeleteChannelMessageApi: false,
13500
+ actionPermissionMappings: undefined,
13337
13501
  };
13338
13502
  }
13339
13503
  export const ExecuteRpcSignalRequest = {
@@ -13365,6 +13529,9 @@ export const ExecuteRpcSignalRequest = {
13365
13529
  if (message.isDeleteChannelMessageApi !== false) {
13366
13530
  writer.uint32(72).bool(message.isDeleteChannelMessageApi);
13367
13531
  }
13532
+ if (message.actionPermissionMappings !== undefined) {
13533
+ ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(82).fork()).join();
13534
+ }
13368
13535
  return writer;
13369
13536
  },
13370
13537
  decode(input, length) {
@@ -13437,6 +13604,13 @@ export const ExecuteRpcSignalRequest = {
13437
13604
  message.isDeleteChannelMessageApi = reader.bool();
13438
13605
  continue;
13439
13606
  }
13607
+ case 10: {
13608
+ if (tag !== 82) {
13609
+ break;
13610
+ }
13611
+ message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
13612
+ continue;
13613
+ }
13440
13614
  }
13441
13615
  if ((tag & 7) === 4 || tag === 0) {
13442
13616
  break;
@@ -13465,6 +13639,10 @@ export const ExecuteRpcSignalRequest = {
13465
13639
  message.isSetAttributeApi = object.isSetAttributeApi ?? false;
13466
13640
  message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
13467
13641
  message.isDeleteChannelMessageApi = object.isDeleteChannelMessageApi ?? false;
13642
+ message.actionPermissionMappings =
13643
+ (object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
13644
+ ? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
13645
+ : undefined;
13468
13646
  return message;
13469
13647
  },
13470
13648
  };