@autobe/agent 0.25.1 → 0.25.3
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 +364 -226
- 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 +52 -10
- 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/orchestrateInterfaceComplement.ts +14 -4
- 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 => {
|
|
@@ -5115,12 +5142,15 @@ const fulfillJsonSchemaErrorMessages = errors => {
|
|
|
5115
5142
|
const isInvalidJsonSchema = e => e.expected.startsWith("(") && e.expected.endsWith(")") && e.expected.includes("|") && e.expected.split("|").map(s => s.trim()).every(s => s.startsWith("AutoBeOpenApi.IJsonSchema.") || s.startsWith("AutoBeOpenApi.IJsonSchemaDescriptive."));
|
|
5116
5143
|
|
|
5117
5144
|
function orchestrateInterfaceComplement(ctx, props) {
|
|
5118
|
-
return step$3(ctx, props,
|
|
5145
|
+
return step$3(ctx, props, {
|
|
5146
|
+
wasEmpty: false,
|
|
5147
|
+
life: 10
|
|
5148
|
+
});
|
|
5119
5149
|
}
|
|
5120
5150
|
|
|
5121
|
-
async function step$3(ctx, props,
|
|
5151
|
+
async function step$3(ctx, props, progress) {
|
|
5122
5152
|
const missed = missedOpenApiSchemas(props.document);
|
|
5123
|
-
if (missed.length === 0) return props.document.components.schemas;
|
|
5153
|
+
if (missed.length === 0) return props.document.components.schemas; else if (progress.life === 0) return props.document.components.schemas;
|
|
5124
5154
|
const pointer = {
|
|
5125
5155
|
value: null
|
|
5126
5156
|
};
|
|
@@ -5155,7 +5185,7 @@ async function step$3(ctx, props, wasEmpty) {
|
|
|
5155
5185
|
created_at: (new Date).toISOString()
|
|
5156
5186
|
});
|
|
5157
5187
|
const empty = Object.keys(pointer.value).length === 0;
|
|
5158
|
-
if (empty === true && wasEmpty === true) return props.document.components.schemas;
|
|
5188
|
+
if (empty === true && progress.wasEmpty === true) return props.document.components.schemas;
|
|
5159
5189
|
const newSchemas = {
|
|
5160
5190
|
...pointer.value,
|
|
5161
5191
|
...props.document.components.schemas
|
|
@@ -5170,7 +5200,10 @@ async function step$3(ctx, props, wasEmpty) {
|
|
|
5170
5200
|
schemas: newSchemas
|
|
5171
5201
|
}
|
|
5172
5202
|
}
|
|
5173
|
-
},
|
|
5203
|
+
}, {
|
|
5204
|
+
wasEmpty: empty,
|
|
5205
|
+
life: progress.life - 1
|
|
5206
|
+
});
|
|
5174
5207
|
}
|
|
5175
5208
|
|
|
5176
5209
|
function createController$m(props) {
|
|
@@ -5196,7 +5229,7 @@ function createController$m(props) {
|
|
|
5196
5229
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
5197
5230
|
const _io12 = input => "boolean" === input.type;
|
|
5198
5231
|
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;
|
|
5232
|
+
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
5233
|
const _io15 = input => "string" === typeof input.$ref;
|
|
5201
5234
|
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
5235
|
const _io17 = input => "null" === input.type;
|
|
@@ -5557,7 +5590,11 @@ function createController$m(props) {
|
|
|
5557
5590
|
expected: '"array"',
|
|
5558
5591
|
value: input.type
|
|
5559
5592
|
}) ].every(flag => flag);
|
|
5560
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
5593
|
+
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, {
|
|
5594
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
5595
|
+
expected: "(null | string | undefined)",
|
|
5596
|
+
value: input["x-autobe-prisma-schema"]
|
|
5597
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
5561
5598
|
path: _path + ".properties",
|
|
5562
5599
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
5563
5600
|
value: input.properties
|
|
@@ -6237,6 +6274,14 @@ const collection$o = {
|
|
|
6237
6274
|
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
6275
|
type: "object",
|
|
6239
6276
|
properties: {
|
|
6277
|
+
"x-autobe-prisma-schema": {
|
|
6278
|
+
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.",
|
|
6279
|
+
anyOf: [ {
|
|
6280
|
+
type: "null"
|
|
6281
|
+
}, {
|
|
6282
|
+
type: "string"
|
|
6283
|
+
} ]
|
|
6284
|
+
},
|
|
6240
6285
|
properties: {
|
|
6241
6286
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
6242
6287
|
},
|
|
@@ -6516,7 +6561,7 @@ const collection$o = {
|
|
|
6516
6561
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
6517
6562
|
const _io12 = input => "boolean" === input.type;
|
|
6518
6563
|
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;
|
|
6564
|
+
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
6565
|
const _io15 = input => "string" === typeof input.$ref;
|
|
6521
6566
|
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
6567
|
const _io17 = input => "null" === input.type;
|
|
@@ -6877,7 +6922,11 @@ const collection$o = {
|
|
|
6877
6922
|
expected: '"array"',
|
|
6878
6923
|
value: input.type
|
|
6879
6924
|
}) ].every(flag => flag);
|
|
6880
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
6925
|
+
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, {
|
|
6926
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
6927
|
+
expected: "(null | string | undefined)",
|
|
6928
|
+
value: input["x-autobe-prisma-schema"]
|
|
6929
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
6881
6930
|
path: _path + ".properties",
|
|
6882
6931
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
6883
6932
|
value: input.properties
|
|
@@ -7542,6 +7591,14 @@ const collection$o = {
|
|
|
7542
7591
|
description: "Object type info.",
|
|
7543
7592
|
type: "object",
|
|
7544
7593
|
properties: {
|
|
7594
|
+
"x-autobe-prisma-schema": {
|
|
7595
|
+
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.",
|
|
7596
|
+
oneOf: [ {
|
|
7597
|
+
type: "null"
|
|
7598
|
+
}, {
|
|
7599
|
+
type: "string"
|
|
7600
|
+
} ]
|
|
7601
|
+
},
|
|
7545
7602
|
properties: {
|
|
7546
7603
|
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
7604
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -7820,7 +7877,7 @@ const collection$o = {
|
|
|
7820
7877
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
7821
7878
|
const _io12 = input => "boolean" === input.type;
|
|
7822
7879
|
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;
|
|
7880
|
+
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
7881
|
const _io15 = input => "string" === typeof input.$ref;
|
|
7825
7882
|
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
7883
|
const _io17 = input => "null" === input.type;
|
|
@@ -8181,7 +8238,11 @@ const collection$o = {
|
|
|
8181
8238
|
expected: '"array"',
|
|
8182
8239
|
value: input.type
|
|
8183
8240
|
}) ].every(flag => flag);
|
|
8184
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
8241
|
+
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, {
|
|
8242
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
8243
|
+
expected: "(null | string | undefined)",
|
|
8244
|
+
value: input["x-autobe-prisma-schema"]
|
|
8245
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
8185
8246
|
path: _path + ".properties",
|
|
8186
8247
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
8187
8248
|
value: input.properties
|
|
@@ -9799,7 +9860,7 @@ function createReviewController(props) {
|
|
|
9799
9860
|
value: input.responseBody
|
|
9800
9861
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
9801
9862
|
path: _path + ".authorizationRole",
|
|
9802
|
-
expected: "string &
|
|
9863
|
+
expected: "string & CamelCasePattern",
|
|
9803
9864
|
value: input.authorizationRole
|
|
9804
9865
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
9805
9866
|
path: _path + ".authorizationRole",
|
|
@@ -9807,15 +9868,15 @@ function createReviewController(props) {
|
|
|
9807
9868
|
value: input.authorizationRole
|
|
9808
9869
|
})) || _report(_exceptionable, {
|
|
9809
9870
|
path: _path + ".authorizationRole",
|
|
9810
|
-
expected: "((string &
|
|
9871
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
9811
9872
|
value: input.authorizationRole
|
|
9812
9873
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
9813
9874
|
path: _path + ".name",
|
|
9814
|
-
expected: "string &
|
|
9875
|
+
expected: "string & CamelCasePattern",
|
|
9815
9876
|
value: input.name
|
|
9816
9877
|
})) || _report(_exceptionable, {
|
|
9817
9878
|
path: _path + ".name",
|
|
9818
|
-
expected: "(string &
|
|
9879
|
+
expected: "(string & CamelCasePattern)",
|
|
9819
9880
|
value: input.name
|
|
9820
9881
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
9821
9882
|
path: _path + ".prerequisites",
|
|
@@ -9848,11 +9909,11 @@ function createReviewController(props) {
|
|
|
9848
9909
|
}) ].every(flag => flag);
|
|
9849
9910
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
9850
9911
|
path: _path + ".name",
|
|
9851
|
-
expected: "string &
|
|
9912
|
+
expected: "string & CamelCasePattern",
|
|
9852
9913
|
value: input.name
|
|
9853
9914
|
})) || _report(_exceptionable, {
|
|
9854
9915
|
path: _path + ".name",
|
|
9855
|
-
expected: "(string &
|
|
9916
|
+
expected: "(string & CamelCasePattern)",
|
|
9856
9917
|
value: input.name
|
|
9857
9918
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
9858
9919
|
path: _path + ".description",
|
|
@@ -10495,7 +10556,7 @@ const collection$k = {
|
|
|
10495
10556
|
value: input.responseBody
|
|
10496
10557
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
10497
10558
|
path: _path + ".authorizationRole",
|
|
10498
|
-
expected: "string &
|
|
10559
|
+
expected: "string & CamelCasePattern",
|
|
10499
10560
|
value: input.authorizationRole
|
|
10500
10561
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
10501
10562
|
path: _path + ".authorizationRole",
|
|
@@ -10503,15 +10564,15 @@ const collection$k = {
|
|
|
10503
10564
|
value: input.authorizationRole
|
|
10504
10565
|
})) || _report(_exceptionable, {
|
|
10505
10566
|
path: _path + ".authorizationRole",
|
|
10506
|
-
expected: "((string &
|
|
10567
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
10507
10568
|
value: input.authorizationRole
|
|
10508
10569
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
10509
10570
|
path: _path + ".name",
|
|
10510
|
-
expected: "string &
|
|
10571
|
+
expected: "string & CamelCasePattern",
|
|
10511
10572
|
value: input.name
|
|
10512
10573
|
})) || _report(_exceptionable, {
|
|
10513
10574
|
path: _path + ".name",
|
|
10514
|
-
expected: "(string &
|
|
10575
|
+
expected: "(string & CamelCasePattern)",
|
|
10515
10576
|
value: input.name
|
|
10516
10577
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
10517
10578
|
path: _path + ".prerequisites",
|
|
@@ -10544,11 +10605,11 @@ const collection$k = {
|
|
|
10544
10605
|
}) ].every(flag => flag);
|
|
10545
10606
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
10546
10607
|
path: _path + ".name",
|
|
10547
|
-
expected: "string &
|
|
10608
|
+
expected: "string & CamelCasePattern",
|
|
10548
10609
|
value: input.name
|
|
10549
10610
|
})) || _report(_exceptionable, {
|
|
10550
10611
|
path: _path + ".name",
|
|
10551
|
-
expected: "(string &
|
|
10612
|
+
expected: "(string & CamelCasePattern)",
|
|
10552
10613
|
value: input.name
|
|
10553
10614
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
10554
10615
|
path: _path + ".description",
|
|
@@ -11203,7 +11264,7 @@ const collection$k = {
|
|
|
11203
11264
|
value: input.responseBody
|
|
11204
11265
|
}), null === input.authorizationRole || "string" === typeof input.authorizationRole && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.authorizationRole) || _report(_exceptionable, {
|
|
11205
11266
|
path: _path + ".authorizationRole",
|
|
11206
|
-
expected: "string &
|
|
11267
|
+
expected: "string & CamelCasePattern",
|
|
11207
11268
|
value: input.authorizationRole
|
|
11208
11269
|
})) && (1 <= input.authorizationRole.length || _report(_exceptionable, {
|
|
11209
11270
|
path: _path + ".authorizationRole",
|
|
@@ -11211,15 +11272,15 @@ const collection$k = {
|
|
|
11211
11272
|
value: input.authorizationRole
|
|
11212
11273
|
})) || _report(_exceptionable, {
|
|
11213
11274
|
path: _path + ".authorizationRole",
|
|
11214
|
-
expected: "((string &
|
|
11275
|
+
expected: "((string & CamelCasePattern & MinLength<1>) | null)",
|
|
11215
11276
|
value: input.authorizationRole
|
|
11216
11277
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11217
11278
|
path: _path + ".name",
|
|
11218
|
-
expected: "string &
|
|
11279
|
+
expected: "string & CamelCasePattern",
|
|
11219
11280
|
value: input.name
|
|
11220
11281
|
})) || _report(_exceptionable, {
|
|
11221
11282
|
path: _path + ".name",
|
|
11222
|
-
expected: "(string &
|
|
11283
|
+
expected: "(string & CamelCasePattern)",
|
|
11223
11284
|
value: input.name
|
|
11224
11285
|
}), (Array.isArray(input.prerequisites) || _report(_exceptionable, {
|
|
11225
11286
|
path: _path + ".prerequisites",
|
|
@@ -11252,11 +11313,11 @@ const collection$k = {
|
|
|
11252
11313
|
}) ].every(flag => flag);
|
|
11253
11314
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11254
11315
|
path: _path + ".name",
|
|
11255
|
-
expected: "string &
|
|
11316
|
+
expected: "string & CamelCasePattern",
|
|
11256
11317
|
value: input.name
|
|
11257
11318
|
})) || _report(_exceptionable, {
|
|
11258
11319
|
path: _path + ".name",
|
|
11259
|
-
expected: "(string &
|
|
11320
|
+
expected: "(string & CamelCasePattern)",
|
|
11260
11321
|
value: input.name
|
|
11261
11322
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
11262
11323
|
path: _path + ".description",
|
|
@@ -11474,7 +11535,7 @@ const collection$k = {
|
|
|
11474
11535
|
async function orchestrateInterfaceOperations(ctx, props) {
|
|
11475
11536
|
const matrix = divideArray({
|
|
11476
11537
|
array: props.endpoints,
|
|
11477
|
-
capacity: props.capacity ??
|
|
11538
|
+
capacity: props.capacity ?? 2
|
|
11478
11539
|
});
|
|
11479
11540
|
const progress = {
|
|
11480
11541
|
total: matrix.flat().length,
|
|
@@ -11653,19 +11714,19 @@ function createController$i(props) {
|
|
|
11653
11714
|
value: input.responseBody
|
|
11654
11715
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11655
11716
|
path: _path + ".name",
|
|
11656
|
-
expected: "string &
|
|
11717
|
+
expected: "string & CamelCasePattern",
|
|
11657
11718
|
value: input.name
|
|
11658
11719
|
})) || _report(_exceptionable, {
|
|
11659
11720
|
path: _path + ".name",
|
|
11660
|
-
expected: "(string &
|
|
11721
|
+
expected: "(string & CamelCasePattern)",
|
|
11661
11722
|
value: input.name
|
|
11662
11723
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
11663
11724
|
path: _path + ".authorizationRoles",
|
|
11664
|
-
expected: "Array<string &
|
|
11725
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
11665
11726
|
value: input.authorizationRoles
|
|
11666
11727
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
11667
11728
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
11668
|
-
expected: "string &
|
|
11729
|
+
expected: "string & CamelCasePattern",
|
|
11669
11730
|
value: elem
|
|
11670
11731
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
11671
11732
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -11673,11 +11734,11 @@ function createController$i(props) {
|
|
|
11673
11734
|
value: elem
|
|
11674
11735
|
})) || _report(_exceptionable, {
|
|
11675
11736
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
11676
|
-
expected: "(string &
|
|
11737
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
11677
11738
|
value: elem
|
|
11678
11739
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
11679
11740
|
path: _path + ".authorizationRoles",
|
|
11680
|
-
expected: "Array<string &
|
|
11741
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
11681
11742
|
value: input.authorizationRoles
|
|
11682
11743
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
11683
11744
|
path: _path + ".path",
|
|
@@ -11694,11 +11755,11 @@ function createController$i(props) {
|
|
|
11694
11755
|
}) ].every(flag => flag);
|
|
11695
11756
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
11696
11757
|
path: _path + ".name",
|
|
11697
|
-
expected: "string &
|
|
11758
|
+
expected: "string & CamelCasePattern",
|
|
11698
11759
|
value: input.name
|
|
11699
11760
|
})) || _report(_exceptionable, {
|
|
11700
11761
|
path: _path + ".name",
|
|
11701
|
-
expected: "(string &
|
|
11762
|
+
expected: "(string & CamelCasePattern)",
|
|
11702
11763
|
value: input.name
|
|
11703
11764
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
11704
11765
|
path: _path + ".description",
|
|
@@ -12244,19 +12305,19 @@ const collection$j = {
|
|
|
12244
12305
|
value: input.responseBody
|
|
12245
12306
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12246
12307
|
path: _path + ".name",
|
|
12247
|
-
expected: "string &
|
|
12308
|
+
expected: "string & CamelCasePattern",
|
|
12248
12309
|
value: input.name
|
|
12249
12310
|
})) || _report(_exceptionable, {
|
|
12250
12311
|
path: _path + ".name",
|
|
12251
|
-
expected: "(string &
|
|
12312
|
+
expected: "(string & CamelCasePattern)",
|
|
12252
12313
|
value: input.name
|
|
12253
12314
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
12254
12315
|
path: _path + ".authorizationRoles",
|
|
12255
|
-
expected: "Array<string &
|
|
12316
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12256
12317
|
value: input.authorizationRoles
|
|
12257
12318
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
12258
12319
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12259
|
-
expected: "string &
|
|
12320
|
+
expected: "string & CamelCasePattern",
|
|
12260
12321
|
value: elem
|
|
12261
12322
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
12262
12323
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -12264,11 +12325,11 @@ const collection$j = {
|
|
|
12264
12325
|
value: elem
|
|
12265
12326
|
})) || _report(_exceptionable, {
|
|
12266
12327
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12267
|
-
expected: "(string &
|
|
12328
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
12268
12329
|
value: elem
|
|
12269
12330
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
12270
12331
|
path: _path + ".authorizationRoles",
|
|
12271
|
-
expected: "Array<string &
|
|
12332
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12272
12333
|
value: input.authorizationRoles
|
|
12273
12334
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
12274
12335
|
path: _path + ".path",
|
|
@@ -12285,11 +12346,11 @@ const collection$j = {
|
|
|
12285
12346
|
}) ].every(flag => flag);
|
|
12286
12347
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12287
12348
|
path: _path + ".name",
|
|
12288
|
-
expected: "string &
|
|
12349
|
+
expected: "string & CamelCasePattern",
|
|
12289
12350
|
value: input.name
|
|
12290
12351
|
})) || _report(_exceptionable, {
|
|
12291
12352
|
path: _path + ".name",
|
|
12292
|
-
expected: "(string &
|
|
12353
|
+
expected: "(string & CamelCasePattern)",
|
|
12293
12354
|
value: input.name
|
|
12294
12355
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
12295
12356
|
path: _path + ".description",
|
|
@@ -12814,19 +12875,19 @@ const collection$j = {
|
|
|
12814
12875
|
value: input.responseBody
|
|
12815
12876
|
}), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12816
12877
|
path: _path + ".name",
|
|
12817
|
-
expected: "string &
|
|
12878
|
+
expected: "string & CamelCasePattern",
|
|
12818
12879
|
value: input.name
|
|
12819
12880
|
})) || _report(_exceptionable, {
|
|
12820
12881
|
path: _path + ".name",
|
|
12821
|
-
expected: "(string &
|
|
12882
|
+
expected: "(string & CamelCasePattern)",
|
|
12822
12883
|
value: input.name
|
|
12823
12884
|
}), (Array.isArray(input.authorizationRoles) || _report(_exceptionable, {
|
|
12824
12885
|
path: _path + ".authorizationRoles",
|
|
12825
|
-
expected: "Array<string &
|
|
12886
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12826
12887
|
value: input.authorizationRoles
|
|
12827
12888
|
})) && input.authorizationRoles.map((elem, _index6) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
|
|
12828
12889
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12829
|
-
expected: "string &
|
|
12890
|
+
expected: "string & CamelCasePattern",
|
|
12830
12891
|
value: elem
|
|
12831
12892
|
})) && (1 <= elem.length || _report(_exceptionable, {
|
|
12832
12893
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
@@ -12834,11 +12895,11 @@ const collection$j = {
|
|
|
12834
12895
|
value: elem
|
|
12835
12896
|
})) || _report(_exceptionable, {
|
|
12836
12897
|
path: _path + ".authorizationRoles[" + _index6 + "]",
|
|
12837
|
-
expected: "(string &
|
|
12898
|
+
expected: "(string & CamelCasePattern & MinLength<1>)",
|
|
12838
12899
|
value: elem
|
|
12839
12900
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
12840
12901
|
path: _path + ".authorizationRoles",
|
|
12841
|
-
expected: "Array<string &
|
|
12902
|
+
expected: "Array<string & CamelCasePattern & MinLength<1>>",
|
|
12842
12903
|
value: input.authorizationRoles
|
|
12843
12904
|
}), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
|
|
12844
12905
|
path: _path + ".path",
|
|
@@ -12855,11 +12916,11 @@ const collection$j = {
|
|
|
12855
12916
|
}) ].every(flag => flag);
|
|
12856
12917
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
12857
12918
|
path: _path + ".name",
|
|
12858
|
-
expected: "string &
|
|
12919
|
+
expected: "string & CamelCasePattern",
|
|
12859
12920
|
value: input.name
|
|
12860
12921
|
})) || _report(_exceptionable, {
|
|
12861
12922
|
path: _path + ".name",
|
|
12862
|
-
expected: "(string &
|
|
12923
|
+
expected: "(string & CamelCasePattern)",
|
|
12863
12924
|
value: input.name
|
|
12864
12925
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
12865
12926
|
path: _path + ".description",
|
|
@@ -13159,7 +13220,7 @@ const transformInterfacePrerequisitesHistories = (document, include) => {
|
|
|
13159
13220
|
} ];
|
|
13160
13221
|
};
|
|
13161
13222
|
|
|
13162
|
-
async function orchestrateInterfacePrerequisites(ctx, document, capacity =
|
|
13223
|
+
async function orchestrateInterfacePrerequisites(ctx, document, capacity = 2) {
|
|
13163
13224
|
const operations = document.operations.filter(op => op.authorizationType === null) ?? [];
|
|
13164
13225
|
const progress = {
|
|
13165
13226
|
total: operations.length,
|
|
@@ -13177,7 +13238,7 @@ async function orchestrateInterfacePrerequisites(ctx, document, capacity = 4) {
|
|
|
13177
13238
|
do {
|
|
13178
13239
|
const matrix = divideArray({
|
|
13179
13240
|
array: include,
|
|
13180
|
-
capacity: capacity ??
|
|
13241
|
+
capacity: capacity ?? 2
|
|
13181
13242
|
});
|
|
13182
13243
|
await executeCachedBatch(matrix.map(ops => async promptCacheKey => {
|
|
13183
13244
|
const row = await divideAndConquer$3(ctx, {
|
|
@@ -13858,7 +13919,7 @@ async function orchestrateInterfaceSchemas(ctx, props) {
|
|
|
13858
13919
|
const presets = JsonSchemaFactory.presets(typeNames);
|
|
13859
13920
|
const matrix = divideArray({
|
|
13860
13921
|
array: Array.from(typeNames),
|
|
13861
|
-
capacity: props.capacity ??
|
|
13922
|
+
capacity: props.capacity ?? 2
|
|
13862
13923
|
});
|
|
13863
13924
|
const progress = {
|
|
13864
13925
|
total: typeNames.size,
|
|
@@ -13986,7 +14047,7 @@ function createController$g(props) {
|
|
|
13986
14047
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
13987
14048
|
const _io12 = input => "boolean" === input.type;
|
|
13988
14049
|
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;
|
|
14050
|
+
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
14051
|
const _io15 = input => "string" === typeof input.$ref;
|
|
13991
14052
|
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
14053
|
const _io17 = input => "null" === input.type;
|
|
@@ -14347,7 +14408,11 @@ function createController$g(props) {
|
|
|
14347
14408
|
expected: '"array"',
|
|
14348
14409
|
value: input.type
|
|
14349
14410
|
}) ].every(flag => flag);
|
|
14350
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
14411
|
+
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, {
|
|
14412
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
14413
|
+
expected: "(null | string | undefined)",
|
|
14414
|
+
value: input["x-autobe-prisma-schema"]
|
|
14415
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14351
14416
|
path: _path + ".properties",
|
|
14352
14417
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
14353
14418
|
value: input.properties
|
|
@@ -15027,6 +15092,14 @@ const collection$h = {
|
|
|
15027
15092
|
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
15093
|
type: "object",
|
|
15029
15094
|
properties: {
|
|
15095
|
+
"x-autobe-prisma-schema": {
|
|
15096
|
+
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.",
|
|
15097
|
+
anyOf: [ {
|
|
15098
|
+
type: "null"
|
|
15099
|
+
}, {
|
|
15100
|
+
type: "string"
|
|
15101
|
+
} ]
|
|
15102
|
+
},
|
|
15030
15103
|
properties: {
|
|
15031
15104
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
15032
15105
|
},
|
|
@@ -15306,7 +15379,7 @@ const collection$h = {
|
|
|
15306
15379
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
15307
15380
|
const _io12 = input => "boolean" === input.type;
|
|
15308
15381
|
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;
|
|
15382
|
+
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
15383
|
const _io15 = input => "string" === typeof input.$ref;
|
|
15311
15384
|
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
15385
|
const _io17 = input => "null" === input.type;
|
|
@@ -15667,7 +15740,11 @@ const collection$h = {
|
|
|
15667
15740
|
expected: '"array"',
|
|
15668
15741
|
value: input.type
|
|
15669
15742
|
}) ].every(flag => flag);
|
|
15670
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
15743
|
+
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, {
|
|
15744
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
15745
|
+
expected: "(null | string | undefined)",
|
|
15746
|
+
value: input["x-autobe-prisma-schema"]
|
|
15747
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15671
15748
|
path: _path + ".properties",
|
|
15672
15749
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
15673
15750
|
value: input.properties
|
|
@@ -16332,6 +16409,14 @@ const collection$h = {
|
|
|
16332
16409
|
description: "Object type info.",
|
|
16333
16410
|
type: "object",
|
|
16334
16411
|
properties: {
|
|
16412
|
+
"x-autobe-prisma-schema": {
|
|
16413
|
+
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.",
|
|
16414
|
+
oneOf: [ {
|
|
16415
|
+
type: "null"
|
|
16416
|
+
}, {
|
|
16417
|
+
type: "string"
|
|
16418
|
+
} ]
|
|
16419
|
+
},
|
|
16335
16420
|
properties: {
|
|
16336
16421
|
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
16422
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -16610,7 +16695,7 @@ const collection$h = {
|
|
|
16610
16695
|
const _io11 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
16611
16696
|
const _io12 = input => "boolean" === input.type;
|
|
16612
16697
|
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;
|
|
16698
|
+
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
16699
|
const _io15 = input => "string" === typeof input.$ref;
|
|
16615
16700
|
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
16701
|
const _io17 = input => "null" === input.type;
|
|
@@ -16971,7 +17056,11 @@ const collection$h = {
|
|
|
16971
17056
|
expected: '"array"',
|
|
16972
17057
|
value: input.type
|
|
16973
17058
|
}) ].every(flag => flag);
|
|
16974
|
-
const _vo14 = (input, _path, _exceptionable = true) => [
|
|
17059
|
+
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, {
|
|
17060
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
17061
|
+
expected: "(null | string | undefined)",
|
|
17062
|
+
value: input["x-autobe-prisma-schema"]
|
|
17063
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
16975
17064
|
path: _path + ".properties",
|
|
16976
17065
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
16977
17066
|
value: input.properties
|
|
@@ -17269,7 +17358,7 @@ const transformInterfaceSchemasReviewHistories = (state, operations, schemaDescr
|
|
|
17269
17358
|
`
|
|
17270
17359
|
} ];
|
|
17271
17360
|
|
|
17272
|
-
async function orchestrateInterfaceSchemasReview(ctx, operations, schemas, capacity =
|
|
17361
|
+
async function orchestrateInterfaceSchemasReview(ctx, operations, schemas, capacity = 2) {
|
|
17273
17362
|
const a = Object.entries(schemas).map(([key, schema]) => ({
|
|
17274
17363
|
[key]: schema
|
|
17275
17364
|
}));
|
|
@@ -17366,7 +17455,7 @@ function createController$f(props) {
|
|
|
17366
17455
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
17367
17456
|
const _io13 = input => "boolean" === input.type;
|
|
17368
17457
|
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;
|
|
17458
|
+
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
17459
|
const _io16 = input => "string" === typeof input.$ref;
|
|
17371
17460
|
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
17461
|
const _io18 = input => "null" === input.type;
|
|
@@ -17744,7 +17833,11 @@ function createController$f(props) {
|
|
|
17744
17833
|
expected: '"array"',
|
|
17745
17834
|
value: input.type
|
|
17746
17835
|
}) ].every(flag => flag);
|
|
17747
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
17836
|
+
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, {
|
|
17837
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
17838
|
+
expected: "(null | string | undefined)",
|
|
17839
|
+
value: input["x-autobe-prisma-schema"]
|
|
17840
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
17748
17841
|
path: _path + ".properties",
|
|
17749
17842
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
17750
17843
|
value: input.properties
|
|
@@ -18441,6 +18534,14 @@ const collection$g = {
|
|
|
18441
18534
|
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
18535
|
type: "object",
|
|
18443
18536
|
properties: {
|
|
18537
|
+
"x-autobe-prisma-schema": {
|
|
18538
|
+
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.",
|
|
18539
|
+
anyOf: [ {
|
|
18540
|
+
type: "null"
|
|
18541
|
+
}, {
|
|
18542
|
+
type: "string"
|
|
18543
|
+
} ]
|
|
18544
|
+
},
|
|
18444
18545
|
properties: {
|
|
18445
18546
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
18446
18547
|
},
|
|
@@ -18721,7 +18822,7 @@ const collection$g = {
|
|
|
18721
18822
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
18722
18823
|
const _io13 = input => "boolean" === input.type;
|
|
18723
18824
|
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;
|
|
18825
|
+
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
18826
|
const _io16 = input => "string" === typeof input.$ref;
|
|
18726
18827
|
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
18828
|
const _io18 = input => "null" === input.type;
|
|
@@ -19099,7 +19200,11 @@ const collection$g = {
|
|
|
19099
19200
|
expected: '"array"',
|
|
19100
19201
|
value: input.type
|
|
19101
19202
|
}) ].every(flag => flag);
|
|
19102
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
19203
|
+
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, {
|
|
19204
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
19205
|
+
expected: "(null | string | undefined)",
|
|
19206
|
+
value: input["x-autobe-prisma-schema"]
|
|
19207
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
19103
19208
|
path: _path + ".properties",
|
|
19104
19209
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
19105
19210
|
value: input.properties
|
|
@@ -19781,6 +19886,14 @@ const collection$g = {
|
|
|
19781
19886
|
description: "Object type info.",
|
|
19782
19887
|
type: "object",
|
|
19783
19888
|
properties: {
|
|
19889
|
+
"x-autobe-prisma-schema": {
|
|
19890
|
+
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.",
|
|
19891
|
+
oneOf: [ {
|
|
19892
|
+
type: "null"
|
|
19893
|
+
}, {
|
|
19894
|
+
type: "string"
|
|
19895
|
+
} ]
|
|
19896
|
+
},
|
|
19784
19897
|
properties: {
|
|
19785
19898
|
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
19899
|
$ref: "#/$defs/RecordstringAutoBeOpenApi.IJsonSchemaDescriptive"
|
|
@@ -20060,7 +20173,7 @@ const collection$g = {
|
|
|
20060
20173
|
const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"];
|
|
20061
20174
|
const _io13 = input => "boolean" === input.type;
|
|
20062
20175
|
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;
|
|
20176
|
+
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
20177
|
const _io16 = input => "string" === typeof input.$ref;
|
|
20065
20178
|
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
20179
|
const _io18 = input => "null" === input.type;
|
|
@@ -20438,7 +20551,11 @@ const collection$g = {
|
|
|
20438
20551
|
expected: '"array"',
|
|
20439
20552
|
value: input.type
|
|
20440
20553
|
}) ].every(flag => flag);
|
|
20441
|
-
const _vo15 = (input, _path, _exceptionable = true) => [
|
|
20554
|
+
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, {
|
|
20555
|
+
path: _path + '["x-autobe-prisma-schema"]',
|
|
20556
|
+
expected: "(null | string | undefined)",
|
|
20557
|
+
value: input["x-autobe-prisma-schema"]
|
|
20558
|
+
}), ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
20442
20559
|
path: _path + ".properties",
|
|
20443
20560
|
expected: "Record<string, AutoBeOpenApi.IJsonSchemaDescriptive>",
|
|
20444
20561
|
value: input.properties
|
|
@@ -21026,7 +21143,7 @@ const claude$8 = {
|
|
|
21026
21143
|
value: input.rationale
|
|
21027
21144
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
21028
21145
|
path: _path + ".tables",
|
|
21029
|
-
expected: "(Array<string &
|
|
21146
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21030
21147
|
value: input.tables
|
|
21031
21148
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
21032
21149
|
path: _path + ".tables",
|
|
@@ -21034,15 +21151,15 @@ const claude$8 = {
|
|
|
21034
21151
|
value: input.tables
|
|
21035
21152
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
21036
21153
|
path: _path + ".tables[" + _index4 + "]",
|
|
21037
|
-
expected: "string &
|
|
21154
|
+
expected: "string & SnakeCasePattern",
|
|
21038
21155
|
value: elem
|
|
21039
21156
|
})) || _report(_exceptionable, {
|
|
21040
21157
|
path: _path + ".tables[" + _index4 + "]",
|
|
21041
|
-
expected: "(string &
|
|
21158
|
+
expected: "(string & SnakeCasePattern)",
|
|
21042
21159
|
value: elem
|
|
21043
21160
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
21044
21161
|
path: _path + ".tables",
|
|
21045
|
-
expected: "(Array<string &
|
|
21162
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21046
21163
|
value: input.tables
|
|
21047
21164
|
}) ].every(flag => flag);
|
|
21048
21165
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
@@ -21217,7 +21334,7 @@ const collection$f = {
|
|
|
21217
21334
|
value: input.rationale
|
|
21218
21335
|
}), (Array.isArray(input.tables) || _report(_exceptionable, {
|
|
21219
21336
|
path: _path + ".tables",
|
|
21220
|
-
expected: "(Array<string &
|
|
21337
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21221
21338
|
value: input.tables
|
|
21222
21339
|
})) && ((1 <= input.tables.length || _report(_exceptionable, {
|
|
21223
21340
|
path: _path + ".tables",
|
|
@@ -21225,15 +21342,15 @@ const collection$f = {
|
|
|
21225
21342
|
value: input.tables
|
|
21226
21343
|
})) && input.tables.map((elem, _index4) => "string" === typeof elem && (RegExp("^[a-z][a-z0-9_]*$").test(elem) || _report(_exceptionable, {
|
|
21227
21344
|
path: _path + ".tables[" + _index4 + "]",
|
|
21228
|
-
expected: "string &
|
|
21345
|
+
expected: "string & SnakeCasePattern",
|
|
21229
21346
|
value: elem
|
|
21230
21347
|
})) || _report(_exceptionable, {
|
|
21231
21348
|
path: _path + ".tables[" + _index4 + "]",
|
|
21232
|
-
expected: "(string &
|
|
21349
|
+
expected: "(string & SnakeCasePattern)",
|
|
21233
21350
|
value: elem
|
|
21234
21351
|
})).every(flag => flag)) || _report(_exceptionable, {
|
|
21235
21352
|
path: _path + ".tables",
|
|
21236
|
-
expected: "(Array<string &
|
|
21353
|
+
expected: "(Array<string & SnakeCasePattern> & MinItems<1>)",
|
|
21237
21354
|
value: input.tables
|
|
21238
21355
|
}) ].every(flag => flag);
|
|
21239
21356
|
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
@@ -21719,11 +21836,11 @@ const claude$7 = {
|
|
|
21719
21836
|
}) ].every(flag => flag);
|
|
21720
21837
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21721
21838
|
path: _path + ".name",
|
|
21722
|
-
expected: "string &
|
|
21839
|
+
expected: "string & SnakeCasePattern",
|
|
21723
21840
|
value: input.name
|
|
21724
21841
|
})) || _report(_exceptionable, {
|
|
21725
21842
|
path: _path + ".name",
|
|
21726
|
-
expected: "(string &
|
|
21843
|
+
expected: "(string & SnakeCasePattern)",
|
|
21727
21844
|
value: input.name
|
|
21728
21845
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
21729
21846
|
path: _path + ".description",
|
|
@@ -21828,11 +21945,11 @@ const claude$7 = {
|
|
|
21828
21945
|
}) ].every(flag => flag);
|
|
21829
21946
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21830
21947
|
path: _path + ".name",
|
|
21831
|
-
expected: "string &
|
|
21948
|
+
expected: "string & SnakeCasePattern",
|
|
21832
21949
|
value: input.name
|
|
21833
21950
|
})) || _report(_exceptionable, {
|
|
21834
21951
|
path: _path + ".name",
|
|
21835
|
-
expected: "(string &
|
|
21952
|
+
expected: "(string & SnakeCasePattern)",
|
|
21836
21953
|
value: input.name
|
|
21837
21954
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
21838
21955
|
path: _path + ".type",
|
|
@@ -21845,11 +21962,11 @@ const claude$7 = {
|
|
|
21845
21962
|
}) ].every(flag => flag);
|
|
21846
21963
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21847
21964
|
path: _path + ".name",
|
|
21848
|
-
expected: "string &
|
|
21965
|
+
expected: "string & SnakeCasePattern",
|
|
21849
21966
|
value: input.name
|
|
21850
21967
|
})) || _report(_exceptionable, {
|
|
21851
21968
|
path: _path + ".name",
|
|
21852
|
-
expected: "(string &
|
|
21969
|
+
expected: "(string & SnakeCasePattern)",
|
|
21853
21970
|
value: input.name
|
|
21854
21971
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
21855
21972
|
path: _path + ".type",
|
|
@@ -21878,11 +21995,11 @@ const claude$7 = {
|
|
|
21878
21995
|
}) ].every(flag => flag);
|
|
21879
21996
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
21880
21997
|
path: _path + ".name",
|
|
21881
|
-
expected: "string &
|
|
21998
|
+
expected: "string & CamelCasePattern",
|
|
21882
21999
|
value: input.name
|
|
21883
22000
|
})) || _report(_exceptionable, {
|
|
21884
22001
|
path: _path + ".name",
|
|
21885
|
-
expected: "(string &
|
|
22002
|
+
expected: "(string & CamelCasePattern)",
|
|
21886
22003
|
value: input.name
|
|
21887
22004
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
21888
22005
|
path: _path + ".targetModel",
|
|
@@ -21891,11 +22008,11 @@ const claude$7 = {
|
|
|
21891
22008
|
}) ].every(flag => flag);
|
|
21892
22009
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
21893
22010
|
path: _path + ".name",
|
|
21894
|
-
expected: "string &
|
|
22011
|
+
expected: "string & SnakeCasePattern",
|
|
21895
22012
|
value: input.name
|
|
21896
22013
|
})) || _report(_exceptionable, {
|
|
21897
22014
|
path: _path + ".name",
|
|
21898
|
-
expected: "(string &
|
|
22015
|
+
expected: "(string & SnakeCasePattern)",
|
|
21899
22016
|
value: input.name
|
|
21900
22017
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
21901
22018
|
path: _path + ".type",
|
|
@@ -22257,11 +22374,11 @@ const collection$e = {
|
|
|
22257
22374
|
}) ].every(flag => flag);
|
|
22258
22375
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22259
22376
|
path: _path + ".name",
|
|
22260
|
-
expected: "string &
|
|
22377
|
+
expected: "string & SnakeCasePattern",
|
|
22261
22378
|
value: input.name
|
|
22262
22379
|
})) || _report(_exceptionable, {
|
|
22263
22380
|
path: _path + ".name",
|
|
22264
|
-
expected: "(string &
|
|
22381
|
+
expected: "(string & SnakeCasePattern)",
|
|
22265
22382
|
value: input.name
|
|
22266
22383
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
22267
22384
|
path: _path + ".description",
|
|
@@ -22366,11 +22483,11 @@ const collection$e = {
|
|
|
22366
22483
|
}) ].every(flag => flag);
|
|
22367
22484
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22368
22485
|
path: _path + ".name",
|
|
22369
|
-
expected: "string &
|
|
22486
|
+
expected: "string & SnakeCasePattern",
|
|
22370
22487
|
value: input.name
|
|
22371
22488
|
})) || _report(_exceptionable, {
|
|
22372
22489
|
path: _path + ".name",
|
|
22373
|
-
expected: "(string &
|
|
22490
|
+
expected: "(string & SnakeCasePattern)",
|
|
22374
22491
|
value: input.name
|
|
22375
22492
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
22376
22493
|
path: _path + ".type",
|
|
@@ -22383,11 +22500,11 @@ const collection$e = {
|
|
|
22383
22500
|
}) ].every(flag => flag);
|
|
22384
22501
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22385
22502
|
path: _path + ".name",
|
|
22386
|
-
expected: "string &
|
|
22503
|
+
expected: "string & SnakeCasePattern",
|
|
22387
22504
|
value: input.name
|
|
22388
22505
|
})) || _report(_exceptionable, {
|
|
22389
22506
|
path: _path + ".name",
|
|
22390
|
-
expected: "(string &
|
|
22507
|
+
expected: "(string & SnakeCasePattern)",
|
|
22391
22508
|
value: input.name
|
|
22392
22509
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
22393
22510
|
path: _path + ".type",
|
|
@@ -22416,11 +22533,11 @@ const collection$e = {
|
|
|
22416
22533
|
}) ].every(flag => flag);
|
|
22417
22534
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
22418
22535
|
path: _path + ".name",
|
|
22419
|
-
expected: "string &
|
|
22536
|
+
expected: "string & CamelCasePattern",
|
|
22420
22537
|
value: input.name
|
|
22421
22538
|
})) || _report(_exceptionable, {
|
|
22422
22539
|
path: _path + ".name",
|
|
22423
|
-
expected: "(string &
|
|
22540
|
+
expected: "(string & CamelCasePattern)",
|
|
22424
22541
|
value: input.name
|
|
22425
22542
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
22426
22543
|
path: _path + ".targetModel",
|
|
@@ -22429,11 +22546,11 @@ const collection$e = {
|
|
|
22429
22546
|
}) ].every(flag => flag);
|
|
22430
22547
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22431
22548
|
path: _path + ".name",
|
|
22432
|
-
expected: "string &
|
|
22549
|
+
expected: "string & SnakeCasePattern",
|
|
22433
22550
|
value: input.name
|
|
22434
22551
|
})) || _report(_exceptionable, {
|
|
22435
22552
|
path: _path + ".name",
|
|
22436
|
-
expected: "(string &
|
|
22553
|
+
expected: "(string & SnakeCasePattern)",
|
|
22437
22554
|
value: input.name
|
|
22438
22555
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
22439
22556
|
path: _path + ".type",
|
|
@@ -22959,11 +23076,11 @@ const claude$6 = {
|
|
|
22959
23076
|
}) ].every(flag => flag);
|
|
22960
23077
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
22961
23078
|
path: _path + ".name",
|
|
22962
|
-
expected: "string &
|
|
23079
|
+
expected: "string & SnakeCasePattern",
|
|
22963
23080
|
value: input.name
|
|
22964
23081
|
})) || _report(_exceptionable, {
|
|
22965
23082
|
path: _path + ".name",
|
|
22966
|
-
expected: "(string &
|
|
23083
|
+
expected: "(string & SnakeCasePattern)",
|
|
22967
23084
|
value: input.name
|
|
22968
23085
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
22969
23086
|
path: _path + ".description",
|
|
@@ -23068,11 +23185,11 @@ const claude$6 = {
|
|
|
23068
23185
|
}) ].every(flag => flag);
|
|
23069
23186
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23070
23187
|
path: _path + ".name",
|
|
23071
|
-
expected: "string &
|
|
23188
|
+
expected: "string & SnakeCasePattern",
|
|
23072
23189
|
value: input.name
|
|
23073
23190
|
})) || _report(_exceptionable, {
|
|
23074
23191
|
path: _path + ".name",
|
|
23075
|
-
expected: "(string &
|
|
23192
|
+
expected: "(string & SnakeCasePattern)",
|
|
23076
23193
|
value: input.name
|
|
23077
23194
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23078
23195
|
path: _path + ".type",
|
|
@@ -23085,11 +23202,11 @@ const claude$6 = {
|
|
|
23085
23202
|
}) ].every(flag => flag);
|
|
23086
23203
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23087
23204
|
path: _path + ".name",
|
|
23088
|
-
expected: "string &
|
|
23205
|
+
expected: "string & SnakeCasePattern",
|
|
23089
23206
|
value: input.name
|
|
23090
23207
|
})) || _report(_exceptionable, {
|
|
23091
23208
|
path: _path + ".name",
|
|
23092
|
-
expected: "(string &
|
|
23209
|
+
expected: "(string & SnakeCasePattern)",
|
|
23093
23210
|
value: input.name
|
|
23094
23211
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23095
23212
|
path: _path + ".type",
|
|
@@ -23118,11 +23235,11 @@ const claude$6 = {
|
|
|
23118
23235
|
}) ].every(flag => flag);
|
|
23119
23236
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
23120
23237
|
path: _path + ".name",
|
|
23121
|
-
expected: "string &
|
|
23238
|
+
expected: "string & CamelCasePattern",
|
|
23122
23239
|
value: input.name
|
|
23123
23240
|
})) || _report(_exceptionable, {
|
|
23124
23241
|
path: _path + ".name",
|
|
23125
|
-
expected: "(string &
|
|
23242
|
+
expected: "(string & CamelCasePattern)",
|
|
23126
23243
|
value: input.name
|
|
23127
23244
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
23128
23245
|
path: _path + ".targetModel",
|
|
@@ -23131,11 +23248,11 @@ const claude$6 = {
|
|
|
23131
23248
|
}) ].every(flag => flag);
|
|
23132
23249
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23133
23250
|
path: _path + ".name",
|
|
23134
|
-
expected: "string &
|
|
23251
|
+
expected: "string & SnakeCasePattern",
|
|
23135
23252
|
value: input.name
|
|
23136
23253
|
})) || _report(_exceptionable, {
|
|
23137
23254
|
path: _path + ".name",
|
|
23138
|
-
expected: "(string &
|
|
23255
|
+
expected: "(string & SnakeCasePattern)",
|
|
23139
23256
|
value: input.name
|
|
23140
23257
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
23141
23258
|
path: _path + ".type",
|
|
@@ -23505,11 +23622,11 @@ const collection$d = {
|
|
|
23505
23622
|
}) ].every(flag => flag);
|
|
23506
23623
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23507
23624
|
path: _path + ".name",
|
|
23508
|
-
expected: "string &
|
|
23625
|
+
expected: "string & SnakeCasePattern",
|
|
23509
23626
|
value: input.name
|
|
23510
23627
|
})) || _report(_exceptionable, {
|
|
23511
23628
|
path: _path + ".name",
|
|
23512
|
-
expected: "(string &
|
|
23629
|
+
expected: "(string & SnakeCasePattern)",
|
|
23513
23630
|
value: input.name
|
|
23514
23631
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
23515
23632
|
path: _path + ".description",
|
|
@@ -23614,11 +23731,11 @@ const collection$d = {
|
|
|
23614
23731
|
}) ].every(flag => flag);
|
|
23615
23732
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23616
23733
|
path: _path + ".name",
|
|
23617
|
-
expected: "string &
|
|
23734
|
+
expected: "string & SnakeCasePattern",
|
|
23618
23735
|
value: input.name
|
|
23619
23736
|
})) || _report(_exceptionable, {
|
|
23620
23737
|
path: _path + ".name",
|
|
23621
|
-
expected: "(string &
|
|
23738
|
+
expected: "(string & SnakeCasePattern)",
|
|
23622
23739
|
value: input.name
|
|
23623
23740
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23624
23741
|
path: _path + ".type",
|
|
@@ -23631,11 +23748,11 @@ const collection$d = {
|
|
|
23631
23748
|
}) ].every(flag => flag);
|
|
23632
23749
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23633
23750
|
path: _path + ".name",
|
|
23634
|
-
expected: "string &
|
|
23751
|
+
expected: "string & SnakeCasePattern",
|
|
23635
23752
|
value: input.name
|
|
23636
23753
|
})) || _report(_exceptionable, {
|
|
23637
23754
|
path: _path + ".name",
|
|
23638
|
-
expected: "(string &
|
|
23755
|
+
expected: "(string & SnakeCasePattern)",
|
|
23639
23756
|
value: input.name
|
|
23640
23757
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
23641
23758
|
path: _path + ".type",
|
|
@@ -23664,11 +23781,11 @@ const collection$d = {
|
|
|
23664
23781
|
}) ].every(flag => flag);
|
|
23665
23782
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
23666
23783
|
path: _path + ".name",
|
|
23667
|
-
expected: "string &
|
|
23784
|
+
expected: "string & CamelCasePattern",
|
|
23668
23785
|
value: input.name
|
|
23669
23786
|
})) || _report(_exceptionable, {
|
|
23670
23787
|
path: _path + ".name",
|
|
23671
|
-
expected: "(string &
|
|
23788
|
+
expected: "(string & CamelCasePattern)",
|
|
23672
23789
|
value: input.name
|
|
23673
23790
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
23674
23791
|
path: _path + ".targetModel",
|
|
@@ -23677,11 +23794,11 @@ const collection$d = {
|
|
|
23677
23794
|
}) ].every(flag => flag);
|
|
23678
23795
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23679
23796
|
path: _path + ".name",
|
|
23680
|
-
expected: "string &
|
|
23797
|
+
expected: "string & SnakeCasePattern",
|
|
23681
23798
|
value: input.name
|
|
23682
23799
|
})) || _report(_exceptionable, {
|
|
23683
23800
|
path: _path + ".name",
|
|
23684
|
-
expected: "(string &
|
|
23801
|
+
expected: "(string & SnakeCasePattern)",
|
|
23685
23802
|
value: input.name
|
|
23686
23803
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
23687
23804
|
path: _path + ".type",
|
|
@@ -23955,11 +24072,11 @@ function createController$b(ctx, props) {
|
|
|
23955
24072
|
}) ].every(flag => flag);
|
|
23956
24073
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
23957
24074
|
path: _path + ".name",
|
|
23958
|
-
expected: "string &
|
|
24075
|
+
expected: "string & SnakeCasePattern",
|
|
23959
24076
|
value: input.name
|
|
23960
24077
|
})) || _report(_exceptionable, {
|
|
23961
24078
|
path: _path + ".name",
|
|
23962
|
-
expected: "(string &
|
|
24079
|
+
expected: "(string & SnakeCasePattern)",
|
|
23963
24080
|
value: input.name
|
|
23964
24081
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
23965
24082
|
path: _path + ".description",
|
|
@@ -24064,11 +24181,11 @@ function createController$b(ctx, props) {
|
|
|
24064
24181
|
}) ].every(flag => flag);
|
|
24065
24182
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24066
24183
|
path: _path + ".name",
|
|
24067
|
-
expected: "string &
|
|
24184
|
+
expected: "string & SnakeCasePattern",
|
|
24068
24185
|
value: input.name
|
|
24069
24186
|
})) || _report(_exceptionable, {
|
|
24070
24187
|
path: _path + ".name",
|
|
24071
|
-
expected: "(string &
|
|
24188
|
+
expected: "(string & SnakeCasePattern)",
|
|
24072
24189
|
value: input.name
|
|
24073
24190
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24074
24191
|
path: _path + ".type",
|
|
@@ -24081,11 +24198,11 @@ function createController$b(ctx, props) {
|
|
|
24081
24198
|
}) ].every(flag => flag);
|
|
24082
24199
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24083
24200
|
path: _path + ".name",
|
|
24084
|
-
expected: "string &
|
|
24201
|
+
expected: "string & SnakeCasePattern",
|
|
24085
24202
|
value: input.name
|
|
24086
24203
|
})) || _report(_exceptionable, {
|
|
24087
24204
|
path: _path + ".name",
|
|
24088
|
-
expected: "(string &
|
|
24205
|
+
expected: "(string & SnakeCasePattern)",
|
|
24089
24206
|
value: input.name
|
|
24090
24207
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24091
24208
|
path: _path + ".type",
|
|
@@ -24114,11 +24231,11 @@ function createController$b(ctx, props) {
|
|
|
24114
24231
|
}) ].every(flag => flag);
|
|
24115
24232
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
24116
24233
|
path: _path + ".name",
|
|
24117
|
-
expected: "string &
|
|
24234
|
+
expected: "string & CamelCasePattern",
|
|
24118
24235
|
value: input.name
|
|
24119
24236
|
})) || _report(_exceptionable, {
|
|
24120
24237
|
path: _path + ".name",
|
|
24121
|
-
expected: "(string &
|
|
24238
|
+
expected: "(string & CamelCasePattern)",
|
|
24122
24239
|
value: input.name
|
|
24123
24240
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
24124
24241
|
path: _path + ".targetModel",
|
|
@@ -24127,11 +24244,11 @@ function createController$b(ctx, props) {
|
|
|
24127
24244
|
}) ].every(flag => flag);
|
|
24128
24245
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24129
24246
|
path: _path + ".name",
|
|
24130
|
-
expected: "string &
|
|
24247
|
+
expected: "string & SnakeCasePattern",
|
|
24131
24248
|
value: input.name
|
|
24132
24249
|
})) || _report(_exceptionable, {
|
|
24133
24250
|
path: _path + ".name",
|
|
24134
|
-
expected: "(string &
|
|
24251
|
+
expected: "(string & SnakeCasePattern)",
|
|
24135
24252
|
value: input.name
|
|
24136
24253
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
24137
24254
|
path: _path + ".type",
|
|
@@ -24551,11 +24668,11 @@ const collection$c = {
|
|
|
24551
24668
|
}) ].every(flag => flag);
|
|
24552
24669
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24553
24670
|
path: _path + ".name",
|
|
24554
|
-
expected: "string &
|
|
24671
|
+
expected: "string & SnakeCasePattern",
|
|
24555
24672
|
value: input.name
|
|
24556
24673
|
})) || _report(_exceptionable, {
|
|
24557
24674
|
path: _path + ".name",
|
|
24558
|
-
expected: "(string &
|
|
24675
|
+
expected: "(string & SnakeCasePattern)",
|
|
24559
24676
|
value: input.name
|
|
24560
24677
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
24561
24678
|
path: _path + ".description",
|
|
@@ -24660,11 +24777,11 @@ const collection$c = {
|
|
|
24660
24777
|
}) ].every(flag => flag);
|
|
24661
24778
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24662
24779
|
path: _path + ".name",
|
|
24663
|
-
expected: "string &
|
|
24780
|
+
expected: "string & SnakeCasePattern",
|
|
24664
24781
|
value: input.name
|
|
24665
24782
|
})) || _report(_exceptionable, {
|
|
24666
24783
|
path: _path + ".name",
|
|
24667
|
-
expected: "(string &
|
|
24784
|
+
expected: "(string & SnakeCasePattern)",
|
|
24668
24785
|
value: input.name
|
|
24669
24786
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24670
24787
|
path: _path + ".type",
|
|
@@ -24677,11 +24794,11 @@ const collection$c = {
|
|
|
24677
24794
|
}) ].every(flag => flag);
|
|
24678
24795
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24679
24796
|
path: _path + ".name",
|
|
24680
|
-
expected: "string &
|
|
24797
|
+
expected: "string & SnakeCasePattern",
|
|
24681
24798
|
value: input.name
|
|
24682
24799
|
})) || _report(_exceptionable, {
|
|
24683
24800
|
path: _path + ".name",
|
|
24684
|
-
expected: "(string &
|
|
24801
|
+
expected: "(string & SnakeCasePattern)",
|
|
24685
24802
|
value: input.name
|
|
24686
24803
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
24687
24804
|
path: _path + ".type",
|
|
@@ -24710,11 +24827,11 @@ const collection$c = {
|
|
|
24710
24827
|
}) ].every(flag => flag);
|
|
24711
24828
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
24712
24829
|
path: _path + ".name",
|
|
24713
|
-
expected: "string &
|
|
24830
|
+
expected: "string & CamelCasePattern",
|
|
24714
24831
|
value: input.name
|
|
24715
24832
|
})) || _report(_exceptionable, {
|
|
24716
24833
|
path: _path + ".name",
|
|
24717
|
-
expected: "(string &
|
|
24834
|
+
expected: "(string & CamelCasePattern)",
|
|
24718
24835
|
value: input.name
|
|
24719
24836
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
24720
24837
|
path: _path + ".targetModel",
|
|
@@ -24723,11 +24840,11 @@ const collection$c = {
|
|
|
24723
24840
|
}) ].every(flag => flag);
|
|
24724
24841
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
24725
24842
|
path: _path + ".name",
|
|
24726
|
-
expected: "string &
|
|
24843
|
+
expected: "string & SnakeCasePattern",
|
|
24727
24844
|
value: input.name
|
|
24728
24845
|
})) || _report(_exceptionable, {
|
|
24729
24846
|
path: _path + ".name",
|
|
24730
|
-
expected: "(string &
|
|
24847
|
+
expected: "(string & SnakeCasePattern)",
|
|
24731
24848
|
value: input.name
|
|
24732
24849
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
24733
24850
|
path: _path + ".type",
|
|
@@ -25128,11 +25245,11 @@ const collection$c = {
|
|
|
25128
25245
|
}) ].every(flag => flag);
|
|
25129
25246
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25130
25247
|
path: _path + ".name",
|
|
25131
|
-
expected: "string &
|
|
25248
|
+
expected: "string & SnakeCasePattern",
|
|
25132
25249
|
value: input.name
|
|
25133
25250
|
})) || _report(_exceptionable, {
|
|
25134
25251
|
path: _path + ".name",
|
|
25135
|
-
expected: "(string &
|
|
25252
|
+
expected: "(string & SnakeCasePattern)",
|
|
25136
25253
|
value: input.name
|
|
25137
25254
|
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
25138
25255
|
path: _path + ".description",
|
|
@@ -25237,11 +25354,11 @@ const collection$c = {
|
|
|
25237
25354
|
}) ].every(flag => flag);
|
|
25238
25355
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25239
25356
|
path: _path + ".name",
|
|
25240
|
-
expected: "string &
|
|
25357
|
+
expected: "string & SnakeCasePattern",
|
|
25241
25358
|
value: input.name
|
|
25242
25359
|
})) || _report(_exceptionable, {
|
|
25243
25360
|
path: _path + ".name",
|
|
25244
|
-
expected: "(string &
|
|
25361
|
+
expected: "(string & SnakeCasePattern)",
|
|
25245
25362
|
value: input.name
|
|
25246
25363
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
25247
25364
|
path: _path + ".type",
|
|
@@ -25254,11 +25371,11 @@ const collection$c = {
|
|
|
25254
25371
|
}) ].every(flag => flag);
|
|
25255
25372
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25256
25373
|
path: _path + ".name",
|
|
25257
|
-
expected: "string &
|
|
25374
|
+
expected: "string & SnakeCasePattern",
|
|
25258
25375
|
value: input.name
|
|
25259
25376
|
})) || _report(_exceptionable, {
|
|
25260
25377
|
path: _path + ".name",
|
|
25261
|
-
expected: "(string &
|
|
25378
|
+
expected: "(string & SnakeCasePattern)",
|
|
25262
25379
|
value: input.name
|
|
25263
25380
|
}), "uuid" === input.type || _report(_exceptionable, {
|
|
25264
25381
|
path: _path + ".type",
|
|
@@ -25287,11 +25404,11 @@ const collection$c = {
|
|
|
25287
25404
|
}) ].every(flag => flag);
|
|
25288
25405
|
const _vo4 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
25289
25406
|
path: _path + ".name",
|
|
25290
|
-
expected: "string &
|
|
25407
|
+
expected: "string & CamelCasePattern",
|
|
25291
25408
|
value: input.name
|
|
25292
25409
|
})) || _report(_exceptionable, {
|
|
25293
25410
|
path: _path + ".name",
|
|
25294
|
-
expected: "(string &
|
|
25411
|
+
expected: "(string & CamelCasePattern)",
|
|
25295
25412
|
value: input.name
|
|
25296
25413
|
}), "string" === typeof input.targetModel || _report(_exceptionable, {
|
|
25297
25414
|
path: _path + ".targetModel",
|
|
@@ -25300,11 +25417,11 @@ const collection$c = {
|
|
|
25300
25417
|
}) ].every(flag => flag);
|
|
25301
25418
|
const _vo5 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-z0-9_]*$").test(input.name) || _report(_exceptionable, {
|
|
25302
25419
|
path: _path + ".name",
|
|
25303
|
-
expected: "string &
|
|
25420
|
+
expected: "string & SnakeCasePattern",
|
|
25304
25421
|
value: input.name
|
|
25305
25422
|
})) || _report(_exceptionable, {
|
|
25306
25423
|
path: _path + ".name",
|
|
25307
|
-
expected: "(string &
|
|
25424
|
+
expected: "(string & SnakeCasePattern)",
|
|
25308
25425
|
value: input.name
|
|
25309
25426
|
}), "string" === input.type || "boolean" === input.type || "uuid" === input.type || "uri" === input.type || "int" === input.type || "double" === input.type || "datetime" === input.type || _report(_exceptionable, {
|
|
25310
25427
|
path: _path + ".type",
|
|
@@ -26436,11 +26553,11 @@ const claude$5 = {
|
|
|
26436
26553
|
}) ].every(flag => flag);
|
|
26437
26554
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26438
26555
|
path: _path + ".name",
|
|
26439
|
-
expected: "string &
|
|
26556
|
+
expected: "string & CamelCasePattern",
|
|
26440
26557
|
value: input.name
|
|
26441
26558
|
})) || _report(_exceptionable, {
|
|
26442
26559
|
path: _path + ".name",
|
|
26443
|
-
expected: "(string &
|
|
26560
|
+
expected: "(string & CamelCasePattern)",
|
|
26444
26561
|
value: input.name
|
|
26445
26562
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26446
26563
|
path: _path + ".content",
|
|
@@ -26449,11 +26566,11 @@ const claude$5 = {
|
|
|
26449
26566
|
}) ].every(flag => flag);
|
|
26450
26567
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26451
26568
|
path: _path + ".name",
|
|
26452
|
-
expected: "string &
|
|
26569
|
+
expected: "string & PascalCasePattern",
|
|
26453
26570
|
value: input.name
|
|
26454
26571
|
})) || _report(_exceptionable, {
|
|
26455
26572
|
path: _path + ".name",
|
|
26456
|
-
expected: "(string &
|
|
26573
|
+
expected: "(string & PascalCasePattern)",
|
|
26457
26574
|
value: input.name
|
|
26458
26575
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26459
26576
|
path: _path + ".content",
|
|
@@ -26462,11 +26579,11 @@ const claude$5 = {
|
|
|
26462
26579
|
}) ].every(flag => flag);
|
|
26463
26580
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26464
26581
|
path: _path + ".name",
|
|
26465
|
-
expected: "string &
|
|
26582
|
+
expected: "string & PascalCasePattern",
|
|
26466
26583
|
value: input.name
|
|
26467
26584
|
})) || _report(_exceptionable, {
|
|
26468
26585
|
path: _path + ".name",
|
|
26469
|
-
expected: "(string &
|
|
26586
|
+
expected: "(string & PascalCasePattern)",
|
|
26470
26587
|
value: input.name
|
|
26471
26588
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26472
26589
|
path: _path + ".content",
|
|
@@ -26628,11 +26745,11 @@ const collection$a = {
|
|
|
26628
26745
|
}) ].every(flag => flag);
|
|
26629
26746
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26630
26747
|
path: _path + ".name",
|
|
26631
|
-
expected: "string &
|
|
26748
|
+
expected: "string & CamelCasePattern",
|
|
26632
26749
|
value: input.name
|
|
26633
26750
|
})) || _report(_exceptionable, {
|
|
26634
26751
|
path: _path + ".name",
|
|
26635
|
-
expected: "(string &
|
|
26752
|
+
expected: "(string & CamelCasePattern)",
|
|
26636
26753
|
value: input.name
|
|
26637
26754
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26638
26755
|
path: _path + ".content",
|
|
@@ -26641,11 +26758,11 @@ const collection$a = {
|
|
|
26641
26758
|
}) ].every(flag => flag);
|
|
26642
26759
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26643
26760
|
path: _path + ".name",
|
|
26644
|
-
expected: "string &
|
|
26761
|
+
expected: "string & PascalCasePattern",
|
|
26645
26762
|
value: input.name
|
|
26646
26763
|
})) || _report(_exceptionable, {
|
|
26647
26764
|
path: _path + ".name",
|
|
26648
|
-
expected: "(string &
|
|
26765
|
+
expected: "(string & PascalCasePattern)",
|
|
26649
26766
|
value: input.name
|
|
26650
26767
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26651
26768
|
path: _path + ".content",
|
|
@@ -26654,11 +26771,11 @@ const collection$a = {
|
|
|
26654
26771
|
}) ].every(flag => flag);
|
|
26655
26772
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26656
26773
|
path: _path + ".name",
|
|
26657
|
-
expected: "string &
|
|
26774
|
+
expected: "string & PascalCasePattern",
|
|
26658
26775
|
value: input.name
|
|
26659
26776
|
})) || _report(_exceptionable, {
|
|
26660
26777
|
path: _path + ".name",
|
|
26661
|
-
expected: "(string &
|
|
26778
|
+
expected: "(string & PascalCasePattern)",
|
|
26662
26779
|
value: input.name
|
|
26663
26780
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26664
26781
|
path: _path + ".content",
|
|
@@ -26814,7 +26931,7 @@ const claude$4 = {
|
|
|
26814
26931
|
functions: [ {
|
|
26815
26932
|
name: "createDecorator",
|
|
26816
26933
|
parameters: {
|
|
26817
|
-
description: " Properties containing provider, decorator, and payload type
|
|
26934
|
+
description: " Properties containing provider, decorator, and payload type\nconfigurations\n\n------------------------------\n\nCurrent Type: {@link IAutoBeRealizeAuthorizationApplication.IProps}",
|
|
26818
26935
|
type: "object",
|
|
26819
26936
|
properties: {
|
|
26820
26937
|
provider: {
|
|
@@ -26880,7 +26997,7 @@ const claude$4 = {
|
|
|
26880
26997
|
}
|
|
26881
26998
|
}
|
|
26882
26999
|
},
|
|
26883
|
-
description: "Generates authentication provider, decorator, and payload type for
|
|
27000
|
+
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
27001
|
validate: (() => {
|
|
26885
27002
|
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
27003
|
const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content;
|
|
@@ -26913,11 +27030,11 @@ const claude$4 = {
|
|
|
26913
27030
|
}) ].every(flag => flag);
|
|
26914
27031
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26915
27032
|
path: _path + ".name",
|
|
26916
|
-
expected: "string &
|
|
27033
|
+
expected: "string & CamelCasePattern",
|
|
26917
27034
|
value: input.name
|
|
26918
27035
|
})) || _report(_exceptionable, {
|
|
26919
27036
|
path: _path + ".name",
|
|
26920
|
-
expected: "(string &
|
|
27037
|
+
expected: "(string & CamelCasePattern)",
|
|
26921
27038
|
value: input.name
|
|
26922
27039
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26923
27040
|
path: _path + ".content",
|
|
@@ -26926,11 +27043,11 @@ const claude$4 = {
|
|
|
26926
27043
|
}) ].every(flag => flag);
|
|
26927
27044
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26928
27045
|
path: _path + ".name",
|
|
26929
|
-
expected: "string &
|
|
27046
|
+
expected: "string & PascalCasePattern",
|
|
26930
27047
|
value: input.name
|
|
26931
27048
|
})) || _report(_exceptionable, {
|
|
26932
27049
|
path: _path + ".name",
|
|
26933
|
-
expected: "(string &
|
|
27050
|
+
expected: "(string & PascalCasePattern)",
|
|
26934
27051
|
value: input.name
|
|
26935
27052
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26936
27053
|
path: _path + ".content",
|
|
@@ -26939,11 +27056,11 @@ const claude$4 = {
|
|
|
26939
27056
|
}) ].every(flag => flag);
|
|
26940
27057
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
26941
27058
|
path: _path + ".name",
|
|
26942
|
-
expected: "string &
|
|
27059
|
+
expected: "string & PascalCasePattern",
|
|
26943
27060
|
value: input.name
|
|
26944
27061
|
})) || _report(_exceptionable, {
|
|
26945
27062
|
path: _path + ".name",
|
|
26946
|
-
expected: "(string &
|
|
27063
|
+
expected: "(string & PascalCasePattern)",
|
|
26947
27064
|
value: input.name
|
|
26948
27065
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
26949
27066
|
path: _path + ".content",
|
|
@@ -26996,7 +27113,7 @@ const collection$9 = {
|
|
|
26996
27113
|
functions: [ {
|
|
26997
27114
|
name: "createDecorator",
|
|
26998
27115
|
parameters: {
|
|
26999
|
-
description: " Properties containing provider, decorator, and payload type
|
|
27116
|
+
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
27117
|
type: "object",
|
|
27001
27118
|
properties: {
|
|
27002
27119
|
provider: {
|
|
@@ -27056,7 +27173,7 @@ const collection$9 = {
|
|
|
27056
27173
|
}
|
|
27057
27174
|
}
|
|
27058
27175
|
},
|
|
27059
|
-
description: "Generates authentication provider, decorator, and payload type for
|
|
27176
|
+
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
27177
|
validate: (() => {
|
|
27061
27178
|
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
27179
|
const _io1 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.content;
|
|
@@ -27089,11 +27206,11 @@ const collection$9 = {
|
|
|
27089
27206
|
}) ].every(flag => flag);
|
|
27090
27207
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27091
27208
|
path: _path + ".name",
|
|
27092
|
-
expected: "string &
|
|
27209
|
+
expected: "string & CamelCasePattern",
|
|
27093
27210
|
value: input.name
|
|
27094
27211
|
})) || _report(_exceptionable, {
|
|
27095
27212
|
path: _path + ".name",
|
|
27096
|
-
expected: "(string &
|
|
27213
|
+
expected: "(string & CamelCasePattern)",
|
|
27097
27214
|
value: input.name
|
|
27098
27215
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27099
27216
|
path: _path + ".content",
|
|
@@ -27102,11 +27219,11 @@ const collection$9 = {
|
|
|
27102
27219
|
}) ].every(flag => flag);
|
|
27103
27220
|
const _vo2 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27104
27221
|
path: _path + ".name",
|
|
27105
|
-
expected: "string &
|
|
27222
|
+
expected: "string & PascalCasePattern",
|
|
27106
27223
|
value: input.name
|
|
27107
27224
|
})) || _report(_exceptionable, {
|
|
27108
27225
|
path: _path + ".name",
|
|
27109
|
-
expected: "(string &
|
|
27226
|
+
expected: "(string & PascalCasePattern)",
|
|
27110
27227
|
value: input.name
|
|
27111
27228
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27112
27229
|
path: _path + ".content",
|
|
@@ -27115,11 +27232,11 @@ const collection$9 = {
|
|
|
27115
27232
|
}) ].every(flag => flag);
|
|
27116
27233
|
const _vo3 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name && (RegExp("^[A-Z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
|
|
27117
27234
|
path: _path + ".name",
|
|
27118
|
-
expected: "string &
|
|
27235
|
+
expected: "string & PascalCasePattern",
|
|
27119
27236
|
value: input.name
|
|
27120
27237
|
})) || _report(_exceptionable, {
|
|
27121
27238
|
path: _path + ".name",
|
|
27122
|
-
expected: "(string &
|
|
27239
|
+
expected: "(string & PascalCasePattern)",
|
|
27123
27240
|
value: input.name
|
|
27124
27241
|
}), "string" === typeof input.content || _report(_exceptionable, {
|
|
27125
27242
|
path: _path + ".content",
|
|
@@ -28385,23 +28502,21 @@ const orchestrateRealize = ctx => async props => {
|
|
|
28385
28502
|
};
|
|
28386
28503
|
const process = async artifacts => {
|
|
28387
28504
|
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 {
|
|
28505
|
+
const write = async () => {
|
|
28399
28506
|
try {
|
|
28400
|
-
return await orchestrateRealizeWrite(ctx,
|
|
28507
|
+
return await orchestrateRealizeWrite(ctx, {
|
|
28508
|
+
totalAuthorizations: authorizations,
|
|
28509
|
+
authorization: art.decoratorEvent ?? null,
|
|
28510
|
+
scenario: art,
|
|
28511
|
+
document,
|
|
28512
|
+
progress: writeProgress,
|
|
28513
|
+
promptCacheKey
|
|
28514
|
+
});
|
|
28401
28515
|
} catch {
|
|
28402
28516
|
return null;
|
|
28403
28517
|
}
|
|
28404
|
-
}
|
|
28518
|
+
};
|
|
28519
|
+
return await write() ?? await write();
|
|
28405
28520
|
}))).filter(w => w !== null);
|
|
28406
28521
|
const functions = Object.entries(Object.fromEntries(writes.map(w => [ w.location, w.content ]))).map(([location, content]) => {
|
|
28407
28522
|
const scenario = artifacts.find(el => el.location === location);
|
|
@@ -30876,7 +30991,7 @@ const collection$3 = {
|
|
|
30876
30991
|
})()
|
|
30877
30992
|
};
|
|
30878
30993
|
|
|
30879
|
-
async function orchestrateTestScenario(ctx, instruction, capacity =
|
|
30994
|
+
async function orchestrateTestScenario(ctx, instruction, capacity = 2) {
|
|
30880
30995
|
const document = ctx.state().interface?.document;
|
|
30881
30996
|
if (document === undefined) {
|
|
30882
30997
|
throw new Error("Cannot write test scenarios because these are no operations.");
|
|
@@ -30900,7 +31015,7 @@ async function orchestrateTestScenario(ctx, instruction, capacity = 4) {
|
|
|
30900
31015
|
do {
|
|
30901
31016
|
const matrix = divideArray({
|
|
30902
31017
|
array: include,
|
|
30903
|
-
capacity: capacity ??
|
|
31018
|
+
capacity: capacity ?? 2
|
|
30904
31019
|
});
|
|
30905
31020
|
await executeCachedBatch(matrix.map(include => async promptCacheKey => {
|
|
30906
31021
|
exclude.push(...await divideAndConquer(ctx, {
|
|
@@ -33515,10 +33630,25 @@ const createAutoBeContext = props => {
|
|
|
33515
33630
|
}).catch(() => {});
|
|
33516
33631
|
});
|
|
33517
33632
|
if (closure) closure(agent);
|
|
33633
|
+
const message = next.enforceFunctionCall === true ? StringUtil.trim`
|
|
33634
|
+
${next.message}
|
|
33635
|
+
|
|
33636
|
+
> You have to call function(s) of below to accomplish my request.
|
|
33637
|
+
>
|
|
33638
|
+
> Never hesitate the function calling. Never ask for me permission
|
|
33639
|
+
> to execute the function. Never explain me your plan with waiting
|
|
33640
|
+
> for my approval.
|
|
33641
|
+
>
|
|
33642
|
+
> I gave you every information for the function calling, so just
|
|
33643
|
+
> call it. I repeat that, never hesitate the function calling.
|
|
33644
|
+
> Just do it without any explanation.
|
|
33645
|
+
>
|
|
33646
|
+
${next.controller.application.functions.map(f => `> - ${f.name}`).join("\n")}
|
|
33647
|
+
` : next.message;
|
|
33518
33648
|
const result = await TimedConversation.process({
|
|
33519
|
-
agent,
|
|
33520
33649
|
timeout: config.timeout,
|
|
33521
|
-
|
|
33650
|
+
agent,
|
|
33651
|
+
message
|
|
33522
33652
|
});
|
|
33523
33653
|
const tokenUsage = agent.getTokenUsage().toJSON().aggregate;
|
|
33524
33654
|
props.usage().record(tokenUsage, [ STAGES.find(stage => next.source.startsWith(stage)) ?? "analyze" ]);
|
|
@@ -33534,7 +33664,15 @@ const createAutoBeContext = props => {
|
|
|
33534
33664
|
throw result.error;
|
|
33535
33665
|
} else if (true === next.enforceFunctionCall && false === result.histories.some(h => h.type === "execute" && h.success === true)) {
|
|
33536
33666
|
const failure = () => {
|
|
33537
|
-
throw new Error(
|
|
33667
|
+
throw new Error(StringUtil.trim`
|
|
33668
|
+
Failed to function calling in the ${next.source} step.
|
|
33669
|
+
|
|
33670
|
+
Here is the list of history types that occurred during the conversation:
|
|
33671
|
+
|
|
33672
|
+
${result.histories.map(h => `- ${h.type}`).join("\n")}
|
|
33673
|
+
|
|
33674
|
+
${JSON.stringify(result.histories)}
|
|
33675
|
+
`);
|
|
33538
33676
|
};
|
|
33539
33677
|
const last = result.histories.at(-1);
|
|
33540
33678
|
if (last?.type === "assistantMessage" && last.text.trim().length !== 0) {
|