@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
@@ -1 +1 @@
1
- {"version":3,"file":"signal_binding_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/signal_binding_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,OACkrB,CAAC;AAE9uB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,wCAAwC,CAAC,GAAG;IAC9E;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;;;OAKG;IACH,OAAO,EAAE;QACP;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,WAAW,CAAC;KACnB,GAAG;QACF;;;;WAIG;QACH,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC;KAClB,GAAG;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;IAE3C;;;;OAIG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAElC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,aAAa,EAAE;IAAC,QAAQ,EAAE,iBAAiB,CAAA;CAAC,CAC3B,CAAC;AAE/D;;;;GAIG;AACH,oBAAY,mBAAmB;IAC7B;;;;OAIG;IACH,WAAW,IAAI;IAEf;;;;OAIG;IACH,OAAO,IAAI;IAEX;;;;OAIG;IACH,cAAc,IAAI;IAElB;;;;OAIG;IACH,eAAe,IAAI;CACpB;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,eAAe,GAAG,sBAAsB,GAAG,uBAAuB,CAAC;AAE/H;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAC,mBAAmB,EAAE,uBAAuB,CAC9B,CAAC"}
1
+ {"version":3,"file":"signal_binding_pb.d.ts","sourceRoot":"","sources":["../../../../../src/genproto/mochabugapis/adapt/graph/signal_binding_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EAAE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;;;;;OAKG;IACH,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IAEjC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,cAAc,EAAE;IAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAC,CAC7B,CAAC"}
@@ -0,0 +1,423 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mochabugapis/adapt/plugins/v1/compound_services.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_plugins_v1_compound_services: GenFile;
7
+ /**
8
+ * A grouped service definition that references multiple other flat service definitions.
9
+ *
10
+ * ## Architecture: Groups Reference Flat Definitions
11
+ *
12
+ * GroupedDefinition is itself a flat service definition at the Manifest.service_definitions level.
13
+ * It references OTHER flat service definitions by name as a string array.
14
+ *
15
+ * ## Purpose
16
+ *
17
+ * Groups allow plugin authors to bundle related services together. For example:
18
+ * - Production and sandbox environments for the same API
19
+ * - Multiple related API keys
20
+ * - Primary and backup authentication methods
21
+ *
22
+ * ## Example
23
+ *
24
+ * ```protobuf
25
+ * // In Manifest.service_definitions
26
+ * [
27
+ * { name: "stripe_prod", oauth2: {...} },
28
+ * { name: "stripe_sandbox", oauth2: {...}, optional: true },
29
+ * {
30
+ * name: "stripe_envs",
31
+ * group: {
32
+ * name: "stripe_envs",
33
+ * label: "Stripe Environments",
34
+ * services: ["stripe_prod", "stripe_sandbox"]
35
+ * }
36
+ * }
37
+ * ]
38
+ *
39
+ * // Referenced in system services list
40
+ * system_services: ["stripe_envs"]
41
+ *
42
+ * // Plugin code accesses members with dot notation:
43
+ * "stripe_envs.stripe_prod", "stripe_envs.stripe_sandbox"
44
+ * ```
45
+ *
46
+ * @generated from message mochabugapis.adapt.plugins.v1.GroupedDefinition
47
+ */
48
+ export type GroupedDefinition = Message<"mochabugapis.adapt.plugins.v1.GroupedDefinition"> & {
49
+ /**
50
+ * The name of this group definition (must match ServiceDefinition.name)
51
+ *
52
+ * @generated from field: string name = 1;
53
+ */
54
+ name: string;
55
+ /**
56
+ * Human-friendly label displayed in UI
57
+ *
58
+ * @generated from field: string label = 2;
59
+ */
60
+ label: string;
61
+ /**
62
+ * Optional description explaining what this group is for
63
+ *
64
+ * @generated from field: optional string description = 3;
65
+ */
66
+ description?: string;
67
+ /**
68
+ * References to other flat service definitions that comprise this group
69
+ *
70
+ * @generated from field: repeated string services = 4;
71
+ */
72
+ services: string[];
73
+ };
74
+ /**
75
+ * A grouped service definition that references multiple other flat service definitions.
76
+ *
77
+ * ## Architecture: Groups Reference Flat Definitions
78
+ *
79
+ * GroupedDefinition is itself a flat service definition at the Manifest.service_definitions level.
80
+ * It references OTHER flat service definitions by name as a string array.
81
+ *
82
+ * ## Purpose
83
+ *
84
+ * Groups allow plugin authors to bundle related services together. For example:
85
+ * - Production and sandbox environments for the same API
86
+ * - Multiple related API keys
87
+ * - Primary and backup authentication methods
88
+ *
89
+ * ## Example
90
+ *
91
+ * ```protobuf
92
+ * // In Manifest.service_definitions
93
+ * [
94
+ * { name: "stripe_prod", oauth2: {...} },
95
+ * { name: "stripe_sandbox", oauth2: {...}, optional: true },
96
+ * {
97
+ * name: "stripe_envs",
98
+ * group: {
99
+ * name: "stripe_envs",
100
+ * label: "Stripe Environments",
101
+ * services: ["stripe_prod", "stripe_sandbox"]
102
+ * }
103
+ * }
104
+ * ]
105
+ *
106
+ * // Referenced in system services list
107
+ * system_services: ["stripe_envs"]
108
+ *
109
+ * // Plugin code accesses members with dot notation:
110
+ * "stripe_envs.stripe_prod", "stripe_envs.stripe_sandbox"
111
+ * ```
112
+ *
113
+ * @generated from message mochabugapis.adapt.plugins.v1.GroupedDefinition
114
+ */
115
+ export type GroupedDefinitionJson = {
116
+ /**
117
+ * The name of this group definition (must match ServiceDefinition.name)
118
+ *
119
+ * @generated from field: string name = 1;
120
+ */
121
+ name?: string;
122
+ /**
123
+ * Human-friendly label displayed in UI
124
+ *
125
+ * @generated from field: string label = 2;
126
+ */
127
+ label?: string;
128
+ /**
129
+ * Optional description explaining what this group is for
130
+ *
131
+ * @generated from field: optional string description = 3;
132
+ */
133
+ description?: string;
134
+ /**
135
+ * References to other flat service definitions that comprise this group
136
+ *
137
+ * @generated from field: repeated string services = 4;
138
+ */
139
+ services?: string[];
140
+ };
141
+ /**
142
+ * Describes the message mochabugapis.adapt.plugins.v1.GroupedDefinition.
143
+ * Use `create(GroupedDefinitionSchema)` to create a new message.
144
+ */
145
+ export declare const GroupedDefinitionSchema: GenMessage<GroupedDefinition, {
146
+ jsonType: GroupedDefinitionJson;
147
+ }>;
148
+ /**
149
+ * A one-of service definition that allows users to choose from multiple flat service definitions.
150
+ *
151
+ * ## Architecture: One-Of References Flat Definitions
152
+ *
153
+ * OneOfDefinition is itself a flat service definition at the Manifest.service_definitions level.
154
+ * It references OTHER flat service definitions by name.
155
+ *
156
+ * ## Purpose
157
+ *
158
+ * One-of definitions allow plugins to support multiple alternative implementations:
159
+ * - Different payment providers (Stripe, PayPal, Square)
160
+ * - Different authentication methods (OAuth2, API Key, mTLS)
161
+ * - Different deployment environments
162
+ *
163
+ * Users choose ONE option during plugin installation/configuration.
164
+ *
165
+ * ## Example
166
+ *
167
+ * ```protobuf
168
+ * // In Manifest.service_definitions
169
+ * [
170
+ * { name: "stripe_oauth", oauth2: {...} },
171
+ * { name: "paypal_oauth", oauth2: {...} },
172
+ * { name: "square_oauth", oauth2: {...} },
173
+ * {
174
+ * name: "payment_provider",
175
+ * oneof: {
176
+ * name: "payment_provider",
177
+ * label: "Payment Provider",
178
+ * options: {
179
+ * "stripe_oauth": "Stripe",
180
+ * "paypal_oauth": "PayPal",
181
+ * "square_oauth": "Square"
182
+ * },
183
+ * default: "stripe_oauth"
184
+ * }
185
+ * }
186
+ * ]
187
+ *
188
+ * // Referenced in system services list
189
+ * system_services: ["payment_provider"]
190
+ *
191
+ * // Plugin code accesses using the service name:
192
+ * "payment_provider" (regardless of which provider user chose)
193
+ * ```
194
+ *
195
+ * @generated from message mochabugapis.adapt.plugins.v1.OneOfDefinition
196
+ */
197
+ export type OneOfDefinition = Message<"mochabugapis.adapt.plugins.v1.OneOfDefinition"> & {
198
+ /**
199
+ * The name of this oneof definition (must match ServiceDefinition.name)
200
+ *
201
+ * @generated from field: string name = 1;
202
+ */
203
+ name: string;
204
+ /**
205
+ * Human-friendly label displayed in UI
206
+ *
207
+ * @generated from field: string label = 2;
208
+ */
209
+ label: string;
210
+ /**
211
+ * Optional description explaining what this choice is for
212
+ *
213
+ * @generated from field: optional string description = 3;
214
+ */
215
+ description?: string;
216
+ /**
217
+ * Map of service definition options users can choose from.
218
+ *
219
+ * Key: Service definition name (from Manifest.service_definitions)
220
+ * Value: Human-friendly label shown to users during selection
221
+ *
222
+ * The map key must reference an existing ServiceDefinition.name.
223
+ * The map value is displayed to users when choosing between options.
224
+ *
225
+ * ## Examples
226
+ *
227
+ * Basic options:
228
+ * options: {
229
+ * "stripe_oauth": "Stripe",
230
+ * "paypal_oauth": "PayPal"
231
+ * }
232
+ *
233
+ * Descriptive labels:
234
+ * options: {
235
+ * "stripe_oauth": "Stripe (recommended for production)",
236
+ * "paypal_oauth": "PayPal (simpler setup)"
237
+ * }
238
+ *
239
+ * @generated from field: map<string, string> options = 4;
240
+ */
241
+ options: {
242
+ [key: string]: string;
243
+ };
244
+ /**
245
+ * Optional default selection.
246
+ *
247
+ * If specified, this service definition will be pre-selected in the UI during installation.
248
+ * Users can still choose a different option.
249
+ *
250
+ * The default value MUST match one of the keys in the options map.
251
+ *
252
+ * Use this to:
253
+ * - Suggest the most common choice
254
+ * - Indicate the recommended option
255
+ * - Set a safe default for new users
256
+ *
257
+ * ## Default Behavior: System Settings vs User Settings
258
+ *
259
+ * **System Settings** (Manifest.system_services):
260
+ * - Default selection is automatically applied when the plugin is installed
261
+ * - The service is marked as "configured" if the default option has all required values
262
+ * - Plugin creators define and approve these defaults
263
+ *
264
+ * **User Settings** (Vertex.user_services):
265
+ * - Default selection is a UI hint only and NOT automatically applied
266
+ * - The service is NOT marked as "configured" until the user explicitly submits settings
267
+ * - Users must review and approve the selection, even with a default present
268
+ * - This ensures users actively consent to which option is selected
269
+ *
270
+ * ## Rationale
271
+ *
272
+ * System settings use automatic defaults because the plugin creator (who defines
273
+ * the defaults) is also the one approving them during plugin development.
274
+ *
275
+ * User settings require explicit submission because end users need to review and
276
+ * consciously approve which option is selected and configured.
277
+ *
278
+ * @generated from field: optional string default = 5;
279
+ */
280
+ default?: string;
281
+ };
282
+ /**
283
+ * A one-of service definition that allows users to choose from multiple flat service definitions.
284
+ *
285
+ * ## Architecture: One-Of References Flat Definitions
286
+ *
287
+ * OneOfDefinition is itself a flat service definition at the Manifest.service_definitions level.
288
+ * It references OTHER flat service definitions by name.
289
+ *
290
+ * ## Purpose
291
+ *
292
+ * One-of definitions allow plugins to support multiple alternative implementations:
293
+ * - Different payment providers (Stripe, PayPal, Square)
294
+ * - Different authentication methods (OAuth2, API Key, mTLS)
295
+ * - Different deployment environments
296
+ *
297
+ * Users choose ONE option during plugin installation/configuration.
298
+ *
299
+ * ## Example
300
+ *
301
+ * ```protobuf
302
+ * // In Manifest.service_definitions
303
+ * [
304
+ * { name: "stripe_oauth", oauth2: {...} },
305
+ * { name: "paypal_oauth", oauth2: {...} },
306
+ * { name: "square_oauth", oauth2: {...} },
307
+ * {
308
+ * name: "payment_provider",
309
+ * oneof: {
310
+ * name: "payment_provider",
311
+ * label: "Payment Provider",
312
+ * options: {
313
+ * "stripe_oauth": "Stripe",
314
+ * "paypal_oauth": "PayPal",
315
+ * "square_oauth": "Square"
316
+ * },
317
+ * default: "stripe_oauth"
318
+ * }
319
+ * }
320
+ * ]
321
+ *
322
+ * // Referenced in system services list
323
+ * system_services: ["payment_provider"]
324
+ *
325
+ * // Plugin code accesses using the service name:
326
+ * "payment_provider" (regardless of which provider user chose)
327
+ * ```
328
+ *
329
+ * @generated from message mochabugapis.adapt.plugins.v1.OneOfDefinition
330
+ */
331
+ export type OneOfDefinitionJson = {
332
+ /**
333
+ * The name of this oneof definition (must match ServiceDefinition.name)
334
+ *
335
+ * @generated from field: string name = 1;
336
+ */
337
+ name?: string;
338
+ /**
339
+ * Human-friendly label displayed in UI
340
+ *
341
+ * @generated from field: string label = 2;
342
+ */
343
+ label?: string;
344
+ /**
345
+ * Optional description explaining what this choice is for
346
+ *
347
+ * @generated from field: optional string description = 3;
348
+ */
349
+ description?: string;
350
+ /**
351
+ * Map of service definition options users can choose from.
352
+ *
353
+ * Key: Service definition name (from Manifest.service_definitions)
354
+ * Value: Human-friendly label shown to users during selection
355
+ *
356
+ * The map key must reference an existing ServiceDefinition.name.
357
+ * The map value is displayed to users when choosing between options.
358
+ *
359
+ * ## Examples
360
+ *
361
+ * Basic options:
362
+ * options: {
363
+ * "stripe_oauth": "Stripe",
364
+ * "paypal_oauth": "PayPal"
365
+ * }
366
+ *
367
+ * Descriptive labels:
368
+ * options: {
369
+ * "stripe_oauth": "Stripe (recommended for production)",
370
+ * "paypal_oauth": "PayPal (simpler setup)"
371
+ * }
372
+ *
373
+ * @generated from field: map<string, string> options = 4;
374
+ */
375
+ options?: {
376
+ [key: string]: string;
377
+ };
378
+ /**
379
+ * Optional default selection.
380
+ *
381
+ * If specified, this service definition will be pre-selected in the UI during installation.
382
+ * Users can still choose a different option.
383
+ *
384
+ * The default value MUST match one of the keys in the options map.
385
+ *
386
+ * Use this to:
387
+ * - Suggest the most common choice
388
+ * - Indicate the recommended option
389
+ * - Set a safe default for new users
390
+ *
391
+ * ## Default Behavior: System Settings vs User Settings
392
+ *
393
+ * **System Settings** (Manifest.system_services):
394
+ * - Default selection is automatically applied when the plugin is installed
395
+ * - The service is marked as "configured" if the default option has all required values
396
+ * - Plugin creators define and approve these defaults
397
+ *
398
+ * **User Settings** (Vertex.user_services):
399
+ * - Default selection is a UI hint only and NOT automatically applied
400
+ * - The service is NOT marked as "configured" until the user explicitly submits settings
401
+ * - Users must review and approve the selection, even with a default present
402
+ * - This ensures users actively consent to which option is selected
403
+ *
404
+ * ## Rationale
405
+ *
406
+ * System settings use automatic defaults because the plugin creator (who defines
407
+ * the defaults) is also the one approving them during plugin development.
408
+ *
409
+ * User settings require explicit submission because end users need to review and
410
+ * consciously approve which option is selected and configured.
411
+ *
412
+ * @generated from field: optional string default = 5;
413
+ */
414
+ default?: string;
415
+ };
416
+ /**
417
+ * Describes the message mochabugapis.adapt.plugins.v1.OneOfDefinition.
418
+ * Use `create(OneOfDefinitionSchema)` to create a new message.
419
+ */
420
+ export declare const OneOfDefinitionSchema: GenMessage<OneOfDefinition, {
421
+ jsonType: OneOfDefinitionJson;
422
+ }>;
423
+ //# sourceMappingURL=compound_services_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compound_services_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,oDAAoD,EAAE,OACu5C,CAAC;AAE39C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;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;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;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AAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAAe,EAAE;IAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAC,CACzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"file_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/file_pb.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,OACqR,CAAC;AAE5U;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,CAAC,oCAAoC,CAAC,GAAG;IACjE;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAC,CACL,CAAC"}
1
+ {"version":3,"file":"file_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/file_pb.ts"],"names":[],"mapp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