@mochabug/adapt-sdk 0.1.1

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 (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +873 -0
  3. package/dist/api.d.ts +1605 -0
  4. package/dist/api.d.ts.map +1 -0
  5. package/dist/api.spec.d.ts +2 -0
  6. package/dist/api.spec.d.ts.map +1 -0
  7. package/dist/cjs/api.cjs +2 -0
  8. package/dist/cjs/api.cjs.map +7 -0
  9. package/dist/cjs/frontend.cjs +2 -0
  10. package/dist/cjs/frontend.cjs.map +7 -0
  11. package/dist/cjs/mime.cjs +2 -0
  12. package/dist/cjs/mime.cjs.map +7 -0
  13. package/dist/cjs/router.cjs +2 -0
  14. package/dist/cjs/router.cjs.map +7 -0
  15. package/dist/cjs/types.cjs +2 -0
  16. package/dist/cjs/types.cjs.map +7 -0
  17. package/dist/esm/api.mjs +2 -0
  18. package/dist/esm/api.mjs.map +7 -0
  19. package/dist/esm/frontend.mjs +2 -0
  20. package/dist/esm/frontend.mjs.map +7 -0
  21. package/dist/esm/mime.mjs +2 -0
  22. package/dist/esm/mime.mjs.map +7 -0
  23. package/dist/esm/router.mjs +2 -0
  24. package/dist/esm/router.mjs.map +7 -0
  25. package/dist/esm/types.mjs +1 -0
  26. package/dist/esm/types.mjs.map +7 -0
  27. package/dist/frontend.d.ts +10 -0
  28. package/dist/frontend.d.ts.map +1 -0
  29. package/dist/genproto/buf/validate/validate_pb.d.ts +8491 -0
  30. package/dist/genproto/buf/validate/validate_pb.d.ts.map +1 -0
  31. package/dist/genproto/google/api/annotations_pb.d.ts +14 -0
  32. package/dist/genproto/google/api/annotations_pb.d.ts.map +1 -0
  33. package/dist/genproto/google/api/client_pb.d.ts +1432 -0
  34. package/dist/genproto/google/api/client_pb.d.ts.map +1 -0
  35. package/dist/genproto/google/api/http_pb.d.ts +843 -0
  36. package/dist/genproto/google/api/http_pb.d.ts.map +1 -0
  37. package/dist/genproto/google/api/launch_stage_pb.d.ts +94 -0
  38. package/dist/genproto/google/api/launch_stage_pb.d.ts.map +1 -0
  39. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +1006 -0
  40. package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -0
  41. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts +77 -0
  42. package/dist/genproto/mochabugapis/adapt/graph/exchange_pb.d.ts.map +1 -0
  43. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts +401 -0
  44. package/dist/genproto/mochabugapis/adapt/graph/jtd_schema_pb.d.ts.map +1 -0
  45. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts +69 -0
  46. package/dist/genproto/mochabugapis/adapt/graph/receiver_pb.d.ts.map +1 -0
  47. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts +430 -0
  48. package/dist/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -0
  49. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts +198 -0
  50. package/dist/genproto/mochabugapis/adapt/graph/signal_data_pb.d.ts.map +1 -0
  51. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts +161 -0
  52. package/dist/genproto/mochabugapis/adapt/graph/signal_descriptor_pb.d.ts.map +1 -0
  53. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts +305 -0
  54. package/dist/genproto/mochabugapis/adapt/graph/signal_format_pb.d.ts.map +1 -0
  55. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +77 -0
  56. package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts.map +1 -0
  57. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +120 -0
  58. package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts.map +1 -0
  59. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts +99 -0
  60. package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -0
  61. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +347 -0
  62. package/dist/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  63. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +64 -0
  64. package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -0
  65. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1282 -0
  66. package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  67. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +388 -0
  68. package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -0
  69. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +805 -0
  70. package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -0
  71. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +238 -0
  72. package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -0
  73. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +241 -0
  74. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -0
  75. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  76. package/dist/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  77. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +190 -0
  78. package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -0
  79. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +269 -0
  80. package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -0
  81. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +339 -0
  82. package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts.map +1 -0
  83. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +2721 -0
  84. package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts.map +1 -0
  85. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts +872 -0
  86. package/dist/genproto/mochabugapis/adapt/runtime/v1/store_pb.d.ts.map +1 -0
  87. package/dist/grpcweb.d.ts +8 -0
  88. package/dist/grpcweb.d.ts.map +1 -0
  89. package/dist/mime.d.ts +11 -0
  90. package/dist/mime.d.ts.map +1 -0
  91. package/dist/router.d.ts +503 -0
  92. package/dist/router.d.ts.map +1 -0
  93. package/dist/router.spec.d.ts +2 -0
  94. package/dist/router.spec.d.ts.map +1 -0
  95. package/dist/signal-api.spec.d.ts +17 -0
  96. package/dist/signal-api.spec.d.ts.map +1 -0
  97. package/dist/types.d.ts +149 -0
  98. package/dist/types.d.ts.map +1 -0
  99. package/package.json +80 -0
@@ -0,0 +1,190 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
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
+ * ## 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.
51
+ *
52
+ * @generated from field: optional google.protobuf.Value default = 2;
53
+ */
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;
95
+ };
96
+ /**
97
+ * A definition of a JSON variable
98
+ *
99
+ * This message represents a variable used within the hosting platform.
100
+ * Variables are essential for configuring applications and services hosted on the platform.
101
+ * They store values that can be accessed by the application or service during runtime.
102
+ *
103
+ * @generated from message mochabugapis.adapt.plugins.v1.VariableDefinition
104
+ */
105
+ export type VariableDefinitionJson = {
106
+ /**
107
+ * The schema that the variable must adhere to
108
+ *
109
+ * @generated from field: mochabugapis.adapt.graph.JTDSchema schema = 1;
110
+ */
111
+ schema?: JTDSchemaJson;
112
+ /**
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.
138
+ *
139
+ * @generated from field: optional google.protobuf.Value default = 2;
140
+ */
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;
182
+ };
183
+ /**
184
+ * Describes the message mochabugapis.adapt.plugins.v1.VariableDefinition.
185
+ * Use `create(VariableDefinitionSchema)` to create a new message.
186
+ */
187
+ export declare const VariableDefinitionSchema: GenMessage<VariableDefinition, {
188
+ jsonType: VariableDefinitionJson;
189
+ }>;
190
+ //# 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,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"}
@@ -0,0 +1,269 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mochabugapis/adapt/plugins/v1/vertex.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_plugins_v1_vertex: GenFile;
7
+ /**
8
+ * Vertex represents a graph vertex that defines a plugin.
9
+ * Note: Be aware of potential security implications when dealing with
10
+ * user-provided data, such as file paths, and ensure proper input validation
11
+ * and sanitization.
12
+ *
13
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
14
+ */
15
+ export type Vertex = Message<"mochabugapis.adapt.plugins.v1.Vertex"> & {
16
+ /**
17
+ * 'name' represents the vertex name.
18
+ *
19
+ * @generated from field: string name = 1;
20
+ */
21
+ name: string;
22
+ /**
23
+ * 'label' is a human-friendly label displayed in the UI.
24
+ *
25
+ * @generated from field: string label = 2;
26
+ */
27
+ label: string;
28
+ /**
29
+ * 'description' is a human-friendly short description of the vertex displayed
30
+ * in UI.
31
+ *
32
+ * @generated from field: optional string description = 3;
33
+ */
34
+ description?: string;
35
+ /**
36
+ * 'logo' is the file path to the vertex logo, which will be resized to a
37
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
38
+ * sources to avoid security risks.
39
+ * - Supported file formats:
40
+ * - GIF: .gif
41
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
42
+ * - PNG: .png
43
+ * - SVG: .svg
44
+ * - WEBP: .webp
45
+ * - AVIF: .avif
46
+ *
47
+ * @generated from field: optional string logo = 4;
48
+ */
49
+ logo?: string;
50
+ /**
51
+ * 'capabilities' specifies the capabilities of the vertex
52
+ *
53
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
54
+ */
55
+ capabilities: Capability[];
56
+ /**
57
+ * 'config' is an field that contains a Unix file path.
58
+ * This can be any type of file, this is only intepreted for the vertex itself
59
+ * Restrictions:
60
+ *
61
+ *
62
+ * @generated from field: optional string config = 6;
63
+ */
64
+ config?: string;
65
+ /**
66
+ * 'metadata' is an field that contains a Unix file path.
67
+ * This determines which receivers, transmitters etc... the vertex has to begin with
68
+ * Restrictions:
69
+ *
70
+ *
71
+ * @generated from field: string metadata = 7;
72
+ */
73
+ metadata: string;
74
+ /**
75
+ * 'user_services' are vertex-level services configured per vertex instance.
76
+ *
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;
93
+ */
94
+ userServices: string[];
95
+ /**
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
99
+ *
100
+ * @generated from field: optional bool deprecated = 9;
101
+ */
102
+ deprecated?: boolean;
103
+ };
104
+ /**
105
+ * Vertex represents a graph vertex that defines a plugin.
106
+ * Note: Be aware of potential security implications when dealing with
107
+ * user-provided data, such as file paths, and ensure proper input validation
108
+ * and sanitization.
109
+ *
110
+ * @generated from message mochabugapis.adapt.plugins.v1.Vertex
111
+ */
112
+ export type VertexJson = {
113
+ /**
114
+ * 'name' represents the vertex name.
115
+ *
116
+ * @generated from field: string name = 1;
117
+ */
118
+ name?: string;
119
+ /**
120
+ * 'label' is a human-friendly label displayed in the UI.
121
+ *
122
+ * @generated from field: string label = 2;
123
+ */
124
+ label?: string;
125
+ /**
126
+ * 'description' is a human-friendly short description of the vertex displayed
127
+ * in UI.
128
+ *
129
+ * @generated from field: optional string description = 3;
130
+ */
131
+ description?: string;
132
+ /**
133
+ * 'logo' is the file path to the vertex logo, which will be resized to a
134
+ * maximum of 40x40 pixels. Ensure that the logo files are from trusted
135
+ * sources to avoid security risks.
136
+ * - Supported file formats:
137
+ * - GIF: .gif
138
+ * - JPEG: .jpg, .jpeg, .jfif, .pjpeg, .pjp
139
+ * - PNG: .png
140
+ * - SVG: .svg
141
+ * - WEBP: .webp
142
+ * - AVIF: .avif
143
+ *
144
+ * @generated from field: optional string logo = 4;
145
+ */
146
+ logo?: string;
147
+ /**
148
+ * 'capabilities' specifies the capabilities of the vertex
149
+ *
150
+ * @generated from field: repeated mochabugapis.adapt.plugins.v1.Capability capabilities = 5;
151
+ */
152
+ capabilities?: CapabilityJson[];
153
+ /**
154
+ * 'config' is an field that contains a Unix file path.
155
+ * This can be any type of file, this is only intepreted for the vertex itself
156
+ * Restrictions:
157
+ *
158
+ *
159
+ * @generated from field: optional string config = 6;
160
+ */
161
+ config?: string;
162
+ /**
163
+ * 'metadata' is an field that contains a Unix file path.
164
+ * This determines which receivers, transmitters etc... the vertex has to begin with
165
+ * Restrictions:
166
+ *
167
+ *
168
+ * @generated from field: string metadata = 7;
169
+ */
170
+ metadata?: string;
171
+ /**
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"]
188
+ *
189
+ * @generated from field: repeated string user_services = 8;
190
+ */
191
+ userServices?: string[];
192
+ /**
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
196
+ *
197
+ * @generated from field: optional bool deprecated = 9;
198
+ */
199
+ deprecated?: boolean;
200
+ };
201
+ /**
202
+ * Describes the message mochabugapis.adapt.plugins.v1.Vertex.
203
+ * Use `create(VertexSchema)` to create a new message.
204
+ */
205
+ export declare const VertexSchema: GenMessage<Vertex, {
206
+ jsonType: VertexJson;
207
+ }>;
208
+ /**
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
215
+ *
216
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
217
+ */
218
+ export declare enum Capability {
219
+ /**
220
+ * Unspecified capability (default value, should not be used).
221
+ *
222
+ * @generated from enum value: CAPABILITY_UNSPECIFIED = 0;
223
+ */
224
+ UNSPECIFIED = 0,
225
+ /**
226
+ * Cron capability, indicating that the vertex can be triggered at specific
227
+ * intervals.
228
+ *
229
+ * @generated from enum value: CAPABILITY_CRON = 1;
230
+ */
231
+ CRON = 1,
232
+ /**
233
+ * The external capability, indicating that the vertex can be accessed via a
234
+ * publicly routable address.
235
+ *
236
+ * @generated from enum value: CAPABILITY_EXTERNAL = 2;
237
+ */
238
+ EXTERNAL = 2,
239
+ /**
240
+ * Configurator capability, indicating that the vertex can be configured
241
+ * dynamically by a vertex-defined interface.
242
+ *
243
+ * @generated from enum value: CAPABILITY_CONFIGURATOR = 3;
244
+ */
245
+ CONFIGURATOR = 3,
246
+ /**
247
+ * Browser capability, indicating that the vertex can be accessed via a
248
+ * browser context.
249
+ *
250
+ * @generated from enum value: CAPABILITY_BROWSER = 4;
251
+ */
252
+ BROWSER = 4
253
+ }
254
+ /**
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
261
+ *
262
+ * @generated from enum mochabugapis.adapt.plugins.v1.Capability
263
+ */
264
+ export type CapabilityJson = "CAPABILITY_UNSPECIFIED" | "CAPABILITY_CRON" | "CAPABILITY_EXTERNAL" | "CAPABILITY_CONFIGURATOR" | "CAPABILITY_BROWSER";
265
+ /**
266
+ * Describes the enum mochabugapis.adapt.plugins.v1.Capability.
267
+ */
268
+ export declare const CapabilitySchema: GenEnum<Capability, CapabilityJson>;
269
+ //# 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,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"}