@mochabug/adaptkit 0.12.3 → 0.12.4
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.
- package/bin/genproto/buf/validate/validate.d.ts +4460 -0
- package/bin/genproto/buf/validate/validate.d.ts.map +1 -0
- package/bin/genproto/google/protobuf/timestamp.d.ts +156 -0
- package/bin/genproto/google/protobuf/timestamp.d.ts.map +1 -0
- package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.d.ts +16 -218
- package/bin/genproto/mochabugapis/adapt/plugins/v1/plugins.d.ts.map +1 -1
- package/bin/index.js +50 -50
- package/package.json +7 -7
package/bin/index.js
CHANGED
|
@@ -115,7 +115,7 @@ var VariableService_Type;
|
|
|
115
115
|
*/
|
|
116
116
|
VariableService_Type[VariableService_Type["STRING"] = 2] = "STRING";
|
|
117
117
|
/**
|
|
118
|
-
* The variable is a boolean value
|
|
118
|
+
* The variable is a boolean value (a string either "true" or "false")
|
|
119
119
|
*
|
|
120
120
|
* @generated from protobuf enum value: TYPE_SWITCH = 3;
|
|
121
121
|
*/
|
|
@@ -269,8 +269,8 @@ const UploadPluginResponse = new UploadPluginResponse$Type();
|
|
|
269
269
|
class File$Type extends MessageType {
|
|
270
270
|
constructor() {
|
|
271
271
|
super("mochabugapis.adapt.plugins.v1.File", [
|
|
272
|
-
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
273
|
-
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES
|
|
272
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
|
|
273
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/, options: { "buf.validate.field": { bytes: { minLen: "1", maxLen: "10485760" } } } }
|
|
274
274
|
]);
|
|
275
275
|
}
|
|
276
276
|
create(value) {
|
|
@@ -324,24 +324,24 @@ const File = new File$Type();
|
|
|
324
324
|
class Manifest$Type extends MessageType {
|
|
325
325
|
constructor() {
|
|
326
326
|
super("mochabugapis.adapt.plugins.v1.Manifest", [
|
|
327
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
328
|
-
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
329
|
-
{ no: 3, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
330
|
-
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
331
|
-
{ no: 5, name: "organization", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
332
|
-
{ no: 6, name: "homepage", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
333
|
-
{ no: 7, name: "repository", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
334
|
-
{ no: 8, name: "bugs", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
335
|
-
{ no: 9, name: "author", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
336
|
-
{ no: 10, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
337
|
-
{ no: 11, name: "executors", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
338
|
-
{ no: 12, name: "configurators", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
339
|
-
{ no: 13, name: "assets", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
340
|
-
{ no: 14, name: "cdn", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
341
|
-
{ no: 15, name: "vertices", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Vertex },
|
|
342
|
-
{ no: 16, name: "plugin_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service },
|
|
343
|
-
{ no: 17, name: "plugin_variables", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VariableService },
|
|
344
|
-
{ no: 18, name: "plugin_mtls", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MTLSService }
|
|
327
|
+
{ 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]*$" } } } },
|
|
328
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "5", maxLen: "150", pattern: "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" } } } },
|
|
329
|
+
{ no: 3, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
|
|
330
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" } } } },
|
|
331
|
+
{ no: 5, name: "organization", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { uuid: true } } } },
|
|
332
|
+
{ no: 6, name: "homepage", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" }, ignoreEmpty: true } } },
|
|
333
|
+
{ no: 7, name: "repository", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "11", maxLen: "4096", pattern: "^https://[a-zA-Z0-9.-]+(?:\\.[a-zA-Z]{2,})(?:/.*)?$" }, ignoreEmpty: true } } },
|
|
334
|
+
{ no: 8, name: "bugs", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_email_or_url", message: "bugs must be a valid email or URL", expression: "size(this) >= 2 && size(this) <= 4096 && (this.isEmail() || this.matches('^https://[a-zA-Z0-9.-]+(?:\\\\.[a-zA-Z]{2,})(?:/.*)?$'))" }], ignoreEmpty: true } } },
|
|
335
|
+
{ no: 9, name: "author", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" }, ignoreEmpty: true } } },
|
|
336
|
+
{ no: 10, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" }, ignoreEmpty: true } } },
|
|
337
|
+
{ no: 11, name: "executors", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(mjs|js)$" } } } },
|
|
338
|
+
{ no: 12, name: "configurators", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(mjs|js)$" }, ignoreEmpty: true } } },
|
|
339
|
+
{ no: 13, name: "assets", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
|
|
340
|
+
{ no: 14, name: "cdn", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^[^/]+(\\/[^/]+)*$" } } } },
|
|
341
|
+
{ 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" } } } },
|
|
343
|
+
{ 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
|
+
{ 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
345
|
]);
|
|
346
346
|
}
|
|
347
347
|
create(value) {
|
|
@@ -499,17 +499,17 @@ const Manifest = new Manifest$Type();
|
|
|
499
499
|
class Vertex$Type extends MessageType {
|
|
500
500
|
constructor() {
|
|
501
501
|
super("mochabugapis.adapt.plugins.v1.Vertex", [
|
|
502
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
503
|
-
{ no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
504
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
505
|
-
{ no: 4, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
506
|
-
{ no: 5, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Vertex.VertexType", Vertex_VertexType, "VERTEX_TYPE_"] },
|
|
507
|
-
{ no: 6, name: "config", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
502
|
+
{ 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]*$" } } } },
|
|
503
|
+
{ no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
|
|
504
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
|
|
505
|
+
{ no: 4, name: "logo", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "2", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.(gif|jpg|jpeg|jfif|pjpeg|pjp|png|svg|webp|avif)$" }, ignoreEmpty: true } } },
|
|
506
|
+
{ no: 5, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Vertex.VertexType", Vertex_VertexType, "VERTEX_TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
|
|
507
|
+
{ no: 6, name: "config", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "5", maxLen: "4096", pattern: "^([^/]+(/[^/]+)*)\\.json$" } } } },
|
|
508
508
|
{ no: 7, name: "configurator", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
509
|
-
{ no: 8, name: "variables", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => VariableService },
|
|
510
|
-
{ no: 9, name: "mtls", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MTLSService },
|
|
511
|
-
{ no: 10, name: "code_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2CodeBinding },
|
|
512
|
-
{ no: 11, name: "client_credentials_oauth2", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Oauth2Service }
|
|
509
|
+
{ 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
|
+
{ 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
513
|
]);
|
|
514
514
|
}
|
|
515
515
|
create(value) {
|
|
@@ -624,9 +624,9 @@ const Vertex = new Vertex$Type();
|
|
|
624
624
|
class MTLSService$Type extends MessageType {
|
|
625
625
|
constructor() {
|
|
626
626
|
super("mochabugapis.adapt.plugins.v1.MTLSService", [
|
|
627
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
628
|
-
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
629
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
627
|
+
{ 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]*$" } } } },
|
|
628
|
+
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" }, ignoreEmpty: true } } },
|
|
629
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
|
|
630
630
|
{ no: 4, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
631
631
|
]);
|
|
632
632
|
}
|
|
@@ -692,10 +692,10 @@ const MTLSService = new MTLSService$Type();
|
|
|
692
692
|
class VariableService$Type extends MessageType {
|
|
693
693
|
constructor() {
|
|
694
694
|
super("mochabugapis.adapt.plugins.v1.VariableService", [
|
|
695
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
696
|
-
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
697
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
698
|
-
{ no: 4, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.VariableService.Type", VariableService_Type, "TYPE_"] },
|
|
695
|
+
{ 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]*$" } } } },
|
|
696
|
+
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "100" } } } },
|
|
697
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
|
|
698
|
+
{ no: 4, name: "type", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.VariableService.Type", VariableService_Type, "TYPE_"], options: { "buf.validate.field": { enum: { notIn: [0] } } } },
|
|
699
699
|
{ no: 5, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
700
700
|
]);
|
|
701
701
|
}
|
|
@@ -768,16 +768,16 @@ const VariableService = new VariableService$Type();
|
|
|
768
768
|
class Oauth2Service$Type extends MessageType {
|
|
769
769
|
constructor() {
|
|
770
770
|
super("mochabugapis.adapt.plugins.v1.Oauth2Service", [
|
|
771
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
772
|
-
{ no: 2, name: "label", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
773
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
771
|
+
{ 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" } } } },
|
|
773
|
+
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { minLen: "1", maxLen: "250" }, ignoreEmpty: true } } },
|
|
774
774
|
{ no: 4, name: "code", kind: "message", T: () => Oauth2Code },
|
|
775
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
|
|
777
|
-
{ no: 7, name: "auth_method", kind: "enum", T: () => ["mochabugapis.adapt.plugins.v1.Oauth2AuthType", Oauth2AuthType, "OAUTH2_AUTH_TYPE_"] },
|
|
778
|
-
{ no: 8, name: "alg", kind: "enum", opt: true, T: () => ["mochabugapis.adapt.plugins.v1.PrivateJWTAlg", PrivateJWTAlg] },
|
|
779
|
-
{ no: 9, name: "client_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING
|
|
780
|
-
{ no: 10, name: "token_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
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
781
|
]);
|
|
782
782
|
}
|
|
783
783
|
create(value) {
|
|
@@ -881,7 +881,7 @@ const Oauth2Service = new Oauth2Service$Type();
|
|
|
881
881
|
class Oauth2CodeBinding$Type extends MessageType {
|
|
882
882
|
constructor() {
|
|
883
883
|
super("mochabugapis.adapt.plugins.v1.Oauth2CodeBinding", [
|
|
884
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
884
|
+
{ 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]*$" } } } },
|
|
885
885
|
{ no: 2, name: "optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
886
886
|
]);
|
|
887
887
|
}
|
|
@@ -935,9 +935,9 @@ const Oauth2CodeBinding = new Oauth2CodeBinding$Type();
|
|
|
935
935
|
class Oauth2Code$Type extends MessageType {
|
|
936
936
|
constructor() {
|
|
937
937
|
super("mochabugapis.adapt.plugins.v1.Oauth2Code", [
|
|
938
|
-
{ no: 1, name: "auth_endpoint", kind: "scalar", T: 9 /*ScalarType.STRING
|
|
938
|
+
{ no: 1, name: "auth_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,})(?:/.*)?$" } } } },
|
|
939
939
|
{ no: 2, name: "use_oidc", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
940
|
-
{ no: 3, name: "additional_params", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
940
|
+
{ no: 3, name: "additional_params", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ }, options: { "buf.validate.field": { map: { minPairs: "0", maxPairs: "50", keys: { string: { minLen: "1", maxLen: "250" } }, values: { string: { minLen: "1", maxLen: "250" } } } } } },
|
|
941
941
|
{ no: 4, name: "use_pkce", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
942
942
|
]);
|
|
943
943
|
}
|
|
@@ -2018,7 +2018,7 @@ function handleVersion(bump, cmd) {
|
|
|
2018
2018
|
}
|
|
2019
2019
|
async function main() {
|
|
2020
2020
|
const notifier = updateNotifier({
|
|
2021
|
-
pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.
|
|
2021
|
+
pkg: JSON.parse('{"name":"@mochabug/adaptkit","version":"0.12.4"}')
|
|
2022
2022
|
});
|
|
2023
2023
|
notifier.notify({ isGlobal: true, defer: false });
|
|
2024
2024
|
program
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mochabug/adaptkit",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
4
4
|
"description": "A cmd to create, emulate and publish Mochabug Adapt plugins",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@jest/globals": "^29.7.0",
|
|
42
|
-
"@mochabug/adapt-plugin-toolkit": "^0.12.0-alpha.
|
|
42
|
+
"@mochabug/adapt-plugin-toolkit": "^0.12.0-alpha.6",
|
|
43
43
|
"@mochabug/adapt-plugin-typings": "^0.2.0-alpha.2",
|
|
44
|
-
"@rollup/plugin-commonjs": "^
|
|
44
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
45
45
|
"@rollup/plugin-json": "^6.1.0",
|
|
46
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
47
|
-
"@rollup/plugin-replace": "^
|
|
46
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
47
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
48
48
|
"@rollup/plugin-terser": "^0.4.4",
|
|
49
49
|
"@rollup/plugin-typescript": "^12.1.0",
|
|
50
50
|
"@types/archiver": "^6.0.2",
|
|
51
51
|
"@types/express": "^4.17.21",
|
|
52
52
|
"@types/figlet": "^1.5.8",
|
|
53
53
|
"@types/jest": "^29.5.13",
|
|
54
|
-
"@types/node": "^22.
|
|
54
|
+
"@types/node": "^22.6.1",
|
|
55
55
|
"@types/semver": "^7.5.8",
|
|
56
56
|
"@types/update-notifier": "^6.0.8",
|
|
57
57
|
"jest": "^29.7.0",
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
"sharp": "^0.33.5",
|
|
84
84
|
"update-notifier": "^7.3.1"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|