@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.
Files changed (93) hide show
  1. package/README.md +50 -45
  2. package/assets/build.js +1 -1
  3. package/assets/configurator.main.tsx +8 -0
  4. package/assets/configurator_browser_none.main.ts +30 -0
  5. package/assets/configurator_browser_none.ssg.ts +64 -0
  6. package/assets/configurator_none.ts +14 -103
  7. package/assets/configurator_react.tsx +8 -8
  8. package/assets/executor.html +1 -1
  9. package/assets/executor.main.tsx +8 -0
  10. package/assets/executor_action.ts +4 -8
  11. package/assets/{executor_cron_trigger.ts → executor_action_cron.ts} +4 -8
  12. package/assets/executor_browser_none.main.ts +25 -0
  13. package/assets/executor_browser_none.ssg.ts +42 -0
  14. package/assets/executor_browser_none.ts +15 -83
  15. package/assets/executor_browser_none_cron.ts +55 -0
  16. package/assets/executor_browser_react.tsx +9 -13
  17. package/assets/executor_browser_react_cron.tsx +55 -0
  18. package/assets/{executor_external_trigger.ts → executor_external.ts} +8 -12
  19. package/assets/executor_external_cron.ts +45 -0
  20. package/assets/tsconf.json +1 -2
  21. package/bin/add.d.ts.map +1 -1
  22. package/bin/genproto/buf/validate/validate_pb.d.ts +1245 -547
  23. package/bin/genproto/buf/validate/validate_pb.d.ts.map +1 -1
  24. package/bin/genproto/google/api/annotations_pb.d.ts +1 -1
  25. package/bin/genproto/google/api/client_pb.d.ts +46 -16
  26. package/bin/genproto/google/api/client_pb.d.ts.map +1 -1
  27. package/bin/genproto/google/api/http_pb.d.ts +10 -4
  28. package/bin/genproto/google/api/http_pb.d.ts.map +1 -1
  29. package/bin/genproto/google/api/launch_stage_pb.d.ts +1 -1
  30. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +4 -2
  31. package/bin/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -1
  32. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +192 -16
  33. package/bin/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -1
  34. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +4 -2
  35. package/bin/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -1
  36. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +309 -53
  37. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
  38. package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
  39. package/bin/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
  40. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +101 -27
  41. package/bin/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -1
  42. package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
  43. package/bin/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
  44. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +16 -2
  45. package/bin/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -1
  46. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +53 -8
  47. package/bin/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -1
  48. package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts +353 -0
  49. package/bin/genproto/mochabugapis/adapt/graph/user_defined_exchange_options_pb.d.ts.map +1 -0
  50. package/bin/genproto/mochabugapis/adapt/graph/{vertex_config_pb.d.ts → vertex_metadata_pb.d.ts} +28 -23
  51. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  52. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
  53. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  54. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +4 -2
  55. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
  56. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  57. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  58. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +188 -23
  59. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
  60. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +129 -39
  61. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
  62. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +50 -6
  63. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
  64. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +145 -20
  65. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
  66. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  67. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  68. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +134 -4
  69. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
  70. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +92 -55
  71. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
  72. package/bin/index.d.ts +5 -0
  73. package/bin/index.d.ts.map +1 -1
  74. package/bin/index.js +709 -652
  75. package/bin/index.js.map +4 -4
  76. package/bin/init.d.ts.map +1 -1
  77. package/bin/oauth2.d.ts +1 -1
  78. package/bin/oauth2.d.ts.map +1 -1
  79. package/bin/publish.d.ts +4 -0
  80. package/bin/publish.d.ts.map +1 -1
  81. package/bin/utils.d.ts +4 -4
  82. package/bin/utils.d.ts.map +1 -1
  83. package/bin/vertices.d.ts +2 -2
  84. package/bin/vertices.d.ts.map +1 -1
  85. package/package.json +23 -18
  86. package/assets/license.md +0 -15
  87. package/bin/genproto/mochabugapis/adapt/graph/vertex_config_pb.d.ts.map +0 -1
  88. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +0 -92
  89. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +0 -1
  90. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +0 -134
  91. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +0 -1
  92. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +0 -159
  93. 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/codegenv1";
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, VariableDefinitionJson>;
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,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"}
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/codegenv1";
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
- * 'type' specifies the type of the vertex.
51
+ * 'capabilities' specifies the capabilities of the vertex
53
52
  *
54
- * @generated from field: mochabugapis.adapt.plugins.v1.Vertex.VertexType type = 5;
53
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
55
54
  */
56
- type: Vertex_VertexType;
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
- * 'configurator' is a field to indicate whether or not
77
- * the vertex has a configurator
75
+ * 'user_services' are vertex-level services configured per vertex instance.
78
76
  *
79
- * @generated from field: bool configurator = 8;
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
- configurator: boolean;
94
+ userServices: string[];
82
95
  /**
83
- * 'user_services' are the services that the user is defining
84
- * and consumed by a particular instance of the vertex
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: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 9;
100
+ * @generated from field: optional bool deprecated = 9;
87
101
  */
88
- userServices: ServiceBinding[];
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
- * 'type' specifies the type of the vertex.
148
+ * 'capabilities' specifies the capabilities of the vertex
135
149
  *
136
- * @generated from field: mochabugapis.adapt.plugins.v1.Vertex.VertexType type = 5;
150
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
137
151
  */
138
- type?: Vertex_VertexTypeJson;
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
- * 'configurator' is a field to indicate whether or not
159
- * the vertex has a configurator
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: bool configurator = 8;
189
+ * @generated from field: repeated string user_services = 8;
162
190
  */
163
- configurator?: boolean;
191
+ userServices?: string[];
164
192
  /**
165
- * 'user_services' are the services that the user is defining
166
- * and consumed by a particular instance of the vertex
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: repeated mochabugapis.adapt.plugins.v1.ServiceBinding user_services = 9;
197
+ * @generated from field: optional bool deprecated = 9;
169
198
  */
170
- userServices?: ServiceBindingJson[];
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, VertexJson>;
205
+ export declare const VertexSchema: GenMessage<Vertex, {
206
+ jsonType: VertexJson;
207
+ }>;
177
208
  /**
178
- * VertexType represents the type of a vertex.
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.Vertex.VertexType
216
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
181
217
  */
182
- export declare enum Vertex_VertexType {
218
+ export declare enum Capability {
183
219
  /**
184
- * Unspecified type (default value, should not be used).
220
+ * Unspecified capability (default value, should not be used).
185
221
  *
186
- * @generated from enum value: VERTEX_TYPE_UNSPECIFIED = 0;
222
+ * @generated from enum value: CAPABILITY_UNSPECIFIED = 0;
187
223
  */
188
224
  UNSPECIFIED = 0,
189
225
  /**
190
- * Action type, available in all contexts and not exposed to the outside
191
- * world. This type has a lower security risk.
226
+ * Cron capability, indicating that the vertex can be triggered at specific
227
+ * intervals.
192
228
  *
193
- * @generated from enum value: VERTEX_TYPE_ACTION = 1;
229
+ * @generated from enum value: CAPABILITY_CRON = 1;
194
230
  */
195
- ACTION = 1,
231
+ CRON = 1,
196
232
  /**
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.
233
+ * The external capability, indicating that the vertex can be accessed via a
234
+ * publicly routable address.
201
235
  *
202
- * @generated from enum value: VERTEX_TYPE_BROWSER = 2;
236
+ * @generated from enum value: CAPABILITY_EXTERNAL = 2;
203
237
  */
204
- BROWSER = 2,
238
+ EXTERNAL = 2,
205
239
  /**
206
- * CronTrigger type, available only in a trigger context.
207
- * Triggered at specific intervals.
240
+ * Configurator capability, indicating that the vertex can be configured
241
+ * dynamically by a vertex-defined interface.
208
242
  *
209
- * @generated from enum value: VERTEX_TYPE_CRON_TRIGGER = 3;
243
+ * @generated from enum value: CAPABILITY_CONFIGURATOR = 3;
210
244
  */
211
- CRON_TRIGGER = 3,
245
+ CONFIGURATOR = 3,
212
246
  /**
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.
247
+ * Browser capability, indicating that the vertex can be accessed via a
248
+ * browser context.
217
249
  *
218
- * @generated from enum value: VERTEX_TYPE_EXTERNAL_TRIGGER = 4;
250
+ * @generated from enum value: CAPABILITY_BROWSER = 4;
219
251
  */
220
- EXTERNAL_TRIGGER = 4
252
+ BROWSER = 4
221
253
  }
222
254
  /**
223
- * VertexType represents the type of a vertex.
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.Vertex.VertexType
262
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
226
263
  */
227
- export type Vertex_VertexTypeJson = "VERTEX_TYPE_UNSPECIFIED" | "VERTEX_TYPE_ACTION" | "VERTEX_TYPE_BROWSER" | "VERTEX_TYPE_CRON_TRIGGER" | "VERTEX_TYPE_EXTERNAL_TRIGGER";
264
+ export type CapabilityJson = "CAPABILITY_UNSPECIFIED" | "CAPABILITY_CRON" | "CAPABILITY_EXTERNAL" | "CAPABILITY_CONFIGURATOR" | "CAPABILITY_BROWSER";
228
265
  /**
229
- * Describes the enum mochabugapis.adapt.plugins.v1.Vertex.VertexType.
266
+ * Describes the enum mochabugapis.adapt.plugins.v1.Capability.
230
267
  */
231
- export declare const Vertex_VertexTypeSchema: GenEnum<Vertex_VertexType, Vertex_VertexTypeJson>;
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,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,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,M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AAI,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
@@ -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,CA0B1B"}
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"}