@mochabug/adaptkit 1.0.0-rc.4 → 1.0.0-rc.5

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 (75) hide show
  1. package/assets/build.js +2 -57
  2. package/assets/configurator.html +14 -0
  3. package/assets/configurator.ssg.tsx +2 -16
  4. package/assets/configurator_react.tsx +6 -3
  5. package/assets/executor.html +14 -0
  6. package/assets/executor.ssg.tsx +2 -16
  7. package/assets/executor_browser_react.tsx +6 -3
  8. package/assets/gitignore +3 -1
  9. package/assets/tsconf.json +3 -5
  10. package/bin/add.d.ts +3 -0
  11. package/bin/add.d.ts.map +1 -0
  12. package/bin/genproto/buf/validate/validate_pb.d.ts +8122 -0
  13. package/bin/genproto/buf/validate/validate_pb.d.ts.map +1 -0
  14. package/bin/genproto/google/api/annotations_pb.d.ts +14 -0
  15. package/bin/genproto/google/api/annotations_pb.d.ts.map +1 -0
  16. package/bin/genproto/google/api/client_pb.d.ts +1402 -0
  17. package/bin/genproto/google/api/client_pb.d.ts.map +1 -0
  18. package/bin/genproto/google/api/http_pb.d.ts +837 -0
  19. package/bin/genproto/google/api/http_pb.d.ts.map +1 -0
  20. package/bin/genproto/google/api/launch_stage_pb.d.ts +94 -0
  21. package/bin/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
  22. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +75 -0
  23. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
  24. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +225 -0
  25. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
  26. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +67 -0
  27. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
  28. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +133 -0
  29. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
  30. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +87 -0
  31. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
  32. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +63 -0
  33. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
  34. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +75 -0
  35. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
  36. package/bin/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts +109 -0
  37. package/bin/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts.map +1 -0
  38. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +62 -0
  39. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
  40. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +223 -0
  41. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
  42. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +715 -0
  43. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
  44. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +92 -0
  45. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +1 -0
  46. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +194 -0
  47. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
  48. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +134 -0
  49. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +1 -0
  50. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +116 -0
  51. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
  52. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +159 -0
  53. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +1 -0
  54. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +60 -0
  55. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
  56. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +232 -0
  57. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
  58. package/bin/index.d.ts +7 -0
  59. package/bin/index.d.ts.map +1 -0
  60. package/bin/index.js +335 -258
  61. package/bin/index.js.map +4 -4
  62. package/bin/init.d.ts +2 -0
  63. package/bin/init.d.ts.map +1 -0
  64. package/bin/oauth2.d.ts +2 -0
  65. package/bin/oauth2.d.ts.map +1 -0
  66. package/bin/publish.d.ts +23 -0
  67. package/bin/publish.d.ts.map +1 -0
  68. package/bin/utils.d.ts +13 -0
  69. package/bin/utils.d.ts.map +1 -0
  70. package/bin/vertices.d.ts +3 -0
  71. package/bin/vertices.d.ts.map +1 -0
  72. package/package.json +3 -10
  73. package/assets/build-client.js +0 -111
  74. package/assets/global.d.ts +0 -7
  75. package/assets/inject.js +0 -15
@@ -0,0 +1,159 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { File, FileJson } from "./file_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file mochabugapis/adapt/plugins/v1/tls_service.proto.
6
+ */
7
+ export declare const file_mochabugapis_adapt_plugins_v1_tls_service: GenFile;
8
+ /**
9
+ * TlsConfig configures the TLS behavior for the connection.
10
+ * It supports two modes:
11
+ * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
12
+ * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
13
+ *
14
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
15
+ */
16
+ export type TlsDefinition = Message<"mochabugapis.adapt.plugins.v1.TlsDefinition"> & {
17
+ /**
18
+ * Select the TLS mode for the connection.
19
+ *
20
+ * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
21
+ */
22
+ mode: TlsDefinition_Mode;
23
+ /**
24
+ * The optional default value
25
+ *
26
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.TlsConfig default = 2;
27
+ */
28
+ default?: TlsConfig;
29
+ };
30
+ /**
31
+ * TlsConfig configures the TLS behavior for the connection.
32
+ * It supports two modes:
33
+ * 1. MTLS: True Mutual TLS where both the client and server present and validate each other's certificates.
34
+ * 2. SERVER_ONLY: Server-only validation where only the server presents a certificate, and the client validates it.
35
+ *
36
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsDefinition
37
+ */
38
+ export type TlsDefinitionJson = {
39
+ /**
40
+ * Select the TLS mode for the connection.
41
+ *
42
+ * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition.Mode mode = 1;
43
+ */
44
+ mode?: TlsDefinition_ModeJson;
45
+ /**
46
+ * The optional default value
47
+ *
48
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.TlsConfig default = 2;
49
+ */
50
+ default?: TlsConfigJson;
51
+ };
52
+ /**
53
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsDefinition.
54
+ * Use `create(TlsDefinitionSchema)` to create a new message.
55
+ */
56
+ export declare const TlsDefinitionSchema: GenMessage<TlsDefinition, TlsDefinitionJson>;
57
+ /**
58
+ * Mode specifies which TLS configuration to use.
59
+ *
60
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
61
+ */
62
+ export declare enum TlsDefinition_Mode {
63
+ /**
64
+ * Default value. Invalid.
65
+ *
66
+ * @generated from enum value: MODE_UNSPECIFIED = 0;
67
+ */
68
+ UNSPECIFIED = 0,
69
+ /**
70
+ * MTLS requires both the client and server to present valid certificates.
71
+ *
72
+ * @generated from enum value: MODE_MTLS = 1;
73
+ */
74
+ MTLS = 1,
75
+ /**
76
+ * SERVER_ONLY requires only the server to present a certificate, and the client performs validation.
77
+ *
78
+ * @generated from enum value: MODE_SERVER_ONLY = 2;
79
+ */
80
+ SERVER_ONLY = 2
81
+ }
82
+ /**
83
+ * Mode specifies which TLS configuration to use.
84
+ *
85
+ * @generated from enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode
86
+ */
87
+ export type TlsDefinition_ModeJson = "MODE_UNSPECIFIED" | "MODE_MTLS" | "MODE_SERVER_ONLY";
88
+ /**
89
+ * Describes the enum mochabugapis.adapt.plugins.v1.TlsDefinition.Mode.
90
+ */
91
+ export declare const TlsDefinition_ModeSchema: GenEnum<TlsDefinition_Mode, TlsDefinition_ModeJson>;
92
+ /**
93
+ * The actual TLS configuration
94
+ *
95
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
96
+ */
97
+ export type TlsConfig = Message<"mochabugapis.adapt.plugins.v1.TlsConfig"> & {
98
+ /**
99
+ * The ca bundle in PEM format
100
+ * The content of the file must be PEM format after decoding
101
+ * If a certificate chain is presented. The server certificate must be the first one
102
+ *
103
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
104
+ */
105
+ caBundle?: File;
106
+ /**
107
+ * The certificate in PEM format
108
+ * The content of the file must be PEM format after decoding
109
+ * If a certificate chain is presented. The server certificate must be the first one
110
+ *
111
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
112
+ */
113
+ certificate?: File;
114
+ /**
115
+ * The private key in PEM format
116
+ * The content of the file must be PEM format after decoding
117
+ * The content must contain a PRIVATE KEY block
118
+ *
119
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
120
+ */
121
+ privateKey?: File;
122
+ };
123
+ /**
124
+ * The actual TLS configuration
125
+ *
126
+ * @generated from message mochabugapis.adapt.plugins.v1.TlsConfig
127
+ */
128
+ export type TlsConfigJson = {
129
+ /**
130
+ * The ca bundle in PEM format
131
+ * The content of the file must be PEM format after decoding
132
+ * If a certificate chain is presented. The server certificate must be the first one
133
+ *
134
+ * @generated from field: mochabugapis.adapt.plugins.v1.File ca_bundle = 1;
135
+ */
136
+ caBundle?: FileJson;
137
+ /**
138
+ * The certificate in PEM format
139
+ * The content of the file must be PEM format after decoding
140
+ * If a certificate chain is presented. The server certificate must be the first one
141
+ *
142
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File certificate = 2;
143
+ */
144
+ certificate?: FileJson;
145
+ /**
146
+ * The private key in PEM format
147
+ * The content of the file must be PEM format after decoding
148
+ * The content must contain a PRIVATE KEY block
149
+ *
150
+ * @generated from field: optional mochabugapis.adapt.plugins.v1.File private_key = 3;
151
+ */
152
+ privateKey?: FileJson;
153
+ };
154
+ /**
155
+ * Describes the message mochabugapis.adapt.plugins.v1.TlsConfig.
156
+ * Use `create(TlsConfigSchema)` to create a new message.
157
+ */
158
+ export declare const TlsConfigSchema: GenMessage<TlsConfig, TlsConfigJson>;
159
+ //# sourceMappingURL=tls_service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tls_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,OAC2xB,CAAC;AAEz1B;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,6CAA6C,CAAC,GAAG;IACnF;;;;OAIG;IACH,IAAI,EAAE,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,60 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
3
+ import type { JTDSchema, JTDSchemaJson } from "../../graph/jtd_schema_pb";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file mochabugapis/adapt/plugins/v1/variable_service.proto.
7
+ */
8
+ export declare const file_mochabugapis_adapt_plugins_v1_variable_service: GenFile;
9
+ /**
10
+ * A definition of a JSON variable
11
+ *
12
+ * This message represents a variable used within the hosting platform.
13
+ * Variables are essential for configuring applications and services hosted on the platform.
14
+ * They store values that can be accessed by the application or service during runtime.
15
+ *
16
+ * @generated from message mochabugapis.adapt.plugins.v1.VariableDefinition
17
+ */
18
+ export type VariableDefinition = Message<"mochabugapis.adapt.plugins.v1.VariableDefinition"> & {
19
+ /**
20
+ * The schema that the variable must adhere to
21
+ *
22
+ * @generated from field: mochabugapis.adapt.graph.JTDSchema schema = 1;
23
+ */
24
+ schema?: JTDSchema;
25
+ /**
26
+ * The optional default value
27
+ *
28
+ * @generated from field: optional google.protobuf.Value default = 2;
29
+ */
30
+ default?: Value;
31
+ };
32
+ /**
33
+ * A definition of a JSON variable
34
+ *
35
+ * This message represents a variable used within the hosting platform.
36
+ * Variables are essential for configuring applications and services hosted on the platform.
37
+ * They store values that can be accessed by the application or service during runtime.
38
+ *
39
+ * @generated from message mochabugapis.adapt.plugins.v1.VariableDefinition
40
+ */
41
+ export type VariableDefinitionJson = {
42
+ /**
43
+ * The schema that the variable must adhere to
44
+ *
45
+ * @generated from field: mochabugapis.adapt.graph.JTDSchema schema = 1;
46
+ */
47
+ schema?: JTDSchemaJson;
48
+ /**
49
+ * The optional default value
50
+ *
51
+ * @generated from field: optional google.protobuf.Value default = 2;
52
+ */
53
+ default?: ValueJson;
54
+ };
55
+ /**
56
+ * Describes the message mochabugapis.adapt.plugins.v1.VariableDefinition.
57
+ * Use `create(VariableDefinitionSchema)` to create a new message.
58
+ */
59
+ export declare const VariableDefinitionSchema: GenMessage<VariableDefinition, VariableDefinitionJson>;
60
+ //# sourceMappingURL=variable_service_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mDAAmD,EAAE,OAC2W,CAAC;AAE9a;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kDAAkD,CAAC,GAAG;IAC7F;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,kBAAkB,EAAE,sBAAsB,CACvB,CAAC"}
@@ -0,0 +1,232 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { ServiceBinding, ServiceBindingJson } from "./service_binding_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file mochabugapis/adapt/plugins/v1/vertex.proto.
6
+ */
7
+ export declare const file_mochabugapis_adapt_plugins_v1_vertex: GenFile;
8
+ /**
9
+ * Vertex represents a graph vertex that defines a plugin.
10
+ * Note: Be aware of potential security implications when dealing with
11
+ * user-provided data, such as file paths, and ensure proper input validation
12
+ * and sanitization.
13
+ *
14
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
15
+ */
16
+ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
17
+ /**
18
+ * 'name' represents the vertex name.
19
+ *
20
+ * @generated from field: string name = 1;
21
+ */
22
+ name: string;
23
+ /**
24
+ * 'label' is a human-friendly label displayed in the UI.
25
+ *
26
+ * @generated from field: string label = 2;
27
+ */
28
+ label: string;
29
+ /**
30
+ * 'description' is a human-friendly short description of the vertex displayed
31
+ * in UI.
32
+ *
33
+ * @generated from field: optional string description = 3;
34
+ */
35
+ description?: string;
36
+ /**
37
+ * 'logo' is the file path to the vertex logo, which will be resized to a
38
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
39
+ * sources to avoid security risks.
40
+ * - Supported file formats:
41
+ * - GIF: .gif
42
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
43
+ * - PNG: .png
44
+ * - SVG: .svg
45
+ * - WEBP: .webp
46
+ * - AVIF: .avif
47
+ *
48
+ * @generated from field: optional string logo = 4;
49
+ */
50
+ logo?: string;
51
+ /**
52
+ * 'type' specifies the type of the vertex.
53
+ *
54
+ * @generated from field: mochabugapis.adapt.plugins.v1.Vertex.VertexType type = 5;
55
+ */
56
+ type: Vertex_VertexType;
57
+ /**
58
+ * 'config' is an field that contains a Unix file path.
59
+ * This can be any type of file, this is only intepreted for the vertex itself
60
+ * Restrictions:
61
+ *
62
+ *
63
+ * @generated from field: optional string config = 6;
64
+ */
65
+ config?: string;
66
+ /**
67
+ * 'metadata' is an field that contains a Unix file path.
68
+ * This determines which receivers, transmitters etc... the vertex has to begin with
69
+ * Restrictions:
70
+ *
71
+ *
72
+ * @generated from field: string metadata = 7;
73
+ */
74
+ metadata: string;
75
+ /**
76
+ * 'configurator' is a field to indicate whether or not
77
+ * the vertex has a configurator
78
+ *
79
+ * @generated from field: bool configurator = 8;
80
+ */
81
+ configurator: boolean;
82
+ /**
83
+ * 'user_services' are the services that the user is defining
84
+ * and consumed by a particular instance of the vertex
85
+ *
86
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 9;
87
+ */
88
+ userServices: ServiceBinding[];
89
+ };
90
+ /**
91
+ * Vertex represents a graph vertex that defines a plugin.
92
+ * Note: Be aware of potential security implications when dealing with
93
+ * user-provided data, such as file paths, and ensure proper input validation
94
+ * and sanitization.
95
+ *
96
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
97
+ */
98
+ export type VertexJson = {
99
+ /**
100
+ * 'name' represents the vertex name.
101
+ *
102
+ * @generated from field: string name = 1;
103
+ */
104
+ name?: string;
105
+ /**
106
+ * 'label' is a human-friendly label displayed in the UI.
107
+ *
108
+ * @generated from field: string label = 2;
109
+ */
110
+ label?: string;
111
+ /**
112
+ * 'description' is a human-friendly short description of the vertex displayed
113
+ * in UI.
114
+ *
115
+ * @generated from field: optional string description = 3;
116
+ */
117
+ description?: string;
118
+ /**
119
+ * 'logo' is the file path to the vertex logo, which will be resized to a
120
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
121
+ * sources to avoid security risks.
122
+ * - Supported file formats:
123
+ * - GIF: .gif
124
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
125
+ * - PNG: .png
126
+ * - SVG: .svg
127
+ * - WEBP: .webp
128
+ * - AVIF: .avif
129
+ *
130
+ * @generated from field: optional string logo = 4;
131
+ */
132
+ logo?: string;
133
+ /**
134
+ * 'type' specifies the type of the vertex.
135
+ *
136
+ * @generated from field: mochabugapis.adapt.plugins.v1.Vertex.VertexType type = 5;
137
+ */
138
+ type?: Vertex_VertexTypeJson;
139
+ /**
140
+ * 'config' is an field that contains a Unix file path.
141
+ * This can be any type of file, this is only intepreted for the vertex itself
142
+ * Restrictions:
143
+ *
144
+ *
145
+ * @generated from field: optional string config = 6;
146
+ */
147
+ config?: string;
148
+ /**
149
+ * 'metadata' is an field that contains a Unix file path.
150
+ * This determines which receivers, transmitters etc... the vertex has to begin with
151
+ * Restrictions:
152
+ *
153
+ *
154
+ * @generated from field: string metadata = 7;
155
+ */
156
+ metadata?: string;
157
+ /**
158
+ * 'configurator' is a field to indicate whether or not
159
+ * the vertex has a configurator
160
+ *
161
+ * @generated from field: bool configurator = 8;
162
+ */
163
+ configurator?: boolean;
164
+ /**
165
+ * 'user_services' are the services that the user is defining
166
+ * and consumed by a particular instance of the vertex
167
+ *
168
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 9;
169
+ */
170
+ userServices?: ServiceBindingJson[];
171
+ };
172
+ /**
173
+ * Describes the message mochabugapis.adapt.plugins.v1.Vertex.
174
+ * Use `create(VertexSchema)` to create a new message.
175
+ */
176
+ export declare const VertexSchema: GenMessage<Vertex, VertexJson>;
177
+ /**
178
+ * VertexType represents the type of a vertex.
179
+ *
180
+ * @generated from enum mochabugapis.adapt.plugins.v1.Vertex.VertexType
181
+ */
182
+ export declare enum Vertex_VertexType {
183
+ /**
184
+ * Unspecified type (default value, should not be used).
185
+ *
186
+ * @generated from enum value: VERTEX_TYPE_UNSPECIFIED = 0;
187
+ */
188
+ UNSPECIFIED = 0,
189
+ /**
190
+ * Action type, available in all contexts and not exposed to the outside
191
+ * world. This type has a lower security risk.
192
+ *
193
+ * @generated from enum value: VERTEX_TYPE_ACTION = 1;
194
+ */
195
+ ACTION = 1,
196
+ /**
197
+ * Browser type, available only in a browser context.
198
+ * The configuration always runs inside a browser context.
199
+ * Security implications: be cautious about potentially sensitive data
200
+ * exposure.
201
+ *
202
+ * @generated from enum value: VERTEX_TYPE_BROWSER = 2;
203
+ */
204
+ BROWSER = 2,
205
+ /**
206
+ * CronTrigger type, available only in a trigger context.
207
+ * Triggered at specific intervals.
208
+ *
209
+ * @generated from enum value: VERTEX_TYPE_CRON_TRIGGER = 3;
210
+ */
211
+ CRON_TRIGGER = 3,
212
+ /**
213
+ * ExternalTrigger type, available only in a trigger context.
214
+ * Accessible via a publicly routable address.
215
+ * Security implications: be cautious about exposing sensitive data or
216
+ * functionality.
217
+ *
218
+ * @generated from enum value: VERTEX_TYPE_EXTERNAL_TRIGGER = 4;
219
+ */
220
+ EXTERNAL_TRIGGER = 4
221
+ }
222
+ /**
223
+ * VertexType represents the type of a vertex.
224
+ *
225
+ * @generated from enum mochabugapis.adapt.plugins.v1.Vertex.VertexType
226
+ */
227
+ export type Vertex_VertexTypeJson = "VERTEX_TYPE_UNSPECIFIED" | "VERTEX_TYPE_ACTION" | "VERTEX_TYPE_BROWSER" | "VERTEX_TYPE_CRON_TRIGGER" | "VERTEX_TYPE_EXTERNAL_TRIGGER";
228
+ /**
229
+ * Describes the enum mochabugapis.adapt.plugins.v1.Vertex.VertexType.
230
+ */
231
+ export declare const Vertex_VertexTypeSchema: GenEnum<Vertex_VertexType, Vertex_VertexTypeJson>;
232
+ //# sourceMappingURL=vertex_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertex_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,OAC+tC,CAAC;AAExxC;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,sCAAsC,CAAC,GAAG;IACrE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,E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AAgB,IAAI;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,qBAAqB,GAAG,0BAA0B,GAAG,8BAA8B,CAAC;AAE3K;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,iBAAiB,EAAE,qBAAqB,CAC3B,CAAC"}
package/bin/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ interface ReadFilesResult {
2
+ configuratorPath?: string;
3
+ executorPath: string;
4
+ }
5
+ export declare function readConfiguratorAndExecutor(dist: string): Promise<ReadFilesResult>;
6
+ export {};
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAuCA,UAAU,eAAe;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,CA0B1B"}