@mochabug/adaptkit 0.12.7 → 0.12.8

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.
@@ -181,6 +181,7 @@ export interface Manifest {
181
181
  vertices: Vertex[];
182
182
  /**
183
183
  * The plugin oauth2 services specifies oauth2 services that is required for the plugin.
184
+ * The client_id must be set for ALL oauth services here
184
185
  *
185
186
  * @generated from protobuf field: repeated mochabugapis.adapt.plugins.v1.Oauth2Service plugin_oauth2 = 16;
186
187
  */
@@ -291,11 +292,11 @@ export interface Vertex {
291
292
  */
292
293
  codeOauth2: Oauth2CodeBinding[];
293
294
  /**
294
- * It's required that the client credentials grant type is set on this service
295
+ * client_id must not be set, and code must not be set. It's only for user defined service accounts
295
296
  *
296
- * @generated from protobuf field: repeated mochabugapis.adapt.plugins.v1.Oauth2Service client_credentials_oauth2 = 11;
297
+ * @generated from protobuf field: repeated mochabugapis.adapt.plugins.v1.Oauth2Service oauth2 = 11;
297
298
  */
298
- clientCredentialsOauth2: Oauth2Service[];
299
+ oauth2: Oauth2Service[];
299
300
  }
300
301
  /**
301
302
  * VertexType represents the type of a vertex.
@@ -459,7 +460,7 @@ export declare enum VariableService_Type {
459
460
  SWITCH = 3
460
461
  }
461
462
  /**
462
- * Oauth2 related to user tokens
463
+ * OAuth2 service configuration
463
464
  *
464
465
  * @generated from protobuf message mochabugapis.adapt.plugins.v1.Oauth2Service
465
466
  */
@@ -471,62 +472,83 @@ export interface Oauth2Service {
471
472
  */
472
473
  name: string;
473
474
  /**
474
- * 'label' is an optional short label describing the purpose of the OAuth2
475
- * service.
475
+ * 'label' is an optional short label describing the OAuth2 service.
476
476
  *
477
477
  * @generated from protobuf field: optional string label = 2;
478
478
  */
479
479
  label?: string;
480
480
  /**
481
- * 'description' is a full description about the oauth2 and what it's used for
481
+ * 'description' provides a full description of the OAuth2 service.
482
482
  *
483
483
  * @generated from protobuf field: optional string description = 3;
484
484
  */
485
485
  description?: string;
486
486
  /**
487
- * Set if the grant type is a code flow
487
+ * The OAuth2 grant type to be used.
488
488
  *
489
- * @generated from protobuf field: optional mochabugapis.adapt.plugins.v1.Oauth2Code code = 4;
489
+ * @generated from protobuf field: mochabugapis.adapt.plugins.v1.Oauth2GrantType grant_type = 4;
490
490
  */
491
- code?: Oauth2Code;
491
+ grantType: Oauth2GrantType;
492
492
  /**
493
- * Unset or false means the variable is required
494
- * true means the variable is optional
495
- * Ignored for code flows since they are always required
493
+ * The required scopes.
496
494
  *
497
- * @generated from protobuf field: optional bool optional = 5;
498
- */
499
- optional?: boolean;
500
- /**
501
- * The required scopes
502
- *
503
- * @generated from protobuf field: repeated string scopes = 6;
495
+ * @generated from protobuf field: repeated string scopes = 5;
504
496
  */
505
497
  scopes: string[];
506
498
  /**
507
- * The required auth method
499
+ * The client authentication method.
500
+ * REQUIRED when grant_type is:
501
+ * - OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE
502
+ * - OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS
508
503
  *
509
- * @generated from protobuf field: mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method = 7;
504
+ * MUST NOT be set when grant_type is:
505
+ * - OAUTH2_GRANT_TYPE_JWT_BEARER
506
+ * - OAUTH2_GRANT_TYPE_SAML2_BEARER
507
+ *
508
+ * @generated from protobuf field: optional mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method = 6;
510
509
  */
511
- authMethod: Oauth2AuthType;
510
+ authMethod?: Oauth2AuthType;
512
511
  /**
513
- * Optional algorithm that is required if using private JWT auth
512
+ * Algorithm used for signing assertions.
513
+ * REQUIRED when:
514
+ * - grant_type is OAUTH2_GRANT_TYPE_JWT_BEARER
515
+ * - grant_type is OAUTH2_GRANT_TYPE_SAML2_BEARER
516
+ * - auth_method is OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT
517
+ * - auth_method is OAUTH2_AUTH_TYPE_SAML2_BEARER
518
+ *
519
+ * MUST NOT be set otherwise.
514
520
  *
515
- * @generated from protobuf field: optional mochabugapis.adapt.plugins.v1.PrivateJWTAlg alg = 8;
521
+ * @generated from protobuf field: optional mochabugapis.adapt.plugins.v1.PrivateKeyAlg alg = 7;
516
522
  */
517
- alg?: PrivateJWTAlg;
523
+ alg?: PrivateKeyAlg;
518
524
  /**
519
- * Not required for user accounts
525
+ * Client ID.
526
+ * This is required when used as plugin_oauth2, but not onto a vertex => oauth2
520
527
  *
521
- * @generated from protobuf field: optional string client_id = 9;
528
+ * @generated from protobuf field: optional string client_id = 8;
522
529
  */
523
530
  clientId?: string;
524
531
  /**
525
- * The required token endpoint
532
+ * The token endpoint URL.
526
533
  *
527
- * @generated from protobuf field: string token_endpoint = 10;
534
+ * @generated from protobuf field: string token_endpoint = 9;
528
535
  */
529
536
  tokenEndpoint: string;
537
+ /**
538
+ * Configuration specific to the Authorization Code grant type.
539
+ * REQUIRED when grant_type is OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE.
540
+ * MUST NOT be set otherwise.
541
+ *
542
+ * @generated from protobuf field: optional mochabugapis.adapt.plugins.v1.Oauth2Code code = 10;
543
+ */
544
+ code?: Oauth2Code;
545
+ /**
546
+ * Indicates if the OAuth2 service is optional.
547
+ * This cannot be set to true in case of OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE
548
+ *
549
+ * @generated from protobuf field: optional bool optional = 11;
550
+ */
551
+ optional?: boolean;
530
552
  }
531
553
  /**
532
554
  * Represents a binding to a code service
@@ -577,7 +599,7 @@ export interface Oauth2Code {
577
599
  /**
578
600
  * Additional parameters used for the oauth2 login endpoint
579
601
  * Do not include state or nonce here since we're generating them
580
- * in the backend
602
+ * in the backend. All params will be encoded in the URL
581
603
  *
582
604
  * @generated from protobuf field: map<string, string> additional_params = 3;
583
605
  */
@@ -592,61 +614,109 @@ export interface Oauth2Code {
592
614
  usePkce: boolean;
593
615
  }
594
616
  /**
595
- * The algorithm used for the signing
617
+ * The algorithm used for signing JWT or SAML assertions
596
618
  *
597
- * @generated from protobuf enum mochabugapis.adapt.plugins.v1.PrivateJWTAlg
619
+ * @generated from protobuf enum mochabugapis.adapt.plugins.v1.PrivateKeyAlg
598
620
  */
599
- export declare enum PrivateJWTAlg {
621
+ export declare enum PrivateKeyAlg {
600
622
  /**
601
- * Unkown algorithm
623
+ * Unknown algorithm (invalid)
602
624
  *
603
- * @generated from protobuf enum value: PRIVATE_JWT_ALG_UNSPECIFIED = 0;
625
+ * @generated from protobuf enum value: PRIVATE_KEY_ALG_UNSPECIFIED = 0;
604
626
  */
605
- PRIVATE_JWT_ALG_UNSPECIFIED = 0,
627
+ UNSPECIFIED = 0,
606
628
  /**
607
629
  * RS256 algorithm
608
630
  *
609
- * @generated from protobuf enum value: PRIVATE_JWT_ALG_RS256 = 1;
631
+ * @generated from protobuf enum value: PRIVATE_KEY_ALG_RS256 = 1;
610
632
  */
611
- PRIVATE_JWT_ALG_RS256 = 1
633
+ RS256 = 1
612
634
  }
613
635
  /**
614
- * The oauth2 auth type. It has to be specified in the manifest
615
- * since user defined client credentials will not support changing the auth type on the fly
636
+ * The OAuth2 grant type
637
+ *
638
+ * @generated from protobuf enum mochabugapis.adapt.plugins.v1.Oauth2GrantType
639
+ */
640
+ export declare enum Oauth2GrantType {
641
+ /**
642
+ * Not specified (invalid)
643
+ *
644
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_UNSPECIFIED = 0;
645
+ */
646
+ UNSPECIFIED = 0,
647
+ /**
648
+ * Authorization Code Grant
649
+ * grant_type=authorization_code
650
+ *
651
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE = 1;
652
+ */
653
+ AUTHORIZATION_CODE = 1,
654
+ /**
655
+ * Client Credentials Grant
656
+ * grant_type=client_credentials
657
+ *
658
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS = 2;
659
+ */
660
+ CLIENT_CREDENTIALS = 2,
661
+ /**
662
+ * JWT Bearer Assertion Grant
663
+ * grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
664
+ *
665
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_JWT_BEARER = 3;
666
+ */
667
+ JWT_BEARER = 3,
668
+ /**
669
+ * SAML 2.0 Bearer Assertion Grant
670
+ * grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer
671
+ *
672
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_SAML2_BEARER = 4;
673
+ */
674
+ SAML2_BEARER = 4
675
+ }
676
+ /**
677
+ * The OAuth2 client authentication method
616
678
  *
617
679
  * @generated from protobuf enum mochabugapis.adapt.plugins.v1.Oauth2AuthType
618
680
  */
619
681
  export declare enum Oauth2AuthType {
620
682
  /**
621
- * Not specified
683
+ * Not specified (invalid)
622
684
  *
623
685
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_UNSPECIFIED = 0;
624
686
  */
625
687
  UNSPECIFIED = 0,
626
688
  /**
627
- * Use basic authentication
689
+ * Basic Authentication (client ID and secret in Authorization header)
628
690
  *
629
691
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_BASIC = 1;
630
692
  */
631
693
  BASIC = 1,
632
694
  /**
633
- * Use form authentication
695
+ * Form Authentication (client ID and secret in form body)
634
696
  *
635
697
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_FORM = 2;
636
698
  */
637
699
  FORM = 2,
638
700
  /**
639
- * The private key
701
+ * Private Key JWT Authentication
702
+ * client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
640
703
  *
641
- * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_PRIVATE_KEY = 3;
704
+ * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT = 3;
642
705
  */
643
- PRIVATE_KEY = 3,
706
+ PRIVATE_KEY_JWT = 3,
644
707
  /**
645
- * The mtls auth
708
+ * Mutual TLS Authentication
646
709
  *
647
710
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_MTLS = 4;
648
711
  */
649
- MTLS = 4
712
+ MTLS = 4,
713
+ /**
714
+ * SAML 2.0 Bearer Assertion for Client Authentication
715
+ * client_assertion_type=urn:ietf:params:oauth:client-assertion-type:saml2-bearer
716
+ *
717
+ * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_SAML2_BEARER = 5;
718
+ */
719
+ SAML2_BEARER = 5
650
720
  }
651
721
  declare class UploadPluginRequest$Type extends MessageType<UploadPluginRequest> {
652
722
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/genproto/mochabugapis/adapt/plugins/v1/plugins.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAChC;;OAEG;IACH,IAAI,EAAE;QACF,SAAS,EAAE,UAAU,CAAC;QACtB;;;;;WAKG;QACH,QAAQ,EAAE,QAAQ,CAAC;KACtB,GAAG;QACA,SAAS,EAAE,MAAM,CAAC;QAClB;;;;;WAKG;QACH,IAAI,EAAE,IAAI,CAAC;KACd,GAAG;QACA,SAAS,EAAE,SAAS,CAAC;KACxB,CAAC;CACL;AACD;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;CACpC;AACD;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH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,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAkB9G;AACD;;GAEG;AACH,eAAO,MAAM,UAAU,iBAAwB,CAAC;AAChD;;GAEG;AACH,eAAO,MAAM,aAAa,aAEsK,CAAC"}
package/bin/index.js CHANGED
@@ -122,63 +122,112 @@ var VariableService_Type;
122
122
  VariableService_Type[VariableService_Type["SWITCH"] = 3] = "SWITCH";
123
123
  })(VariableService_Type || (VariableService_Type = {}));
124
124
  /**
125
- * The algorithm used for the signing
125
+ * The algorithm used for signing JWT or SAML assertions
126
126
  *
127
- * @generated from protobuf enum mochabugapis.adapt.plugins.v1.PrivateJWTAlg
127
+ * @generated from protobuf enum mochabugapis.adapt.plugins.v1.PrivateKeyAlg
128
128
  */
129
- var PrivateJWTAlg;
130
- (function (PrivateJWTAlg) {
129
+ var PrivateKeyAlg;
130
+ (function (PrivateKeyAlg) {
131
131
  /**
132
- * Unkown algorithm
132
+ * Unknown algorithm (invalid)
133
133
  *
134
- * @generated from protobuf enum value: PRIVATE_JWT_ALG_UNSPECIFIED = 0;
134
+ * @generated from protobuf enum value: PRIVATE_KEY_ALG_UNSPECIFIED = 0;
135
135
  */
136
- PrivateJWTAlg[PrivateJWTAlg["PRIVATE_JWT_ALG_UNSPECIFIED"] = 0] = "PRIVATE_JWT_ALG_UNSPECIFIED";
136
+ PrivateKeyAlg[PrivateKeyAlg["UNSPECIFIED"] = 0] = "UNSPECIFIED";
137
137
  /**
138
138
  * RS256 algorithm
139
139
  *
140
- * @generated from protobuf enum value: PRIVATE_JWT_ALG_RS256 = 1;
140
+ * @generated from protobuf enum value: PRIVATE_KEY_ALG_RS256 = 1;
141
141
  */
142
- PrivateJWTAlg[PrivateJWTAlg["PRIVATE_JWT_ALG_RS256"] = 1] = "PRIVATE_JWT_ALG_RS256";
143
- })(PrivateJWTAlg || (PrivateJWTAlg = {}));
142
+ PrivateKeyAlg[PrivateKeyAlg["RS256"] = 1] = "RS256";
143
+ })(PrivateKeyAlg || (PrivateKeyAlg = {}));
144
144
  /**
145
- * The oauth2 auth type. It has to be specified in the manifest
146
- * since user defined client credentials will not support changing the auth type on the fly
145
+ * The OAuth2 grant type
146
+ *
147
+ * @generated from protobuf enum mochabugapis.adapt.plugins.v1.Oauth2GrantType
148
+ */
149
+ var Oauth2GrantType;
150
+ (function (Oauth2GrantType) {
151
+ /**
152
+ * Not specified (invalid)
153
+ *
154
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_UNSPECIFIED = 0;
155
+ */
156
+ Oauth2GrantType[Oauth2GrantType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
157
+ /**
158
+ * Authorization Code Grant
159
+ * grant_type=authorization_code
160
+ *
161
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE = 1;
162
+ */
163
+ Oauth2GrantType[Oauth2GrantType["AUTHORIZATION_CODE"] = 1] = "AUTHORIZATION_CODE";
164
+ /**
165
+ * Client Credentials Grant
166
+ * grant_type=client_credentials
167
+ *
168
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS = 2;
169
+ */
170
+ Oauth2GrantType[Oauth2GrantType["CLIENT_CREDENTIALS"] = 2] = "CLIENT_CREDENTIALS";
171
+ /**
172
+ * JWT Bearer Assertion Grant
173
+ * grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
174
+ *
175
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_JWT_BEARER = 3;
176
+ */
177
+ Oauth2GrantType[Oauth2GrantType["JWT_BEARER"] = 3] = "JWT_BEARER";
178
+ /**
179
+ * SAML 2.0 Bearer Assertion Grant
180
+ * grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer
181
+ *
182
+ * @generated from protobuf enum value: OAUTH2_GRANT_TYPE_SAML2_BEARER = 4;
183
+ */
184
+ Oauth2GrantType[Oauth2GrantType["SAML2_BEARER"] = 4] = "SAML2_BEARER";
185
+ })(Oauth2GrantType || (Oauth2GrantType = {}));
186
+ /**
187
+ * The OAuth2 client authentication method
147
188
  *
148
189
  * @generated from protobuf enum mochabugapis.adapt.plugins.v1.Oauth2AuthType
149
190
  */
150
191
  var Oauth2AuthType;
151
192
  (function (Oauth2AuthType) {
152
193
  /**
153
- * Not specified
194
+ * Not specified (invalid)
154
195
  *
155
196
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_UNSPECIFIED = 0;
156
197
  */
157
198
  Oauth2AuthType[Oauth2AuthType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
158
199
  /**
159
- * Use basic authentication
200
+ * Basic Authentication (client ID and secret in Authorization header)
160
201
  *
161
202
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_BASIC = 1;
162
203
  */
163
204
  Oauth2AuthType[Oauth2AuthType["BASIC"] = 1] = "BASIC";
164
205
  /**
165
- * Use form authentication
206
+ * Form Authentication (client ID and secret in form body)
166
207
  *
167
208
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_FORM = 2;
168
209
  */
169
210
  Oauth2AuthType[Oauth2AuthType["FORM"] = 2] = "FORM";
170
211
  /**
171
- * The private key
212
+ * Private Key JWT Authentication
213
+ * client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
172
214
  *
173
- * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_PRIVATE_KEY = 3;
215
+ * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT = 3;
174
216
  */
175
- Oauth2AuthType[Oauth2AuthType["PRIVATE_KEY"] = 3] = "PRIVATE_KEY";
217
+ Oauth2AuthType[Oauth2AuthType["PRIVATE_KEY_JWT"] = 3] = "PRIVATE_KEY_JWT";
176
218
  /**
177
- * The mtls auth
219
+ * Mutual TLS Authentication
178
220
  *
179
221
  * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_MTLS = 4;
180
222
  */
181
223
  Oauth2AuthType[Oauth2AuthType["MTLS"] = 4] = "MTLS";
224
+ /**
225
+ * SAML 2.0 Bearer Assertion for Client Authentication
226
+ * client_assertion_type=urn:ietf:params:oauth:client-assertion-type:saml2-bearer
227
+ *
228
+ * @generated from protobuf enum value: OAUTH2_AUTH_TYPE_SAML2_BEARER = 5;
229
+ */
230
+ Oauth2AuthType[Oauth2AuthType["SAML2_BEARER"] = 5] = "SAML2_BEARER";
182
231
  })(Oauth2AuthType || (Oauth2AuthType = {}));
183
232
  // @generated message type with reflection information, may provide speed optimized methods
184
233
  class UploadPluginRequest$Type extends MessageType {
@@ -339,7 +388,7 @@ class Manifest$Type extends MessageType {
339
388
  { no: 13, name: "assets", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
340
389
  { no: 14, name: "cdn", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
341
390
  { no: 15, name: "vertices", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Vertex, options: { "buf.validate.field": { cel: [{ id: "vertex_unique_names", message: "a name cannot appear more than once", expression: "this.map(vertex, vertex.name).unique()" }], repeated: { minItems: "1", maxItems: "100" } } } },
342
- { no: 16, name: "plugin_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service, options: { "buf.validate.field": { cel: [{ id: "oauth_unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20" } } } },
391
+ { no: 16, name: "plugin_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service, options: { "buf.validate.field": { cel: [{ id: "plugin_oauth2.oauth_unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20", items: { cel: [{ id: "plugin_oauth2.oauth2.client_id", message: "The client_id property must be set", expression: "has(this.client_id)" }] } } } } },
343
392
  { no: 17, name: "plugin_variables", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VariableService, options: { "buf.validate.field": { cel: [{ id: "vars_unique_names", message: "a name cannot appear more than once", expression: "this.map(variable, variable.name).unique()" }], repeated: { minItems: "0", maxItems: "100" } } } },
344
393
  { no: 18, name: "plugin_mtls", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MTLSService, options: { "buf.validate.field": { cel: [{ id: "mtls_unique_names", message: "a name cannot appear more than once", expression: "this.map(mtls, mtls.name).unique()" }], repeated: { minItems: "0", maxItems: "20" } } } }
345
394
  ]);
@@ -508,9 +557,9 @@ class Vertex$Type extends MessageType {
508
557
  { no: 7, name: "configurator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
509
558
  { no: 8, name: "variables", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VariableService, options: { "buf.validate.field": { cel: [{ id: "vars_unique_names", message: "a name cannot appear more than once", expression: "this.map(variable, variable.name).unique()" }], repeated: { minItems: "0", maxItems: "100" } } } },
510
559
  { no: 9, name: "mtls", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MTLSService, options: { "buf.validate.field": { cel: [{ id: "mtls_unique_names", message: "a name cannot appear more than once", expression: "this.map(mtls, mtls.name).unique()" }], repeated: { minItems: "0", maxItems: "100" } } } },
511
- { no: 10, name: "code_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2CodeBinding, options: { "buf.validate.field": { cel: [{ id: "oauth_unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20" } } } },
512
- { no: 11, name: "client_credentials_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service, options: { "buf.validate.field": { cel: [{ id: "oauth_unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20" } } } }
513
- ]);
560
+ { no: 10, name: "code_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2CodeBinding, options: { "buf.validate.field": { cel: [{ id: "vertex.code_oauth2.unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20" } } } },
561
+ { no: 11, name: "oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service, options: { "buf.validate.field": { cel: [{ id: "vertex.oauth2.unique_names", message: "a name cannot appear more than once", expression: "this.map(oauth, oauth.name).unique()" }], repeated: { minItems: "0", maxItems: "20", items: { cel: [{ id: "vertex.oauth2.client_id_and_code", message: "The client_id and the code property may not be set as well as the code grant type", expression: "!has(this.client_id) && !has(this.code) && this.grant_type != 1" }] } } } } }
562
+ ], { "buf.validate.message": { cel: [{ id: "vertex.oauth2_and_code_bindings", message: "The names of the oauth2 services and the code bindings must be unique", expression: "(this.oauth2.map(val, val.name) + this.code_oauth2.map(val, val.name)).unique()" }] } });
514
563
  }
515
564
  create(value) {
516
565
  const message = globalThis.Object.create((this.messagePrototype));
@@ -522,7 +571,7 @@ class Vertex$Type extends MessageType {
522
571
  message.variables = [];
523
572
  message.mtls = [];
524
573
  message.codeOauth2 = [];
525
- message.clientCredentialsOauth2 = [];
574
+ message.oauth2 = [];
526
575
  if (value !== undefined)
527
576
  reflectionMergePartial(this, message, value);
528
577
  return message;
@@ -562,8 +611,8 @@ class Vertex$Type extends MessageType {
562
611
  case /* repeated mochabugapis.adapt.plugins.v1.Oauth2CodeBinding code_oauth2 */ 10:
563
612
  message.codeOauth2.push(Oauth2CodeBinding.internalBinaryRead(reader, reader.uint32(), options));
564
613
  break;
565
- case /* repeated mochabugapis.adapt.plugins.v1.Oauth2Service client_credentials_oauth2 */ 11:
566
- message.clientCredentialsOauth2.push(Oauth2Service.internalBinaryRead(reader, reader.uint32(), options));
614
+ case /* repeated mochabugapis.adapt.plugins.v1.Oauth2Service oauth2 */ 11:
615
+ message.oauth2.push(Oauth2Service.internalBinaryRead(reader, reader.uint32(), options));
567
616
  break;
568
617
  default:
569
618
  let u = options.readUnknownField;
@@ -607,9 +656,9 @@ class Vertex$Type extends MessageType {
607
656
  /* repeated mochabugapis.adapt.plugins.v1.Oauth2CodeBinding code_oauth2 = 10; */
608
657
  for (let i = 0; i < message.codeOauth2.length; i++)
609
658
  Oauth2CodeBinding.internalBinaryWrite(message.codeOauth2[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
610
- /* repeated mochabugapis.adapt.plugins.v1.Oauth2Service client_credentials_oauth2 = 11; */
611
- for (let i = 0; i < message.clientCredentialsOauth2.length; i++)
612
- Oauth2Service.internalBinaryWrite(message.clientCredentialsOauth2[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
659
+ /* repeated mochabugapis.adapt.plugins.v1.Oauth2Service oauth2 = 11; */
660
+ for (let i = 0; i < message.oauth2.length; i++)
661
+ Oauth2Service.internalBinaryWrite(message.oauth2[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
613
662
  let u = options.writeUnknownFields;
614
663
  if (u !== false)
615
664
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -769,22 +818,23 @@ class Oauth2Service$Type extends MessageType {
769
818
  constructor() {
770
819
  super("mochabugapis.adapt.plugins.v1.Oauth2Service", [
771
820
  { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100", pattern: "^[_$a-z][_$a-z0-9]*$" } } } },
772
- { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
821
+ { no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "100" } } } },
773
822
  { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
774
- { no: 4, name: "code", kind: "message", T: () => Oauth2Code },
775
- { no: 5, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
776
- { no: 6, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "500", unique: true, items: { string: { minLen: "1", maxLen: "100" } } } } } },
777
- { no: 7, name: "auth_method", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Oauth2AuthType", Oauth2AuthType, "OAUTH2_AUTH_TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
778
- { no: 8, name: "alg", kind: "enum", opt: true, T: () => ["mochabugapis.adapt.plugins.v1.PrivateJWTAlg", PrivateJWTAlg], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
779
- { no: 9, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" } } } },
780
- { no: 10, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" } } } }
781
- ]);
823
+ { no: 4, name: "grant_type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Oauth2GrantType", Oauth2GrantType, "OAUTH2_GRANT_TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
824
+ { no: 5, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { repeated: { minItems: "1", maxItems: "500", unique: true, items: { string: { minLen: "1", maxLen: "100" } } } } } },
825
+ { no: 6, name: "auth_method", kind: "enum", opt: true, T: () => ["mochabugapis.adapt.plugins.v1.Oauth2AuthType", Oauth2AuthType, "OAUTH2_AUTH_TYPE_"], options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", enum: { notIn: [0] } } } },
826
+ { no: 7, name: "alg", kind: "enum", opt: true, T: () => ["mochabugapis.adapt.plugins.v1.PrivateKeyAlg", PrivateKeyAlg, "PRIVATE_KEY_ALG_"], options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", enum: { notIn: [0] } } } },
827
+ { no: 8, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { ignore: "IGNORE_EMPTY", string: { minLen: "1", maxLen: "250" } } } },
828
+ { no: 9, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" } } } },
829
+ { no: 10, name: "code", kind: "message", T: () => Oauth2Code },
830
+ { no: 11, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
831
+ ], { "buf.validate.message": { cel: [{ id: "oauth2.auth_method", message: "The auth_method property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE or OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS", expression: "has(this.auth_method) == (this.grant_type == 1 || this.grant_type == 2)" }, { id: "oauth2.alg", message: "The alg property must be set in case of grant_type OAUTH2_GRANT_TYPE_JWT_BEARER, OAUTH2_GRANT_TYPE_SAML2_BEARER or auth_method OAUTH2_AUTH_TYPE_PRIVATE_KEY_JWT, OAUTH2_AUTH_TYPE_SAML2_BEARER", expression: "has(this.alg) == (this.grant_type == 3 || this.grant_type == 4 || this.auth_method == 3 || this.auth_method == 5)" }, { id: "oauth2.code", message: "The code property must be set in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "has(this.code) == (this.grant_type == 1)" }, { id: "oauth2.optional", message: "The optional property cannot be set to true in case of grant_type OAUTH2_GRANT_TYPE_AUTHORIZATION_CODE", expression: "has(this.optional) && this.optional == (this.grant_type != 1)" }] } });
782
832
  }
783
833
  create(value) {
784
834
  const message = globalThis.Object.create((this.messagePrototype));
785
835
  message.name = "";
836
+ message.grantType = 0;
786
837
  message.scopes = [];
787
- message.authMethod = 0;
788
838
  message.tokenEndpoint = "";
789
839
  if (value !== undefined)
790
840
  reflectionMergePartial(this, message, value);
@@ -804,27 +854,30 @@ class Oauth2Service$Type extends MessageType {
804
854
  case /* optional string description */ 3:
805
855
  message.description = reader.string();
806
856
  break;
807
- case /* optional mochabugapis.adapt.plugins.v1.Oauth2Code code */ 4:
808
- message.code = Oauth2Code.internalBinaryRead(reader, reader.uint32(), options, message.code);
857
+ case /* mochabugapis.adapt.plugins.v1.Oauth2GrantType grant_type */ 4:
858
+ message.grantType = reader.int32();
809
859
  break;
810
- case /* optional bool optional */ 5:
811
- message.optional = reader.bool();
812
- break;
813
- case /* repeated string scopes */ 6:
860
+ case /* repeated string scopes */ 5:
814
861
  message.scopes.push(reader.string());
815
862
  break;
816
- case /* mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method */ 7:
863
+ case /* optional mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method */ 6:
817
864
  message.authMethod = reader.int32();
818
865
  break;
819
- case /* optional mochabugapis.adapt.plugins.v1.PrivateJWTAlg alg */ 8:
866
+ case /* optional mochabugapis.adapt.plugins.v1.PrivateKeyAlg alg */ 7:
820
867
  message.alg = reader.int32();
821
868
  break;
822
- case /* optional string client_id */ 9:
869
+ case /* optional string client_id */ 8:
823
870
  message.clientId = reader.string();
824
871
  break;
825
- case /* string token_endpoint */ 10:
872
+ case /* string token_endpoint */ 9:
826
873
  message.tokenEndpoint = reader.string();
827
874
  break;
875
+ case /* optional mochabugapis.adapt.plugins.v1.Oauth2Code code */ 10:
876
+ message.code = Oauth2Code.internalBinaryRead(reader, reader.uint32(), options, message.code);
877
+ break;
878
+ case /* optional bool optional */ 11:
879
+ message.optional = reader.bool();
880
+ break;
828
881
  default:
829
882
  let u = options.readUnknownField;
830
883
  if (u === "throw")
@@ -846,27 +899,30 @@ class Oauth2Service$Type extends MessageType {
846
899
  /* optional string description = 3; */
847
900
  if (message.description !== undefined)
848
901
  writer.tag(3, WireType.LengthDelimited).string(message.description);
849
- /* optional mochabugapis.adapt.plugins.v1.Oauth2Code code = 4; */
850
- if (message.code)
851
- Oauth2Code.internalBinaryWrite(message.code, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
852
- /* optional bool optional = 5; */
853
- if (message.optional !== undefined)
854
- writer.tag(5, WireType.Varint).bool(message.optional);
855
- /* repeated string scopes = 6; */
902
+ /* mochabugapis.adapt.plugins.v1.Oauth2GrantType grant_type = 4; */
903
+ if (message.grantType !== 0)
904
+ writer.tag(4, WireType.Varint).int32(message.grantType);
905
+ /* repeated string scopes = 5; */
856
906
  for (let i = 0; i < message.scopes.length; i++)
857
- writer.tag(6, WireType.LengthDelimited).string(message.scopes[i]);
858
- /* mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method = 7; */
859
- if (message.authMethod !== 0)
860
- writer.tag(7, WireType.Varint).int32(message.authMethod);
861
- /* optional mochabugapis.adapt.plugins.v1.PrivateJWTAlg alg = 8; */
907
+ writer.tag(5, WireType.LengthDelimited).string(message.scopes[i]);
908
+ /* optional mochabugapis.adapt.plugins.v1.Oauth2AuthType auth_method = 6; */
909
+ if (message.authMethod !== undefined)
910
+ writer.tag(6, WireType.Varint).int32(message.authMethod);
911
+ /* optional mochabugapis.adapt.plugins.v1.PrivateKeyAlg alg = 7; */
862
912
  if (message.alg !== undefined)
863
- writer.tag(8, WireType.Varint).int32(message.alg);
864
- /* optional string client_id = 9; */
913
+ writer.tag(7, WireType.Varint).int32(message.alg);
914
+ /* optional string client_id = 8; */
865
915
  if (message.clientId !== undefined)
866
- writer.tag(9, WireType.LengthDelimited).string(message.clientId);
867
- /* string token_endpoint = 10; */
916
+ writer.tag(8, WireType.LengthDelimited).string(message.clientId);
917
+ /* string token_endpoint = 9; */
868
918
  if (message.tokenEndpoint !== "")
869
- writer.tag(10, WireType.LengthDelimited).string(message.tokenEndpoint);
919
+ writer.tag(9, WireType.LengthDelimited).string(message.tokenEndpoint);
920
+ /* optional mochabugapis.adapt.plugins.v1.Oauth2Code code = 10; */
921
+ if (message.code)
922
+ Oauth2Code.internalBinaryWrite(message.code, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
923
+ /* optional bool optional = 11; */
924
+ if (message.optional !== undefined)
925
+ writer.tag(11, WireType.Varint).bool(message.optional);
870
926
  let u = options.writeUnknownFields;
871
927
  if (u !== false)
872
928
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1112,7 +1168,7 @@ function addVertex(cwd, name, type, hasConfigurator, existingVertices) {
1112
1168
  configurator: hasConfigurator,
1113
1169
  mtls: [],
1114
1170
  codeOauth2: [],
1115
- clientCredentialsOauth2: [],
1171
+ oauth2: [],
1116
1172
  variables: []
1117
1173
  };
1118
1174
  // Write the new task
@@ -2018,7 +2074,7 @@ function handleVersion(bump, cmd) {
2018
2074
  }
2019
2075
  async function main() {
2020
2076
  const notifier = updateNotifier({
2021
- pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.7"}')
2077
+ pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.8"}')
2022
2078
  });
2023
2079
  notifier.notify({ isGlobal: true, defer: false });
2024
2080
  program
@@ -2044,7 +2100,7 @@ async function main() {
2044
2100
  .action((_, cmd) => handleAdd(cmd));
2045
2101
  program
2046
2102
  .command('publish')
2047
- .option('-h, --host <host>', chalk.yellow('Warning: Primarily for development purposes'), 'adapt-dev-grpc.mochabugapis.com')
2103
+ .option('-h, --host <host>', chalk.yellow('Warning: Primarily for development purposes'), 'adapt-grpc-dev.mochabugapis.com')
2048
2104
  .option('-a, --authority <authority>', chalk.yellow('Warning: Primarily for development purposes'), 'https://auth-dev.mochabugapis.com')
2049
2105
  .option('-c, --client <client>', chalk.yellow('Warning: Primarily for development purposes'), '2d711bbb-4b57-4ad5-8bf0-f2269de5b71d')
2050
2106
  .option('-e, --error-url <errorUrl>', chalk.yellow('Warning: Primarily for development purposes'), 'https://accounts-dev.mochabug.com/services/error')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mochabug/adaptkit",
3
- "version": "0.12.7",
3
+ "version": "0.12.8",
4
4
  "description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
5
5
  "main": "bin/index.js",
6
6
  "type": "module",
@@ -49,11 +49,11 @@
49
49
  "@types/express": "^5.0.0",
50
50
  "@types/figlet": "^1.5.8",
51
51
  "@types/jest": "^29.5.13",
52
- "@types/node": "^22.7.2",
52
+ "@types/node": "^22.7.3",
53
53
  "@types/semver": "^7.5.8",
54
54
  "@types/update-notifier": "^6.0.8",
55
55
  "jest": "^29.7.0",
56
- "rollup": "^4.22.4",
56
+ "rollup": "^4.22.5",
57
57
  "rollup-plugin-string": "^3.0.0",
58
58
  "ts-jest": "^29.2.5",
59
59
  "ts-node": "^10.9.2",