@mochabug/adaptkit 1.0.0-rc.26 → 1.0.0-rc.27

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 (30) hide show
  1. package/bin/genproto/mochabugapis/adapt/graph/signal_binding_pb.d.ts.map +1 -1
  2. package/bin/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.d.ts.map +1 -1
  3. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +423 -0
  4. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -0
  5. package/bin/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts.map +1 -1
  6. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +1278 -0
  7. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -0
  8. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +184 -21
  9. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
  10. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +86 -2
  11. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
  12. package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts.map +1 -1
  13. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +141 -18
  14. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts.map +1 -1
  15. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +539 -0
  16. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +1 -0
  17. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +124 -2
  18. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
  19. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +36 -9
  20. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
  21. package/bin/index.js +41 -76
  22. package/bin/index.js.map +3 -3
  23. package/bin/utils.d.ts.map +1 -1
  24. package/package.json +6 -5
  25. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +0 -94
  26. package/bin/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts.map +0 -1
  27. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +0 -138
  28. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts.map +0 -1
  29. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +0 -151
  30. package/bin/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http_proxy_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/http_proxy_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,qDAAqD,EAAE,OACytF,CAAC;AAE9xF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,mDAAmD,CAAC,GAAG;IAC/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CAAC,EAAE,aAA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AAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+DG;IACH,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;CAC1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,EAAE;IAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAC,CACxB,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,+CAA+C,CAAC,GAAG;IACvF;;;;;;;OAOG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,EAAE;IAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAC,CACxB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { ServiceBinding, ServiceBindingJson } from "./service_binding_pb";
3
2
  import type { ServiceDefinition, ServiceDefinitionJson } from "./service_definition_pb";
4
3
  import type { Vertex, VertexJson } from "./vertex_pb";
5
4
  import type { Message } from "@bufbuild/protobuf";
@@ -10,8 +9,63 @@ export declare const file_mochabugapis_adapt_plugins_v1_manifest: GenFile;
10
9
  /**
11
10
  * Manifest describes a plugin and its properties.
12
11
  *
13
- * Security considerations: The platform ensures that secrets and certificates
14
- * are stored and transmitted securely.
12
+ * ## Architecture Overview
13
+ *
14
+ * A plugin consists of:
15
+ * 1. **Vertices**: The actual workflow nodes that users add to automation graphs
16
+ * 2. **Service Definitions**: Flat declarations of services (OAuth2, HTTP Proxy, Variables, Groups, OneOf)
17
+ * 3. **System Services**: String array referencing service definitions used at the plugin level
18
+ *
19
+ * ## Service Architecture
20
+ *
21
+ * **Service definitions are ALWAYS flat** - they exist at the top level of the manifest
22
+ * and are never nested within each other. This includes:
23
+ * - Oauth2Definition
24
+ * - HttpProxyDefinition
25
+ * - VariableDefinition
26
+ * - GroupedDefinition (references other flat definitions)
27
+ * - OneOfDefinition (references other flat definitions)
28
+ *
29
+ * **Services are referenced by name as strings**. Service lists are string arrays where each
30
+ * string must match a ServiceDefinition's `name`. Services exist at two levels:
31
+ * - `system_services`: Plugin-level services configured once for the entire plugin
32
+ * - `user_services` (in Vertex): Vertex-level services configured per vertex instance
33
+ *
34
+ * The `optional` field in ServiceDefinition controls whether a service must be configured:
35
+ * - `optional: false` (default): User MUST configure this service
36
+ * - `optional: true`: User MAY skip configuring this service
37
+ *
38
+ * ## Example Structure
39
+ *
40
+ * ```protobuf
41
+ * Manifest {
42
+ * name: "stripe_plugin"
43
+ * version: "1.0.0"
44
+ *
45
+ * // Flat service definitions at manifest level
46
+ * service_definitions: [
47
+ * { name: "stripe_oauth", oauth2: {...} },
48
+ * { name: "stripe_api", http_proxy: {...} },
49
+ * { name: "webhook_secret", variable: {...} }
50
+ * ]
51
+ *
52
+ * // System-level services (plugin-wide)
53
+ * // Each string references a service definition name
54
+ * system_services: ["stripe_oauth"]
55
+ *
56
+ * // Vertices with their own service references
57
+ * vertices: [
58
+ * {
59
+ * name: "CreatePayment",
60
+ * user_services: ["stripe_api", "webhook_secret"]
61
+ * }
62
+ * ]
63
+ * }
64
+ * ```
65
+ *
66
+ * ## Security Considerations
67
+ *
68
+ * The platform ensures that secrets and certificates are stored and transmitted securely.
15
69
  *
16
70
  * *** Plugin authors must also ensure that their implementations
17
71
  * handle sensitive data appropriately! ***
@@ -95,27 +149,109 @@ export type Manifest = Message<"mochabugapis.adapt.plugins.v1.Manifest"> & {
95
149
  */
96
150
  vertices: Vertex[];
97
151
  /**
98
- * 'service_definitions' are the actual definition of services that may be referenced
99
- * on either a system level, or user level at the vertices
152
+ * 'service_definitions' are flat service definitions that can be referenced by bindings.
153
+ *
154
+ * All service definitions exist at this top level - they are NEVER nested.
155
+ * Definitions can be referenced by:
156
+ * - system_services (plugin-level bindings)
157
+ * - user_services in vertices (vertex-level bindings)
158
+ *
159
+ * Each definition has a unique name used for referencing in bindings.
160
+ * Service types: OAuth2, HTTP Proxy, Variable, Group, OneOf.
100
161
  *
101
162
  * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceDefinition service_definitions = 12;
102
163
  */
103
164
  serviceDefinitions: ServiceDefinition[];
104
165
  /**
105
- * 'system_services' are the services that are available on a system level
106
- * that is, configured and used by the plugin for exclusive purposes
107
- * IMPORTANT: any binding referring to a grant-type CODE will be required
108
- * to have the same name as the system_definition and be required to be of service type
166
+ * 'system_services' are plugin-level services configured once for the entire plugin.
167
+ *
168
+ * System services are:
169
+ * - Configured by plugin administrators (via PostPluginSettings API)
170
+ * - Shared across all vertices in the plugin
171
+ * - Required to be configured before the plugin can be used (status = ACTIVE), unless marked optional
172
+ *
173
+ * This is a string array where each string directly references a ServiceDefinition by its name.
174
+ * Plugin code accesses these services using the referenced service name.
175
+ *
176
+ * The `optional` field in the ServiceDefinition controls whether configuration is required:
177
+ * - If ServiceDefinition.optional = false (default): MUST be configured
178
+ * - If ServiceDefinition.optional = true: MAY be skipped
179
+ *
180
+ * Example:
181
+ * service_definitions: [
182
+ * { name: "github_oauth", oauth2: {...} },
183
+ * { name: "analytics", oauth2: {...}, optional: true }
184
+ * ]
185
+ * system_services: ["github_oauth", "analytics"]
186
+ * Plugin code references: "github_oauth", "analytics"
187
+ *
188
+ * IMPORTANT: For OAuth2 CODE grant type services, the service definition name is used
189
+ * for callback URL generation.
109
190
  *
110
- * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding system_services = 13;
191
+ * @generated from field: repeated string system_services = 13;
111
192
  */
112
- systemServices: ServiceBinding[];
193
+ systemServices: string[];
113
194
  };
114
195
  /**
115
196
  * Manifest describes a plugin and its properties.
116
197
  *
117
- * Security considerations: The platform ensures that secrets and certificates
118
- * are stored and transmitted securely.
198
+ * ## Architecture Overview
199
+ *
200
+ * A plugin consists of:
201
+ * 1. **Vertices**: The actual workflow nodes that users add to automation graphs
202
+ * 2. **Service Definitions**: Flat declarations of services (OAuth2, HTTP Proxy, Variables, Groups, OneOf)
203
+ * 3. **System Services**: String array referencing service definitions used at the plugin level
204
+ *
205
+ * ## Service Architecture
206
+ *
207
+ * **Service definitions are ALWAYS flat** - they exist at the top level of the manifest
208
+ * and are never nested within each other. This includes:
209
+ * - Oauth2Definition
210
+ * - HttpProxyDefinition
211
+ * - VariableDefinition
212
+ * - GroupedDefinition (references other flat definitions)
213
+ * - OneOfDefinition (references other flat definitions)
214
+ *
215
+ * **Services are referenced by name as strings**. Service lists are string arrays where each
216
+ * string must match a ServiceDefinition's `name`. Services exist at two levels:
217
+ * - `system_services`: Plugin-level services configured once for the entire plugin
218
+ * - `user_services` (in Vertex): Vertex-level services configured per vertex instance
219
+ *
220
+ * The `optional` field in ServiceDefinition controls whether a service must be configured:
221
+ * - `optional: false` (default): User MUST configure this service
222
+ * - `optional: true`: User MAY skip configuring this service
223
+ *
224
+ * ## Example Structure
225
+ *
226
+ * ```protobuf
227
+ * Manifest {
228
+ * name: "stripe_plugin"
229
+ * version: "1.0.0"
230
+ *
231
+ * // Flat service definitions at manifest level
232
+ * service_definitions: [
233
+ * { name: "stripe_oauth", oauth2: {...} },
234
+ * { name: "stripe_api", http_proxy: {...} },
235
+ * { name: "webhook_secret", variable: {...} }
236
+ * ]
237
+ *
238
+ * // System-level services (plugin-wide)
239
+ * // Each string references a service definition name
240
+ * system_services: ["stripe_oauth"]
241
+ *
242
+ * // Vertices with their own service references
243
+ * vertices: [
244
+ * {
245
+ * name: "CreatePayment",
246
+ * user_services: ["stripe_api", "webhook_secret"]
247
+ * }
248
+ * ]
249
+ * }
250
+ * ```
251
+ *
252
+ * ## Security Considerations
253
+ *
254
+ * The platform ensures that secrets and certificates are stored and transmitted securely.
119
255
  *
120
256
  * *** Plugin authors must also ensure that their implementations
121
257
  * handle sensitive data appropriately! ***
@@ -199,21 +335,48 @@ export type ManifestJson = {
199
335
  */
200
336
  vertices?: VertexJson[];
201
337
  /**
202
- * 'service_definitions' are the actual definition of services that may be referenced
203
- * on either a system level, or user level at the vertices
338
+ * 'service_definitions' are flat service definitions that can be referenced by bindings.
339
+ *
340
+ * All service definitions exist at this top level - they are NEVER nested.
341
+ * Definitions can be referenced by:
342
+ * - system_services (plugin-level bindings)
343
+ * - user_services in vertices (vertex-level bindings)
344
+ *
345
+ * Each definition has a unique name used for referencing in bindings.
346
+ * Service types: OAuth2, HTTP Proxy, Variable, Group, OneOf.
204
347
  *
205
348
  * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceDefinition service_definitions = 12;
206
349
  */
207
350
  serviceDefinitions?: ServiceDefinitionJson[];
208
351
  /**
209
- * 'system_services' are the services that are available on a system level
210
- * that is, configured and used by the plugin for exclusive purposes
211
- * IMPORTANT: any binding referring to a grant-type CODE will be required
212
- * to have the same name as the system_definition and be required to be of service type
352
+ * 'system_services' are plugin-level services configured once for the entire plugin.
353
+ *
354
+ * System services are:
355
+ * - Configured by plugin administrators (via PostPluginSettings API)
356
+ * - Shared across all vertices in the plugin
357
+ * - Required to be configured before the plugin can be used (status = ACTIVE), unless marked optional
358
+ *
359
+ * This is a string array where each string directly references a ServiceDefinition by its name.
360
+ * Plugin code accesses these services using the referenced service name.
361
+ *
362
+ * The `optional` field in the ServiceDefinition controls whether configuration is required:
363
+ * - If ServiceDefinition.optional = false (default): MUST be configured
364
+ * - If ServiceDefinition.optional = true: MAY be skipped
365
+ *
366
+ * Example:
367
+ * service_definitions: [
368
+ * { name: "github_oauth", oauth2: {...} },
369
+ * { name: "analytics", oauth2: {...}, optional: true }
370
+ * ]
371
+ * system_services: ["github_oauth", "analytics"]
372
+ * Plugin code references: "github_oauth", "analytics"
373
+ *
374
+ * IMPORTANT: For OAuth2 CODE grant type services, the service definition name is used
375
+ * for callback URL generation.
213
376
  *
214
- * @generated from field: repeated mochabugapis.adapt.plugins.v1.ServiceBinding system_services = 13;
377
+ * @generated from field: repeated string system_services = 13;
215
378
  */
216
- systemServices?: ServiceBindingJson[];
379
+ systemServices?: string[];
217
380
  };
218
381
  /**
219
382
  * Describes the message mochabugapis.adapt.plugins.v1.Manifest.
@@ -1 +1 @@
1
- {"version":3,"file":"manifest_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,2CAA2C,EAAE,OACuvE,CAAC;AAElzE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IACzE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,EAA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scopes.
21
+ * The requested scopes (OPTIONAL per RFC 6749 Section 3.3).
22
+ * If omitted, the authorization server will use a pre-defined default or fail.
22
23
  *
23
24
  * @generated from field: repeated string scopes = 2;
24
25
  */
@@ -84,7 +85,8 @@ export type Oauth2DefinitionJson = {
84
85
  */
85
86
  grantType?: Oauth2GrantTypeJson;
86
87
  /**
87
- * The required scopes.
88
+ * The requested scopes (OPTIONAL per RFC 6749 Section 3.3).
89
+ * If omitted, the authorization server will use a pre-defined default or fail.
88
90
  *
89
91
  * @generated from field: repeated string scopes = 2;
90
92
  */
@@ -488,6 +490,47 @@ export type MTLSAuth = Message<"mochabugapis.adapt.plugins.v1.MTLSAuth"> & {
488
490
  * @generated from field: mochabugapis.adapt.plugins.v1.File ca_certificate = 3;
489
491
  */
490
492
  caCertificate?: File;
493
+ /**
494
+ * The expected hostname for certificate verification (SNI - Server Name Indication).
495
+ *
496
+ * If present, the client will:
497
+ * 1. Send this hostname in the TLS SNI extension during the handshake
498
+ * 2. Verify that the server's certificate authenticates this specific hostname
499
+ *
500
+ * If not provided:
501
+ * - The hostname is derived from the target upstream address
502
+ * - For IP addresses, certificate verification may fail unless the cert includes the IP as a SAN
503
+ *
504
+ * ## Use Cases
505
+ *
506
+ * 1. **IP-based connections with hostname certificates:**
507
+ * - Upstream address: 192.168.1.100:443
508
+ * - certificate_host: "api.example.com"
509
+ * - Server presents cert for api.example.com
510
+ *
511
+ * 2. **Load balancers or proxies:**
512
+ * - Upstream address: lb.internal:443
513
+ * - certificate_host: "api.example.com"
514
+ * - Verify against the public hostname, not internal LB name
515
+ *
516
+ * 3. **Shared hosting / Virtual hosting:**
517
+ * - Multiple services on same IP, different certs via SNI
518
+ * - Server selects correct certificate based on SNI hostname
519
+ *
520
+ * ## Certificate Verification
521
+ *
522
+ * The server certificate must contain this hostname in either:
523
+ * - Common Name (CN) field
524
+ * - Subject Alternative Name (SAN) extension
525
+ *
526
+ * ## Format
527
+ *
528
+ * Must be a valid hostname (DNS name), not an IP address.
529
+ * Examples: "api.example.com", "service.internal", "*.example.com" (for wildcard matching)
530
+ *
531
+ * @generated from field: optional string certificate_host = 4;
532
+ */
533
+ certificateHost?: string;
491
534
  };
492
535
  /**
493
536
  * mTLS auth
@@ -519,6 +562,47 @@ export type MTLSAuthJson = {
519
562
  * @generated from field: mochabugapis.adapt.plugins.v1.File ca_certificate = 3;
520
563
  */
521
564
  caCertificate?: FileJson;
565
+ /**
566
+ * The expected hostname for certificate verification (SNI - Server Name Indication).
567
+ *
568
+ * If present, the client will:
569
+ * 1. Send this hostname in the TLS SNI extension during the handshake
570
+ * 2. Verify that the server's certificate authenticates this specific hostname
571
+ *
572
+ * If not provided:
573
+ * - The hostname is derived from the target upstream address
574
+ * - For IP addresses, certificate verification may fail unless the cert includes the IP as a SAN
575
+ *
576
+ * ## Use Cases
577
+ *
578
+ * 1. **IP-based connections with hostname certificates:**
579
+ * - Upstream address: 192.168.1.100:443
580
+ * - certificate_host: "api.example.com"
581
+ * - Server presents cert for api.example.com
582
+ *
583
+ * 2. **Load balancers or proxies:**
584
+ * - Upstream address: lb.internal:443
585
+ * - certificate_host: "api.example.com"
586
+ * - Verify against the public hostname, not internal LB name
587
+ *
588
+ * 3. **Shared hosting / Virtual hosting:**
589
+ * - Multiple services on same IP, different certs via SNI
590
+ * - Server selects correct certificate based on SNI hostname
591
+ *
592
+ * ## Certificate Verification
593
+ *
594
+ * The server certificate must contain this hostname in either:
595
+ * - Common Name (CN) field
596
+ * - Subject Alternative Name (SAN) extension
597
+ *
598
+ * ## Format
599
+ *
600
+ * Must be a valid hostname (DNS name), not an IP address.
601
+ * Examples: "api.example.com", "service.internal", "*.example.com" (for wildcard matching)
602
+ *
603
+ * @generated from field: optional string certificate_host = 4;
604
+ */
605
+ certificateHost?: string;
522
606
  };
523
607
  /**
524
608
  * Describes the message mochabugapis.adapt.plugins.v1.MTLSAuth.
@@ -1 +1 @@
1
- {"version":3,"file":"oauth2_service_pb.d.ts","sourceRoot":"","sources":["../../../../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+B,GAAG,sCAAsC,GAAG,sCAAsC,GAAG,8BAA8B,GAAG,gCAAgC,CAAC;AAExN;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,OAAO,CAAC,eAAe,EAAE,mBAAmB,CAChB,CAAC;AAEjE;;;;GAIG;AACH,oBAAY,cAAc;IACxB;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;;OAKG;IACH,KAAK,IAAI;IAET;;;;;OAKG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,eAAe,IAAI;IAEnB;;;;;OAKG;IACH,IAAI,IAAI;IAER;;;;;OAKG;IACH,YAAY,IAAI;CACjB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,8BAA8B,GAAG,wBAAwB,GAAG,uBAAuB,GAAG,kCAAkC,GAAG,uBAAuB,GAAG,+BAA+B,CAAC;AAEtN;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,cAAc,EAAE,kBAAkB,CACb,CAAC"}
1
+ {"version":3,"file":"oauth2_service_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/oauth2_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,iDAAiD,EAAE,OAC+lJ,CAAC;AAEhqJ;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gDAAgD,CAAC,GAAG;IACzF;;;;OAIG;IACH,SAAS,EAAE,eAAe,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE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YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,EAAE;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAC,CACvB,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,oDAAoD,CAAC,GAAG,EAClG,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,EACtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,UAAU,CAAC,oBAAoB,EAAE;IAAC,QAAQ,EAAE,wBAAwB,CAAA;CAAC,CAClD,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC;IACrC;;;;;;;OAOG;IACH,YAAY,EAAE;QACZ,UAAU,EAAE,kBAAkB,CAAC;QAC/B,KAAK,EAAE,OAAO,yBAAyB,CAAC;QACxC,MAAM,EAAE,OAAO,0BAA0B,CAAC;KAC3C,CAAC;CACH,CAC2D,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { GroupedDefinition, GroupedDefinitionJson, OneOfDefinition, OneOfDefinitionJson } from "./compound_services_pb";
3
+ import type { HttpProxyDefinition, HttpProxyDefinitionJson } from "./http_proxy_service_pb";
2
4
  import type { Oauth2Definition, Oauth2DefinitionJson } from "./oauth2_service_pb";
3
- import type { TlsDefinition, TlsDefinitionJson } from "./tls_service_pb";
4
5
  import type { VariableDefinition, VariableDefinitionJson } from "./variable_service_pb";
5
6
  import type { Message } from "@bufbuild/protobuf";
6
7
  /**
@@ -8,7 +9,39 @@ import type { Message } from "@bufbuild/protobuf";
8
9
  */
9
10
  export declare const file_mochabugapis_adapt_plugins_v1_service_definition: GenFile;
10
11
  /**
11
- * The service definition
12
+ * The service definition - a flat declaration of a service that can be referenced by bindings.
13
+ *
14
+ * ## Architecture Principle: Service Definitions Are Always Flat
15
+ *
16
+ * Service definitions exist ONLY at the Manifest.service_definitions level and are NEVER nested.
17
+ * Each definition has a unique name and a specific type (Variable, OAuth2, HTTP Proxy, Group, OneOf).
18
+ *
19
+ * ## Referencing from Service Lists
20
+ *
21
+ * Service lists (Manifest.system_services and Vertex.user_services) are string arrays that
22
+ * directly reference service definitions by name. Each string must match a ServiceDefinition's `name`.
23
+ *
24
+ * ## Service Types
25
+ *
26
+ * - **VariableDefinition**: JSON variable with schema validation
27
+ * - **Oauth2Definition**: OAuth2 authentication (various grant types)
28
+ * - **HttpProxyDefinition**: HTTP proxy with TLS and header injection
29
+ * - **GroupedDefinition**: References multiple other flat definitions as a group
30
+ * - **OneOfDefinition**: Allows user to choose one from multiple flat definitions
31
+ *
32
+ * ## Example
33
+ *
34
+ * ```protobuf
35
+ * // In Manifest.service_definitions
36
+ * [
37
+ * { name: "api_key", variable: { schema: {...} } },
38
+ * { name: "oauth", oauth2: { grant_type: AUTHORIZATION_CODE, ... } },
39
+ * { name: "proxy", http_proxy: { allowed_hosts: [...], ... } }
40
+ * ]
41
+ *
42
+ * // Referenced in service lists (strings matching service definition names)
43
+ * system_services: ["oauth"]
44
+ * ```
12
45
  *
13
46
  * @generated from message mochabugapis.adapt.plugins.v1.ServiceDefinition
14
47
  */
@@ -31,6 +64,21 @@ export type ServiceDefinition = Message<"mochabugapis.adapt.plugins.v1.ServiceDe
31
64
  * @generated from field: optional string description = 3;
32
65
  */
33
66
  description?: string;
67
+ /**
68
+ * Whether this service is optional.
69
+ *
70
+ * If false (default):
71
+ * - User MUST configure this service during installation
72
+ * - Plugin can safely assume the service exists
73
+ *
74
+ * If true:
75
+ * - User MAY skip configuring this service
76
+ * - Plugin must handle the service being absent
77
+ * - Useful for optional features (analytics, monitoring, etc.)
78
+ *
79
+ * @generated from field: optional bool optional = 4;
80
+ */
81
+ optional?: boolean;
34
82
  /**
35
83
  * The actual type of service that the definition is
36
84
  *
@@ -40,18 +88,10 @@ export type ServiceDefinition = Message<"mochabugapis.adapt.plugins.v1.ServiceDe
40
88
  /**
41
89
  * Variable service containing arbitrary JSON
42
90
  *
43
- * @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 4;
91
+ * @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 5;
44
92
  */
45
93
  value: VariableDefinition;
46
94
  case: "variable";
47
- } | {
48
- /**
49
- * TLS service
50
- *
51
- * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition tls = 5;
52
- */
53
- value: TlsDefinition;
54
- case: "tls";
55
95
  } | {
56
96
  /**
57
97
  * An OAuth2 service
@@ -60,13 +100,69 @@ export type ServiceDefinition = Message<"mochabugapis.adapt.plugins.v1.ServiceDe
60
100
  */
61
101
  value: Oauth2Definition;
62
102
  case: "oauth2";
103
+ } | {
104
+ /**
105
+ * HTTP proxy service with TLS and header injection
106
+ *
107
+ * @generated from field: mochabugapis.adapt.plugins.v1.HttpProxyDefinition http_proxy = 7;
108
+ */
109
+ value: HttpProxyDefinition;
110
+ case: "httpProxy";
111
+ } | {
112
+ /**
113
+ * A group definition, requiring it to be submitted as a group
114
+ *
115
+ * @generated from field: mochabugapis.adapt.plugins.v1.GroupedDefinition group = 8;
116
+ */
117
+ value: GroupedDefinition;
118
+ case: "group";
119
+ } | {
120
+ /**
121
+ * A oneof definition, allowing one of several sub-definitions to be chosen
122
+ *
123
+ * @generated from field: mochabugapis.adapt.plugins.v1.OneOfDefinition oneof = 9;
124
+ */
125
+ value: OneOfDefinition;
126
+ case: "oneof";
63
127
  } | {
64
128
  case: undefined;
65
129
  value?: undefined;
66
130
  };
67
131
  };
68
132
  /**
69
- * The service definition
133
+ * The service definition - a flat declaration of a service that can be referenced by bindings.
134
+ *
135
+ * ## Architecture Principle: Service Definitions Are Always Flat
136
+ *
137
+ * Service definitions exist ONLY at the Manifest.service_definitions level and are NEVER nested.
138
+ * Each definition has a unique name and a specific type (Variable, OAuth2, HTTP Proxy, Group, OneOf).
139
+ *
140
+ * ## Referencing from Service Lists
141
+ *
142
+ * Service lists (Manifest.system_services and Vertex.user_services) are string arrays that
143
+ * directly reference service definitions by name. Each string must match a ServiceDefinition's `name`.
144
+ *
145
+ * ## Service Types
146
+ *
147
+ * - **VariableDefinition**: JSON variable with schema validation
148
+ * - **Oauth2Definition**: OAuth2 authentication (various grant types)
149
+ * - **HttpProxyDefinition**: HTTP proxy with TLS and header injection
150
+ * - **GroupedDefinition**: References multiple other flat definitions as a group
151
+ * - **OneOfDefinition**: Allows user to choose one from multiple flat definitions
152
+ *
153
+ * ## Example
154
+ *
155
+ * ```protobuf
156
+ * // In Manifest.service_definitions
157
+ * [
158
+ * { name: "api_key", variable: { schema: {...} } },
159
+ * { name: "oauth", oauth2: { grant_type: AUTHORIZATION_CODE, ... } },
160
+ * { name: "proxy", http_proxy: { allowed_hosts: [...], ... } }
161
+ * ]
162
+ *
163
+ * // Referenced in service lists (strings matching service definition names)
164
+ * system_services: ["oauth"]
165
+ * ```
70
166
  *
71
167
  * @generated from message mochabugapis.adapt.plugins.v1.ServiceDefinition
72
168
  */
@@ -90,23 +186,50 @@ export type ServiceDefinitionJson = {
90
186
  */
91
187
  description?: string;
92
188
  /**
93
- * Variable service containing arbitrary JSON
189
+ * Whether this service is optional.
190
+ *
191
+ * If false (default):
192
+ * - User MUST configure this service during installation
193
+ * - Plugin can safely assume the service exists
94
194
  *
95
- * @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 4;
195
+ * If true:
196
+ * - User MAY skip configuring this service
197
+ * - Plugin must handle the service being absent
198
+ * - Useful for optional features (analytics, monitoring, etc.)
199
+ *
200
+ * @generated from field: optional bool optional = 4;
96
201
  */
97
- variable?: VariableDefinitionJson;
202
+ optional?: boolean;
98
203
  /**
99
- * TLS service
204
+ * Variable service containing arbitrary JSON
100
205
  *
101
- * @generated from field: mochabugapis.adapt.plugins.v1.TlsDefinition tls = 5;
206
+ * @generated from field: mochabugapis.adapt.plugins.v1.VariableDefinition variable = 5;
102
207
  */
103
- tls?: TlsDefinitionJson;
208
+ variable?: VariableDefinitionJson;
104
209
  /**
105
210
  * An OAuth2 service
106
211
  *
107
212
  * @generated from field: mochabugapis.adapt.plugins.v1.Oauth2Definition oauth2 = 6;
108
213
  */
109
214
  oauth2?: Oauth2DefinitionJson;
215
+ /**
216
+ * HTTP proxy service with TLS and header injection
217
+ *
218
+ * @generated from field: mochabugapis.adapt.plugins.v1.HttpProxyDefinition http_proxy = 7;
219
+ */
220
+ httpProxy?: HttpProxyDefinitionJson;
221
+ /**
222
+ * A group definition, requiring it to be submitted as a group
223
+ *
224
+ * @generated from field: mochabugapis.adapt.plugins.v1.GroupedDefinition group = 8;
225
+ */
226
+ group?: GroupedDefinitionJson;
227
+ /**
228
+ * A oneof definition, allowing one of several sub-definitions to be chosen
229
+ *
230
+ * @generated from field: mochabugapis.adapt.plugins.v1.OneOfDefinition oneof = 9;
231
+ */
232
+ oneof?: OneOfDefinitionJson;
110
233
  };
111
234
  /**
112
235
  * Describes the message mochabugapis.adapt.plugins.v1.ServiceDefinition.
@@ -1 +1 @@
1
- {"version":3,"file":"service_definition_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,KAAK,EAAE,kBAAkB,EAAE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AAA;CAAC,CAC9B,CAAC"}
1
+ {"version":3,"file":"service_definition_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7H,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE5F,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAExF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,qDAAqD,EAAE,OACyhC,CAAC;AAE9lC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,iDAAiD,CAAC,GAAG;IAC3F;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,IAAI,EAAE;QACJ;;;;WAIG;QACH,KAAK,EAAE,kBAAkB,CAAC;QAC1B,IAAI,EAAE,UAAU,CAAC;KAClB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,gBAAgB,CAAC;QACxB,IAAI,EAAE,QAAQ,CAAC;KAChB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,mBAAmB,CAAC;QA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