@mochabug/adaptkit 1.0.0-rc.55 → 1.0.0-rc.57

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 (22) hide show
  1. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts +2 -78
  2. package/bin/genproto/mochabugapis/adapt/plugins/v1/compound_services_pb.d.ts.map +1 -1
  3. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +14 -580
  4. package/bin/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -1
  5. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +15 -0
  6. package/bin/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts.map +1 -1
  7. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +0 -448
  8. package/bin/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts.map +1 -1
  9. package/bin/genproto/mochabugapis/adapt/plugins/v1/state_contract_pb.d.ts +107 -0
  10. package/bin/genproto/mochabugapis/adapt/plugins/v1/state_contract_pb.d.ts.map +1 -0
  11. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +0 -61
  12. package/bin/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts.map +1 -1
  13. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +31 -0
  14. package/bin/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
  15. package/bin/index.js +30 -58
  16. package/bin/index.js.map +3 -3
  17. package/bin/init.d.ts.map +1 -1
  18. package/bin/utils.d.ts.map +1 -1
  19. package/bin/vertices.d.ts.map +1 -1
  20. package/package.json +4 -4
  21. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts +0 -539
  22. package/bin/genproto/mochabugapis/adapt/plugins/v1/service_settings_pb.d.ts.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
2
  import type { ServiceDefinition, ServiceDefinitionJson } from "./service_definition_pb";
3
+ import type { StateContract, StateContractJson } from "./state_contract_pb";
3
4
  import type { Vertex, VertexJson } from "./vertex_pb";
4
5
  import type { Message } from "@bufbuild/protobuf";
5
6
  /**
@@ -191,6 +192,13 @@ export type Manifest = Message<"mochabugapis.adapt.plugins.v1.Manifest"> & {
191
192
  * @generated from field: repeated string system_services = 13;
192
193
  */
193
194
  systemServices: string[];
195
+ /**
196
+ * 'config_store_plugin' is the contract for the plugin-wide config store.
197
+ * If unset, the platform uses generation "default".
198
+ *
199
+ * @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_plugin = 14;
200
+ */
201
+ configStorePlugin?: StateContract | undefined;
194
202
  };
195
203
  /**
196
204
  * Manifest describes a plugin and its properties.
@@ -377,6 +385,13 @@ export type ManifestJson = {
377
385
  * @generated from field: repeated string system_services = 13;
378
386
  */
379
387
  systemServices?: string[];
388
+ /**
389
+ * 'config_store_plugin' is the contract for the plugin-wide config store.
390
+ * If unset, the platform uses generation "default".
391
+ *
392
+ * @generated from field: mochabugapis.adapt.plugins.v1.StateContract config_store_plugin = 14;
393
+ */
394
+ configStorePlugin?: StateContractJson;
380
395
  };
381
396
  /**
382
397
  * 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,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAExF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,KAAK,EAAE,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C,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IAExB;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,EAAE;IAAC,QAAQ,EAAE,YAAY,CAAA;CAAC,CACb,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
- import type { File, FileJson } from "./file_pb";
3
2
  import type { Message } from "@bufbuild/protobuf";
4
3
  /**
5
4
  * Describes the file mochabugapis/adapt/plugins/v1/oauth2_service.proto.
@@ -217,453 +216,6 @@ export type Oauth2CodeJson = {
217
216
  export declare const Oauth2CodeSchema: GenMessage<Oauth2Code, {
218
217
  jsonType: Oauth2CodeJson;
219
218
  }>;
220
- /**
221
- * The actual oauth2 config
222
- *
223
- * @generated from message mochabugapis.adapt.plugins.v1.Oauth2Config
224
- */
225
- export type Oauth2Config = Message<"mochabugapis.adapt.plugins.v1.Oauth2Config"> & {
226
- /**
227
- * The client id, required for client credentials on vertices only
228
- *
229
- * @generated from field: optional string client_id = 1;
230
- */
231
- clientId?: string | undefined;
232
- /**
233
- * The auth method is required to be set
234
- *
235
- * @generated from oneof mochabugapis.adapt.plugins.v1.Oauth2Config.auth_method
236
- */
237
- authMethod: {
238
- /**
239
- * Use basic authentication for the client
240
- *
241
- * @generated from field: mochabugapis.adapt.plugins.v1.BasicAuth basic_auth = 2;
242
- */
243
- value: BasicAuth;
244
- case: "basicAuth";
245
- } | {
246
- /**
247
- * Use form authentication for the client
248
- *
249
- * @generated from field: mochabugapis.adapt.plugins.v1.FormAuth form_auth = 3;
250
- */
251
- value: FormAuth;
252
- case: "formAuth";
253
- } | {
254
- /**
255
- * Use private JWT authentication for the client
256
- *
257
- * @generated from field: mochabugapis.adapt.plugins.v1.PrivateJWTAuth private_jwt_auth = 4;
258
- */
259
- value: PrivateJWTAuth;
260
- case: "privateJwtAuth";
261
- } | {
262
- /**
263
- * Use mTLS authentication for the client
264
- *
265
- * @generated from field: mochabugapis.adapt.plugins.v1.MTLSAuth mtls_auth = 5;
266
- */
267
- value: MTLSAuth;
268
- case: "mtlsAuth";
269
- } | {
270
- /**
271
- * Use SAML bearer authentication for the client
272
- *
273
- * @generated from field: mochabugapis.adapt.plugins.v1.SAMLAuth saml_auth = 6;
274
- */
275
- value: SAMLAuth;
276
- case: "samlAuth";
277
- } | {
278
- /**
279
- * In case we have code flow with consent
280
- *
281
- * @generated from field: bool consent = 7;
282
- */
283
- value: boolean;
284
- case: "consent";
285
- } | {
286
- case: undefined;
287
- value?: undefined;
288
- };
289
- };
290
- /**
291
- * The actual oauth2 config
292
- *
293
- * @generated from message mochabugapis.adapt.plugins.v1.Oauth2Config
294
- */
295
- export type Oauth2ConfigJson = {
296
- /**
297
- * The client id, required for client credentials on vertices only
298
- *
299
- * @generated from field: optional string client_id = 1;
300
- */
301
- clientId?: string;
302
- /**
303
- * Use basic authentication for the client
304
- *
305
- * @generated from field: mochabugapis.adapt.plugins.v1.BasicAuth basic_auth = 2;
306
- */
307
- basicAuth?: BasicAuthJson;
308
- /**
309
- * Use form authentication for the client
310
- *
311
- * @generated from field: mochabugapis.adapt.plugins.v1.FormAuth form_auth = 3;
312
- */
313
- formAuth?: FormAuthJson;
314
- /**
315
- * Use private JWT authentication for the client
316
- *
317
- * @generated from field: mochabugapis.adapt.plugins.v1.PrivateJWTAuth private_jwt_auth = 4;
318
- */
319
- privateJwtAuth?: PrivateJWTAuthJson;
320
- /**
321
- * Use mTLS authentication for the client
322
- *
323
- * @generated from field: mochabugapis.adapt.plugins.v1.MTLSAuth mtls_auth = 5;
324
- */
325
- mtlsAuth?: MTLSAuthJson;
326
- /**
327
- * Use SAML bearer authentication for the client
328
- *
329
- * @generated from field: mochabugapis.adapt.plugins.v1.SAMLAuth saml_auth = 6;
330
- */
331
- samlAuth?: SAMLAuthJson;
332
- /**
333
- * In case we have code flow with consent
334
- *
335
- * @generated from field: bool consent = 7;
336
- */
337
- consent?: boolean;
338
- };
339
- /**
340
- * Describes the message mochabugapis.adapt.plugins.v1.Oauth2Config.
341
- * Use `create(Oauth2ConfigSchema)` to create a new message.
342
- */
343
- export declare const Oauth2ConfigSchema: GenMessage<Oauth2Config, {
344
- jsonType: Oauth2ConfigJson;
345
- }>;
346
- /**
347
- * Basic auth
348
- *
349
- * @generated from message mochabugapis.adapt.plugins.v1.BasicAuth
350
- */
351
- export type BasicAuth = Message<"mochabugapis.adapt.plugins.v1.BasicAuth"> & {
352
- /**
353
- * The password
354
- *
355
- * @generated from field: string client_secret = 1;
356
- */
357
- clientSecret: string;
358
- };
359
- /**
360
- * Basic auth
361
- *
362
- * @generated from message mochabugapis.adapt.plugins.v1.BasicAuth
363
- */
364
- export type BasicAuthJson = {
365
- /**
366
- * The password
367
- *
368
- * @generated from field: string client_secret = 1;
369
- */
370
- clientSecret?: string;
371
- };
372
- /**
373
- * Describes the message mochabugapis.adapt.plugins.v1.BasicAuth.
374
- * Use `create(BasicAuthSchema)` to create a new message.
375
- */
376
- export declare const BasicAuthSchema: GenMessage<BasicAuth, {
377
- jsonType: BasicAuthJson;
378
- }>;
379
- /**
380
- * Form auth
381
- *
382
- * @generated from message mochabugapis.adapt.plugins.v1.FormAuth
383
- */
384
- export type FormAuth = Message<"mochabugapis.adapt.plugins.v1.FormAuth"> & {
385
- /**
386
- * The password
387
- *
388
- * @generated from field: string client_secret = 1;
389
- */
390
- clientSecret: string;
391
- };
392
- /**
393
- * Form auth
394
- *
395
- * @generated from message mochabugapis.adapt.plugins.v1.FormAuth
396
- */
397
- export type FormAuthJson = {
398
- /**
399
- * The password
400
- *
401
- * @generated from field: string client_secret = 1;
402
- */
403
- clientSecret?: string;
404
- };
405
- /**
406
- * Describes the message mochabugapis.adapt.plugins.v1.FormAuth.
407
- * Use `create(FormAuthSchema)` to create a new message.
408
- */
409
- export declare const FormAuthSchema: GenMessage<FormAuth, {
410
- jsonType: FormAuthJson;
411
- }>;
412
- /**
413
- * Private JWT auth
414
- *
415
- * @generated from message mochabugapis.adapt.plugins.v1.PrivateJWTAuth
416
- */
417
- export type PrivateJWTAuth = Message<"mochabugapis.adapt.plugins.v1.PrivateJWTAuth"> & {
418
- /**
419
- * The private key in PEM format
420
- * The content of the file must be PEM format after decoding
421
- * The content must contain a PRIVATE KEY block
422
- *
423
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 1;
424
- */
425
- privateKey?: File | undefined;
426
- /**
427
- * Optional subject for impersonation
428
- * If not provided, the client_id will be used as the subject
429
- *
430
- * @generated from field: optional string subject = 2;
431
- */
432
- subject?: string | undefined;
433
- };
434
- /**
435
- * Private JWT auth
436
- *
437
- * @generated from message mochabugapis.adapt.plugins.v1.PrivateJWTAuth
438
- */
439
- export type PrivateJWTAuthJson = {
440
- /**
441
- * The private key in PEM format
442
- * The content of the file must be PEM format after decoding
443
- * The content must contain a PRIVATE KEY block
444
- *
445
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 1;
446
- */
447
- privateKey?: FileJson;
448
- /**
449
- * Optional subject for impersonation
450
- * If not provided, the client_id will be used as the subject
451
- *
452
- * @generated from field: optional string subject = 2;
453
- */
454
- subject?: string;
455
- };
456
- /**
457
- * Describes the message mochabugapis.adapt.plugins.v1.PrivateJWTAuth.
458
- * Use `create(PrivateJWTAuthSchema)` to create a new message.
459
- */
460
- export declare const PrivateJWTAuthSchema: GenMessage<PrivateJWTAuth, {
461
- jsonType: PrivateJWTAuthJson;
462
- }>;
463
- /**
464
- * mTLS auth
465
- *
466
- * @generated from message mochabugapis.adapt.plugins.v1.MTLSAuth
467
- */
468
- export type MTLSAuth = Message<"mochabugapis.adapt.plugins.v1.MTLSAuth"> & {
469
- /**
470
- * The certificate in PEM format
471
- * The content of the file must be PEM format after decoding
472
- * If a certificate chain is presented. The server certificate must be the first one
473
- *
474
- * @generated from field: mochabugapis.adapt.plugins.v1.File certificate = 1;
475
- */
476
- certificate?: File | undefined;
477
- /**
478
- * The private key in PEM format
479
- * The content of the file must be PEM format after decoding
480
- * The content must contain a PRIVATE KEY block
481
- *
482
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 2;
483
- */
484
- privateKey?: File | undefined;
485
- /**
486
- * The CA certificate in PEM format. Trusted server authority file
487
- * The content of the file must be PEM format after decoding
488
- * The content must contain a CERTIFICATE block
489
- *
490
- * @generated from field: mochabugapis.adapt.plugins.v1.File ca_certificate = 3;
491
- */
492
- caCertificate?: File | undefined;
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 | undefined;
534
- };
535
- /**
536
- * mTLS auth
537
- *
538
- * @generated from message mochabugapis.adapt.plugins.v1.MTLSAuth
539
- */
540
- export type MTLSAuthJson = {
541
- /**
542
- * The certificate in PEM format
543
- * The content of the file must be PEM format after decoding
544
- * If a certificate chain is presented. The server certificate must be the first one
545
- *
546
- * @generated from field: mochabugapis.adapt.plugins.v1.File certificate = 1;
547
- */
548
- certificate?: FileJson;
549
- /**
550
- * The private key in PEM format
551
- * The content of the file must be PEM format after decoding
552
- * The content must contain a PRIVATE KEY block
553
- *
554
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 2;
555
- */
556
- privateKey?: FileJson;
557
- /**
558
- * The CA certificate in PEM format. Trusted server authority file
559
- * The content of the file must be PEM format after decoding
560
- * The content must contain a CERTIFICATE block
561
- *
562
- * @generated from field: mochabugapis.adapt.plugins.v1.File ca_certificate = 3;
563
- */
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;
606
- };
607
- /**
608
- * Describes the message mochabugapis.adapt.plugins.v1.MTLSAuth.
609
- * Use `create(MTLSAuthSchema)` to create a new message.
610
- */
611
- export declare const MTLSAuthSchema: GenMessage<MTLSAuth, {
612
- jsonType: MTLSAuthJson;
613
- }>;
614
- /**
615
- * SAML bearer auth
616
- *
617
- * @generated from message mochabugapis.adapt.plugins.v1.SAMLAuth
618
- */
619
- export type SAMLAuth = Message<"mochabugapis.adapt.plugins.v1.SAMLAuth"> & {
620
- /**
621
- * The private key in PEM format
622
- * The content of the file must be PEM format after decoding
623
- * The content must contain a PRIVATE KEY block
624
- *
625
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 1;
626
- */
627
- privateKey?: File | undefined;
628
- /**
629
- * The certificate in PEM format
630
- * The content of the file must be PEM format after decoding
631
- * If a certificate chain is presented. The server certificate must be the first one
632
- *
633
- * @generated from field: mochabugapis.adapt.plugins.v1.File certificate = 2;
634
- */
635
- certificate?: File | undefined;
636
- };
637
- /**
638
- * SAML bearer auth
639
- *
640
- * @generated from message mochabugapis.adapt.plugins.v1.SAMLAuth
641
- */
642
- export type SAMLAuthJson = {
643
- /**
644
- * The private key in PEM format
645
- * The content of the file must be PEM format after decoding
646
- * The content must contain a PRIVATE KEY block
647
- *
648
- * @generated from field: mochabugapis.adapt.plugins.v1.File private_key = 1;
649
- */
650
- privateKey?: FileJson;
651
- /**
652
- * The certificate in PEM format
653
- * The content of the file must be PEM format after decoding
654
- * If a certificate chain is presented. The server certificate must be the first one
655
- *
656
- * @generated from field: mochabugapis.adapt.plugins.v1.File certificate = 2;
657
- */
658
- certificate?: FileJson;
659
- };
660
- /**
661
- * Describes the message mochabugapis.adapt.plugins.v1.SAMLAuth.
662
- * Use `create(SAMLAuthSchema)` to create a new message.
663
- */
664
- export declare const SAMLAuthSchema: GenMessage<SAMLAuth, {
665
- jsonType: SAMLAuthJson;
666
- }>;
667
219
  /**
668
220
  * The algorithm used for signing JWT or SAML assertions
669
221
  *
@@ -1 +1 @@
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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H,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,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iDAAiD,EAAE,OACmiG,CAAC;AAEpmG;;;;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,cAAc,GAAG,SAAS,CAAC;IAExC;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAEhC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE9B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,IAAI,CAAC,EAA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type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file mochabugapis/adapt/plugins/v1/state_contract.proto.
5
+ */
6
+ export declare const file_mochabugapis_adapt_plugins_v1_state_contract: GenFile;
7
+ /**
8
+ * StateContract describes the compatibility class for opaque plugin-owned
9
+ * state. If a manifest omits a state contract, the platform treats that scope
10
+ * as generation "default". If a StateContract is present, both generation and
11
+ * on_generation_change must be explicit. Generations are author-defined
12
+ * compatibility labels and are not derived from plugin semver.
13
+ *
14
+ * @generated from message mochabugapis.adapt.plugins.v1.StateContract
15
+ */
16
+ export type StateContract = Message<"mochabugapis.adapt.plugins.v1.StateContract"> & {
17
+ /**
18
+ * 'generation' identifies the state format compatibility class.
19
+ *
20
+ * @generated from field: string generation = 1;
21
+ */
22
+ generation: string;
23
+ /**
24
+ * 'on_generation_change' is the policy the platform applies when updating
25
+ * from a different generation into this target generation.
26
+ *
27
+ * @generated from oneof mochabugapis.adapt.plugins.v1.StateContract.on_generation_change
28
+ */
29
+ onGenerationChange: {
30
+ /**
31
+ * Wipe the affected state. This is the only supported policy today.
32
+ *
33
+ * @generated from field: mochabugapis.adapt.plugins.v1.WipeState wipe = 2;
34
+ */
35
+ value: WipeState;
36
+ case: "wipe";
37
+ } | {
38
+ case: undefined;
39
+ value?: undefined;
40
+ };
41
+ };
42
+ /**
43
+ * StateContract describes the compatibility class for opaque plugin-owned
44
+ * state. If a manifest omits a state contract, the platform treats that scope
45
+ * as generation "default". If a StateContract is present, both generation and
46
+ * on_generation_change must be explicit. Generations are author-defined
47
+ * compatibility labels and are not derived from plugin semver.
48
+ *
49
+ * @generated from message mochabugapis.adapt.plugins.v1.StateContract
50
+ */
51
+ export type StateContractJson = {
52
+ /**
53
+ * 'generation' identifies the state format compatibility class.
54
+ *
55
+ * @generated from field: string generation = 1;
56
+ */
57
+ generation?: string;
58
+ /**
59
+ * Wipe the affected state. This is the only supported policy today.
60
+ *
61
+ * @generated from field: mochabugapis.adapt.plugins.v1.WipeState wipe = 2;
62
+ */
63
+ wipe?: WipeStateJson;
64
+ };
65
+ /**
66
+ * Describes the message mochabugapis.adapt.plugins.v1.StateContract.
67
+ * Use `create(StateContractSchema)` to create a new message.
68
+ */
69
+ export declare const StateContractSchema: GenMessage<StateContract, {
70
+ jsonType: StateContractJson;
71
+ }>;
72
+ /**
73
+ * WipeState declares that state should be deleted when entering a generation
74
+ * from any different generation.
75
+ *
76
+ * @generated from message mochabugapis.adapt.plugins.v1.WipeState
77
+ */
78
+ export type WipeState = Message<"mochabugapis.adapt.plugins.v1.WipeState"> & {
79
+ /**
80
+ * Optional short reason attached to the wipe decision.
81
+ *
82
+ * @generated from field: optional string reason = 1;
83
+ */
84
+ reason?: string | undefined;
85
+ };
86
+ /**
87
+ * WipeState declares that state should be deleted when entering a generation
88
+ * from any different generation.
89
+ *
90
+ * @generated from message mochabugapis.adapt.plugins.v1.WipeState
91
+ */
92
+ export type WipeStateJson = {
93
+ /**
94
+ * Optional short reason attached to the wipe decision.
95
+ *
96
+ * @generated from field: optional string reason = 1;
97
+ */
98
+ reason?: string;
99
+ };
100
+ /**
101
+ * Describes the message mochabugapis.adapt.plugins.v1.WipeState.
102
+ * Use `create(WipeStateSchema)` to create a new message.
103
+ */
104
+ export declare const WipeStateSchema: GenMessage<WipeState, {
105
+ jsonType: WipeStateJson;
106
+ }>;
107
+ //# sourceMappingURL=state_contract_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state_contract_pb.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/state_contract_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,iDAAiD,EAAE,OAC+Y,CAAC;AAEhd;;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