@mochabug/adapt-web 0.0.71 → 1.0.0-rc0
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/dist/cjs/genproto/buf/validate/validate_pb.js +2 -1
- package/dist/cjs/genproto/buf/validate/validate_pb.js.map +1 -1
- package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js +1 -1
- package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js.map +1 -1
- package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js +1 -1
- package/dist/cjs/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js.map +1 -1
- package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +96 -23
- package/dist/cjs/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
- package/dist/esm/genproto/buf/validate/validate_pb.js +2 -1
- package/dist/esm/genproto/buf/validate/validate_pb.js.map +1 -1
- package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js +1 -1
- package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js.map +1 -1
- package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js +1 -1
- package/dist/esm/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js.map +1 -1
- package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +94 -22
- package/dist/esm/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
- package/dist/types/genproto/buf/validate/validate_pb.d.ts +18 -5
- package/dist/types/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +18 -28
- package/dist/types/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +28 -4
- package/dist/types/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +291 -0
- package/package.json +5 -5
|
@@ -1,6 +1,8 @@
|
|
|
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
3
|
import type { Status, StatusJson } from "../../automations/v1/automations_pb.js";
|
|
4
|
+
import type { JTDSchema, JTDSchemaJson } from "../../graph/jtd_schema_pb.js";
|
|
5
|
+
import type { Transmitter, TransmitterJson } from "../../graph/transmitter_pb.js";
|
|
4
6
|
import type { VertexMetadata, VertexMetadataJson } from "../../graph/vertex_metadata_pb.js";
|
|
5
7
|
import type { GetOp, GetOpJson, GlobalResponseStatus, GlobalResponseStatusJson, ReadOperationResult, ReadOperationResultJson, WriteOperation, WriteOperationJson, WriteOperationResult, WriteOperationResultJson } from "./store_pb.js";
|
|
6
8
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -878,6 +880,223 @@ export type ExecutorServiceGetVertexConfigResponseJson = {
|
|
|
878
880
|
export declare const ExecutorServiceGetVertexConfigResponseSchema: GenMessage<ExecutorServiceGetVertexConfigResponse, {
|
|
879
881
|
jsonType: ExecutorServiceGetVertexConfigResponseJson;
|
|
880
882
|
}>;
|
|
883
|
+
/**
|
|
884
|
+
* The ListIncomingSignalsRequest is used to list the signals on the receiver you query
|
|
885
|
+
* If you have multiple receivers you should call this endpoint multiple times
|
|
886
|
+
*
|
|
887
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ListIncomingSignalsRequest
|
|
888
|
+
*/
|
|
889
|
+
export type ListIncomingSignalsRequest = Message<"mochabugapis.adapt.runtime.v1.ListIncomingSignalsRequest"> & {
|
|
890
|
+
/**
|
|
891
|
+
* The receiver you want to check for signals, if not set, the first connected receiver is used
|
|
892
|
+
*
|
|
893
|
+
* @generated from field: optional string receiver = 1;
|
|
894
|
+
*/
|
|
895
|
+
receiver?: string;
|
|
896
|
+
/**
|
|
897
|
+
* Optional schemas to filter the signals by. I.e. only return signals that subsumes to at least one schema in the array
|
|
898
|
+
*
|
|
899
|
+
* @generated from field: repeated mochabugapis.adapt.graph.JTDSchema schemas = 2;
|
|
900
|
+
*/
|
|
901
|
+
schemas: JTDSchema[];
|
|
902
|
+
/**
|
|
903
|
+
* A fieldmaks to apply to the returned schema
|
|
904
|
+
* I.e. if you want to omit logos you should set this to "vertices" + additional info
|
|
905
|
+
*
|
|
906
|
+
* @generated from field: optional google.protobuf.FieldMask field_mask = 3;
|
|
907
|
+
*/
|
|
908
|
+
fieldMask?: FieldMask;
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* The ListIncomingSignalsRequest is used to list the signals on the receiver you query
|
|
912
|
+
* If you have multiple receivers you should call this endpoint multiple times
|
|
913
|
+
*
|
|
914
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ListIncomingSignalsRequest
|
|
915
|
+
*/
|
|
916
|
+
export type ListIncomingSignalsRequestJson = {
|
|
917
|
+
/**
|
|
918
|
+
* The receiver you want to check for signals, if not set, the first connected receiver is used
|
|
919
|
+
*
|
|
920
|
+
* @generated from field: optional string receiver = 1;
|
|
921
|
+
*/
|
|
922
|
+
receiver?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Optional schemas to filter the signals by. I.e. only return signals that subsumes to at least one schema in the array
|
|
925
|
+
*
|
|
926
|
+
* @generated from field: repeated mochabugapis.adapt.graph.JTDSchema schemas = 2;
|
|
927
|
+
*/
|
|
928
|
+
schemas?: JTDSchemaJson[];
|
|
929
|
+
/**
|
|
930
|
+
* A fieldmaks to apply to the returned schema
|
|
931
|
+
* I.e. if you want to omit logos you should set this to "vertices" + additional info
|
|
932
|
+
*
|
|
933
|
+
* @generated from field: optional google.protobuf.FieldMask field_mask = 3;
|
|
934
|
+
*/
|
|
935
|
+
fieldMask?: FieldMaskJson;
|
|
936
|
+
};
|
|
937
|
+
/**
|
|
938
|
+
* Describes the message mochabugapis.adapt.runtime.v1.ListIncomingSignalsRequest.
|
|
939
|
+
* Use `create(ListIncomingSignalsRequestSchema)` to create a new message.
|
|
940
|
+
*/
|
|
941
|
+
export declare const ListIncomingSignalsRequestSchema: GenMessage<ListIncomingSignalsRequest, {
|
|
942
|
+
jsonType: ListIncomingSignalsRequestJson;
|
|
943
|
+
}>;
|
|
944
|
+
/**
|
|
945
|
+
* A representation of a signal on a receiver
|
|
946
|
+
*
|
|
947
|
+
* @generated from message mochabugapis.adapt.runtime.v1.IncomingVertices
|
|
948
|
+
*/
|
|
949
|
+
export type IncomingVertices = Message<"mochabugapis.adapt.runtime.v1.IncomingVertices"> & {
|
|
950
|
+
/**
|
|
951
|
+
* The vertex id
|
|
952
|
+
*
|
|
953
|
+
* @generated from field: string id = 1;
|
|
954
|
+
*/
|
|
955
|
+
id: string;
|
|
956
|
+
/**
|
|
957
|
+
* The label
|
|
958
|
+
*
|
|
959
|
+
* @generated from field: string label = 2;
|
|
960
|
+
*/
|
|
961
|
+
label: string;
|
|
962
|
+
/**
|
|
963
|
+
* The description
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: optional string description = 3;
|
|
966
|
+
*/
|
|
967
|
+
description?: string;
|
|
968
|
+
/**
|
|
969
|
+
* The transmitters on the vertex
|
|
970
|
+
*
|
|
971
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 4;
|
|
972
|
+
*/
|
|
973
|
+
transmitters: Transmitter[];
|
|
974
|
+
/**
|
|
975
|
+
* We also need to know the vertex type
|
|
976
|
+
*
|
|
977
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.VertexType vertex_type = 5;
|
|
978
|
+
*/
|
|
979
|
+
vertexType: VertexType;
|
|
980
|
+
/**
|
|
981
|
+
* Optional logo for the vertex, use it to get the logo from the map
|
|
982
|
+
*
|
|
983
|
+
* @generated from field: optional string logo_id = 6;
|
|
984
|
+
*/
|
|
985
|
+
logoId?: string;
|
|
986
|
+
};
|
|
987
|
+
/**
|
|
988
|
+
* A representation of a signal on a receiver
|
|
989
|
+
*
|
|
990
|
+
* @generated from message mochabugapis.adapt.runtime.v1.IncomingVertices
|
|
991
|
+
*/
|
|
992
|
+
export type IncomingVerticesJson = {
|
|
993
|
+
/**
|
|
994
|
+
* The vertex id
|
|
995
|
+
*
|
|
996
|
+
* @generated from field: string id = 1;
|
|
997
|
+
*/
|
|
998
|
+
id?: string;
|
|
999
|
+
/**
|
|
1000
|
+
* The label
|
|
1001
|
+
*
|
|
1002
|
+
* @generated from field: string label = 2;
|
|
1003
|
+
*/
|
|
1004
|
+
label?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* The description
|
|
1007
|
+
*
|
|
1008
|
+
* @generated from field: optional string description = 3;
|
|
1009
|
+
*/
|
|
1010
|
+
description?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* The transmitters on the vertex
|
|
1013
|
+
*
|
|
1014
|
+
* @generated from field: repeated mochabugapis.adapt.graph.Transmitter transmitters = 4;
|
|
1015
|
+
*/
|
|
1016
|
+
transmitters?: TransmitterJson[];
|
|
1017
|
+
/**
|
|
1018
|
+
* We also need to know the vertex type
|
|
1019
|
+
*
|
|
1020
|
+
* @generated from field: mochabugapis.adapt.runtime.v1.VertexType vertex_type = 5;
|
|
1021
|
+
*/
|
|
1022
|
+
vertexType?: VertexTypeJson;
|
|
1023
|
+
/**
|
|
1024
|
+
* Optional logo for the vertex, use it to get the logo from the map
|
|
1025
|
+
*
|
|
1026
|
+
* @generated from field: optional string logo_id = 6;
|
|
1027
|
+
*/
|
|
1028
|
+
logoId?: string;
|
|
1029
|
+
};
|
|
1030
|
+
/**
|
|
1031
|
+
* Describes the message mochabugapis.adapt.runtime.v1.IncomingVertices.
|
|
1032
|
+
* Use `create(IncomingVerticesSchema)` to create a new message.
|
|
1033
|
+
*/
|
|
1034
|
+
export declare const IncomingVerticesSchema: GenMessage<IncomingVertices, {
|
|
1035
|
+
jsonType: IncomingVerticesJson;
|
|
1036
|
+
}>;
|
|
1037
|
+
/**
|
|
1038
|
+
* The ListIncomingSignalsResponse is used to return the signals on the receiver you query
|
|
1039
|
+
*
|
|
1040
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ListIncomingSignalsResponse
|
|
1041
|
+
*/
|
|
1042
|
+
export type ListIncomingSignalsResponse = Message<"mochabugapis.adapt.runtime.v1.ListIncomingSignalsResponse"> & {
|
|
1043
|
+
/**
|
|
1044
|
+
* The incoming vertices
|
|
1045
|
+
*
|
|
1046
|
+
* @generated from field: repeated mochabugapis.adapt.runtime.v1.IncomingVertices vertices = 1;
|
|
1047
|
+
*/
|
|
1048
|
+
vertices: IncomingVertices[];
|
|
1049
|
+
/**
|
|
1050
|
+
* A map that maps vertex logo ids to logo
|
|
1051
|
+
*
|
|
1052
|
+
* @generated from field: map<string, string> vertex_logos = 2;
|
|
1053
|
+
*/
|
|
1054
|
+
vertexLogos: {
|
|
1055
|
+
[key: string]: string;
|
|
1056
|
+
};
|
|
1057
|
+
/**
|
|
1058
|
+
* The receiver the signals are fetched on
|
|
1059
|
+
* This is set, since otherwise the request would return not found
|
|
1060
|
+
*
|
|
1061
|
+
* @generated from field: string receiver = 3;
|
|
1062
|
+
*/
|
|
1063
|
+
receiver: string;
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* The ListIncomingSignalsResponse is used to return the signals on the receiver you query
|
|
1067
|
+
*
|
|
1068
|
+
* @generated from message mochabugapis.adapt.runtime.v1.ListIncomingSignalsResponse
|
|
1069
|
+
*/
|
|
1070
|
+
export type ListIncomingSignalsResponseJson = {
|
|
1071
|
+
/**
|
|
1072
|
+
* The incoming vertices
|
|
1073
|
+
*
|
|
1074
|
+
* @generated from field: repeated mochabugapis.adapt.runtime.v1.IncomingVertices vertices = 1;
|
|
1075
|
+
*/
|
|
1076
|
+
vertices?: IncomingVerticesJson[];
|
|
1077
|
+
/**
|
|
1078
|
+
* A map that maps vertex logo ids to logo
|
|
1079
|
+
*
|
|
1080
|
+
* @generated from field: map<string, string> vertex_logos = 2;
|
|
1081
|
+
*/
|
|
1082
|
+
vertexLogos?: {
|
|
1083
|
+
[key: string]: string;
|
|
1084
|
+
};
|
|
1085
|
+
/**
|
|
1086
|
+
* The receiver the signals are fetched on
|
|
1087
|
+
* This is set, since otherwise the request would return not found
|
|
1088
|
+
*
|
|
1089
|
+
* @generated from field: string receiver = 3;
|
|
1090
|
+
*/
|
|
1091
|
+
receiver?: string;
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Describes the message mochabugapis.adapt.runtime.v1.ListIncomingSignalsResponse.
|
|
1095
|
+
* Use `create(ListIncomingSignalsResponseSchema)` to create a new message.
|
|
1096
|
+
*/
|
|
1097
|
+
export declare const ListIncomingSignalsResponseSchema: GenMessage<ListIncomingSignalsResponse, {
|
|
1098
|
+
jsonType: ListIncomingSignalsResponseJson;
|
|
1099
|
+
}>;
|
|
881
1100
|
/**
|
|
882
1101
|
* The batch store operation for the configuration store
|
|
883
1102
|
*
|
|
@@ -1810,6 +2029,67 @@ export type NamespaceJson = "NAMESPACE_UNSPECIFIED" | "NAMESPACE_VERTEX_INSTANCE
|
|
|
1810
2029
|
* Describes the enum mochabugapis.adapt.runtime.v1.Namespace.
|
|
1811
2030
|
*/
|
|
1812
2031
|
export declare const NamespaceSchema: GenEnum<Namespace, NamespaceJson>;
|
|
2032
|
+
/**
|
|
2033
|
+
* The different vertex types that can be incoming
|
|
2034
|
+
* The type of vertex to add
|
|
2035
|
+
*
|
|
2036
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.VertexType
|
|
2037
|
+
*/
|
|
2038
|
+
export declare enum VertexType {
|
|
2039
|
+
/**
|
|
2040
|
+
* Not specified
|
|
2041
|
+
*
|
|
2042
|
+
* @generated from enum value: VERTEX_TYPE_UNSPECIFIED = 0;
|
|
2043
|
+
*/
|
|
2044
|
+
UNSPECIFIED = 0,
|
|
2045
|
+
/**
|
|
2046
|
+
* The start vertex
|
|
2047
|
+
*
|
|
2048
|
+
* @generated from enum value: VERTEX_TYPE_START = 1;
|
|
2049
|
+
*/
|
|
2050
|
+
START = 1,
|
|
2051
|
+
/**
|
|
2052
|
+
* The plugin vertex
|
|
2053
|
+
*
|
|
2054
|
+
* @generated from enum value: VERTEX_TYPE_PLUGIN = 2;
|
|
2055
|
+
*/
|
|
2056
|
+
PLUGIN = 2,
|
|
2057
|
+
/**
|
|
2058
|
+
* The output vertex
|
|
2059
|
+
*
|
|
2060
|
+
* @generated from enum value: VERTEX_TYPE_OUTPUT = 3;
|
|
2061
|
+
*/
|
|
2062
|
+
OUTPUT = 3,
|
|
2063
|
+
/**
|
|
2064
|
+
* The delegate vertex
|
|
2065
|
+
*
|
|
2066
|
+
* @generated from enum value: VERTEX_TYPE_DELEGATE = 4;
|
|
2067
|
+
*/
|
|
2068
|
+
DELEGATE = 4,
|
|
2069
|
+
/**
|
|
2070
|
+
* The barrier vertex
|
|
2071
|
+
*
|
|
2072
|
+
* @generated from enum value: VERTEX_TYPE_BARRIER = 5;
|
|
2073
|
+
*/
|
|
2074
|
+
BARRIER = 5,
|
|
2075
|
+
/**
|
|
2076
|
+
* The exchange output vertex
|
|
2077
|
+
*
|
|
2078
|
+
* @generated from enum value: VERTEX_TYPE_EXCHANGE_OUT = 6;
|
|
2079
|
+
*/
|
|
2080
|
+
EXCHANGE_OUT = 6
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* The different vertex types that can be incoming
|
|
2084
|
+
* The type of vertex to add
|
|
2085
|
+
*
|
|
2086
|
+
* @generated from enum mochabugapis.adapt.runtime.v1.VertexType
|
|
2087
|
+
*/
|
|
2088
|
+
export type VertexTypeJson = "VERTEX_TYPE_UNSPECIFIED" | "VERTEX_TYPE_START" | "VERTEX_TYPE_PLUGIN" | "VERTEX_TYPE_OUTPUT" | "VERTEX_TYPE_DELEGATE" | "VERTEX_TYPE_BARRIER" | "VERTEX_TYPE_EXCHANGE_OUT";
|
|
2089
|
+
/**
|
|
2090
|
+
* Describes the enum mochabugapis.adapt.runtime.v1.VertexType.
|
|
2091
|
+
*/
|
|
2092
|
+
export declare const VertexTypeSchema: GenEnum<VertexType, VertexTypeJson>;
|
|
1813
2093
|
/**
|
|
1814
2094
|
* Executor service is containg the complete API available to a executor of a
|
|
1815
2095
|
* vertex. Every call on this service will require an Authoriation header
|
|
@@ -1976,6 +2256,17 @@ export declare const ConfiguratorService: GenService<{
|
|
|
1976
2256
|
input: typeof ConfiguratorServiceBatchReadStoreRequestSchema;
|
|
1977
2257
|
output: typeof ConfiguratorServiceBatchReadStoreResponseSchema;
|
|
1978
2258
|
};
|
|
2259
|
+
/**
|
|
2260
|
+
* This endpoint enables the configurator to get information about incoming signals
|
|
2261
|
+
* Valid scopes: runtimeapi/configurator, runtimeapi/configurator.receiversignals:read
|
|
2262
|
+
*
|
|
2263
|
+
* @generated from rpc mochabugapis.adapt.runtime.v1.ConfiguratorService.ListIncomingSignals
|
|
2264
|
+
*/
|
|
2265
|
+
listIncomingSignals: {
|
|
2266
|
+
methodKind: "unary";
|
|
2267
|
+
input: typeof ListIncomingSignalsRequestSchema;
|
|
2268
|
+
output: typeof ListIncomingSignalsResponseSchema;
|
|
2269
|
+
};
|
|
1979
2270
|
}>;
|
|
1980
2271
|
/**
|
|
1981
2272
|
* Accessible to both executor and configurator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adapt-web",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0-rc0",
|
|
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",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/ws": "^8.18.1",
|
|
60
60
|
"@vitest/ui": "^3.2.4",
|
|
61
|
-
"typescript": "^5.9.
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
62
|
"vitest": "^3.2.4",
|
|
63
63
|
"ws": "^8.18.3"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@bufbuild/protobuf": "^2.
|
|
67
|
-
"@types/uuid": "^
|
|
66
|
+
"@bufbuild/protobuf": "^2.9.0",
|
|
67
|
+
"@types/uuid": "^11.0.0",
|
|
68
68
|
"isomorphic-ws": "^5.0.0",
|
|
69
|
-
"uuid": "^
|
|
69
|
+
"uuid": "^13.0.0"
|
|
70
70
|
}
|
|
71
71
|
}
|