@mochabug/adaptkit 1.0.0-rc.5 → 1.0.0-rc.51
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/README.md +50 -45
- package/assets/build.js +1 -1
- package/assets/configurator.main.tsx +8 -0
- package/assets/configurator_browser_none.main.ts +30 -0
- package/assets/configurator_browser_none.ssg.ts +64 -0
- package/assets/configurator_none.ts +14 -103
- package/assets/configurator_react.tsx +8 -8
- package/assets/executor.html +1 -1
- package/assets/executor.main.tsx +8 -0
- package/assets/executor_action.ts +4 -8
- package/assets/{executor_cron_trigger.ts → executor_action_cron.ts} +4 -8
- package/assets/executor_browser_none.main.ts +25 -0
- package/assets/executor_browser_none.ssg.ts +42 -0
- package/assets/executor_browser_none.ts +15 -83
- package/assets/executor_browser_none_cron.ts +55 -0
- package/assets/executor_browser_react.tsx +9 -13
- package/assets/executor_browser_react_cron.tsx +55 -0
- package/assets/{executor_external_trigger.ts → executor_external.ts} +8 -12
- package/assets/executor_external_cron.ts +45 -0
- package/assets/tsconf.json +1 -2
- package/bin/add.d.ts.map +1 -1
- package/bin/genproto/buf/validate/validate_pb.d.ts +1245 -547
- package/bin/genproto/buf/validate/validate_pb.d.ts.map +1 -1
- package/bin/genproto/google/api/annotations_pb.d.ts +1 -1
- package/bin/genproto/google/api/client_pb.d.ts +46 -16
- package/bin/genproto/google/api/client_pb.d.ts.map +1 -1
- package/bin/genproto/google/api/http_pb.d.ts +10 -4
- package/bin/genproto/google/api/http_pb.d.ts.map +1 -1
- package/bin/genproto/google/api/launch_stage_pb.d.ts +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +4 -2
- package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +192 -16
- package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +4 -2
- package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +309 -53
- package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
- package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +101 -27
- package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
- package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +16 -2
- package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +53 -8
- package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts +353 -0
- package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/graph/{vertex_config_pb.d.ts → vertex_metadata_pb.d.ts} +28 -23
- package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +4 -2
- package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +188 -23
- package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +129 -39
- package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +50 -6
- package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +145 -20
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +134 -4
- package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +92 -55
- package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
- package/bin/index.d.ts +5 -0
- package/bin/index.d.ts.map +1 -1
- package/bin/index.js +709 -652
- package/bin/index.js.map +4 -4
- package/bin/init.d.ts.map +1 -1
- package/bin/oauth2.d.ts +1 -1
- package/bin/oauth2.d.ts.map +1 -1
- package/bin/publish.d.ts +4 -0
- package/bin/publish.d.ts.map +1 -1
- package/bin/utils.d.ts +4 -4
- package/bin/utils.d.ts.map +1 -1
- package/bin/vertices.d.ts +2 -2
- package/bin/vertices.d.ts.map +1 -1
- package/package.json +23 -18
- package/assets/license.md +0 -15
- package/bin/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts.map +0 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +0 -92
- package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +0 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +0 -134
- package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +0 -1
- package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +0 -159
- package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Value, ValueJson } from "@bufbuild/protobuf/wkt";
|
|
3
3
|
import type { JTDSchema, JTDSchemaJson } from "../../graph/jtd_schema_pb";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -23,11 +23,75 @@ export type VariableDefinition = Message<"mochabugapis.adapt.plugins.v1.Variable
|
|
|
23
23
|
*/
|
|
24
24
|
schema?: JTDSchema;
|
|
25
25
|
/**
|
|
26
|
-
* The optional default value
|
|
26
|
+
* The optional default value.
|
|
27
|
+
*
|
|
28
|
+
* ## Default Behavior: System Settings vs User Settings
|
|
29
|
+
*
|
|
30
|
+
* **System Settings** (Manifest.system_services):
|
|
31
|
+
* - Defaults are automatically applied when the plugin is installed
|
|
32
|
+
* - The service is marked as "configured" if all required bindings have defaults
|
|
33
|
+
* - Plugin creators define and approve these defaults
|
|
34
|
+
*
|
|
35
|
+
* **User Settings** (Vertex.user_services):
|
|
36
|
+
* - Defaults are UI hints only and NOT automatically applied
|
|
37
|
+
* - The service is NOT marked as "configured" until the user explicitly submits settings
|
|
38
|
+
* - Users must review and approve all settings, even with defaults present
|
|
39
|
+
* - This ensures users actively consent to configuration values
|
|
40
|
+
*
|
|
41
|
+
* ## Rationale
|
|
42
|
+
*
|
|
43
|
+
* System settings use automatic defaults because the plugin creator (who defines
|
|
44
|
+
* the defaults) is also the one approving them during plugin development.
|
|
45
|
+
*
|
|
46
|
+
* User settings require explicit submission because end users need to review and
|
|
47
|
+
* consciously approve configuration values, even if reasonable defaults exist.
|
|
48
|
+
*
|
|
49
|
+
* IF the default value is pointing to a file with .json ending it's content will be
|
|
50
|
+
* loaded and parsed as JSON.
|
|
27
51
|
*
|
|
28
52
|
* @generated from field: optional google.protobuf.Value default = 2;
|
|
29
53
|
*/
|
|
30
54
|
default?: Value;
|
|
55
|
+
/**
|
|
56
|
+
* If true, the variable value is NOT treated as a secret.
|
|
57
|
+
*
|
|
58
|
+
* ## When plaintext = false (default):
|
|
59
|
+
* - Values are encrypted at rest
|
|
60
|
+
* - Values are treated as sensitive secrets
|
|
61
|
+
*
|
|
62
|
+
* ## When plaintext = true:
|
|
63
|
+
* - Values are stored normally (not encrypted)
|
|
64
|
+
* - Values are treated as non-sensitive data
|
|
65
|
+
*
|
|
66
|
+
* ## Use Cases for plaintext = false (default):
|
|
67
|
+
* - API keys, access tokens, passwords
|
|
68
|
+
* - Database connection strings with credentials
|
|
69
|
+
* - Encryption keys, signing secrets
|
|
70
|
+
* - OAuth client secrets
|
|
71
|
+
* - Any credential material
|
|
72
|
+
*
|
|
73
|
+
* ## Use Cases for plaintext = true:
|
|
74
|
+
* - Public configuration values
|
|
75
|
+
* - Feature flags
|
|
76
|
+
* - API endpoints (URLs without credentials)
|
|
77
|
+
* - User IDs, tenant IDs, organization IDs
|
|
78
|
+
* - Public identifiers
|
|
79
|
+
*
|
|
80
|
+
* ## Security Best Practices
|
|
81
|
+
*
|
|
82
|
+
* ALWAYS leave plaintext = false (default) for:
|
|
83
|
+
* - Anything that grants access or authorization
|
|
84
|
+
* - Anything that could be used to impersonate a user or service
|
|
85
|
+
* - Any sensitive user-provided data
|
|
86
|
+
*
|
|
87
|
+
* Only set plaintext = true when the value contains non-sensitive
|
|
88
|
+
* user-provided information.
|
|
89
|
+
*
|
|
90
|
+
* Default: false (variables are secrets by default)
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: bool plaintext = 3;
|
|
93
|
+
*/
|
|
94
|
+
plaintext: boolean;
|
|
31
95
|
};
|
|
32
96
|
/**
|
|
33
97
|
* A definition of a JSON variable
|
|
@@ -46,15 +110,81 @@ export type VariableDefinitionJson = {
|
|
|
46
110
|
*/
|
|
47
111
|
schema?: JTDSchemaJson;
|
|
48
112
|
/**
|
|
49
|
-
* The optional default value
|
|
113
|
+
* The optional default value.
|
|
114
|
+
*
|
|
115
|
+
* ## Default Behavior: System Settings vs User Settings
|
|
116
|
+
*
|
|
117
|
+
* **System Settings** (Manifest.system_services):
|
|
118
|
+
* - Defaults are automatically applied when the plugin is installed
|
|
119
|
+
* - The service is marked as "configured" if all required bindings have defaults
|
|
120
|
+
* - Plugin creators define and approve these defaults
|
|
121
|
+
*
|
|
122
|
+
* **User Settings** (Vertex.user_services):
|
|
123
|
+
* - Defaults are UI hints only and NOT automatically applied
|
|
124
|
+
* - The service is NOT marked as "configured" until the user explicitly submits settings
|
|
125
|
+
* - Users must review and approve all settings, even with defaults present
|
|
126
|
+
* - This ensures users actively consent to configuration values
|
|
127
|
+
*
|
|
128
|
+
* ## Rationale
|
|
129
|
+
*
|
|
130
|
+
* System settings use automatic defaults because the plugin creator (who defines
|
|
131
|
+
* the defaults) is also the one approving them during plugin development.
|
|
132
|
+
*
|
|
133
|
+
* User settings require explicit submission because end users need to review and
|
|
134
|
+
* consciously approve configuration values, even if reasonable defaults exist.
|
|
135
|
+
*
|
|
136
|
+
* IF the default value is pointing to a file with .json ending it's content will be
|
|
137
|
+
* loaded and parsed as JSON.
|
|
50
138
|
*
|
|
51
139
|
* @generated from field: optional google.protobuf.Value default = 2;
|
|
52
140
|
*/
|
|
53
141
|
default?: ValueJson;
|
|
142
|
+
/**
|
|
143
|
+
* If true, the variable value is NOT treated as a secret.
|
|
144
|
+
*
|
|
145
|
+
* ## When plaintext = false (default):
|
|
146
|
+
* - Values are encrypted at rest
|
|
147
|
+
* - Values are treated as sensitive secrets
|
|
148
|
+
*
|
|
149
|
+
* ## When plaintext = true:
|
|
150
|
+
* - Values are stored normally (not encrypted)
|
|
151
|
+
* - Values are treated as non-sensitive data
|
|
152
|
+
*
|
|
153
|
+
* ## Use Cases for plaintext = false (default):
|
|
154
|
+
* - API keys, access tokens, passwords
|
|
155
|
+
* - Database connection strings with credentials
|
|
156
|
+
* - Encryption keys, signing secrets
|
|
157
|
+
* - OAuth client secrets
|
|
158
|
+
* - Any credential material
|
|
159
|
+
*
|
|
160
|
+
* ## Use Cases for plaintext = true:
|
|
161
|
+
* - Public configuration values
|
|
162
|
+
* - Feature flags
|
|
163
|
+
* - API endpoints (URLs without credentials)
|
|
164
|
+
* - User IDs, tenant IDs, organization IDs
|
|
165
|
+
* - Public identifiers
|
|
166
|
+
*
|
|
167
|
+
* ## Security Best Practices
|
|
168
|
+
*
|
|
169
|
+
* ALWAYS leave plaintext = false (default) for:
|
|
170
|
+
* - Anything that grants access or authorization
|
|
171
|
+
* - Anything that could be used to impersonate a user or service
|
|
172
|
+
* - Any sensitive user-provided data
|
|
173
|
+
*
|
|
174
|
+
* Only set plaintext = true when the value contains non-sensitive
|
|
175
|
+
* user-provided information.
|
|
176
|
+
*
|
|
177
|
+
* Default: false (variables are secrets by default)
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: bool plaintext = 3;
|
|
180
|
+
*/
|
|
181
|
+
plaintext?: boolean;
|
|
54
182
|
};
|
|
55
183
|
/**
|
|
56
184
|
* Describes the message mochabugapis.adapt.plugins.v1.VariableDefinition.
|
|
57
185
|
* Use `create(VariableDefinitionSchema)` to create a new message.
|
|
58
186
|
*/
|
|
59
|
-
export declare const VariableDefinitionSchema: GenMessage<VariableDefinition,
|
|
187
|
+
export declare const VariableDefinitionSchema: GenMessage<VariableDefinition, {
|
|
188
|
+
jsonType: VariableDefinitionJson;
|
|
189
|
+
}>;
|
|
60
190
|
//# sourceMappingURL=variable_service_pb.d.ts.map
|
|
@@ -1 +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,
|
|
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,OACoY,CAAC;AAEvc;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kDAAkD,CAAC,GAAG;IAC7F;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,kBAAkB,EAAE;IAAC,QAAQ,EAAE,sBAAsB,CAAA;CAAC,CACnC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/
|
|
2
|
-
import type { ServiceBinding, ServiceBindingJson } from "./service_binding_pb";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
3
2
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
3
|
/**
|
|
5
4
|
* Describes the file mochabugapis/adapt/plugins/v1/vertex.proto.
|
|
@@ -49,11 +48,11 @@ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
|
|
|
49
48
|
*/
|
|
50
49
|
logo?: string;
|
|
51
50
|
/**
|
|
52
|
-
* '
|
|
51
|
+
* 'capabilities' specifies the capabilities of the vertex
|
|
53
52
|
*
|
|
54
|
-
* @generated from field: mochabugapis.adapt.plugins.v1.
|
|
53
|
+
* @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
|
|
55
54
|
*/
|
|
56
|
-
|
|
55
|
+
capabilities: Capability[];
|
|
57
56
|
/**
|
|
58
57
|
* 'config' is an field that contains a Unix file path.
|
|
59
58
|
* This can be any type of file, this is only intepreted for the vertex itself
|
|
@@ -73,19 +72,34 @@ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
|
|
|
73
72
|
*/
|
|
74
73
|
metadata: string;
|
|
75
74
|
/**
|
|
76
|
-
* '
|
|
77
|
-
* the vertex has a configurator
|
|
75
|
+
* 'user_services' are vertex-level services configured per vertex instance.
|
|
78
76
|
*
|
|
79
|
-
*
|
|
77
|
+
* This is a string array where each string directly references a ServiceDefinition by its name
|
|
78
|
+
* from Manifest.service_definitions. These services are configured by end users for each
|
|
79
|
+
* specific vertex instance in their workflow.
|
|
80
|
+
*
|
|
81
|
+
* The `optional` field in the ServiceDefinition controls whether configuration is required:
|
|
82
|
+
* - If ServiceDefinition.optional = false (default): User MUST configure this service
|
|
83
|
+
* - If ServiceDefinition.optional = true: User MAY skip configuring this service
|
|
84
|
+
*
|
|
85
|
+
* Example:
|
|
86
|
+
* service_definitions: [
|
|
87
|
+
* { name: "api_key", variable: {...} },
|
|
88
|
+
* { name: "webhook_url", variable: {...}, optional: true }
|
|
89
|
+
* ]
|
|
90
|
+
* user_services: ["api_key", "webhook_url"]
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: repeated string user_services = 8;
|
|
80
93
|
*/
|
|
81
|
-
|
|
94
|
+
userServices: string[];
|
|
82
95
|
/**
|
|
83
|
-
* '
|
|
84
|
-
*
|
|
96
|
+
* 'deprecated' is a boolean that indicates if the vertex is deprecated
|
|
97
|
+
* this means that it will be removed in the next major version
|
|
98
|
+
* and should be migrated asap
|
|
85
99
|
*
|
|
86
|
-
* @generated from field:
|
|
100
|
+
* @generated from field: optional bool deprecated = 9;
|
|
87
101
|
*/
|
|
88
|
-
|
|
102
|
+
deprecated?: boolean;
|
|
89
103
|
};
|
|
90
104
|
/**
|
|
91
105
|
* Vertex represents a graph vertex that defines a plugin.
|
|
@@ -131,11 +145,11 @@ export type VertexJson = {
|
|
|
131
145
|
*/
|
|
132
146
|
logo?: string;
|
|
133
147
|
/**
|
|
134
|
-
* '
|
|
148
|
+
* 'capabilities' specifies the capabilities of the vertex
|
|
135
149
|
*
|
|
136
|
-
* @generated from field: mochabugapis.adapt.plugins.v1.
|
|
150
|
+
* @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
|
|
137
151
|
*/
|
|
138
|
-
|
|
152
|
+
capabilities?: CapabilityJson[];
|
|
139
153
|
/**
|
|
140
154
|
* 'config' is an field that contains a Unix file path.
|
|
141
155
|
* This can be any type of file, this is only intepreted for the vertex itself
|
|
@@ -155,78 +169,101 @@ export type VertexJson = {
|
|
|
155
169
|
*/
|
|
156
170
|
metadata?: string;
|
|
157
171
|
/**
|
|
158
|
-
* '
|
|
159
|
-
*
|
|
172
|
+
* 'user_services' are vertex-level services configured per vertex instance.
|
|
173
|
+
*
|
|
174
|
+
* This is a string array where each string directly references a ServiceDefinition by its name
|
|
175
|
+
* from Manifest.service_definitions. These services are configured by end users for each
|
|
176
|
+
* specific vertex instance in their workflow.
|
|
177
|
+
*
|
|
178
|
+
* The `optional` field in the ServiceDefinition controls whether configuration is required:
|
|
179
|
+
* - If ServiceDefinition.optional = false (default): User MUST configure this service
|
|
180
|
+
* - If ServiceDefinition.optional = true: User MAY skip configuring this service
|
|
181
|
+
*
|
|
182
|
+
* Example:
|
|
183
|
+
* service_definitions: [
|
|
184
|
+
* { name: "api_key", variable: {...} },
|
|
185
|
+
* { name: "webhook_url", variable: {...}, optional: true }
|
|
186
|
+
* ]
|
|
187
|
+
* user_services: ["api_key", "webhook_url"]
|
|
160
188
|
*
|
|
161
|
-
* @generated from field:
|
|
189
|
+
* @generated from field: repeated string user_services = 8;
|
|
162
190
|
*/
|
|
163
|
-
|
|
191
|
+
userServices?: string[];
|
|
164
192
|
/**
|
|
165
|
-
* '
|
|
166
|
-
*
|
|
193
|
+
* 'deprecated' is a boolean that indicates if the vertex is deprecated
|
|
194
|
+
* this means that it will be removed in the next major version
|
|
195
|
+
* and should be migrated asap
|
|
167
196
|
*
|
|
168
|
-
* @generated from field:
|
|
197
|
+
* @generated from field: optional bool deprecated = 9;
|
|
169
198
|
*/
|
|
170
|
-
|
|
199
|
+
deprecated?: boolean;
|
|
171
200
|
};
|
|
172
201
|
/**
|
|
173
202
|
* Describes the message mochabugapis.adapt.plugins.v1.Vertex.
|
|
174
203
|
* Use `create(VertexSchema)` to create a new message.
|
|
175
204
|
*/
|
|
176
|
-
export declare const VertexSchema: GenMessage<Vertex,
|
|
205
|
+
export declare const VertexSchema: GenMessage<Vertex, {
|
|
206
|
+
jsonType: VertexJson;
|
|
207
|
+
}>;
|
|
177
208
|
/**
|
|
178
|
-
*
|
|
209
|
+
* The capabilities of a vertex defines how the vertex is interracted with
|
|
210
|
+
* If the vertex has the cron capabilitiy, then a cron-scheduler will call the
|
|
211
|
+
* cron endpoint periodically until the vertex has finished or stopped
|
|
212
|
+
* If the vertex has external browser capabiltity, there will be an external endpoint
|
|
213
|
+
* where a third-party can communicate with the vertex
|
|
214
|
+
* If the vertex has a configurator, then the vertex will be able to be configured dynamically
|
|
179
215
|
*
|
|
180
|
-
* @generated from enum mochabugapis.adapt.plugins.v1.
|
|
216
|
+
* @generated from enum mochabugapis.adapt.plugins.v1.Capability
|
|
181
217
|
*/
|
|
182
|
-
export declare enum
|
|
218
|
+
export declare enum Capability {
|
|
183
219
|
/**
|
|
184
|
-
* Unspecified
|
|
220
|
+
* Unspecified capability (default value, should not be used).
|
|
185
221
|
*
|
|
186
|
-
* @generated from enum value:
|
|
222
|
+
* @generated from enum value: CAPABILITY_UNSPECIFIED = 0;
|
|
187
223
|
*/
|
|
188
224
|
UNSPECIFIED = 0,
|
|
189
225
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
226
|
+
* Cron capability, indicating that the vertex can be triggered at specific
|
|
227
|
+
* intervals.
|
|
192
228
|
*
|
|
193
|
-
* @generated from enum value:
|
|
229
|
+
* @generated from enum value: CAPABILITY_CRON = 1;
|
|
194
230
|
*/
|
|
195
|
-
|
|
231
|
+
CRON = 1,
|
|
196
232
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
* Security implications: be cautious about potentially sensitive data
|
|
200
|
-
* exposure.
|
|
233
|
+
* The external capability, indicating that the vertex can be accessed via a
|
|
234
|
+
* publicly routable address.
|
|
201
235
|
*
|
|
202
|
-
* @generated from enum value:
|
|
236
|
+
* @generated from enum value: CAPABILITY_EXTERNAL = 2;
|
|
203
237
|
*/
|
|
204
|
-
|
|
238
|
+
EXTERNAL = 2,
|
|
205
239
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
240
|
+
* Configurator capability, indicating that the vertex can be configured
|
|
241
|
+
* dynamically by a vertex-defined interface.
|
|
208
242
|
*
|
|
209
|
-
* @generated from enum value:
|
|
243
|
+
* @generated from enum value: CAPABILITY_CONFIGURATOR = 3;
|
|
210
244
|
*/
|
|
211
|
-
|
|
245
|
+
CONFIGURATOR = 3,
|
|
212
246
|
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* Security implications: be cautious about exposing sensitive data or
|
|
216
|
-
* functionality.
|
|
247
|
+
* Browser capability, indicating that the vertex can be accessed via a
|
|
248
|
+
* browser context.
|
|
217
249
|
*
|
|
218
|
-
* @generated from enum value:
|
|
250
|
+
* @generated from enum value: CAPABILITY_BROWSER = 4;
|
|
219
251
|
*/
|
|
220
|
-
|
|
252
|
+
BROWSER = 4
|
|
221
253
|
}
|
|
222
254
|
/**
|
|
223
|
-
*
|
|
255
|
+
* The capabilities of a vertex defines how the vertex is interracted with
|
|
256
|
+
* If the vertex has the cron capabilitiy, then a cron-scheduler will call the
|
|
257
|
+
* cron endpoint periodically until the vertex has finished or stopped
|
|
258
|
+
* If the vertex has external browser capabiltity, there will be an external endpoint
|
|
259
|
+
* where a third-party can communicate with the vertex
|
|
260
|
+
* If the vertex has a configurator, then the vertex will be able to be configured dynamically
|
|
224
261
|
*
|
|
225
|
-
* @generated from enum mochabugapis.adapt.plugins.v1.
|
|
262
|
+
* @generated from enum mochabugapis.adapt.plugins.v1.Capability
|
|
226
263
|
*/
|
|
227
|
-
export type
|
|
264
|
+
export type CapabilityJson = "CAPABILITY_UNSPECIFIED" | "CAPABILITY_CRON" | "CAPABILITY_EXTERNAL" | "CAPABILITY_CONFIGURATOR" | "CAPABILITY_BROWSER";
|
|
228
265
|
/**
|
|
229
|
-
* Describes the enum mochabugapis.adapt.plugins.v1.
|
|
266
|
+
* Describes the enum mochabugapis.adapt.plugins.v1.Capability.
|
|
230
267
|
*/
|
|
231
|
-
export declare const
|
|
268
|
+
export declare const CapabilitySchema: GenEnum<Capability, CapabilityJson>;
|
|
232
269
|
//# sourceMappingURL=vertex_pb.d.ts.map
|
|
@@ -1 +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,
|
|
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,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,OACw+B,CAAC;AAEjiC;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,sCAAsC,CAAC,GAAG;IACrE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,YAAY,EAAE,UAAU,EAAE,CAAC;IAE3B;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAEhC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,EAAE;IAAC,QAAQ,EAAE,UAAU,CAAA;CAAC,CACT,CAAC;AAE5D;;;;;;;;;GASG;AACH,oBAAY,UAAU;IACpB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,QAAQ,IAAI;IAEZ;;;;;OAKG;IACH,YAAY,IAAI;IAEhB;;;;;OAKG;IACH,OAAO,IAAI;CACZ;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,yBAAyB,GAAG,oBAAoB,CAAC;AAErJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,UAAU,EAAE,cAAc,CACT,CAAC"}
|
package/bin/index.d.ts
CHANGED
|
@@ -3,5 +3,10 @@ interface ReadFilesResult {
|
|
|
3
3
|
executorPath: string;
|
|
4
4
|
}
|
|
5
5
|
export declare function readConfiguratorAndExecutor(dist: string): Promise<ReadFilesResult>;
|
|
6
|
+
interface WasmFilesResult {
|
|
7
|
+
configModules: string[];
|
|
8
|
+
execModules: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function readWasmModules(dist: string): Promise<WasmFilesResult>;
|
|
6
11
|
export {};
|
|
7
12
|
//# sourceMappingURL=index.d.ts.map
|
package/bin/index.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,CA8B1B;AAED,UAAU,eAAe;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AACD,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAgB5E"}
|