@autobe/agent 0.25.1 → 0.25.2
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/lib/constants/AutoBeConfigConstant.d.ts +1 -1
- package/lib/factory/createAutoBeContext.js +31 -3
- package/lib/factory/createAutoBeContext.js.map +1 -1
- package/lib/index.mjs +353 -221
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +8 -8
- package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +18 -18
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +40 -6
- package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +25 -25
- package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +18 -18
- package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +2 -2
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +41 -7
- package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js +41 -7
- package/lib/orchestrate/interface/orchestrateInterfaceSchemasReview.js.map +1 -1
- package/lib/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.d.ts +3 -3
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +9 -4
- package/lib/orchestrate/interface/utils/JsonSchemaFactory.js.map +1 -1
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js +26 -2
- package/lib/orchestrate/interface/utils/JsonSchemaValidator.js.map +1 -1
- package/lib/orchestrate/prisma/orchestratePrismaComponent.js +8 -8
- package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +20 -20
- package/lib/orchestrate/prisma/orchestratePrismaReview.js +20 -20
- package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +30 -30
- package/lib/orchestrate/realize/orchestrateRealize.js +13 -15
- package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
- package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +16 -16
- package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +12 -12
- package/lib/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.d.ts +21 -13
- package/lib/orchestrate/test/orchestrateTestScenario.js +2 -2
- package/package.json +5 -5
- package/src/constants/AutoBeConfigConstant.ts +1 -1
- package/src/factory/createAutoBeContext.ts +32 -3
- package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +2 -2
- package/src/orchestrate/interface/structures/IAutoBeInterfaceOperationApplication.ts +4 -5
- package/src/orchestrate/interface/utils/JsonSchemaValidator.ts +30 -2
- package/src/orchestrate/realize/orchestrateRealize.ts +11 -13
- package/src/orchestrate/realize/structures/IAutoBeRealizeAuthorizationApplication.ts +21 -13
package/lib/index.mjs
CHANGED
|
@@ -869,11 +869,11 @@ const claude$d = {
|
|
|
869
869
|
value: input.reason
|
|
870
870
|
}), "string" === typeof input.prefix && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.prefix) || _report(_exceptionable, {
|
|
871
871
|
path: _path + ".prefix",
|
|
872
|
-
expected: "string &
|
|
872
|
+
expected: "string & CamelCasePattern",
|
|
873
873
|
value: input.prefix
|
|
874
874
|
})) || _report(_exceptionable, {
|
|
875
875
|
path: _path + ".prefix",
|
|
876
|
-
expected: "(string &
|
|
876
|
+
expected: "(string & CamelCasePattern)",
|
|
877
877
|
value: input.prefix
|
|
878
878
|
}), (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
879
879
|
path: _path + ".roles",
|
|
@@ -922,7 +922,7 @@ const claude$d = {
|
|
|
922
922
|
}) ].every(flag => flag);
|
|
923
923
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
924
924
|
path: _path + ".name",
|
|
925
|
-
expected: "string &
|
|
925
|
+
expected: "string & CamelCasePattern",
|
|
926
926
|
value: input.name
|
|
927
927
|
})) && (1 <= input.name.length || _report(_exceptionable, {
|
|
928
928
|
path: _path + ".name",
|
|
@@ -930,7 +930,7 @@ const claude$d = {
|
|
|
930
930
|
value: input.name
|
|
931
931
|
})) || _report(_exceptionable, {
|
|
932
932
|
path: _path + ".name",
|
|
933
|
-
expected: "(string &
|
|
933
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
934
934
|
value: input.name
|
|
935
935
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
936
936
|
path: _path + ".description",
|
|
@@ -1180,11 +1180,11 @@ const collection$r = {
|
|
|
1180
1180
|
value: input.reason
|
|
1181
1181
|
}), "string" === typeof input.prefix && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.prefix) || _report(_exceptionable, {
|
|
1182
1182
|
path: _path + ".prefix",
|
|
1183
|
-
expected: "string &
|
|
1183
|
+
expected: "string & CamelCasePattern",
|
|
1184
1184
|
value: input.prefix
|
|
1185
1185
|
})) || _report(_exceptionable, {
|
|
1186
1186
|
path: _path + ".prefix",
|
|
1187
|
-
expected: "(string &
|
|
1187
|
+
expected: "(string & CamelCasePattern)",
|
|
1188
1188
|
value: input.prefix
|
|
1189
1189
|
}), (Array.isArray(input.roles) || _report(_exceptionable, {
|
|
1190
1190
|
path: _path + ".roles",
|
|
@@ -1233,7 +1233,7 @@ const collection$r = {
|
|
|
1233
1233
|
}) ].every(flag => flag);
|
|
1234
1234
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
1235
1235
|
path: _path + ".name",
|
|
1236
|
-
expected: "string &
|
|
1236
|
+
expected: "string & CamelCasePattern",
|
|
1237
1237
|
value: input.name
|
|
1238
1238
|
})) && (1 <= input.name.length || _report(_exceptionable, {
|
|
1239
1239
|
path: _path + ".name",
|
|
@@ -1241,7 +1241,7 @@ const collection$r = {
|
|
|
1241
1241
|
value: input.name
|
|
1242
1242
|
})) || _report(_exceptionable, {
|
|
1243
1243
|
path: _path + ".name",
|
|
1244
|
-
expected: "(string &
|
|
1244
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
1245
1245
|
value: input.name
|
|
1246
1246
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
1247
1247
|
path: _path + ".description",
|
|
@@ -1943,7 +1943,7 @@ function createController$n(props) {
|
|
|
1943
1943
|
value: input.responseBody
|
|
1944
1944
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
1945
1945
|
path: _path + ".authorizationRole",
|
|
1946
|
-
expected: "string &
|
|
1946
|
+
expected: "string & CamelCasePattern",
|
|
1947
1947
|
value: input.authorizationRole
|
|
1948
1948
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
1949
1949
|
path: _path + ".authorizationRole",
|
|
@@ -1951,15 +1951,15 @@ function createController$n(props) {
|
|
|
1951
1951
|
value: input.authorizationRole
|
|
1952
1952
|
})) || _report(_exceptionable, {
|
|
1953
1953
|
path: _path + ".authorizationRole",
|
|
1954
|
-
expected: "((string &
|
|
1954
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
1955
1955
|
value: input.authorizationRole
|
|
1956
1956
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
1957
1957
|
path: _path + ".name",
|
|
1958
|
-
expected: "string &
|
|
1958
|
+
expected: "string & CamelCasePattern",
|
|
1959
1959
|
value: input.name
|
|
1960
1960
|
})) || _report(_exceptionable, {
|
|
1961
1961
|
path: _path + ".name",
|
|
1962
|
-
expected: "(string &
|
|
1962
|
+
expected: "(string & CamelCasePattern)",
|
|
1963
1963
|
value: input.name
|
|
1964
1964
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
1965
1965
|
path: _path + ".prerequisites",
|
|
@@ -1992,11 +1992,11 @@ function createController$n(props) {
|
|
|
1992
1992
|
}) ].every(flag => flag);
|
|
1993
1993
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
1994
1994
|
path: _path + ".name",
|
|
1995
|
-
expected: "string &
|
|
1995
|
+
expected: "string & CamelCasePattern",
|
|
1996
1996
|
value: input.name
|
|
1997
1997
|
})) || _report(_exceptionable, {
|
|
1998
1998
|
path: _path + ".name",
|
|
1999
|
-
expected: "(string &
|
|
1999
|
+
expected: "(string & CamelCasePattern)",
|
|
2000
2000
|
value: input.name
|
|
2001
2001
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
2002
2002
|
path: _path + ".description",
|
|
@@ -2654,7 +2654,7 @@ const collection$p = {
|
|
|
2654
2654
|
value: input.responseBody
|
|
2655
2655
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
2656
2656
|
path: _path + ".authorizationRole",
|
|
2657
|
-
expected: "string &
|
|
2657
|
+
expected: "string & CamelCasePattern",
|
|
2658
2658
|
value: input.authorizationRole
|
|
2659
2659
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
2660
2660
|
path: _path + ".authorizationRole",
|
|
@@ -2662,15 +2662,15 @@ const collection$p = {
|
|
|
2662
2662
|
value: input.authorizationRole
|
|
2663
2663
|
})) || _report(_exceptionable, {
|
|
2664
2664
|
path: _path + ".authorizationRole",
|
|
2665
|
-
expected: "((string &
|
|
2665
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
2666
2666
|
value: input.authorizationRole
|
|
2667
2667
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
2668
2668
|
path: _path + ".name",
|
|
2669
|
-
expected: "string &
|
|
2669
|
+
expected: "string & CamelCasePattern",
|
|
2670
2670
|
value: input.name
|
|
2671
2671
|
})) || _report(_exceptionable, {
|
|
2672
2672
|
path: _path + ".name",
|
|
2673
|
-
expected: "(string &
|
|
2673
|
+
expected: "(string & CamelCasePattern)",
|
|
2674
2674
|
value: input.name
|
|
2675
2675
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
2676
2676
|
path: _path + ".prerequisites",
|
|
@@ -2703,11 +2703,11 @@ const collection$p = {
|
|
|
2703
2703
|
}) ].every(flag => flag);
|
|
2704
2704
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
2705
2705
|
path: _path + ".name",
|
|
2706
|
-
expected: "string &
|
|
2706
|
+
expected: "string & CamelCasePattern",
|
|
2707
2707
|
value: input.name
|
|
2708
2708
|
})) || _report(_exceptionable, {
|
|
2709
2709
|
path: _path + ".name",
|
|
2710
|
-
expected: "(string &
|
|
2710
|
+
expected: "(string & CamelCasePattern)",
|
|
2711
2711
|
value: input.name
|
|
2712
2712
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
2713
2713
|
path: _path + ".description",
|
|
@@ -3330,7 +3330,7 @@ const collection$p = {
|
|
|
3330
3330
|
value: input.responseBody
|
|
3331
3331
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
3332
3332
|
path: _path + ".authorizationRole",
|
|
3333
|
-
expected: "string &
|
|
3333
|
+
expected: "string & CamelCasePattern",
|
|
3334
3334
|
value: input.authorizationRole
|
|
3335
3335
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
3336
3336
|
path: _path + ".authorizationRole",
|
|
@@ -3338,15 +3338,15 @@ const collection$p = {
|
|
|
3338
3338
|
value: input.authorizationRole
|
|
3339
3339
|
})) || _report(_exceptionable, {
|
|
3340
3340
|
path: _path + ".authorizationRole",
|
|
3341
|
-
expected: "((string &
|
|
3341
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
3342
3342
|
value: input.authorizationRole
|
|
3343
3343
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
3344
3344
|
path: _path + ".name",
|
|
3345
|
-
expected: "string &
|
|
3345
|
+
expected: "string & CamelCasePattern",
|
|
3346
3346
|
value: input.name
|
|
3347
3347
|
})) || _report(_exceptionable, {
|
|
3348
3348
|
path: _path + ".name",
|
|
3349
|
-
expected: "(string &
|
|
3349
|
+
expected: "(string & CamelCasePattern)",
|
|
3350
3350
|
value: input.name
|
|
3351
3351
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
3352
3352
|
path: _path + ".prerequisites",
|
|
@@ -3379,11 +3379,11 @@ const collection$p = {
|
|
|
3379
3379
|
}) ].every(flag => flag);
|
|
3380
3380
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
3381
3381
|
path: _path + ".name",
|
|
3382
|
-
expected: "string &
|
|
3382
|
+
expected: "string & CamelCasePattern",
|
|
3383
3383
|
value: input.name
|
|
3384
3384
|
})) || _report(_exceptionable, {
|
|
3385
3385
|
path: _path + ".name",
|
|
3386
|
-
expected: "(string &
|
|
3386
|
+
expected: "(string & CamelCasePattern)",
|
|
3387
3387
|
value: input.name
|
|
3388
3388
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
3389
3389
|
path: _path + ".description",
|
|
@@ -3843,8 +3843,8 @@ const DEFAULT_SCHEMAS = (() => {
|
|
|
3843
3843
|
if (undefined === value) return true;
|
|
3844
3844
|
return false;
|
|
3845
3845
|
}));
|
|
3846
|
-
const _io13 = (input, _exceptionable = true) => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io0(input.properties, _exceptionable) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties, _exceptionable))) && (Array.isArray(input.required) && input.required.every((elem, _index1) => "string" === typeof elem)) && "object" === input.type && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
3847
|
-
if ([ "properties", "additionalProperties", "required", "type" ].some(prop => key === prop)) return true;
|
|
3846
|
+
const _io13 = (input, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io0(input.properties, _exceptionable)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties, _exceptionable))) && (Array.isArray(input.required) && input.required.every((elem, _index1) => "string" === typeof elem)) && "object" === input.type && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
3847
|
+
if ([ "x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type" ].some(prop => key === prop)) return true;
|
|
3848
3848
|
const value = input[key];
|
|
3849
3849
|
if (undefined === value) return true;
|
|
3850
3850
|
return false;
|
|
@@ -4438,7 +4438,12 @@ const DEFAULT_SCHEMAS = (() => {
|
|
|
4438
4438
|
value
|
|
4439
4439
|
}, _errorFactory);
|
|
4440
4440
|
})));
|
|
4441
|
-
const _ao13 = (input, _path, _exceptionable = true) => (
|
|
4441
|
+
const _ao13 = (input, _path, _exceptionable = true) => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4442
|
+
method: "typia.assertEquals",
|
|
4443
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
4444
|
+
expected: "(null | string | undefined)",
|
|
4445
|
+
value: input["x-autobe-prisma-schema"]
|
|
4446
|
+
}, _errorFactory)) && (("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
4442
4447
|
method: "typia.assertEquals",
|
|
4443
4448
|
path: _path + ".properties",
|
|
4444
4449
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
@@ -4484,7 +4489,7 @@ const DEFAULT_SCHEMAS = (() => {
|
|
|
4484
4489
|
expected: '"object"',
|
|
4485
4490
|
value: input.type
|
|
4486
4491
|
}, _errorFactory)) && (3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).every(key => {
|
|
4487
|
-
if ([ "properties", "additionalProperties", "required", "type" ].some(prop => key === prop)) return true;
|
|
4492
|
+
if ([ "x-autobe-prisma-schema", "properties", "additionalProperties", "required", "type" ].some(prop => key === prop)) return true;
|
|
4488
4493
|
const value = input[key];
|
|
4489
4494
|
if (undefined === value) return true;
|
|
4490
4495
|
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -4952,7 +4957,8 @@ var JsonSchemaValidator;
|
|
|
4952
4957
|
|
|
4953
4958
|
(function(JsonSchemaValidator) {
|
|
4954
4959
|
JsonSchemaValidator.validateSchemas = props => {
|
|
4955
|
-
|
|
4960
|
+
validateAuthorization(props);
|
|
4961
|
+
validatePrismaSchema(props.errors);
|
|
4956
4962
|
for (const key of Object.keys(props.schemas)) JsonSchemaValidator.validateKey({
|
|
4957
4963
|
errors: props.errors,
|
|
4958
4964
|
path: props.path,
|
|
@@ -5043,7 +5049,7 @@ var JsonSchemaValidator;
|
|
|
5043
5049
|
});
|
|
5044
5050
|
}
|
|
5045
5051
|
};
|
|
5046
|
-
const
|
|
5052
|
+
const validateAuthorization = props => {
|
|
5047
5053
|
for (const [key, value] of Object.entries(props.schemas)) {
|
|
5048
5054
|
if (!key.endsWith(".IAuthorized")) continue; else if (AutoBeOpenApiTypeChecker.isObject(value) === false) {
|
|
5049
5055
|
props.errors.push({
|
|
@@ -5063,6 +5069,27 @@ var JsonSchemaValidator;
|
|
|
5063
5069
|
if (value.required.includes("token") === false) value.required.push("token");
|
|
5064
5070
|
}
|
|
5065
5071
|
};
|
|
5072
|
+
const validatePrismaSchema = errors => {
|
|
5073
|
+
for (const e of errors) {
|
|
5074
|
+
if (e.path.endsWith(`.properties["x-autobe-prisma-schema"]`) === false) continue;
|
|
5075
|
+
e.expected = "undefined value (remove this property and re-define it in the root schema)";
|
|
5076
|
+
e.description = StringUtil.trim`
|
|
5077
|
+
You have defined a property named "x-autobe-prisma-schema"
|
|
5078
|
+
somewhere wrong place.
|
|
5079
|
+
|
|
5080
|
+
You have defined a property name "x-autobe-prisma-schema" as
|
|
5081
|
+
an object type. However, this "x-autobe-prisma-schema" property
|
|
5082
|
+
must be defined only in the root schema object as a metadata,
|
|
5083
|
+
not in the nested object property.
|
|
5084
|
+
|
|
5085
|
+
Remove this property at the next time, and re-define it in the
|
|
5086
|
+
root object schema.
|
|
5087
|
+
|
|
5088
|
+
- Current path (wrong): ${e.path}
|
|
5089
|
+
- Must be (object root): ${e.path.replace(`.properties["x-autobe-prisma-schema"]`, `["x-autobe-prisma-schema"]`)}
|
|
5090
|
+
`;
|
|
5091
|
+
}
|
|
5092
|
+
};
|
|
5066
5093
|
})(JsonSchemaValidator || (JsonSchemaValidator = {}));
|
|
5067
5094
|
|
|
5068
5095
|
const fulfillJsonSchemaErrorMessages = errors => {
|
|
@@ -5196,7 +5223,7 @@ function createController$m(props) {
|
|
|
5196
5223
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
5197
5224
|
const _io12 = input => "boolean" === input.type;
|
|
5198
5225
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
5199
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
5226
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
5200
5227
|
const _io15 = input => "string" === typeof input.$ref;
|
|
5201
5228
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
5202
5229
|
const _io17 = input => "null" === input.type;
|
|
@@ -5557,7 +5584,11 @@ function createController$m(props) {
|
|
|
5557
5584
|
expected: '"array"',
|
|
5558
5585
|
value: input.type
|
|
5559
5586
|
}) ].every(flag => flag);
|
|
5560
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
5587
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
5588
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
5589
|
+
expected: "(null | string | undefined)",
|
|
5590
|
+
value: input["x-autobe-prisma-schema"]
|
|
5591
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
5561
5592
|
path: _path + ".properties",
|
|
5562
5593
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5563
5594
|
value: input.properties
|
|
@@ -6237,6 +6268,14 @@ const collection$o = {
|
|
|
6237
6268
|
description: "Object type info.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property, and\n> the value is the type schema info.\n> \n> IMPORTANT: Each property in this object MUST have a detailed\n> description that references and aligns with the description comments\n> from the corresponding Prisma DB schema column.\n> \n> If you need additional properties that is represented by dynamic key,\n> you can use the {@link additionalProperties} instead.",
|
|
6238
6269
|
type: "object",
|
|
6239
6270
|
properties: {
|
|
6271
|
+
"x-autobe-prisma-schema": {
|
|
6272
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
6273
|
+
anyOf: [ {
|
|
6274
|
+
type: "null"
|
|
6275
|
+
}, {
|
|
6276
|
+
type: "string"
|
|
6277
|
+
} ]
|
|
6278
|
+
},
|
|
6240
6279
|
properties: {
|
|
6241
6280
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
6242
6281
|
},
|
|
@@ -6516,7 +6555,7 @@ const collection$o = {
|
|
|
6516
6555
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
6517
6556
|
const _io12 = input => "boolean" === input.type;
|
|
6518
6557
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
6519
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
6558
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
6520
6559
|
const _io15 = input => "string" === typeof input.$ref;
|
|
6521
6560
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
6522
6561
|
const _io17 = input => "null" === input.type;
|
|
@@ -6877,7 +6916,11 @@ const collection$o = {
|
|
|
6877
6916
|
expected: '"array"',
|
|
6878
6917
|
value: input.type
|
|
6879
6918
|
}) ].every(flag => flag);
|
|
6880
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
6919
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
6920
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
6921
|
+
expected: "(null | string | undefined)",
|
|
6922
|
+
value: input["x-autobe-prisma-schema"]
|
|
6923
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
6881
6924
|
path: _path + ".properties",
|
|
6882
6925
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
6883
6926
|
value: input.properties
|
|
@@ -7542,6 +7585,14 @@ const collection$o = {
|
|
|
7542
7585
|
description: "Object type info.",
|
|
7543
7586
|
type: "object",
|
|
7544
7587
|
properties: {
|
|
7588
|
+
"x-autobe-prisma-schema": {
|
|
7589
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
7590
|
+
oneOf: [ {
|
|
7591
|
+
type: "null"
|
|
7592
|
+
}, {
|
|
7593
|
+
type: "string"
|
|
7594
|
+
} ]
|
|
7595
|
+
},
|
|
7545
7596
|
properties: {
|
|
7546
7597
|
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
7547
7598
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -7820,7 +7871,7 @@ const collection$o = {
|
|
|
7820
7871
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
7821
7872
|
const _io12 = input => "boolean" === input.type;
|
|
7822
7873
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
7823
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
7874
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
7824
7875
|
const _io15 = input => "string" === typeof input.$ref;
|
|
7825
7876
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
7826
7877
|
const _io17 = input => "null" === input.type;
|
|
@@ -8181,7 +8232,11 @@ const collection$o = {
|
|
|
8181
8232
|
expected: '"array"',
|
|
8182
8233
|
value: input.type
|
|
8183
8234
|
}) ].every(flag => flag);
|
|
8184
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
8235
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
8236
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
8237
|
+
expected: "(null | string | undefined)",
|
|
8238
|
+
value: input["x-autobe-prisma-schema"]
|
|
8239
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8185
8240
|
path: _path + ".properties",
|
|
8186
8241
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
8187
8242
|
value: input.properties
|
|
@@ -9799,7 +9854,7 @@ function createReviewController(props) {
|
|
|
9799
9854
|
value: input.responseBody
|
|
9800
9855
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
9801
9856
|
path: _path + ".authorizationRole",
|
|
9802
|
-
expected: "string &
|
|
9857
|
+
expected: "string & CamelCasePattern",
|
|
9803
9858
|
value: input.authorizationRole
|
|
9804
9859
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
9805
9860
|
path: _path + ".authorizationRole",
|
|
@@ -9807,15 +9862,15 @@ function createReviewController(props) {
|
|
|
9807
9862
|
value: input.authorizationRole
|
|
9808
9863
|
})) || _report(_exceptionable, {
|
|
9809
9864
|
path: _path + ".authorizationRole",
|
|
9810
|
-
expected: "((string &
|
|
9865
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
9811
9866
|
value: input.authorizationRole
|
|
9812
9867
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
9813
9868
|
path: _path + ".name",
|
|
9814
|
-
expected: "string &
|
|
9869
|
+
expected: "string & CamelCasePattern",
|
|
9815
9870
|
value: input.name
|
|
9816
9871
|
})) || _report(_exceptionable, {
|
|
9817
9872
|
path: _path + ".name",
|
|
9818
|
-
expected: "(string &
|
|
9873
|
+
expected: "(string & CamelCasePattern)",
|
|
9819
9874
|
value: input.name
|
|
9820
9875
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
9821
9876
|
path: _path + ".prerequisites",
|
|
@@ -9848,11 +9903,11 @@ function createReviewController(props) {
|
|
|
9848
9903
|
}) ].every(flag => flag);
|
|
9849
9904
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
9850
9905
|
path: _path + ".name",
|
|
9851
|
-
expected: "string &
|
|
9906
|
+
expected: "string & CamelCasePattern",
|
|
9852
9907
|
value: input.name
|
|
9853
9908
|
})) || _report(_exceptionable, {
|
|
9854
9909
|
path: _path + ".name",
|
|
9855
|
-
expected: "(string &
|
|
9910
|
+
expected: "(string & CamelCasePattern)",
|
|
9856
9911
|
value: input.name
|
|
9857
9912
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
9858
9913
|
path: _path + ".description",
|
|
@@ -10495,7 +10550,7 @@ const collection$k = {
|
|
|
10495
10550
|
value: input.responseBody
|
|
10496
10551
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
10497
10552
|
path: _path + ".authorizationRole",
|
|
10498
|
-
expected: "string &
|
|
10553
|
+
expected: "string & CamelCasePattern",
|
|
10499
10554
|
value: input.authorizationRole
|
|
10500
10555
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
10501
10556
|
path: _path + ".authorizationRole",
|
|
@@ -10503,15 +10558,15 @@ const collection$k = {
|
|
|
10503
10558
|
value: input.authorizationRole
|
|
10504
10559
|
})) || _report(_exceptionable, {
|
|
10505
10560
|
path: _path + ".authorizationRole",
|
|
10506
|
-
expected: "((string &
|
|
10561
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
10507
10562
|
value: input.authorizationRole
|
|
10508
10563
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
10509
10564
|
path: _path + ".name",
|
|
10510
|
-
expected: "string &
|
|
10565
|
+
expected: "string & CamelCasePattern",
|
|
10511
10566
|
value: input.name
|
|
10512
10567
|
})) || _report(_exceptionable, {
|
|
10513
10568
|
path: _path + ".name",
|
|
10514
|
-
expected: "(string &
|
|
10569
|
+
expected: "(string & CamelCasePattern)",
|
|
10515
10570
|
value: input.name
|
|
10516
10571
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
10517
10572
|
path: _path + ".prerequisites",
|
|
@@ -10544,11 +10599,11 @@ const collection$k = {
|
|
|
10544
10599
|
}) ].every(flag => flag);
|
|
10545
10600
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
10546
10601
|
path: _path + ".name",
|
|
10547
|
-
expected: "string &
|
|
10602
|
+
expected: "string & CamelCasePattern",
|
|
10548
10603
|
value: input.name
|
|
10549
10604
|
})) || _report(_exceptionable, {
|
|
10550
10605
|
path: _path + ".name",
|
|
10551
|
-
expected: "(string &
|
|
10606
|
+
expected: "(string & CamelCasePattern)",
|
|
10552
10607
|
value: input.name
|
|
10553
10608
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
10554
10609
|
path: _path + ".description",
|
|
@@ -11203,7 +11258,7 @@ const collection$k = {
|
|
|
11203
11258
|
value: input.responseBody
|
|
11204
11259
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
11205
11260
|
path: _path + ".authorizationRole",
|
|
11206
|
-
expected: "string &
|
|
11261
|
+
expected: "string & CamelCasePattern",
|
|
11207
11262
|
value: input.authorizationRole
|
|
11208
11263
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
11209
11264
|
path: _path + ".authorizationRole",
|
|
@@ -11211,15 +11266,15 @@ const collection$k = {
|
|
|
11211
11266
|
value: input.authorizationRole
|
|
11212
11267
|
})) || _report(_exceptionable, {
|
|
11213
11268
|
path: _path + ".authorizationRole",
|
|
11214
|
-
expected: "((string &
|
|
11269
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
11215
11270
|
value: input.authorizationRole
|
|
11216
11271
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11217
11272
|
path: _path + ".name",
|
|
11218
|
-
expected: "string &
|
|
11273
|
+
expected: "string & CamelCasePattern",
|
|
11219
11274
|
value: input.name
|
|
11220
11275
|
})) || _report(_exceptionable, {
|
|
11221
11276
|
path: _path + ".name",
|
|
11222
|
-
expected: "(string &
|
|
11277
|
+
expected: "(string & CamelCasePattern)",
|
|
11223
11278
|
value: input.name
|
|
11224
11279
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
11225
11280
|
path: _path + ".prerequisites",
|
|
@@ -11252,11 +11307,11 @@ const collection$k = {
|
|
|
11252
11307
|
}) ].every(flag => flag);
|
|
11253
11308
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11254
11309
|
path: _path + ".name",
|
|
11255
|
-
expected: "string &
|
|
11310
|
+
expected: "string & CamelCasePattern",
|
|
11256
11311
|
value: input.name
|
|
11257
11312
|
})) || _report(_exceptionable, {
|
|
11258
11313
|
path: _path + ".name",
|
|
11259
|
-
expected: "(string &
|
|
11314
|
+
expected: "(string & CamelCasePattern)",
|
|
11260
11315
|
value: input.name
|
|
11261
11316
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
11262
11317
|
path: _path + ".description",
|
|
@@ -11474,7 +11529,7 @@ const collection$k = {
|
|
|
11474
11529
|
async function orchestrateInterfaceOperations(ctx, props) {
|
|
11475
11530
|
const matrix = divideArray({
|
|
11476
11531
|
array: props.endpoints,
|
|
11477
|
-
capacity: props.capacity ??
|
|
11532
|
+
capacity: props.capacity ?? 2
|
|
11478
11533
|
});
|
|
11479
11534
|
const progress = {
|
|
11480
11535
|
total: matrix.flat().length,
|
|
@@ -11653,19 +11708,19 @@ function createController$i(props) {
|
|
|
11653
11708
|
value: input.responseBody
|
|
11654
11709
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11655
11710
|
path: _path + ".name",
|
|
11656
|
-
expected: "string &
|
|
11711
|
+
expected: "string & CamelCasePattern",
|
|
11657
11712
|
value: input.name
|
|
11658
11713
|
})) || _report(_exceptionable, {
|
|
11659
11714
|
path: _path + ".name",
|
|
11660
|
-
expected: "(string &
|
|
11715
|
+
expected: "(string & CamelCasePattern)",
|
|
11661
11716
|
value: input.name
|
|
11662
11717
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
11663
11718
|
path: _path + ".authorizationRoles",
|
|
11664
|
-
expected: "Array<string &
|
|
11719
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
11665
11720
|
value: input.authorizationRoles
|
|
11666
11721
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
11667
11722
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
11668
|
-
expected: "string &
|
|
11723
|
+
expected: "string & CamelCasePattern",
|
|
11669
11724
|
value: elem
|
|
11670
11725
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
11671
11726
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -11673,11 +11728,11 @@ function createController$i(props) {
|
|
|
11673
11728
|
value: elem
|
|
11674
11729
|
})) || _report(_exceptionable, {
|
|
11675
11730
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
11676
|
-
expected: "(string &
|
|
11731
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
11677
11732
|
value: elem
|
|
11678
11733
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
11679
11734
|
path: _path + ".authorizationRoles",
|
|
11680
|
-
expected: "Array<string &
|
|
11735
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
11681
11736
|
value: input.authorizationRoles
|
|
11682
11737
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
11683
11738
|
path: _path + ".path",
|
|
@@ -11694,11 +11749,11 @@ function createController$i(props) {
|
|
|
11694
11749
|
}) ].every(flag => flag);
|
|
11695
11750
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11696
11751
|
path: _path + ".name",
|
|
11697
|
-
expected: "string &
|
|
11752
|
+
expected: "string & CamelCasePattern",
|
|
11698
11753
|
value: input.name
|
|
11699
11754
|
})) || _report(_exceptionable, {
|
|
11700
11755
|
path: _path + ".name",
|
|
11701
|
-
expected: "(string &
|
|
11756
|
+
expected: "(string & CamelCasePattern)",
|
|
11702
11757
|
value: input.name
|
|
11703
11758
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
11704
11759
|
path: _path + ".description",
|
|
@@ -12244,19 +12299,19 @@ const collection$j = {
|
|
|
12244
12299
|
value: input.responseBody
|
|
12245
12300
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12246
12301
|
path: _path + ".name",
|
|
12247
|
-
expected: "string &
|
|
12302
|
+
expected: "string & CamelCasePattern",
|
|
12248
12303
|
value: input.name
|
|
12249
12304
|
})) || _report(_exceptionable, {
|
|
12250
12305
|
path: _path + ".name",
|
|
12251
|
-
expected: "(string &
|
|
12306
|
+
expected: "(string & CamelCasePattern)",
|
|
12252
12307
|
value: input.name
|
|
12253
12308
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
12254
12309
|
path: _path + ".authorizationRoles",
|
|
12255
|
-
expected: "Array<string &
|
|
12310
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12256
12311
|
value: input.authorizationRoles
|
|
12257
12312
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
12258
12313
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12259
|
-
expected: "string &
|
|
12314
|
+
expected: "string & CamelCasePattern",
|
|
12260
12315
|
value: elem
|
|
12261
12316
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
12262
12317
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -12264,11 +12319,11 @@ const collection$j = {
|
|
|
12264
12319
|
value: elem
|
|
12265
12320
|
})) || _report(_exceptionable, {
|
|
12266
12321
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12267
|
-
expected: "(string &
|
|
12322
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
12268
12323
|
value: elem
|
|
12269
12324
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
12270
12325
|
path: _path + ".authorizationRoles",
|
|
12271
|
-
expected: "Array<string &
|
|
12326
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12272
12327
|
value: input.authorizationRoles
|
|
12273
12328
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
12274
12329
|
path: _path + ".path",
|
|
@@ -12285,11 +12340,11 @@ const collection$j = {
|
|
|
12285
12340
|
}) ].every(flag => flag);
|
|
12286
12341
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12287
12342
|
path: _path + ".name",
|
|
12288
|
-
expected: "string &
|
|
12343
|
+
expected: "string & CamelCasePattern",
|
|
12289
12344
|
value: input.name
|
|
12290
12345
|
})) || _report(_exceptionable, {
|
|
12291
12346
|
path: _path + ".name",
|
|
12292
|
-
expected: "(string &
|
|
12347
|
+
expected: "(string & CamelCasePattern)",
|
|
12293
12348
|
value: input.name
|
|
12294
12349
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
12295
12350
|
path: _path + ".description",
|
|
@@ -12814,19 +12869,19 @@ const collection$j = {
|
|
|
12814
12869
|
value: input.responseBody
|
|
12815
12870
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12816
12871
|
path: _path + ".name",
|
|
12817
|
-
expected: "string &
|
|
12872
|
+
expected: "string & CamelCasePattern",
|
|
12818
12873
|
value: input.name
|
|
12819
12874
|
})) || _report(_exceptionable, {
|
|
12820
12875
|
path: _path + ".name",
|
|
12821
|
-
expected: "(string &
|
|
12876
|
+
expected: "(string & CamelCasePattern)",
|
|
12822
12877
|
value: input.name
|
|
12823
12878
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
12824
12879
|
path: _path + ".authorizationRoles",
|
|
12825
|
-
expected: "Array<string &
|
|
12880
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12826
12881
|
value: input.authorizationRoles
|
|
12827
12882
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
12828
12883
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12829
|
-
expected: "string &
|
|
12884
|
+
expected: "string & CamelCasePattern",
|
|
12830
12885
|
value: elem
|
|
12831
12886
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
12832
12887
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -12834,11 +12889,11 @@ const collection$j = {
|
|
|
12834
12889
|
value: elem
|
|
12835
12890
|
})) || _report(_exceptionable, {
|
|
12836
12891
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12837
|
-
expected: "(string &
|
|
12892
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
12838
12893
|
value: elem
|
|
12839
12894
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
12840
12895
|
path: _path + ".authorizationRoles",
|
|
12841
|
-
expected: "Array<string &
|
|
12896
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12842
12897
|
value: input.authorizationRoles
|
|
12843
12898
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
12844
12899
|
path: _path + ".path",
|
|
@@ -12855,11 +12910,11 @@ const collection$j = {
|
|
|
12855
12910
|
}) ].every(flag => flag);
|
|
12856
12911
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12857
12912
|
path: _path + ".name",
|
|
12858
|
-
expected: "string &
|
|
12913
|
+
expected: "string & CamelCasePattern",
|
|
12859
12914
|
value: input.name
|
|
12860
12915
|
})) || _report(_exceptionable, {
|
|
12861
12916
|
path: _path + ".name",
|
|
12862
|
-
expected: "(string &
|
|
12917
|
+
expected: "(string & CamelCasePattern)",
|
|
12863
12918
|
value: input.name
|
|
12864
12919
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
12865
12920
|
path: _path + ".description",
|
|
@@ -13159,7 +13214,7 @@ const transformInterfacePrerequisitesHistories = (document, include) => {
|
|
|
13159
13214
|
} ];
|
|
13160
13215
|
};
|
|
13161
13216
|
|
|
13162
|
-
async function orchestrateInterfacePrerequisites(ctx, document, capacity =
|
|
13217
|
+
async function orchestrateInterfacePrerequisites(ctx, document, capacity = 2) {
|
|
13163
13218
|
const operations = document.operations.filter(op => op.authorizationType === null) ?? [];
|
|
13164
13219
|
const progress = {
|
|
13165
13220
|
total: operations.length,
|
|
@@ -13177,7 +13232,7 @@ async function orchestrateInterfacePrerequisites(ctx, document, capacity = 4) {
|
|
|
13177
13232
|
do {
|
|
13178
13233
|
const matrix = divideArray({
|
|
13179
13234
|
array: include,
|
|
13180
|
-
capacity: capacity ??
|
|
13235
|
+
capacity: capacity ?? 2
|
|
13181
13236
|
});
|
|
13182
13237
|
await executeCachedBatch(matrix.map(ops => async promptCacheKey => {
|
|
13183
13238
|
const row = await divideAndConquer$3(ctx, {
|
|
@@ -13858,7 +13913,7 @@ async function orchestrateInterfaceSchemas(ctx, props) {
|
|
|
13858
13913
|
const presets = JsonSchemaFactory.presets(typeNames);
|
|
13859
13914
|
const matrix = divideArray({
|
|
13860
13915
|
array: Array.from(typeNames),
|
|
13861
|
-
capacity: props.capacity ??
|
|
13916
|
+
capacity: props.capacity ?? 2
|
|
13862
13917
|
});
|
|
13863
13918
|
const progress = {
|
|
13864
13919
|
total: typeNames.size,
|
|
@@ -13986,7 +14041,7 @@ function createController$g(props) {
|
|
|
13986
14041
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
13987
14042
|
const _io12 = input => "boolean" === input.type;
|
|
13988
14043
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
13989
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
14044
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
13990
14045
|
const _io15 = input => "string" === typeof input.$ref;
|
|
13991
14046
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
13992
14047
|
const _io17 = input => "null" === input.type;
|
|
@@ -14347,7 +14402,11 @@ function createController$g(props) {
|
|
|
14347
14402
|
expected: '"array"',
|
|
14348
14403
|
value: input.type
|
|
14349
14404
|
}) ].every(flag => flag);
|
|
14350
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
14405
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
14406
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
14407
|
+
expected: "(null | string | undefined)",
|
|
14408
|
+
value: input["x-autobe-prisma-schema"]
|
|
14409
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14351
14410
|
path: _path + ".properties",
|
|
14352
14411
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
14353
14412
|
value: input.properties
|
|
@@ -15027,6 +15086,14 @@ const collection$h = {
|
|
|
15027
15086
|
description: "Object type info.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property, and\n> the value is the type schema info.\n> \n> IMPORTANT: Each property in this object MUST have a detailed\n> description that references and aligns with the description comments\n> from the corresponding Prisma DB schema column.\n> \n> If you need additional properties that is represented by dynamic key,\n> you can use the {@link additionalProperties} instead.",
|
|
15028
15087
|
type: "object",
|
|
15029
15088
|
properties: {
|
|
15089
|
+
"x-autobe-prisma-schema": {
|
|
15090
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
15091
|
+
anyOf: [ {
|
|
15092
|
+
type: "null"
|
|
15093
|
+
}, {
|
|
15094
|
+
type: "string"
|
|
15095
|
+
} ]
|
|
15096
|
+
},
|
|
15030
15097
|
properties: {
|
|
15031
15098
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
15032
15099
|
},
|
|
@@ -15306,7 +15373,7 @@ const collection$h = {
|
|
|
15306
15373
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
15307
15374
|
const _io12 = input => "boolean" === input.type;
|
|
15308
15375
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
15309
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
15376
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
15310
15377
|
const _io15 = input => "string" === typeof input.$ref;
|
|
15311
15378
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
15312
15379
|
const _io17 = input => "null" === input.type;
|
|
@@ -15667,7 +15734,11 @@ const collection$h = {
|
|
|
15667
15734
|
expected: '"array"',
|
|
15668
15735
|
value: input.type
|
|
15669
15736
|
}) ].every(flag => flag);
|
|
15670
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
15737
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
15738
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
15739
|
+
expected: "(null | string | undefined)",
|
|
15740
|
+
value: input["x-autobe-prisma-schema"]
|
|
15741
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15671
15742
|
path: _path + ".properties",
|
|
15672
15743
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
15673
15744
|
value: input.properties
|
|
@@ -16332,6 +16403,14 @@ const collection$h = {
|
|
|
16332
16403
|
description: "Object type info.",
|
|
16333
16404
|
type: "object",
|
|
16334
16405
|
properties: {
|
|
16406
|
+
"x-autobe-prisma-schema": {
|
|
16407
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
16408
|
+
oneOf: [ {
|
|
16409
|
+
type: "null"
|
|
16410
|
+
}, {
|
|
16411
|
+
type: "string"
|
|
16412
|
+
} ]
|
|
16413
|
+
},
|
|
16335
16414
|
properties: {
|
|
16336
16415
|
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
16337
16416
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -16610,7 +16689,7 @@ const collection$h = {
|
|
|
16610
16689
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
16611
16690
|
const _io12 = input => "boolean" === input.type;
|
|
16612
16691
|
const _io13 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
16613
|
-
const _io14 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
16692
|
+
const _io14 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
16614
16693
|
const _io15 = input => "string" === typeof input.$ref;
|
|
16615
16694
|
const _io16 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io18(input.discriminator));
|
|
16616
16695
|
const _io17 = input => "null" === input.type;
|
|
@@ -16971,7 +17050,11 @@ const collection$h = {
|
|
|
16971
17050
|
expected: '"array"',
|
|
16972
17051
|
value: input.type
|
|
16973
17052
|
}) ].every(flag => flag);
|
|
16974
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
17053
|
+
const _vo14 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
17054
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
17055
|
+
expected: "(null | string | undefined)",
|
|
17056
|
+
value: input["x-autobe-prisma-schema"]
|
|
17057
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
16975
17058
|
path: _path + ".properties",
|
|
16976
17059
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
16977
17060
|
value: input.properties
|
|
@@ -17269,7 +17352,7 @@ const transformInterfaceSchemasReviewHistories = (state, operations, schemaDescr
|
|
|
17269
17352
|
`
|
|
17270
17353
|
} ];
|
|
17271
17354
|
|
|
17272
|
-
async function orchestrateInterfaceSchemasReview(ctx, operations, schemas, capacity =
|
|
17355
|
+
async function orchestrateInterfaceSchemasReview(ctx, operations, schemas, capacity = 2) {
|
|
17273
17356
|
const a = Object.entries(schemas).map(([key, schema]) => ({
|
|
17274
17357
|
[key]: schema
|
|
17275
17358
|
}));
|
|
@@ -17366,7 +17449,7 @@ function createController$f(props) {
|
|
|
17366
17449
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
17367
17450
|
const _io13 = input => "boolean" === input.type;
|
|
17368
17451
|
const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
17369
|
-
const _io15 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
17452
|
+
const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
17370
17453
|
const _io16 = input => "string" === typeof input.$ref;
|
|
17371
17454
|
const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator));
|
|
17372
17455
|
const _io18 = input => "null" === input.type;
|
|
@@ -17744,7 +17827,11 @@ function createController$f(props) {
|
|
|
17744
17827
|
expected: '"array"',
|
|
17745
17828
|
value: input.type
|
|
17746
17829
|
}) ].every(flag => flag);
|
|
17747
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
17830
|
+
const _vo15 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
17831
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
17832
|
+
expected: "(null | string | undefined)",
|
|
17833
|
+
value: input["x-autobe-prisma-schema"]
|
|
17834
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
17748
17835
|
path: _path + ".properties",
|
|
17749
17836
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
17750
17837
|
value: input.properties
|
|
@@ -18441,6 +18528,14 @@ const collection$g = {
|
|
|
18441
18528
|
description: "Object type info.\n\n### Description of {@link properties} property:\n\n> Properties of the object.\n> \n> The `properties` means a list of key-value pairs of the object's\n> regular properties. The key is the name of the regular property, and\n> the value is the type schema info.\n> \n> IMPORTANT: Each property in this object MUST have a detailed\n> description that references and aligns with the description comments\n> from the corresponding Prisma DB schema column.\n> \n> If you need additional properties that is represented by dynamic key,\n> you can use the {@link additionalProperties} instead.",
|
|
18442
18529
|
type: "object",
|
|
18443
18530
|
properties: {
|
|
18531
|
+
"x-autobe-prisma-schema": {
|
|
18532
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
18533
|
+
anyOf: [ {
|
|
18534
|
+
type: "null"
|
|
18535
|
+
}, {
|
|
18536
|
+
type: "string"
|
|
18537
|
+
} ]
|
|
18538
|
+
},
|
|
18444
18539
|
properties: {
|
|
18445
18540
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
18446
18541
|
},
|
|
@@ -18721,7 +18816,7 @@ const collection$g = {
|
|
|
18721
18816
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
18722
18817
|
const _io13 = input => "boolean" === input.type;
|
|
18723
18818
|
const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
18724
|
-
const _io15 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
18819
|
+
const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
18725
18820
|
const _io16 = input => "string" === typeof input.$ref;
|
|
18726
18821
|
const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator));
|
|
18727
18822
|
const _io18 = input => "null" === input.type;
|
|
@@ -19099,7 +19194,11 @@ const collection$g = {
|
|
|
19099
19194
|
expected: '"array"',
|
|
19100
19195
|
value: input.type
|
|
19101
19196
|
}) ].every(flag => flag);
|
|
19102
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
19197
|
+
const _vo15 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
19198
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
19199
|
+
expected: "(null | string | undefined)",
|
|
19200
|
+
value: input["x-autobe-prisma-schema"]
|
|
19201
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
19103
19202
|
path: _path + ".properties",
|
|
19104
19203
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
19105
19204
|
value: input.properties
|
|
@@ -19781,6 +19880,14 @@ const collection$g = {
|
|
|
19781
19880
|
description: "Object type info.",
|
|
19782
19881
|
type: "object",
|
|
19783
19882
|
properties: {
|
|
19883
|
+
"x-autobe-prisma-schema": {
|
|
19884
|
+
description: "Related Prisma schema.\n\nIf the type is directly related to a specific Prisma schema model,\ninclude the exact model name here to establish a clear link between the\nOpenAPI schema and the Prisma model.\n\nThis field is optional and should only be included when there is a\ndirect correspondence to a Prisma model. If there's not any Prisma\nmodel association, this field can be omitted.",
|
|
19885
|
+
oneOf: [ {
|
|
19886
|
+
type: "null"
|
|
19887
|
+
}, {
|
|
19888
|
+
type: "string"
|
|
19889
|
+
} ]
|
|
19890
|
+
},
|
|
19784
19891
|
properties: {
|
|
19785
19892
|
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's\nregular properties. The key is the name of the regular property, and\nthe value is the type schema info.\n\nIMPORTANT: Each property in this object MUST have a detailed\ndescription that references and aligns with the description comments\nfrom the corresponding Prisma DB schema column.\n\nIf you need additional properties that is represented by dynamic key,\nyou can use the {@link additionalProperties} instead.",
|
|
19786
19893
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -20060,7 +20167,7 @@ const collection$g = {
|
|
|
20060
20167
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
20061
20168
|
const _io13 = input => "boolean" === input.type;
|
|
20062
20169
|
const _io14 = input => "object" === typeof input.items && null !== input.items && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type;
|
|
20063
|
-
const _io15 = input => "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
20170
|
+
const _io15 = input => (null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"]) && ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io2(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || false === input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && _iu2(input.additionalProperties))) && (Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type;
|
|
20064
20171
|
const _io16 = input => "string" === typeof input.$ref;
|
|
20065
20172
|
const _io17 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && _iu0(elem)) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io19(input.discriminator));
|
|
20066
20173
|
const _io18 = input => "null" === input.type;
|
|
@@ -20438,7 +20545,11 @@ const collection$g = {
|
|
|
20438
20545
|
expected: '"array"',
|
|
20439
20546
|
value: input.type
|
|
20440
20547
|
}) ].every(flag => flag);
|
|
20441
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
20548
|
+
const _vo15 = (input, _path, _exceptionable = true) => [ null === input["x-autobe-prisma-schema"] || undefined === input["x-autobe-prisma-schema"] || "string" === typeof input["x-autobe-prisma-schema"] || _report(_exceptionable, {
|
|
20549
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
20550
|
+
expected: "(null | string | undefined)",
|
|
20551
|
+
value: input["x-autobe-prisma-schema"]
|
|
20552
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
20442
20553
|
path: _path + ".properties",
|
|
20443
20554
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
20444
20555
|
value: input.properties
|
|
@@ -21026,7 +21137,7 @@ const claude$8 = {
|
|
|
21026
21137
|
value: input.rationale
|
|
21027
21138
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
21028
21139
|
path: _path + ".tables",
|
|
21029
|
-
expected: "(Array<string &
|
|
21140
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21030
21141
|
value: input.tables
|
|
21031
21142
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
21032
21143
|
path: _path + ".tables",
|
|
@@ -21034,15 +21145,15 @@ const claude$8 = {
|
|
|
21034
21145
|
value: input.tables
|
|
21035
21146
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
21036
21147
|
path: _path + ".tables[" + _index4 + "]",
|
|
21037
|
-
expected: "string &
|
|
21148
|
+
expected: "string & SnakeCasePattern",
|
|
21038
21149
|
value: elem
|
|
21039
21150
|
})) || _report(_exceptionable, {
|
|
21040
21151
|
path: _path + ".tables[" + _index4 + "]",
|
|
21041
|
-
expected: "(string &
|
|
21152
|
+
expected: "(string & SnakeCasePattern)",
|
|
21042
21153
|
value: elem
|
|
21043
21154
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
21044
21155
|
path: _path + ".tables",
|
|
21045
|
-
expected: "(Array<string &
|
|
21156
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21046
21157
|
value: input.tables
|
|
21047
21158
|
}) ].every(flag => flag);
|
|
21048
21159
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
@@ -21217,7 +21328,7 @@ const collection$f = {
|
|
|
21217
21328
|
value: input.rationale
|
|
21218
21329
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
21219
21330
|
path: _path + ".tables",
|
|
21220
|
-
expected: "(Array<string &
|
|
21331
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21221
21332
|
value: input.tables
|
|
21222
21333
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
21223
21334
|
path: _path + ".tables",
|
|
@@ -21225,15 +21336,15 @@ const collection$f = {
|
|
|
21225
21336
|
value: input.tables
|
|
21226
21337
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
21227
21338
|
path: _path + ".tables[" + _index4 + "]",
|
|
21228
|
-
expected: "string &
|
|
21339
|
+
expected: "string & SnakeCasePattern",
|
|
21229
21340
|
value: elem
|
|
21230
21341
|
})) || _report(_exceptionable, {
|
|
21231
21342
|
path: _path + ".tables[" + _index4 + "]",
|
|
21232
|
-
expected: "(string &
|
|
21343
|
+
expected: "(string & SnakeCasePattern)",
|
|
21233
21344
|
value: elem
|
|
21234
21345
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
21235
21346
|
path: _path + ".tables",
|
|
21236
|
-
expected: "(Array<string &
|
|
21347
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21237
21348
|
value: input.tables
|
|
21238
21349
|
}) ].every(flag => flag);
|
|
21239
21350
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
@@ -21719,11 +21830,11 @@ const claude$7 = {
|
|
|
21719
21830
|
}) ].every(flag => flag);
|
|
21720
21831
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21721
21832
|
path: _path + ".name",
|
|
21722
|
-
expected: "string &
|
|
21833
|
+
expected: "string & SnakeCasePattern",
|
|
21723
21834
|
value: input.name
|
|
21724
21835
|
})) || _report(_exceptionable, {
|
|
21725
21836
|
path: _path + ".name",
|
|
21726
|
-
expected: "(string &
|
|
21837
|
+
expected: "(string & SnakeCasePattern)",
|
|
21727
21838
|
value: input.name
|
|
21728
21839
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
21729
21840
|
path: _path + ".description",
|
|
@@ -21828,11 +21939,11 @@ const claude$7 = {
|
|
|
21828
21939
|
}) ].every(flag => flag);
|
|
21829
21940
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21830
21941
|
path: _path + ".name",
|
|
21831
|
-
expected: "string &
|
|
21942
|
+
expected: "string & SnakeCasePattern",
|
|
21832
21943
|
value: input.name
|
|
21833
21944
|
})) || _report(_exceptionable, {
|
|
21834
21945
|
path: _path + ".name",
|
|
21835
|
-
expected: "(string &
|
|
21946
|
+
expected: "(string & SnakeCasePattern)",
|
|
21836
21947
|
value: input.name
|
|
21837
21948
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
21838
21949
|
path: _path + ".type",
|
|
@@ -21845,11 +21956,11 @@ const claude$7 = {
|
|
|
21845
21956
|
}) ].every(flag => flag);
|
|
21846
21957
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21847
21958
|
path: _path + ".name",
|
|
21848
|
-
expected: "string &
|
|
21959
|
+
expected: "string & SnakeCasePattern",
|
|
21849
21960
|
value: input.name
|
|
21850
21961
|
})) || _report(_exceptionable, {
|
|
21851
21962
|
path: _path + ".name",
|
|
21852
|
-
expected: "(string &
|
|
21963
|
+
expected: "(string & SnakeCasePattern)",
|
|
21853
21964
|
value: input.name
|
|
21854
21965
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
21855
21966
|
path: _path + ".type",
|
|
@@ -21878,11 +21989,11 @@ const claude$7 = {
|
|
|
21878
21989
|
}) ].every(flag => flag);
|
|
21879
21990
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
21880
21991
|
path: _path + ".name",
|
|
21881
|
-
expected: "string &
|
|
21992
|
+
expected: "string & CamelCasePattern",
|
|
21882
21993
|
value: input.name
|
|
21883
21994
|
})) || _report(_exceptionable, {
|
|
21884
21995
|
path: _path + ".name",
|
|
21885
|
-
expected: "(string &
|
|
21996
|
+
expected: "(string & CamelCasePattern)",
|
|
21886
21997
|
value: input.name
|
|
21887
21998
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
21888
21999
|
path: _path + ".targetModel",
|
|
@@ -21891,11 +22002,11 @@ const claude$7 = {
|
|
|
21891
22002
|
}) ].every(flag => flag);
|
|
21892
22003
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21893
22004
|
path: _path + ".name",
|
|
21894
|
-
expected: "string &
|
|
22005
|
+
expected: "string & SnakeCasePattern",
|
|
21895
22006
|
value: input.name
|
|
21896
22007
|
})) || _report(_exceptionable, {
|
|
21897
22008
|
path: _path + ".name",
|
|
21898
|
-
expected: "(string &
|
|
22009
|
+
expected: "(string & SnakeCasePattern)",
|
|
21899
22010
|
value: input.name
|
|
21900
22011
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
21901
22012
|
path: _path + ".type",
|
|
@@ -22257,11 +22368,11 @@ const collection$e = {
|
|
|
22257
22368
|
}) ].every(flag => flag);
|
|
22258
22369
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22259
22370
|
path: _path + ".name",
|
|
22260
|
-
expected: "string &
|
|
22371
|
+
expected: "string & SnakeCasePattern",
|
|
22261
22372
|
value: input.name
|
|
22262
22373
|
})) || _report(_exceptionable, {
|
|
22263
22374
|
path: _path + ".name",
|
|
22264
|
-
expected: "(string &
|
|
22375
|
+
expected: "(string & SnakeCasePattern)",
|
|
22265
22376
|
value: input.name
|
|
22266
22377
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
22267
22378
|
path: _path + ".description",
|
|
@@ -22366,11 +22477,11 @@ const collection$e = {
|
|
|
22366
22477
|
}) ].every(flag => flag);
|
|
22367
22478
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22368
22479
|
path: _path + ".name",
|
|
22369
|
-
expected: "string &
|
|
22480
|
+
expected: "string & SnakeCasePattern",
|
|
22370
22481
|
value: input.name
|
|
22371
22482
|
})) || _report(_exceptionable, {
|
|
22372
22483
|
path: _path + ".name",
|
|
22373
|
-
expected: "(string &
|
|
22484
|
+
expected: "(string & SnakeCasePattern)",
|
|
22374
22485
|
value: input.name
|
|
22375
22486
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
22376
22487
|
path: _path + ".type",
|
|
@@ -22383,11 +22494,11 @@ const collection$e = {
|
|
|
22383
22494
|
}) ].every(flag => flag);
|
|
22384
22495
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22385
22496
|
path: _path + ".name",
|
|
22386
|
-
expected: "string &
|
|
22497
|
+
expected: "string & SnakeCasePattern",
|
|
22387
22498
|
value: input.name
|
|
22388
22499
|
})) || _report(_exceptionable, {
|
|
22389
22500
|
path: _path + ".name",
|
|
22390
|
-
expected: "(string &
|
|
22501
|
+
expected: "(string & SnakeCasePattern)",
|
|
22391
22502
|
value: input.name
|
|
22392
22503
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
22393
22504
|
path: _path + ".type",
|
|
@@ -22416,11 +22527,11 @@ const collection$e = {
|
|
|
22416
22527
|
}) ].every(flag => flag);
|
|
22417
22528
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
22418
22529
|
path: _path + ".name",
|
|
22419
|
-
expected: "string &
|
|
22530
|
+
expected: "string & CamelCasePattern",
|
|
22420
22531
|
value: input.name
|
|
22421
22532
|
})) || _report(_exceptionable, {
|
|
22422
22533
|
path: _path + ".name",
|
|
22423
|
-
expected: "(string &
|
|
22534
|
+
expected: "(string & CamelCasePattern)",
|
|
22424
22535
|
value: input.name
|
|
22425
22536
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
22426
22537
|
path: _path + ".targetModel",
|
|
@@ -22429,11 +22540,11 @@ const collection$e = {
|
|
|
22429
22540
|
}) ].every(flag => flag);
|
|
22430
22541
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22431
22542
|
path: _path + ".name",
|
|
22432
|
-
expected: "string &
|
|
22543
|
+
expected: "string & SnakeCasePattern",
|
|
22433
22544
|
value: input.name
|
|
22434
22545
|
})) || _report(_exceptionable, {
|
|
22435
22546
|
path: _path + ".name",
|
|
22436
|
-
expected: "(string &
|
|
22547
|
+
expected: "(string & SnakeCasePattern)",
|
|
22437
22548
|
value: input.name
|
|
22438
22549
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
22439
22550
|
path: _path + ".type",
|
|
@@ -22959,11 +23070,11 @@ const claude$6 = {
|
|
|
22959
23070
|
}) ].every(flag => flag);
|
|
22960
23071
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22961
23072
|
path: _path + ".name",
|
|
22962
|
-
expected: "string &
|
|
23073
|
+
expected: "string & SnakeCasePattern",
|
|
22963
23074
|
value: input.name
|
|
22964
23075
|
})) || _report(_exceptionable, {
|
|
22965
23076
|
path: _path + ".name",
|
|
22966
|
-
expected: "(string &
|
|
23077
|
+
expected: "(string & SnakeCasePattern)",
|
|
22967
23078
|
value: input.name
|
|
22968
23079
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
22969
23080
|
path: _path + ".description",
|
|
@@ -23068,11 +23179,11 @@ const claude$6 = {
|
|
|
23068
23179
|
}) ].every(flag => flag);
|
|
23069
23180
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23070
23181
|
path: _path + ".name",
|
|
23071
|
-
expected: "string &
|
|
23182
|
+
expected: "string & SnakeCasePattern",
|
|
23072
23183
|
value: input.name
|
|
23073
23184
|
})) || _report(_exceptionable, {
|
|
23074
23185
|
path: _path + ".name",
|
|
23075
|
-
expected: "(string &
|
|
23186
|
+
expected: "(string & SnakeCasePattern)",
|
|
23076
23187
|
value: input.name
|
|
23077
23188
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23078
23189
|
path: _path + ".type",
|
|
@@ -23085,11 +23196,11 @@ const claude$6 = {
|
|
|
23085
23196
|
}) ].every(flag => flag);
|
|
23086
23197
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23087
23198
|
path: _path + ".name",
|
|
23088
|
-
expected: "string &
|
|
23199
|
+
expected: "string & SnakeCasePattern",
|
|
23089
23200
|
value: input.name
|
|
23090
23201
|
})) || _report(_exceptionable, {
|
|
23091
23202
|
path: _path + ".name",
|
|
23092
|
-
expected: "(string &
|
|
23203
|
+
expected: "(string & SnakeCasePattern)",
|
|
23093
23204
|
value: input.name
|
|
23094
23205
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23095
23206
|
path: _path + ".type",
|
|
@@ -23118,11 +23229,11 @@ const claude$6 = {
|
|
|
23118
23229
|
}) ].every(flag => flag);
|
|
23119
23230
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
23120
23231
|
path: _path + ".name",
|
|
23121
|
-
expected: "string &
|
|
23232
|
+
expected: "string & CamelCasePattern",
|
|
23122
23233
|
value: input.name
|
|
23123
23234
|
})) || _report(_exceptionable, {
|
|
23124
23235
|
path: _path + ".name",
|
|
23125
|
-
expected: "(string &
|
|
23236
|
+
expected: "(string & CamelCasePattern)",
|
|
23126
23237
|
value: input.name
|
|
23127
23238
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
23128
23239
|
path: _path + ".targetModel",
|
|
@@ -23131,11 +23242,11 @@ const claude$6 = {
|
|
|
23131
23242
|
}) ].every(flag => flag);
|
|
23132
23243
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23133
23244
|
path: _path + ".name",
|
|
23134
|
-
expected: "string &
|
|
23245
|
+
expected: "string & SnakeCasePattern",
|
|
23135
23246
|
value: input.name
|
|
23136
23247
|
})) || _report(_exceptionable, {
|
|
23137
23248
|
path: _path + ".name",
|
|
23138
|
-
expected: "(string &
|
|
23249
|
+
expected: "(string & SnakeCasePattern)",
|
|
23139
23250
|
value: input.name
|
|
23140
23251
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
23141
23252
|
path: _path + ".type",
|
|
@@ -23505,11 +23616,11 @@ const collection$d = {
|
|
|
23505
23616
|
}) ].every(flag => flag);
|
|
23506
23617
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23507
23618
|
path: _path + ".name",
|
|
23508
|
-
expected: "string &
|
|
23619
|
+
expected: "string & SnakeCasePattern",
|
|
23509
23620
|
value: input.name
|
|
23510
23621
|
})) || _report(_exceptionable, {
|
|
23511
23622
|
path: _path + ".name",
|
|
23512
|
-
expected: "(string &
|
|
23623
|
+
expected: "(string & SnakeCasePattern)",
|
|
23513
23624
|
value: input.name
|
|
23514
23625
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
23515
23626
|
path: _path + ".description",
|
|
@@ -23614,11 +23725,11 @@ const collection$d = {
|
|
|
23614
23725
|
}) ].every(flag => flag);
|
|
23615
23726
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23616
23727
|
path: _path + ".name",
|
|
23617
|
-
expected: "string &
|
|
23728
|
+
expected: "string & SnakeCasePattern",
|
|
23618
23729
|
value: input.name
|
|
23619
23730
|
})) || _report(_exceptionable, {
|
|
23620
23731
|
path: _path + ".name",
|
|
23621
|
-
expected: "(string &
|
|
23732
|
+
expected: "(string & SnakeCasePattern)",
|
|
23622
23733
|
value: input.name
|
|
23623
23734
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23624
23735
|
path: _path + ".type",
|
|
@@ -23631,11 +23742,11 @@ const collection$d = {
|
|
|
23631
23742
|
}) ].every(flag => flag);
|
|
23632
23743
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23633
23744
|
path: _path + ".name",
|
|
23634
|
-
expected: "string &
|
|
23745
|
+
expected: "string & SnakeCasePattern",
|
|
23635
23746
|
value: input.name
|
|
23636
23747
|
})) || _report(_exceptionable, {
|
|
23637
23748
|
path: _path + ".name",
|
|
23638
|
-
expected: "(string &
|
|
23749
|
+
expected: "(string & SnakeCasePattern)",
|
|
23639
23750
|
value: input.name
|
|
23640
23751
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23641
23752
|
path: _path + ".type",
|
|
@@ -23664,11 +23775,11 @@ const collection$d = {
|
|
|
23664
23775
|
}) ].every(flag => flag);
|
|
23665
23776
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
23666
23777
|
path: _path + ".name",
|
|
23667
|
-
expected: "string &
|
|
23778
|
+
expected: "string & CamelCasePattern",
|
|
23668
23779
|
value: input.name
|
|
23669
23780
|
})) || _report(_exceptionable, {
|
|
23670
23781
|
path: _path + ".name",
|
|
23671
|
-
expected: "(string &
|
|
23782
|
+
expected: "(string & CamelCasePattern)",
|
|
23672
23783
|
value: input.name
|
|
23673
23784
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
23674
23785
|
path: _path + ".targetModel",
|
|
@@ -23677,11 +23788,11 @@ const collection$d = {
|
|
|
23677
23788
|
}) ].every(flag => flag);
|
|
23678
23789
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23679
23790
|
path: _path + ".name",
|
|
23680
|
-
expected: "string &
|
|
23791
|
+
expected: "string & SnakeCasePattern",
|
|
23681
23792
|
value: input.name
|
|
23682
23793
|
})) || _report(_exceptionable, {
|
|
23683
23794
|
path: _path + ".name",
|
|
23684
|
-
expected: "(string &
|
|
23795
|
+
expected: "(string & SnakeCasePattern)",
|
|
23685
23796
|
value: input.name
|
|
23686
23797
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
23687
23798
|
path: _path + ".type",
|
|
@@ -23955,11 +24066,11 @@ function createController$b(ctx, props) {
|
|
|
23955
24066
|
}) ].every(flag => flag);
|
|
23956
24067
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23957
24068
|
path: _path + ".name",
|
|
23958
|
-
expected: "string &
|
|
24069
|
+
expected: "string & SnakeCasePattern",
|
|
23959
24070
|
value: input.name
|
|
23960
24071
|
})) || _report(_exceptionable, {
|
|
23961
24072
|
path: _path + ".name",
|
|
23962
|
-
expected: "(string &
|
|
24073
|
+
expected: "(string & SnakeCasePattern)",
|
|
23963
24074
|
value: input.name
|
|
23964
24075
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
23965
24076
|
path: _path + ".description",
|
|
@@ -24064,11 +24175,11 @@ function createController$b(ctx, props) {
|
|
|
24064
24175
|
}) ].every(flag => flag);
|
|
24065
24176
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24066
24177
|
path: _path + ".name",
|
|
24067
|
-
expected: "string &
|
|
24178
|
+
expected: "string & SnakeCasePattern",
|
|
24068
24179
|
value: input.name
|
|
24069
24180
|
})) || _report(_exceptionable, {
|
|
24070
24181
|
path: _path + ".name",
|
|
24071
|
-
expected: "(string &
|
|
24182
|
+
expected: "(string & SnakeCasePattern)",
|
|
24072
24183
|
value: input.name
|
|
24073
24184
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24074
24185
|
path: _path + ".type",
|
|
@@ -24081,11 +24192,11 @@ function createController$b(ctx, props) {
|
|
|
24081
24192
|
}) ].every(flag => flag);
|
|
24082
24193
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24083
24194
|
path: _path + ".name",
|
|
24084
|
-
expected: "string &
|
|
24195
|
+
expected: "string & SnakeCasePattern",
|
|
24085
24196
|
value: input.name
|
|
24086
24197
|
})) || _report(_exceptionable, {
|
|
24087
24198
|
path: _path + ".name",
|
|
24088
|
-
expected: "(string &
|
|
24199
|
+
expected: "(string & SnakeCasePattern)",
|
|
24089
24200
|
value: input.name
|
|
24090
24201
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24091
24202
|
path: _path + ".type",
|
|
@@ -24114,11 +24225,11 @@ function createController$b(ctx, props) {
|
|
|
24114
24225
|
}) ].every(flag => flag);
|
|
24115
24226
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
24116
24227
|
path: _path + ".name",
|
|
24117
|
-
expected: "string &
|
|
24228
|
+
expected: "string & CamelCasePattern",
|
|
24118
24229
|
value: input.name
|
|
24119
24230
|
})) || _report(_exceptionable, {
|
|
24120
24231
|
path: _path + ".name",
|
|
24121
|
-
expected: "(string &
|
|
24232
|
+
expected: "(string & CamelCasePattern)",
|
|
24122
24233
|
value: input.name
|
|
24123
24234
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
24124
24235
|
path: _path + ".targetModel",
|
|
@@ -24127,11 +24238,11 @@ function createController$b(ctx, props) {
|
|
|
24127
24238
|
}) ].every(flag => flag);
|
|
24128
24239
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24129
24240
|
path: _path + ".name",
|
|
24130
|
-
expected: "string &
|
|
24241
|
+
expected: "string & SnakeCasePattern",
|
|
24131
24242
|
value: input.name
|
|
24132
24243
|
})) || _report(_exceptionable, {
|
|
24133
24244
|
path: _path + ".name",
|
|
24134
|
-
expected: "(string &
|
|
24245
|
+
expected: "(string & SnakeCasePattern)",
|
|
24135
24246
|
value: input.name
|
|
24136
24247
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
24137
24248
|
path: _path + ".type",
|
|
@@ -24551,11 +24662,11 @@ const collection$c = {
|
|
|
24551
24662
|
}) ].every(flag => flag);
|
|
24552
24663
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24553
24664
|
path: _path + ".name",
|
|
24554
|
-
expected: "string &
|
|
24665
|
+
expected: "string & SnakeCasePattern",
|
|
24555
24666
|
value: input.name
|
|
24556
24667
|
})) || _report(_exceptionable, {
|
|
24557
24668
|
path: _path + ".name",
|
|
24558
|
-
expected: "(string &
|
|
24669
|
+
expected: "(string & SnakeCasePattern)",
|
|
24559
24670
|
value: input.name
|
|
24560
24671
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
24561
24672
|
path: _path + ".description",
|
|
@@ -24660,11 +24771,11 @@ const collection$c = {
|
|
|
24660
24771
|
}) ].every(flag => flag);
|
|
24661
24772
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24662
24773
|
path: _path + ".name",
|
|
24663
|
-
expected: "string &
|
|
24774
|
+
expected: "string & SnakeCasePattern",
|
|
24664
24775
|
value: input.name
|
|
24665
24776
|
})) || _report(_exceptionable, {
|
|
24666
24777
|
path: _path + ".name",
|
|
24667
|
-
expected: "(string &
|
|
24778
|
+
expected: "(string & SnakeCasePattern)",
|
|
24668
24779
|
value: input.name
|
|
24669
24780
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24670
24781
|
path: _path + ".type",
|
|
@@ -24677,11 +24788,11 @@ const collection$c = {
|
|
|
24677
24788
|
}) ].every(flag => flag);
|
|
24678
24789
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24679
24790
|
path: _path + ".name",
|
|
24680
|
-
expected: "string &
|
|
24791
|
+
expected: "string & SnakeCasePattern",
|
|
24681
24792
|
value: input.name
|
|
24682
24793
|
})) || _report(_exceptionable, {
|
|
24683
24794
|
path: _path + ".name",
|
|
24684
|
-
expected: "(string &
|
|
24795
|
+
expected: "(string & SnakeCasePattern)",
|
|
24685
24796
|
value: input.name
|
|
24686
24797
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24687
24798
|
path: _path + ".type",
|
|
@@ -24710,11 +24821,11 @@ const collection$c = {
|
|
|
24710
24821
|
}) ].every(flag => flag);
|
|
24711
24822
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
24712
24823
|
path: _path + ".name",
|
|
24713
|
-
expected: "string &
|
|
24824
|
+
expected: "string & CamelCasePattern",
|
|
24714
24825
|
value: input.name
|
|
24715
24826
|
})) || _report(_exceptionable, {
|
|
24716
24827
|
path: _path + ".name",
|
|
24717
|
-
expected: "(string &
|
|
24828
|
+
expected: "(string & CamelCasePattern)",
|
|
24718
24829
|
value: input.name
|
|
24719
24830
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
24720
24831
|
path: _path + ".targetModel",
|
|
@@ -24723,11 +24834,11 @@ const collection$c = {
|
|
|
24723
24834
|
}) ].every(flag => flag);
|
|
24724
24835
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24725
24836
|
path: _path + ".name",
|
|
24726
|
-
expected: "string &
|
|
24837
|
+
expected: "string & SnakeCasePattern",
|
|
24727
24838
|
value: input.name
|
|
24728
24839
|
})) || _report(_exceptionable, {
|
|
24729
24840
|
path: _path + ".name",
|
|
24730
|
-
expected: "(string &
|
|
24841
|
+
expected: "(string & SnakeCasePattern)",
|
|
24731
24842
|
value: input.name
|
|
24732
24843
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
24733
24844
|
path: _path + ".type",
|
|
@@ -25128,11 +25239,11 @@ const collection$c = {
|
|
|
25128
25239
|
}) ].every(flag => flag);
|
|
25129
25240
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25130
25241
|
path: _path + ".name",
|
|
25131
|
-
expected: "string &
|
|
25242
|
+
expected: "string & SnakeCasePattern",
|
|
25132
25243
|
value: input.name
|
|
25133
25244
|
})) || _report(_exceptionable, {
|
|
25134
25245
|
path: _path + ".name",
|
|
25135
|
-
expected: "(string &
|
|
25246
|
+
expected: "(string & SnakeCasePattern)",
|
|
25136
25247
|
value: input.name
|
|
25137
25248
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
25138
25249
|
path: _path + ".description",
|
|
@@ -25237,11 +25348,11 @@ const collection$c = {
|
|
|
25237
25348
|
}) ].every(flag => flag);
|
|
25238
25349
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25239
25350
|
path: _path + ".name",
|
|
25240
|
-
expected: "string &
|
|
25351
|
+
expected: "string & SnakeCasePattern",
|
|
25241
25352
|
value: input.name
|
|
25242
25353
|
})) || _report(_exceptionable, {
|
|
25243
25354
|
path: _path + ".name",
|
|
25244
|
-
expected: "(string &
|
|
25355
|
+
expected: "(string & SnakeCasePattern)",
|
|
25245
25356
|
value: input.name
|
|
25246
25357
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
25247
25358
|
path: _path + ".type",
|
|
@@ -25254,11 +25365,11 @@ const collection$c = {
|
|
|
25254
25365
|
}) ].every(flag => flag);
|
|
25255
25366
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25256
25367
|
path: _path + ".name",
|
|
25257
|
-
expected: "string &
|
|
25368
|
+
expected: "string & SnakeCasePattern",
|
|
25258
25369
|
value: input.name
|
|
25259
25370
|
})) || _report(_exceptionable, {
|
|
25260
25371
|
path: _path + ".name",
|
|
25261
|
-
expected: "(string &
|
|
25372
|
+
expected: "(string & SnakeCasePattern)",
|
|
25262
25373
|
value: input.name
|
|
25263
25374
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
25264
25375
|
path: _path + ".type",
|
|
@@ -25287,11 +25398,11 @@ const collection$c = {
|
|
|
25287
25398
|
}) ].every(flag => flag);
|
|
25288
25399
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
25289
25400
|
path: _path + ".name",
|
|
25290
|
-
expected: "string &
|
|
25401
|
+
expected: "string & CamelCasePattern",
|
|
25291
25402
|
value: input.name
|
|
25292
25403
|
})) || _report(_exceptionable, {
|
|
25293
25404
|
path: _path + ".name",
|
|
25294
|
-
expected: "(string &
|
|
25405
|
+
expected: "(string & CamelCasePattern)",
|
|
25295
25406
|
value: input.name
|
|
25296
25407
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
25297
25408
|
path: _path + ".targetModel",
|
|
@@ -25300,11 +25411,11 @@ const collection$c = {
|
|
|
25300
25411
|
}) ].every(flag => flag);
|
|
25301
25412
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25302
25413
|
path: _path + ".name",
|
|
25303
|
-
expected: "string &
|
|
25414
|
+
expected: "string & SnakeCasePattern",
|
|
25304
25415
|
value: input.name
|
|
25305
25416
|
})) || _report(_exceptionable, {
|
|
25306
25417
|
path: _path + ".name",
|
|
25307
|
-
expected: "(string &
|
|
25418
|
+
expected: "(string & SnakeCasePattern)",
|
|
25308
25419
|
value: input.name
|
|
25309
25420
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
25310
25421
|
path: _path + ".type",
|
|
@@ -26436,11 +26547,11 @@ const claude$5 = {
|
|
|
26436
26547
|
}) ].every(flag => flag);
|
|
26437
26548
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26438
26549
|
path: _path + ".name",
|
|
26439
|
-
expected: "string &
|
|
26550
|
+
expected: "string & CamelCasePattern",
|
|
26440
26551
|
value: input.name
|
|
26441
26552
|
})) || _report(_exceptionable, {
|
|
26442
26553
|
path: _path + ".name",
|
|
26443
|
-
expected: "(string &
|
|
26554
|
+
expected: "(string & CamelCasePattern)",
|
|
26444
26555
|
value: input.name
|
|
26445
26556
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26446
26557
|
path: _path + ".content",
|
|
@@ -26449,11 +26560,11 @@ const claude$5 = {
|
|
|
26449
26560
|
}) ].every(flag => flag);
|
|
26450
26561
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26451
26562
|
path: _path + ".name",
|
|
26452
|
-
expected: "string &
|
|
26563
|
+
expected: "string & PascalCasePattern",
|
|
26453
26564
|
value: input.name
|
|
26454
26565
|
})) || _report(_exceptionable, {
|
|
26455
26566
|
path: _path + ".name",
|
|
26456
|
-
expected: "(string &
|
|
26567
|
+
expected: "(string & PascalCasePattern)",
|
|
26457
26568
|
value: input.name
|
|
26458
26569
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26459
26570
|
path: _path + ".content",
|
|
@@ -26462,11 +26573,11 @@ const claude$5 = {
|
|
|
26462
26573
|
}) ].every(flag => flag);
|
|
26463
26574
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26464
26575
|
path: _path + ".name",
|
|
26465
|
-
expected: "string &
|
|
26576
|
+
expected: "string & PascalCasePattern",
|
|
26466
26577
|
value: input.name
|
|
26467
26578
|
})) || _report(_exceptionable, {
|
|
26468
26579
|
path: _path + ".name",
|
|
26469
|
-
expected: "(string &
|
|
26580
|
+
expected: "(string & PascalCasePattern)",
|
|
26470
26581
|
value: input.name
|
|
26471
26582
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26472
26583
|
path: _path + ".content",
|
|
@@ -26628,11 +26739,11 @@ const collection$a = {
|
|
|
26628
26739
|
}) ].every(flag => flag);
|
|
26629
26740
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26630
26741
|
path: _path + ".name",
|
|
26631
|
-
expected: "string &
|
|
26742
|
+
expected: "string & CamelCasePattern",
|
|
26632
26743
|
value: input.name
|
|
26633
26744
|
})) || _report(_exceptionable, {
|
|
26634
26745
|
path: _path + ".name",
|
|
26635
|
-
expected: "(string &
|
|
26746
|
+
expected: "(string & CamelCasePattern)",
|
|
26636
26747
|
value: input.name
|
|
26637
26748
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26638
26749
|
path: _path + ".content",
|
|
@@ -26641,11 +26752,11 @@ const collection$a = {
|
|
|
26641
26752
|
}) ].every(flag => flag);
|
|
26642
26753
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26643
26754
|
path: _path + ".name",
|
|
26644
|
-
expected: "string &
|
|
26755
|
+
expected: "string & PascalCasePattern",
|
|
26645
26756
|
value: input.name
|
|
26646
26757
|
})) || _report(_exceptionable, {
|
|
26647
26758
|
path: _path + ".name",
|
|
26648
|
-
expected: "(string &
|
|
26759
|
+
expected: "(string & PascalCasePattern)",
|
|
26649
26760
|
value: input.name
|
|
26650
26761
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26651
26762
|
path: _path + ".content",
|
|
@@ -26654,11 +26765,11 @@ const collection$a = {
|
|
|
26654
26765
|
}) ].every(flag => flag);
|
|
26655
26766
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26656
26767
|
path: _path + ".name",
|
|
26657
|
-
expected: "string &
|
|
26768
|
+
expected: "string & PascalCasePattern",
|
|
26658
26769
|
value: input.name
|
|
26659
26770
|
})) || _report(_exceptionable, {
|
|
26660
26771
|
path: _path + ".name",
|
|
26661
|
-
expected: "(string &
|
|
26772
|
+
expected: "(string & PascalCasePattern)",
|
|
26662
26773
|
value: input.name
|
|
26663
26774
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26664
26775
|
path: _path + ".content",
|
|
@@ -26814,7 +26925,7 @@ const claude$4 = {
|
|
|
26814
26925
|
functions: [ {
|
|
26815
26926
|
name: "createDecorator",
|
|
26816
26927
|
parameters: {
|
|
26817
|
-
description: " Properties containing provider, decorator, and payload type
|
|
26928
|
+
description: " Properties containing provider, decorator, and payload type\nconfigurations\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationApplication.IProps}",
|
|
26818
26929
|
type: "object",
|
|
26819
26930
|
properties: {
|
|
26820
26931
|
provider: {
|
|
@@ -26880,7 +26991,7 @@ const claude$4 = {
|
|
|
26880
26991
|
}
|
|
26881
26992
|
}
|
|
26882
26993
|
},
|
|
26883
|
-
description: "Generates authentication provider, decorator, and payload type for
|
|
26994
|
+
description: "Generates authentication provider, decorator, and payload type for\nrole-based authorization.\n\nThis method creates a complete authentication infrastructure for a specific\nrole in the NestJS application. It generates three interconnected\ncomponents that work together to provide JWT-based authentication and\nauthorization.\n\nThe generated components include:\n\n- **Provider Function**: Handles JWT verification and user validation from\n database\n- **Decorator**: NestJS parameter decorator for injecting authenticated user\n data\n- **Payload Type**: TypeScript interface defining the authenticated user\n structure\n\nAll components follow strict naming conventions and integrate with the\nexisting authentication architecture using the shared jwtAuthorize\nfunction.",
|
|
26884
26995
|
validate: (() => {
|
|
26885
26996
|
const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload));
|
|
26886
26997
|
const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content;
|
|
@@ -26913,11 +27024,11 @@ const claude$4 = {
|
|
|
26913
27024
|
}) ].every(flag => flag);
|
|
26914
27025
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26915
27026
|
path: _path + ".name",
|
|
26916
|
-
expected: "string &
|
|
27027
|
+
expected: "string & CamelCasePattern",
|
|
26917
27028
|
value: input.name
|
|
26918
27029
|
})) || _report(_exceptionable, {
|
|
26919
27030
|
path: _path + ".name",
|
|
26920
|
-
expected: "(string &
|
|
27031
|
+
expected: "(string & CamelCasePattern)",
|
|
26921
27032
|
value: input.name
|
|
26922
27033
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26923
27034
|
path: _path + ".content",
|
|
@@ -26926,11 +27037,11 @@ const claude$4 = {
|
|
|
26926
27037
|
}) ].every(flag => flag);
|
|
26927
27038
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26928
27039
|
path: _path + ".name",
|
|
26929
|
-
expected: "string &
|
|
27040
|
+
expected: "string & PascalCasePattern",
|
|
26930
27041
|
value: input.name
|
|
26931
27042
|
})) || _report(_exceptionable, {
|
|
26932
27043
|
path: _path + ".name",
|
|
26933
|
-
expected: "(string &
|
|
27044
|
+
expected: "(string & PascalCasePattern)",
|
|
26934
27045
|
value: input.name
|
|
26935
27046
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26936
27047
|
path: _path + ".content",
|
|
@@ -26939,11 +27050,11 @@ const claude$4 = {
|
|
|
26939
27050
|
}) ].every(flag => flag);
|
|
26940
27051
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26941
27052
|
path: _path + ".name",
|
|
26942
|
-
expected: "string &
|
|
27053
|
+
expected: "string & PascalCasePattern",
|
|
26943
27054
|
value: input.name
|
|
26944
27055
|
})) || _report(_exceptionable, {
|
|
26945
27056
|
path: _path + ".name",
|
|
26946
|
-
expected: "(string &
|
|
27057
|
+
expected: "(string & PascalCasePattern)",
|
|
26947
27058
|
value: input.name
|
|
26948
27059
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26949
27060
|
path: _path + ".content",
|
|
@@ -26996,7 +27107,7 @@ const collection$9 = {
|
|
|
26996
27107
|
functions: [ {
|
|
26997
27108
|
name: "createDecorator",
|
|
26998
27109
|
parameters: {
|
|
26999
|
-
description: " Properties containing provider, decorator, and payload type
|
|
27110
|
+
description: " Properties containing provider, decorator, and payload type\nconfigurations\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationApplication.IProps}\n\n### Description of {@link provider} property:\n\n> Authentication Provider function configuration containing the function\n> name and implementation code. The Provider handles JWT token\n> verification, role validation, and database queries to authenticate\n> users.\n\n### Description of {@link decorator} property:\n\n> Authentication Decorator configuration containing the decorator name and\n> implementation code. The Decorator integrates with NestJS parameter\n> decorators to automatically inject authenticated user data into\n> Controller methods.\n\n### Description of {@link payload} property:\n\n> Authentication Payload Type configuration containing the payload type\n> name and implementation code. The Payload Type is used to define the\n> structure of the authenticated user data that will be injected into\n> Controller methods when using the decorator. It serves as the TypeScript\n> type for the parameter in Controller method signatures.",
|
|
27000
27111
|
type: "object",
|
|
27001
27112
|
properties: {
|
|
27002
27113
|
provider: {
|
|
@@ -27056,7 +27167,7 @@ const collection$9 = {
|
|
|
27056
27167
|
}
|
|
27057
27168
|
}
|
|
27058
27169
|
},
|
|
27059
|
-
description: "Generates authentication provider, decorator, and payload type for
|
|
27170
|
+
description: "Generates authentication provider, decorator, and payload type for\nrole-based authorization.\n\nThis method creates a complete authentication infrastructure for a specific\nrole in the NestJS application. It generates three interconnected\ncomponents that work together to provide JWT-based authentication and\nauthorization.\n\nThe generated components include:\n\n- **Provider Function**: Handles JWT verification and user validation from\n database\n- **Decorator**: NestJS parameter decorator for injecting authenticated user\n data\n- **Payload Type**: TypeScript interface defining the authenticated user\n structure\n\nAll components follow strict naming conventions and integrate with the\nexisting authentication architecture using the shared jwtAuthorize\nfunction.",
|
|
27060
27171
|
validate: (() => {
|
|
27061
27172
|
const _io0 = input => "object" === typeof input.provider && null !== input.provider && _io1(input.provider) && ("object" === typeof input.decorator && null !== input.decorator && _io2(input.decorator)) && ("object" === typeof input.payload && null !== input.payload && _io3(input.payload));
|
|
27062
27173
|
const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content;
|
|
@@ -27089,11 +27200,11 @@ const collection$9 = {
|
|
|
27089
27200
|
}) ].every(flag => flag);
|
|
27090
27201
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27091
27202
|
path: _path + ".name",
|
|
27092
|
-
expected: "string &
|
|
27203
|
+
expected: "string & CamelCasePattern",
|
|
27093
27204
|
value: input.name
|
|
27094
27205
|
})) || _report(_exceptionable, {
|
|
27095
27206
|
path: _path + ".name",
|
|
27096
|
-
expected: "(string &
|
|
27207
|
+
expected: "(string & CamelCasePattern)",
|
|
27097
27208
|
value: input.name
|
|
27098
27209
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27099
27210
|
path: _path + ".content",
|
|
@@ -27102,11 +27213,11 @@ const collection$9 = {
|
|
|
27102
27213
|
}) ].every(flag => flag);
|
|
27103
27214
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27104
27215
|
path: _path + ".name",
|
|
27105
|
-
expected: "string &
|
|
27216
|
+
expected: "string & PascalCasePattern",
|
|
27106
27217
|
value: input.name
|
|
27107
27218
|
})) || _report(_exceptionable, {
|
|
27108
27219
|
path: _path + ".name",
|
|
27109
|
-
expected: "(string &
|
|
27220
|
+
expected: "(string & PascalCasePattern)",
|
|
27110
27221
|
value: input.name
|
|
27111
27222
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27112
27223
|
path: _path + ".content",
|
|
@@ -27115,11 +27226,11 @@ const collection$9 = {
|
|
|
27115
27226
|
}) ].every(flag => flag);
|
|
27116
27227
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27117
27228
|
path: _path + ".name",
|
|
27118
|
-
expected: "string &
|
|
27229
|
+
expected: "string & PascalCasePattern",
|
|
27119
27230
|
value: input.name
|
|
27120
27231
|
})) || _report(_exceptionable, {
|
|
27121
27232
|
path: _path + ".name",
|
|
27122
|
-
expected: "(string &
|
|
27233
|
+
expected: "(string & PascalCasePattern)",
|
|
27123
27234
|
value: input.name
|
|
27124
27235
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27125
27236
|
path: _path + ".content",
|
|
@@ -28385,23 +28496,21 @@ const orchestrateRealize = ctx => async props => {
|
|
|
28385
28496
|
};
|
|
28386
28497
|
const process = async artifacts => {
|
|
28387
28498
|
const writes = (await executeCachedBatch(artifacts.map(art => async promptCacheKey => {
|
|
28388
|
-
const
|
|
28389
|
-
totalAuthorizations: authorizations,
|
|
28390
|
-
authorization: art.decoratorEvent ?? null,
|
|
28391
|
-
scenario: art,
|
|
28392
|
-
document,
|
|
28393
|
-
progress: writeProgress,
|
|
28394
|
-
promptCacheKey
|
|
28395
|
-
};
|
|
28396
|
-
try {
|
|
28397
|
-
return await orchestrateRealizeWrite(ctx, props);
|
|
28398
|
-
} catch {
|
|
28499
|
+
const write = async () => {
|
|
28399
28500
|
try {
|
|
28400
|
-
return await orchestrateRealizeWrite(ctx,
|
|
28501
|
+
return await orchestrateRealizeWrite(ctx, {
|
|
28502
|
+
totalAuthorizations: authorizations,
|
|
28503
|
+
authorization: art.decoratorEvent ?? null,
|
|
28504
|
+
scenario: art,
|
|
28505
|
+
document,
|
|
28506
|
+
progress: writeProgress,
|
|
28507
|
+
promptCacheKey
|
|
28508
|
+
});
|
|
28401
28509
|
} catch {
|
|
28402
28510
|
return null;
|
|
28403
28511
|
}
|
|
28404
|
-
}
|
|
28512
|
+
};
|
|
28513
|
+
return await write() ?? await write();
|
|
28405
28514
|
}))).filter(w => w !== null);
|
|
28406
28515
|
const functions = Object.entries(Object.fromEntries(writes.map(w => [ w.location, w.content ]))).map(([location, content]) => {
|
|
28407
28516
|
const scenario = artifacts.find(el => el.location === location);
|
|
@@ -30876,7 +30985,7 @@ const collection$3 = {
|
|
|
30876
30985
|
})()
|
|
30877
30986
|
};
|
|
30878
30987
|
|
|
30879
|
-
async function orchestrateTestScenario(ctx, instruction, capacity =
|
|
30988
|
+
async function orchestrateTestScenario(ctx, instruction, capacity = 2) {
|
|
30880
30989
|
const document = ctx.state().interface?.document;
|
|
30881
30990
|
if (document === undefined) {
|
|
30882
30991
|
throw new Error("Cannot write test scenarios because these are no operations.");
|
|
@@ -30900,7 +31009,7 @@ async function orchestrateTestScenario(ctx, instruction, capacity = 4) {
|
|
|
30900
31009
|
do {
|
|
30901
31010
|
const matrix = divideArray({
|
|
30902
31011
|
array: include,
|
|
30903
|
-
capacity: capacity ??
|
|
31012
|
+
capacity: capacity ?? 2
|
|
30904
31013
|
});
|
|
30905
31014
|
await executeCachedBatch(matrix.map(include => async promptCacheKey => {
|
|
30906
31015
|
exclude.push(...await divideAndConquer(ctx, {
|
|
@@ -33515,10 +33624,25 @@ const createAutoBeContext = props => {
|
|
|
33515
33624
|
}).catch(() => {});
|
|
33516
33625
|
});
|
|
33517
33626
|
if (closure) closure(agent);
|
|
33627
|
+
const message = next.enforceFunctionCall === true ? StringUtil.trim`
|
|
33628
|
+
${next.message}
|
|
33629
|
+
|
|
33630
|
+
> You have to call function(s) of below to accomplish my request.
|
|
33631
|
+
>
|
|
33632
|
+
> Never hesitate the function calling. Never ask for me permission
|
|
33633
|
+
> to execute the function. Never explain me your plan with waiting
|
|
33634
|
+
> for my approval.
|
|
33635
|
+
>
|
|
33636
|
+
> I gave you every information for the function calling, so just
|
|
33637
|
+
> call it. I repeat that, never hesitate the function calling.
|
|
33638
|
+
> Just do it without any explanation.
|
|
33639
|
+
>
|
|
33640
|
+
${next.controller.application.functions.map(f => `> - ${f.name}`).join("\n")}
|
|
33641
|
+
` : next.message;
|
|
33518
33642
|
const result = await TimedConversation.process({
|
|
33519
|
-
agent,
|
|
33520
33643
|
timeout: config.timeout,
|
|
33521
|
-
|
|
33644
|
+
agent,
|
|
33645
|
+
message
|
|
33522
33646
|
});
|
|
33523
33647
|
const tokenUsage = agent.getTokenUsage().toJSON().aggregate;
|
|
33524
33648
|
props.usage().record(tokenUsage, [ STAGES.find(stage => next.source.startsWith(stage)) ?? "analyze" ]);
|
|
@@ -33534,7 +33658,15 @@ const createAutoBeContext = props => {
|
|
|
33534
33658
|
throw result.error;
|
|
33535
33659
|
} else if (true === next.enforceFunctionCall && false === result.histories.some(h => h.type === "execute" && h.success === true)) {
|
|
33536
33660
|
const failure = () => {
|
|
33537
|
-
throw new Error(
|
|
33661
|
+
throw new Error(StringUtil.trim`
|
|
33662
|
+
Failed to function calling in the ${next.source} step.
|
|
33663
|
+
|
|
33664
|
+
Here is the list of history types that occurred during the conversation:
|
|
33665
|
+
|
|
33666
|
+
${result.histories.map(h => `- ${h.type}`).join("\n")}
|
|
33667
|
+
|
|
33668
|
+
${JSON.stringify(result.histories)}
|
|
33669
|
+
`);
|
|
33538
33670
|
};
|
|
33539
33671
|
const last = result.histories.at(-1);
|
|
33540
33672
|
if (last?.type === "assistantMessage" && last.text.trim().length !== 0) {
|