@mochabug/adapt-web 0.0.26 → 0.0.28

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.
Files changed (42) hide show
  1. package/dist/cjs/genproto/buf/validate/validate_pb.js +58 -119
  2. package/dist/cjs/genproto/buf/validate/validate_pb.js.map +1 -1
  3. package/dist/cjs/genproto/mochabugapis/adapt/automations/v1/automations_pb.js +13 -7
  4. package/dist/cjs/genproto/mochabugapis/adapt/automations/v1/automations_pb.js.map +1 -1
  5. package/dist/cjs/genproto/mochabugapis/adapt/graph/signal_binding_pb.js +1 -2
  6. package/dist/cjs/genproto/mochabugapis/adapt/graph/signal_binding_pb.js.map +1 -1
  7. package/dist/cjs/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js +1 -1
  8. package/dist/cjs/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js.map +1 -1
  9. package/dist/cjs/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js +1 -1
  10. package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/file_pb.js +1 -1
  11. package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js +1 -1
  12. package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js +10 -5
  13. package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js.map +1 -1
  14. package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +15 -19
  15. package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
  16. package/dist/cjs/index.js +160 -64
  17. package/dist/cjs/index.js.map +1 -1
  18. package/dist/esm/genproto/buf/validate/validate_pb.js +58 -119
  19. package/dist/esm/genproto/buf/validate/validate_pb.js.map +1 -1
  20. package/dist/esm/genproto/mochabugapis/adapt/automations/v1/automations_pb.js +14 -8
  21. package/dist/esm/genproto/mochabugapis/adapt/automations/v1/automations_pb.js.map +1 -1
  22. package/dist/esm/genproto/mochabugapis/adapt/graph/signal_binding_pb.js +1 -2
  23. package/dist/esm/genproto/mochabugapis/adapt/graph/signal_binding_pb.js.map +1 -1
  24. package/dist/esm/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js +1 -1
  25. package/dist/esm/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.js.map +1 -1
  26. package/dist/esm/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js +1 -1
  27. package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/file_pb.js +1 -1
  28. package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js +1 -1
  29. package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js +9 -4
  30. package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js.map +1 -1
  31. package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +14 -18
  32. package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
  33. package/dist/esm/index.js +159 -60
  34. package/dist/esm/index.js.map +1 -1
  35. package/dist/types/genproto/buf/validate/validate_pb.d.ts +184 -219
  36. package/dist/types/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +150 -108
  37. package/dist/types/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +4 -5
  38. package/dist/types/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +4 -2
  39. package/dist/types/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +60 -39
  40. package/dist/types/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +85 -139
  41. package/dist/types/index.d.ts +14 -7
  42. package/package.json +4 -4
@@ -1,5 +1,6 @@
1
1
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { FieldMask, FieldMaskJson, Timestamp, TimestampJson, Value, ValueJson } from "@bufbuild/protobuf/wkt";
3
+ import type { Status, StatusJson } from "../../automations/v1/automations_pb.js";
3
4
  import type { VertexMetadata, VertexMetadataJson } from "../../graph/vertex_metadata_pb.js";
4
5
  import type { GetOp, GetOpJson, GlobalResponseStatus, GlobalResponseStatusJson, ReadOperationResult, ReadOperationResultJson, WriteOperation, WriteOperationJson, WriteOperationResult, WriteOperationResultJson } from "./store_pb.js";
5
6
  import type { Message } from "@bufbuild/protobuf";
@@ -367,18 +368,18 @@ export type DispatchExchangeRequest = Message<"mochabugapis.adapt.runtime.v1.Dis
367
368
  */
368
369
  name: string;
369
370
  /**
370
- * The receiver to send the signals on
371
+ * The receiver to send the signals on (on the exchange, mapps to transmitter on the subgraph)
371
372
  *
372
- * @generated from field: string receiver = 2;
373
+ * @generated from field: optional string receiver = 2;
373
374
  */
374
- receiver: string;
375
+ receiver?: string;
375
376
  /**
376
377
  * The signals to send over the receiver
377
378
  *
378
- * @generated from field: map<string, google.protobuf.Value> signals = 3;
379
+ * @generated from field: map<string, bytes> signals = 3;
379
380
  */
380
381
  signals: {
381
- [key: string]: Value;
382
+ [key: string]: Uint8Array;
382
383
  };
383
384
  };
384
385
  /**
@@ -394,18 +395,18 @@ export type DispatchExchangeRequestJson = {
394
395
  */
395
396
  name?: string;
396
397
  /**
397
- * The receiver to send the signals on
398
+ * The receiver to send the signals on (on the exchange, mapps to transmitter on the subgraph)
398
399
  *
399
- * @generated from field: string receiver = 2;
400
+ * @generated from field: optional string receiver = 2;
400
401
  */
401
402
  receiver?: string;
402
403
  /**
403
404
  * The signals to send over the receiver
404
405
  *
405
- * @generated from field: map<string, google.protobuf.Value> signals = 3;
406
+ * @generated from field: map<string, bytes> signals = 3;
406
407
  */
407
408
  signals?: {
408
- [key: string]: ValueJson;
409
+ [key: string]: string;
409
410
  };
410
411
  };
411
412
  /**
@@ -463,26 +464,17 @@ export type ExchangeOperation = Message<"mochabugapis.adapt.runtime.v1.ExchangeO
463
464
  */
464
465
  name: string;
465
466
  /**
466
- * The id of the operation
467
+ * The id of the fork
467
468
  *
468
469
  * @generated from field: string id = 2;
469
470
  */
470
471
  id: string;
471
472
  /**
472
- * True if the exchange is done executing
473
- * The result is not set for exchanges with zero transmitters even
474
- * though the execution has finished. I.e. done == true
475
- * Observe that for streaming transmitters, done == false but result != nil
476
- *
477
- * @generated from field: bool done = 3;
478
- */
479
- done: boolean;
480
- /**
481
- * The result of the exchange
473
+ * The status of the operation
482
474
  *
483
- * @generated from field: optional mochabugapis.adapt.runtime.v1.ExchangeOperation.Result result = 4;
475
+ * @generated from field: mochabugapis.adapt.automations.v1.Status status = 3;
484
476
  */
485
- result?: ExchangeOperation_Result;
477
+ status: Status;
486
478
  };
487
479
  /**
488
480
  * A representation of an exchange operation
@@ -497,26 +489,17 @@ export type ExchangeOperationJson = {
497
489
  */
498
490
  name?: string;
499
491
  /**
500
- * The id of the operation
492
+ * The id of the fork
501
493
  *
502
494
  * @generated from field: string id = 2;
503
495
  */
504
496
  id?: string;
505
497
  /**
506
- * True if the exchange is done executing
507
- * The result is not set for exchanges with zero transmitters even
508
- * though the execution has finished. I.e. done == true
509
- * Observe that for streaming transmitters, done == false but result != nil
510
- *
511
- * @generated from field: bool done = 3;
512
- */
513
- done?: boolean;
514
- /**
515
- * The result of the exchange
498
+ * The status of the operation
516
499
  *
517
- * @generated from field: optional mochabugapis.adapt.runtime.v1.ExchangeOperation.Result result = 4;
500
+ * @generated from field: mochabugapis.adapt.automations.v1.Status status = 3;
518
501
  */
519
- result?: ExchangeOperation_ResultJson;
502
+ status?: StatusJson;
520
503
  };
521
504
  /**
522
505
  * Describes the message mochabugapis.adapt.runtime.v1.ExchangeOperation.
@@ -525,55 +508,6 @@ export type ExchangeOperationJson = {
525
508
  export declare const ExchangeOperationSchema: GenMessage<ExchangeOperation, {
526
509
  jsonType: ExchangeOperationJson;
527
510
  }>;
528
- /**
529
- * The result of executing a exchange
530
- *
531
- * @generated from message mochabugapis.adapt.runtime.v1.ExchangeOperation.Result
532
- */
533
- export type ExchangeOperation_Result = Message<"mochabugapis.adapt.runtime.v1.ExchangeOperation.Result"> & {
534
- /**
535
- * The name of the transmitter pushing the resulting signals
536
- *
537
- * @generated from field: string transmitter = 1;
538
- */
539
- transmitter: string;
540
- /**
541
- * The signals to send over the transmitter
542
- *
543
- * @generated from field: map<string, google.protobuf.Value> signals = 2;
544
- */
545
- signals: {
546
- [key: string]: Value;
547
- };
548
- };
549
- /**
550
- * The result of executing a exchange
551
- *
552
- * @generated from message mochabugapis.adapt.runtime.v1.ExchangeOperation.Result
553
- */
554
- export type ExchangeOperation_ResultJson = {
555
- /**
556
- * The name of the transmitter pushing the resulting signals
557
- *
558
- * @generated from field: string transmitter = 1;
559
- */
560
- transmitter?: string;
561
- /**
562
- * The signals to send over the transmitter
563
- *
564
- * @generated from field: map<string, google.protobuf.Value> signals = 2;
565
- */
566
- signals?: {
567
- [key: string]: ValueJson;
568
- };
569
- };
570
- /**
571
- * Describes the message mochabugapis.adapt.runtime.v1.ExchangeOperation.Result.
572
- * Use `create(ExchangeOperation_ResultSchema)` to create a new message.
573
- */
574
- export declare const ExchangeOperation_ResultSchema: GenMessage<ExchangeOperation_Result, {
575
- jsonType: ExchangeOperation_ResultJson;
576
- }>;
577
511
  /**
578
512
  * The complete execution request message
579
513
  *
@@ -583,16 +517,16 @@ export type SendRequest = Message<"mochabugapis.adapt.runtime.v1.SendRequest"> &
583
517
  /**
584
518
  * The transmitter to send the signals on
585
519
  *
586
- * @generated from field: string transmitter = 1;
520
+ * @generated from field: optional string transmitter = 1;
587
521
  */
588
- transmitter: string;
522
+ transmitter?: string;
589
523
  /**
590
524
  * The signals to send over the transmitter
591
525
  *
592
- * @generated from field: map<string, google.protobuf.Value> signals = 2;
526
+ * @generated from field: map<string, bytes> signals = 2;
593
527
  */
594
528
  signals: {
595
- [key: string]: Value;
529
+ [key: string]: Uint8Array;
596
530
  };
597
531
  };
598
532
  /**
@@ -604,16 +538,16 @@ export type SendRequestJson = {
604
538
  /**
605
539
  * The transmitter to send the signals on
606
540
  *
607
- * @generated from field: string transmitter = 1;
541
+ * @generated from field: optional string transmitter = 1;
608
542
  */
609
543
  transmitter?: string;
610
544
  /**
611
545
  * The signals to send over the transmitter
612
546
  *
613
- * @generated from field: map<string, google.protobuf.Value> signals = 2;
547
+ * @generated from field: map<string, bytes> signals = 2;
614
548
  */
615
549
  signals?: {
616
- [key: string]: ValueJson;
550
+ [key: string]: string;
617
551
  };
618
552
  };
619
553
  /**
@@ -645,9 +579,9 @@ export declare const SendResponseSchema: GenMessage<SendResponse, {
645
579
  /**
646
580
  * The request to fetch multiple signals on the connected receiver
647
581
  *
648
- * @generated from message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsRequest
582
+ * @generated from message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsRequest
649
583
  */
650
- export type BatchGetBoundReceiverSignalsRequest = Message<"mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsRequest"> & {
584
+ export type BatchGetActiveSignalsRequest = Message<"mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsRequest"> & {
651
585
  /**
652
586
  * The names of the signals to fetch
653
587
  * An empty array will result in only fetching the connected receiver
@@ -659,9 +593,9 @@ export type BatchGetBoundReceiverSignalsRequest = Message<"mochabugapis.adapt.ru
659
593
  /**
660
594
  * The request to fetch multiple signals on the connected receiver
661
595
  *
662
- * @generated from message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsRequest
596
+ * @generated from message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsRequest
663
597
  */
664
- export type BatchGetBoundReceiverSignalsRequestJson = {
598
+ export type BatchGetActiveSignalsRequestJson = {
665
599
  /**
666
600
  * The names of the signals to fetch
667
601
  * An empty array will result in only fetching the connected receiver
@@ -671,25 +605,25 @@ export type BatchGetBoundReceiverSignalsRequestJson = {
671
605
  names?: string[];
672
606
  };
673
607
  /**
674
- * Describes the message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsRequest.
675
- * Use `create(BatchGetBoundReceiverSignalsRequestSchema)` to create a new message.
608
+ * Describes the message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsRequest.
609
+ * Use `create(BatchGetActiveSignalsRequestSchema)` to create a new message.
676
610
  */
677
- export declare const BatchGetBoundReceiverSignalsRequestSchema: GenMessage<BatchGetBoundReceiverSignalsRequest, {
678
- jsonType: BatchGetBoundReceiverSignalsRequestJson;
611
+ export declare const BatchGetActiveSignalsRequestSchema: GenMessage<BatchGetActiveSignalsRequest, {
612
+ jsonType: BatchGetActiveSignalsRequestJson;
679
613
  }>;
680
614
  /**
681
615
  * The response of getting multiple signals on the connected receiver
682
616
  *
683
- * @generated from message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsResponse
617
+ * @generated from message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsResponse
684
618
  */
685
- export type BatchGetBoundReceiverSignalsResponse = Message<"mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsResponse"> & {
619
+ export type BatchGetActiveSignalsResponse = Message<"mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsResponse"> & {
686
620
  /**
687
621
  * The returned items, items not found are ignored
688
622
  *
689
- * @generated from field: map<string, google.protobuf.Value> items = 1;
623
+ * @generated from field: map<string, bytes> items = 1;
690
624
  */
691
625
  items: {
692
- [key: string]: Value;
626
+ [key: string]: Uint8Array;
693
627
  };
694
628
  /**
695
629
  * The connected receiver
@@ -701,16 +635,16 @@ export type BatchGetBoundReceiverSignalsResponse = Message<"mochabugapis.adapt.r
701
635
  /**
702
636
  * The response of getting multiple signals on the connected receiver
703
637
  *
704
- * @generated from message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsResponse
638
+ * @generated from message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsResponse
705
639
  */
706
- export type BatchGetBoundReceiverSignalsResponseJson = {
640
+ export type BatchGetActiveSignalsResponseJson = {
707
641
  /**
708
642
  * The returned items, items not found are ignored
709
643
  *
710
- * @generated from field: map<string, google.protobuf.Value> items = 1;
644
+ * @generated from field: map<string, bytes> items = 1;
711
645
  */
712
646
  items?: {
713
- [key: string]: ValueJson;
647
+ [key: string]: string;
714
648
  };
715
649
  /**
716
650
  * The connected receiver
@@ -720,18 +654,18 @@ export type BatchGetBoundReceiverSignalsResponseJson = {
720
654
  receiver?: string;
721
655
  };
722
656
  /**
723
- * Describes the message mochabugapis.adapt.runtime.v1.BatchGetBoundReceiverSignalsResponse.
724
- * Use `create(BatchGetBoundReceiverSignalsResponseSchema)` to create a new message.
657
+ * Describes the message mochabugapis.adapt.runtime.v1.BatchGetActiveSignalsResponse.
658
+ * Use `create(BatchGetActiveSignalsResponseSchema)` to create a new message.
725
659
  */
726
- export declare const BatchGetBoundReceiverSignalsResponseSchema: GenMessage<BatchGetBoundReceiverSignalsResponse, {
727
- jsonType: BatchGetBoundReceiverSignalsResponseJson;
660
+ export declare const BatchGetActiveSignalsResponseSchema: GenMessage<BatchGetActiveSignalsResponse, {
661
+ jsonType: BatchGetActiveSignalsResponseJson;
728
662
  }>;
729
663
  /**
730
664
  * A request to fetch the signals on the connected receiver
731
665
  *
732
- * @generated from message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsRequest
666
+ * @generated from message mochabugapis.adapt.runtime.v1.ListActiveSignalsRequest
733
667
  */
734
- export type ListBoundReceiverSignalsRequest = Message<"mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsRequest"> & {
668
+ export type ListActiveSignalsRequest = Message<"mochabugapis.adapt.runtime.v1.ListActiveSignalsRequest"> & {
735
669
  /**
736
670
  * The page size, defaults to 50
737
671
  *
@@ -755,9 +689,9 @@ export type ListBoundReceiverSignalsRequest = Message<"mochabugapis.adapt.runtim
755
689
  /**
756
690
  * A request to fetch the signals on the connected receiver
757
691
  *
758
- * @generated from message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsRequest
692
+ * @generated from message mochabugapis.adapt.runtime.v1.ListActiveSignalsRequest
759
693
  */
760
- export type ListBoundReceiverSignalsRequestJson = {
694
+ export type ListActiveSignalsRequestJson = {
761
695
  /**
762
696
  * The page size, defaults to 50
763
697
  *
@@ -779,25 +713,25 @@ export type ListBoundReceiverSignalsRequestJson = {
779
713
  orderDescending?: boolean;
780
714
  };
781
715
  /**
782
- * Describes the message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsRequest.
783
- * Use `create(ListBoundReceiverSignalsRequestSchema)` to create a new message.
716
+ * Describes the message mochabugapis.adapt.runtime.v1.ListActiveSignalsRequest.
717
+ * Use `create(ListActiveSignalsRequestSchema)` to create a new message.
784
718
  */
785
- export declare const ListBoundReceiverSignalsRequestSchema: GenMessage<ListBoundReceiverSignalsRequest, {
786
- jsonType: ListBoundReceiverSignalsRequestJson;
719
+ export declare const ListActiveSignalsRequestSchema: GenMessage<ListActiveSignalsRequest, {
720
+ jsonType: ListActiveSignalsRequestJson;
787
721
  }>;
788
722
  /**
789
723
  * The response of fetching the recieved signals
790
724
  *
791
- * @generated from message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsResponse
725
+ * @generated from message mochabugapis.adapt.runtime.v1.ListActiveSignalsResponse
792
726
  */
793
- export type ListBoundReceiverSignalsResponse = Message<"mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsResponse"> & {
727
+ export type ListActiveSignalsResponse = Message<"mochabugapis.adapt.runtime.v1.ListActiveSignalsResponse"> & {
794
728
  /**
795
729
  * The actual signals on the receiver
796
730
  *
797
- * @generated from field: map<string, google.protobuf.Value> signals = 1;
731
+ * @generated from field: map<string, bytes> signals = 1;
798
732
  */
799
733
  signals: {
800
- [key: string]: Value;
734
+ [key: string]: Uint8Array;
801
735
  };
802
736
  /**
803
737
  * The receiver the signals are fetched on
@@ -817,16 +751,16 @@ export type ListBoundReceiverSignalsResponse = Message<"mochabugapis.adapt.runti
817
751
  /**
818
752
  * The response of fetching the recieved signals
819
753
  *
820
- * @generated from message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsResponse
754
+ * @generated from message mochabugapis.adapt.runtime.v1.ListActiveSignalsResponse
821
755
  */
822
- export type ListBoundReceiverSignalsResponseJson = {
756
+ export type ListActiveSignalsResponseJson = {
823
757
  /**
824
758
  * The actual signals on the receiver
825
759
  *
826
- * @generated from field: map<string, google.protobuf.Value> signals = 1;
760
+ * @generated from field: map<string, bytes> signals = 1;
827
761
  */
828
762
  signals?: {
829
- [key: string]: ValueJson;
763
+ [key: string]: string;
830
764
  };
831
765
  /**
832
766
  * The receiver the signals are fetched on
@@ -844,11 +778,11 @@ export type ListBoundReceiverSignalsResponseJson = {
844
778
  nextCursor?: string;
845
779
  };
846
780
  /**
847
- * Describes the message mochabugapis.adapt.runtime.v1.ListBoundReceiverSignalsResponse.
848
- * Use `create(ListBoundReceiverSignalsResponseSchema)` to create a new message.
781
+ * Describes the message mochabugapis.adapt.runtime.v1.ListActiveSignalsResponse.
782
+ * Use `create(ListActiveSignalsResponseSchema)` to create a new message.
849
783
  */
850
- export declare const ListBoundReceiverSignalsResponseSchema: GenMessage<ListBoundReceiverSignalsResponse, {
851
- jsonType: ListBoundReceiverSignalsResponseJson;
784
+ export declare const ListActiveSignalsResponseSchema: GenMessage<ListActiveSignalsResponse, {
785
+ jsonType: ListActiveSignalsResponseJson;
852
786
  }>;
853
787
  /**
854
788
  * The vertex config request
@@ -1246,6 +1180,12 @@ export type PostVertexConfigRequest = Message<"mochabugapis.adapt.runtime.v1.Pos
1246
1180
  * @generated from field: optional google.protobuf.FieldMask field_mask = 3;
1247
1181
  */
1248
1182
  fieldMask?: FieldMask;
1183
+ /**
1184
+ * You can override bindings directly in the request by setting this flag
1185
+ *
1186
+ * @generated from field: optional bool override_bindings = 4;
1187
+ */
1188
+ overrideBindings?: boolean;
1249
1189
  };
1250
1190
  /**
1251
1191
  * The post vertex request
@@ -1271,6 +1211,12 @@ export type PostVertexConfigRequestJson = {
1271
1211
  * @generated from field: optional google.protobuf.FieldMask field_mask = 3;
1272
1212
  */
1273
1213
  fieldMask?: FieldMaskJson;
1214
+ /**
1215
+ * You can override bindings directly in the request by setting this flag
1216
+ *
1217
+ * @generated from field: optional bool override_bindings = 4;
1218
+ */
1219
+ overrideBindings?: boolean;
1274
1220
  };
1275
1221
  /**
1276
1222
  * Describes the message mochabugapis.adapt.runtime.v1.PostVertexConfigRequest.
@@ -1880,23 +1826,23 @@ export declare const ExecutorService: GenService<{
1880
1826
  * Get the signals defined by the connected receiver
1881
1827
  * Valid scopes: runtimeapi/executor, runtimeapi/executor.receiversignals:read
1882
1828
  *
1883
- * @generated from rpc mochabugapis.adapt.runtime.v1.ExecutorService.ListBoundReceiverSignals
1829
+ * @generated from rpc mochabugapis.adapt.runtime.v1.ExecutorService.ListActiveSignals
1884
1830
  */
1885
- listBoundReceiverSignals: {
1831
+ listActiveSignals: {
1886
1832
  methodKind: "unary";
1887
- input: typeof ListBoundReceiverSignalsRequestSchema;
1888
- output: typeof ListBoundReceiverSignalsResponseSchema;
1833
+ input: typeof ListActiveSignalsRequestSchema;
1834
+ output: typeof ListActiveSignalsResponseSchema;
1889
1835
  };
1890
1836
  /**
1891
1837
  * Get specific signals on the connected receiver
1892
1838
  * Valid scopes: runtimeapi/executor, runtimeapi/executor.receiversignals:read
1893
1839
  *
1894
- * @generated from rpc mochabugapis.adapt.runtime.v1.ExecutorService.BatchGetBoundReceiverSignals
1840
+ * @generated from rpc mochabugapis.adapt.runtime.v1.ExecutorService.BatchGetActiveSignals
1895
1841
  */
1896
- batchGetBoundReceiverSignals: {
1842
+ batchGetActiveSignals: {
1897
1843
  methodKind: "unary";
1898
- input: typeof BatchGetBoundReceiverSignalsRequestSchema;
1899
- output: typeof BatchGetBoundReceiverSignalsResponseSchema;
1844
+ input: typeof BatchGetActiveSignalsRequestSchema;
1845
+ output: typeof BatchGetActiveSignalsResponseSchema;
1900
1846
  };
1901
1847
  /**
1902
1848
  * Send data on the transmitter
@@ -14,23 +14,30 @@ export declare class RestClientError extends Error {
14
14
  }
15
15
  export interface Output {
16
16
  vertex: string;
17
+ fork: string;
17
18
  data: {
18
19
  [key: string]: ValueJson;
19
20
  };
20
21
  created?: Date;
21
22
  }
22
23
  export type SubscriptionOptions = {
23
- sessionToken: string;
24
- session: string;
25
- automation: AutomationIdJson;
24
+ credentials: Uint8Array;
25
+ subject: string;
26
26
  onOutput?: (output: Output) => void;
27
27
  onSession?: (session: SessionJson) => void;
28
28
  onUrl?: (url: UrlJson) => void;
29
29
  };
30
- export declare class MqttClient {
31
- private readonly clientId;
32
- private mqttClient;
33
- constructor(clientId: string);
30
+ export declare class PubsubClient {
31
+ private nc;
32
+ private subscriptions;
33
+ private subject;
34
+ private outputHandler;
35
+ private sessionHandler;
36
+ private urlHandler;
37
+ constructor();
34
38
  subscribe(opts: SubscriptionOptions): Promise<void>;
39
+ private createSubscriptions;
40
+ private clearSubscriptions;
41
+ private resubscribe;
35
42
  unsubscribe(): Promise<void>;
36
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adapt-web",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "The client library to execute automations, without effort, in a browser environment",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -53,10 +53,10 @@
53
53
  },
54
54
  "homepage": "https://github.com/mochabug/adapt-automation-clients#readme",
55
55
  "devDependencies": {
56
- "typescript": "^5.8.3"
56
+ "typescript": "^5.9.2"
57
57
  },
58
58
  "dependencies": {
59
- "@bufbuild/protobuf": "^2.5.2",
60
- "mqtt": "^5.13.1"
59
+ "@bufbuild/protobuf": "^2.6.3",
60
+ "nats.ws": "^1.30.3"
61
61
  }
62
62
  }