@autobe/agent 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/lib/AutoBeAgent.d.ts +2 -1
  2. package/lib/AutoBeAgent.js +27 -7
  3. package/lib/AutoBeAgent.js.map +1 -1
  4. package/lib/AutoBeMockAgent.js +2 -4
  5. package/lib/AutoBeMockAgent.js.map +1 -1
  6. package/lib/constants/AutoBeSystemPromptConstant.d.ts +10 -10
  7. package/lib/context/AutoBeContext.d.ts +4 -1
  8. package/lib/context/AutoBeTokenUsage.d.ts +1 -1
  9. package/lib/context/AutoBeTokenUsage.js.map +1 -1
  10. package/lib/factory/AutoBeFunctionCallingMetricFactory.d.ts +7 -0
  11. package/lib/factory/AutoBeFunctionCallingMetricFactory.js +35 -0
  12. package/lib/factory/AutoBeFunctionCallingMetricFactory.js.map +1 -0
  13. package/lib/factory/AutoBeProcessAggregateFactory.d.ts +13 -0
  14. package/lib/factory/AutoBeProcessAggregateFactory.js +100 -0
  15. package/lib/factory/AutoBeProcessAggregateFactory.js.map +1 -0
  16. package/lib/factory/createAutoBeContext.d.ts +2 -1
  17. package/lib/factory/createAutoBeContext.js +78 -27
  18. package/lib/factory/createAutoBeContext.js.map +1 -1
  19. package/lib/index.mjs +1891 -1214
  20. package/lib/index.mjs.map +1 -1
  21. package/lib/orchestrate/analyze/orchestrateAnalyze.js +1 -0
  22. package/lib/orchestrate/analyze/orchestrateAnalyze.js.map +1 -1
  23. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +2 -1
  24. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  25. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +2 -1
  26. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  27. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +3 -2
  28. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  29. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.d.ts +2 -1
  30. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +3 -2
  31. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  32. package/lib/{factory/createAutoBeApplication.d.ts → orchestrate/facade/createAutoBeFacadeController.d.ts} +2 -2
  33. package/lib/{factory/createAutoBeApplication.js → orchestrate/facade/createAutoBeFacadeController.js} +53 -57
  34. package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -0
  35. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplication.js.map +1 -0
  36. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationProps.js.map +1 -0
  37. package/lib/orchestrate/facade/histories/IAutoBeFacadeApplicationResult.js.map +1 -0
  38. package/lib/orchestrate/facade/{transformFacadeStateMessage.d.ts → structures/transformFacadeStateMessage.d.ts} +1 -1
  39. package/lib/orchestrate/facade/structures/transformFacadeStateMessage.js.map +1 -0
  40. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js +2 -2
  41. package/lib/orchestrate/interface/histories/transformInterfaceComplementHistories.js.map +1 -1
  42. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js +1 -1
  43. package/lib/orchestrate/interface/histories/transformInterfaceEndpointHistories.js.map +1 -1
  44. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js +3 -2
  45. package/lib/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.js.map +1 -1
  46. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js +1 -1
  47. package/lib/orchestrate/interface/histories/transformInterfaceGroupHistories.js.map +1 -1
  48. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js +1 -1
  49. package/lib/orchestrate/interface/histories/transformInterfaceOperationHistories.js.map +1 -1
  50. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js +2 -2
  51. package/lib/orchestrate/interface/histories/transformInterfaceOperationsReviewHistories.js.map +1 -1
  52. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js +1 -1
  53. package/lib/orchestrate/interface/histories/transformInterfaceSchemaHistories.js.map +1 -1
  54. package/lib/orchestrate/interface/orchestrateInterface.d.ts +1 -1
  55. package/lib/orchestrate/interface/orchestrateInterface.js +15 -8
  56. package/lib/orchestrate/interface/orchestrateInterface.js.map +1 -1
  57. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +136 -48
  58. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
  59. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +234 -59
  60. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  61. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +3 -2
  62. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  63. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.d.ts +0 -6
  64. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +2 -2
  65. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
  66. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +2 -1
  67. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  68. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +137 -49
  69. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  70. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +136 -48
  71. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
  72. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +2 -1
  73. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
  74. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +2 -1
  75. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
  76. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.d.ts +5 -3
  77. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +241 -69
  78. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  79. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +234 -59
  80. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  81. package/lib/orchestrate/interface/utils/JsonSchemaFactory.js +23 -23
  82. package/lib/orchestrate/prisma/orchestratePrisma.d.ts +1 -1
  83. package/lib/orchestrate/prisma/orchestratePrisma.js +1 -0
  84. package/lib/orchestrate/prisma/orchestratePrisma.js.map +1 -1
  85. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +2 -1
  86. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  87. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +2 -1
  88. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  89. package/lib/orchestrate/prisma/orchestratePrismaReview.js +2 -1
  90. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  91. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +2 -1
  92. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  93. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js +2 -2
  94. package/lib/orchestrate/realize/histories/transformRealizeWriteAuthorizationsHistories.js.map +1 -1
  95. package/lib/orchestrate/realize/orchestrateRealize.d.ts +1 -1
  96. package/lib/orchestrate/realize/orchestrateRealize.js +2 -1
  97. package/lib/orchestrate/realize/orchestrateRealize.js.map +1 -1
  98. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +2 -1
  99. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  100. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +3 -2
  101. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  102. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +3 -2
  103. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  104. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +6 -5
  105. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
  106. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +2 -1
  107. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  108. package/lib/orchestrate/realize/utils/replaceImportStatements.js +0 -85
  109. package/lib/orchestrate/realize/utils/replaceImportStatements.js.map +1 -1
  110. package/lib/orchestrate/test/orchestrateTest.d.ts +1 -1
  111. package/lib/orchestrate/test/orchestrateTest.js +2 -1
  112. package/lib/orchestrate/test/orchestrateTest.js.map +1 -1
  113. package/lib/orchestrate/test/orchestrateTestCorrect.js +3 -1
  114. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  115. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +3 -2
  116. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  117. package/lib/orchestrate/test/orchestrateTestScenario.js +2 -1
  118. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  119. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +2 -1
  120. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  121. package/lib/orchestrate/test/orchestrateTestWrite.js +2 -1
  122. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  123. package/lib/utils/TokenUsageComputer.d.ts +5 -0
  124. package/lib/utils/TokenUsageComputer.js +29 -0
  125. package/lib/utils/TokenUsageComputer.js.map +1 -0
  126. package/package.json +7 -7
  127. package/src/AutoBeAgent.ts +40 -6
  128. package/src/AutoBeMockAgent.ts +2 -4
  129. package/src/constants/AutoBeSystemPromptConstant.ts +10 -10
  130. package/src/context/AutoBeContext.ts +8 -0
  131. package/src/context/AutoBeTokenUsage.ts +1 -1
  132. package/src/factory/AutoBeFunctionCallingMetricFactory.ts +44 -0
  133. package/src/factory/AutoBeProcessAggregateFactory.ts +141 -0
  134. package/src/factory/createAutoBeContext.ts +96 -36
  135. package/src/orchestrate/analyze/orchestrateAnalyze.ts +1 -0
  136. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +2 -1
  137. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +2 -1
  138. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +3 -2
  139. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +5 -2
  140. package/src/orchestrate/facade/createAutoBeFacadeController.ts +135 -0
  141. package/src/orchestrate/facade/{transformFacadeStateMessage.ts → structures/transformFacadeStateMessage.ts} +2 -2
  142. package/src/orchestrate/interface/histories/transformInterfaceEndpointsReviewHistories.ts +1 -0
  143. package/src/orchestrate/interface/orchestrateInterface.ts +17 -6
  144. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +2 -1
  145. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +2 -1
  146. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +3 -2
  147. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +3 -4
  148. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +2 -1
  149. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +2 -1
  150. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +2 -1
  151. package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +2 -1
  152. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +2 -1
  153. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +10 -15
  154. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +2 -1
  155. package/src/orchestrate/prisma/orchestratePrisma.ts +2 -1
  156. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +2 -1
  157. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +2 -1
  158. package/src/orchestrate/prisma/orchestratePrismaReview.ts +2 -1
  159. package/src/orchestrate/prisma/orchestratePrismaSchemas.ts +2 -1
  160. package/src/orchestrate/realize/orchestrateRealize.ts +3 -2
  161. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +2 -1
  162. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +2 -1
  163. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +3 -2
  164. package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +6 -5
  165. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +2 -1
  166. package/src/orchestrate/realize/utils/replaceImportStatements.ts +0 -90
  167. package/src/orchestrate/test/orchestrateTest.ts +3 -2
  168. package/src/orchestrate/test/orchestrateTestCorrect.ts +3 -1
  169. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +3 -2
  170. package/src/orchestrate/test/orchestrateTestScenario.ts +2 -1
  171. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +2 -1
  172. package/src/orchestrate/test/orchestrateTestWrite.ts +2 -1
  173. package/src/utils/TokenUsageComputer.ts +35 -0
  174. package/lib/context/IAutoBeFacadeApplication.js.map +0 -1
  175. package/lib/context/IAutoBeFacadeApplicationProps.js.map +0 -1
  176. package/lib/context/IAutoBeFacadeApplicationResult.js.map +0 -1
  177. package/lib/factory/createAutoBeApplication.js.map +0 -1
  178. package/lib/orchestrate/facade/transformFacadeStateMessage.js.map +0 -1
  179. package/src/factory/createAutoBeApplication.ts +0 -123
  180. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.d.ts +0 -0
  181. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.js +0 -0
  182. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.d.ts +0 -0
  183. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.js +0 -0
  184. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.d.ts +0 -0
  185. /package/lib/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.js +0 -0
  186. /package/lib/orchestrate/facade/{transformFacadeStateMessage.js → structures/transformFacadeStateMessage.js} +0 -0
  187. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplication.ts +0 -0
  188. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationProps.ts +0 -0
  189. /package/src/{context → orchestrate/facade/histories}/IAutoBeFacadeApplicationResult.ts +0 -0
@@ -60,17 +60,13 @@ const JsonSchemaFactory_1 = require("./utils/JsonSchemaFactory");
60
60
  const JsonSchemaNamingConvention_1 = require("./utils/JsonSchemaNamingConvention");
61
61
  const JsonSchemaValidator_1 = require("./utils/JsonSchemaValidator");
62
62
  const fulfillJsonSchemaErrorMessages_1 = require("./utils/fulfillJsonSchemaErrorMessages");
63
- function orchestrateInterfaceSchemaReview(ctx_1, config_1, props_1) {
64
- return __awaiter(this, arguments, void 0, function* (ctx, config, props, capacity = 2 /* AutoBeConfigConstant.INTERFACE_CAPACITY */) {
63
+ function orchestrateInterfaceSchemaReview(ctx, config, props) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
65
  const typeNames = Object.keys(props.document.components.schemas);
66
66
  const matrix = (0, divideArray_1.divideArray)({
67
67
  array: typeNames,
68
- capacity,
68
+ capacity: 2 /* AutoBeConfigConstant.INTERFACE_CAPACITY */,
69
69
  });
70
- const progress = {
71
- total: matrix.length,
72
- completed: 0,
73
- };
74
70
  const x = {};
75
71
  for (const y of yield (0, executeCachedBatch_1.executeCachedBatch)(matrix.map((it) => (promptCacheKey) => __awaiter(this, void 0, void 0, function* () {
76
72
  const operations = props.document.operations.filter((op) => (op.requestBody && it.includes(op.requestBody.typeName)) ||
@@ -83,7 +79,7 @@ function orchestrateInterfaceSchemaReview(ctx_1, config_1, props_1) {
83
79
  acc[cur] = props.document.components.schemas[cur];
84
80
  return acc;
85
81
  }, {}),
86
- progress,
82
+ progress: props.progress,
87
83
  promptCacheKey,
88
84
  });
89
85
  return row;
@@ -101,8 +97,8 @@ function divideAndConquer(ctx, config, props) {
101
97
  const pointer = {
102
98
  value: null,
103
99
  };
104
- const { tokenUsage } = yield ctx.conversate({
105
- source: "interfaceSchemaContentReview",
100
+ const { metric, tokenUsage } = yield ctx.conversate({
101
+ source: "interfaceSchemaReview",
106
102
  controller: createController({
107
103
  model: ctx.model,
108
104
  pointer,
@@ -127,12 +123,14 @@ function divideAndConquer(ctx, config, props) {
127
123
  schemas: pointer.value.content,
128
124
  }).schemas) !== null && _a !== void 0 ? _a : {});
129
125
  ctx.dispatch({
130
- type: config.type,
126
+ type: "interfaceSchemaReview",
127
+ kind: config.kind,
131
128
  id: (0, uuid_1.v7)(),
132
129
  schemas: props.reviewSchemas,
133
130
  review: pointer.value.think.review,
134
131
  plan: pointer.value.think.plan,
135
132
  content,
133
+ metric,
136
134
  tokenUsage,
137
135
  step: (_c = (_b = ctx.state().analyze) === null || _b === void 0 ? void 0 : _b.step) !== null && _c !== void 0 ? _c : 0,
138
136
  total: props.progress.total,
@@ -151,12 +149,12 @@ function createController(props) {
151
149
  (0, assertSchemaModel_1.assertSchemaModel)(props.model);
152
150
  const validate = (next) => {
153
151
  JsonSchemaFactory_1.JsonSchemaFactory.fixPage("content", next);
154
- const result = (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
152
+ const result = (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
155
153
  const value = input[key];
156
154
  if (undefined === value)
157
155
  return true;
158
156
  return "object" === typeof value && null !== value && _iu1(value);
159
- }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
157
+ }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || true === _iv2.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
160
158
  const value = input[key];
161
159
  if (undefined === value)
162
160
  return true;
@@ -357,9 +355,9 @@ function createController(props) {
357
355
  path: _path + ".description",
358
356
  expected: "string",
359
357
  value: input.description
360
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
358
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
361
359
  path: _path + ".format",
362
- expected: "(string | undefined)",
360
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
363
361
  value: input.format
364
362
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
365
363
  path: _path + ".pattern",
@@ -497,9 +495,9 @@ function createController(props) {
497
495
  path: _path + ".type",
498
496
  expected: "\"number\"",
499
497
  value: input.type
500
- })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
498
+ })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
501
499
  path: _path + ".format",
502
- expected: "(string | undefined)",
500
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
503
501
  value: input.format
504
502
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
505
503
  path: _path + ".pattern",
@@ -597,8 +595,8 @@ function createController(props) {
597
595
  path: _path + ".required",
598
596
  expected: "Array<string>",
599
597
  value: input.required
600
- })) && input.required.map((elem, _index5) => "string" === typeof elem || _report(_exceptionable, {
601
- path: _path + ".required[" + _index5 + "]",
598
+ })) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
599
+ path: _path + ".required[" + _index9 + "]",
602
600
  expected: "string",
603
601
  value: elem
604
602
  })).every(flag => flag) || _report(_exceptionable, {
@@ -617,12 +615,12 @@ function createController(props) {
617
615
  path: _path + ".oneOf",
618
616
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
619
617
  value: input.oneOf
620
- })) && input.oneOf.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
621
- path: _path + ".oneOf[" + _index6 + "]",
618
+ })) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
619
+ path: _path + ".oneOf[" + _index10 + "]",
622
620
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
623
621
  value: elem
624
- })) && _vu0(elem, _path + ".oneOf[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
625
- path: _path + ".oneOf[" + _index6 + "]",
622
+ })) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
623
+ path: _path + ".oneOf[" + _index10 + "]",
626
624
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
627
625
  value: elem
628
626
  })).every(flag => flag) || _report(_exceptionable, {
@@ -690,8 +688,8 @@ function createController(props) {
690
688
  path: _path + ".required",
691
689
  expected: "Array<string>",
692
690
  value: input.required
693
- })) && input.required.map((elem, _index7) => "string" === typeof elem || _report(_exceptionable, {
694
- path: _path + ".required[" + _index7 + "]",
691
+ })) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
692
+ path: _path + ".required[" + _index11 + "]",
695
693
  expected: "string",
696
694
  value: elem
697
695
  })).every(flag => flag) || _report(_exceptionable, {
@@ -718,12 +716,12 @@ function createController(props) {
718
716
  path: _path + ".oneOf",
719
717
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
720
718
  value: input.oneOf
721
- })) && input.oneOf.map((elem, _index8) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
722
- path: _path + ".oneOf[" + _index8 + "]",
719
+ })) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
720
+ path: _path + ".oneOf[" + _index12 + "]",
723
721
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
724
722
  value: elem
725
- })) && _vu0(elem, _path + ".oneOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
726
- path: _path + ".oneOf[" + _index8 + "]",
723
+ })) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
724
+ path: _path + ".oneOf[" + _index12 + "]",
727
725
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
728
726
  value: elem
729
727
  })).every(flag => flag) || _report(_exceptionable, {
@@ -1114,7 +1112,30 @@ const collection = {
1114
1112
  properties: {
1115
1113
  format: {
1116
1114
  description: "Format restriction.",
1117
- type: "string"
1115
+ type: "string",
1116
+ "enum": [
1117
+ "date-time",
1118
+ "password",
1119
+ "regex",
1120
+ "uuid",
1121
+ "email",
1122
+ "hostname",
1123
+ "idn-email",
1124
+ "idn-hostname",
1125
+ "iri",
1126
+ "iri-reference",
1127
+ "ipv4",
1128
+ "ipv6",
1129
+ "uri",
1130
+ "uri-reference",
1131
+ "uri-template",
1132
+ "url",
1133
+ "date",
1134
+ "time",
1135
+ "duration",
1136
+ "json-pointer",
1137
+ "relative-json-pointer"
1138
+ ]
1118
1139
  },
1119
1140
  pattern: {
1120
1141
  description: "Pattern restriction.",
@@ -1299,7 +1320,30 @@ const collection = {
1299
1320
  properties: {
1300
1321
  format: {
1301
1322
  description: "Format restriction.",
1302
- type: "string"
1323
+ type: "string",
1324
+ "enum": [
1325
+ "date-time",
1326
+ "password",
1327
+ "regex",
1328
+ "uuid",
1329
+ "email",
1330
+ "hostname",
1331
+ "idn-email",
1332
+ "idn-hostname",
1333
+ "iri",
1334
+ "iri-reference",
1335
+ "ipv4",
1336
+ "ipv6",
1337
+ "uri",
1338
+ "uri-reference",
1339
+ "uri-template",
1340
+ "url",
1341
+ "date",
1342
+ "time",
1343
+ "duration",
1344
+ "json-pointer",
1345
+ "relative-json-pointer"
1346
+ ]
1303
1347
  },
1304
1348
  pattern: {
1305
1349
  description: "Pattern restriction.",
@@ -1760,12 +1804,12 @@ const collection = {
1760
1804
  }
1761
1805
  },
1762
1806
  description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
1763
- validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
1807
+ validate: (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
1764
1808
  const value = input[key];
1765
1809
  if (undefined === value)
1766
1810
  return true;
1767
1811
  return "object" === typeof value && null !== value && _iu1(value);
1768
- }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
1812
+ }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || true === _iv2.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
1769
1813
  const value = input[key];
1770
1814
  if (undefined === value)
1771
1815
  return true;
@@ -1966,9 +2010,9 @@ const collection = {
1966
2010
  path: _path + ".description",
1967
2011
  expected: "string",
1968
2012
  value: input.description
1969
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
2013
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
1970
2014
  path: _path + ".format",
1971
- expected: "(string | undefined)",
2015
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
1972
2016
  value: input.format
1973
2017
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
1974
2018
  path: _path + ".pattern",
@@ -2106,9 +2150,9 @@ const collection = {
2106
2150
  path: _path + ".type",
2107
2151
  expected: "\"number\"",
2108
2152
  value: input.type
2109
- })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
2153
+ })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
2110
2154
  path: _path + ".format",
2111
- expected: "(string | undefined)",
2155
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
2112
2156
  value: input.format
2113
2157
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
2114
2158
  path: _path + ".pattern",
@@ -2206,8 +2250,8 @@ const collection = {
2206
2250
  path: _path + ".required",
2207
2251
  expected: "Array<string>",
2208
2252
  value: input.required
2209
- })) && input.required.map((elem, _index5) => "string" === typeof elem || _report(_exceptionable, {
2210
- path: _path + ".required[" + _index5 + "]",
2253
+ })) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
2254
+ path: _path + ".required[" + _index9 + "]",
2211
2255
  expected: "string",
2212
2256
  value: elem
2213
2257
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2226,12 +2270,12 @@ const collection = {
2226
2270
  path: _path + ".oneOf",
2227
2271
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
2228
2272
  value: input.oneOf
2229
- })) && input.oneOf.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2230
- path: _path + ".oneOf[" + _index6 + "]",
2273
+ })) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2274
+ path: _path + ".oneOf[" + _index10 + "]",
2231
2275
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
2232
2276
  value: elem
2233
- })) && _vu0(elem, _path + ".oneOf[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
2234
- path: _path + ".oneOf[" + _index6 + "]",
2277
+ })) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
2278
+ path: _path + ".oneOf[" + _index10 + "]",
2235
2279
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
2236
2280
  value: elem
2237
2281
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2299,8 +2343,8 @@ const collection = {
2299
2343
  path: _path + ".required",
2300
2344
  expected: "Array<string>",
2301
2345
  value: input.required
2302
- })) && input.required.map((elem, _index7) => "string" === typeof elem || _report(_exceptionable, {
2303
- path: _path + ".required[" + _index7 + "]",
2346
+ })) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
2347
+ path: _path + ".required[" + _index11 + "]",
2304
2348
  expected: "string",
2305
2349
  value: elem
2306
2350
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2327,12 +2371,12 @@ const collection = {
2327
2371
  path: _path + ".oneOf",
2328
2372
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
2329
2373
  value: input.oneOf
2330
- })) && input.oneOf.map((elem, _index8) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2331
- path: _path + ".oneOf[" + _index8 + "]",
2374
+ })) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2375
+ path: _path + ".oneOf[" + _index12 + "]",
2332
2376
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
2333
2377
  value: elem
2334
- })) && _vu0(elem, _path + ".oneOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
2335
- path: _path + ".oneOf[" + _index8 + "]",
2378
+ })) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
2379
+ path: _path + ".oneOf[" + _index12 + "]",
2336
2380
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
2337
2381
  value: elem
2338
2382
  })).every(flag => flag) || _report(_exceptionable, {
@@ -2696,7 +2740,71 @@ const collection = {
2696
2740
  properties: {
2697
2741
  format: {
2698
2742
  description: "Format restriction.",
2699
- type: "string"
2743
+ oneOf: [
2744
+ {
2745
+ "const": "date-time"
2746
+ },
2747
+ {
2748
+ "const": "password"
2749
+ },
2750
+ {
2751
+ "const": "regex"
2752
+ },
2753
+ {
2754
+ "const": "uuid"
2755
+ },
2756
+ {
2757
+ "const": "email"
2758
+ },
2759
+ {
2760
+ "const": "hostname"
2761
+ },
2762
+ {
2763
+ "const": "idn-email"
2764
+ },
2765
+ {
2766
+ "const": "idn-hostname"
2767
+ },
2768
+ {
2769
+ "const": "iri"
2770
+ },
2771
+ {
2772
+ "const": "iri-reference"
2773
+ },
2774
+ {
2775
+ "const": "ipv4"
2776
+ },
2777
+ {
2778
+ "const": "ipv6"
2779
+ },
2780
+ {
2781
+ "const": "uri"
2782
+ },
2783
+ {
2784
+ "const": "uri-reference"
2785
+ },
2786
+ {
2787
+ "const": "uri-template"
2788
+ },
2789
+ {
2790
+ "const": "url"
2791
+ },
2792
+ {
2793
+ "const": "date"
2794
+ },
2795
+ {
2796
+ "const": "time"
2797
+ },
2798
+ {
2799
+ "const": "duration"
2800
+ },
2801
+ {
2802
+ "const": "json-pointer"
2803
+ },
2804
+ {
2805
+ "const": "relative-json-pointer"
2806
+ }
2807
+ ]
2700
2808
  },
2701
2809
  pattern: {
2702
2810
  description: "Pattern restriction.",
@@ -2876,7 +2984,71 @@ const collection = {
2876
2984
  properties: {
2877
2985
  format: {
2878
2986
  description: "Format restriction.",
2879
- type: "string"
2987
+ oneOf: [
2988
+ {
2989
+ "const": "date-time"
2990
+ },
2991
+ {
2992
+ "const": "password"
2993
+ },
2994
+ {
2995
+ "const": "regex"
2996
+ },
2997
+ {
2998
+ "const": "uuid"
2999
+ },
3000
+ {
3001
+ "const": "email"
3002
+ },
3003
+ {
3004
+ "const": "hostname"
3005
+ },
3006
+ {
3007
+ "const": "idn-email"
3008
+ },
3009
+ {
3010
+ "const": "idn-hostname"
3011
+ },
3012
+ {
3013
+ "const": "iri"
3014
+ },
3015
+ {
3016
+ "const": "iri-reference"
3017
+ },
3018
+ {
3019
+ "const": "ipv4"
3020
+ },
3021
+ {
3022
+ "const": "ipv6"
3023
+ },
3024
+ {
3025
+ "const": "uri"
3026
+ },
3027
+ {
3028
+ "const": "uri-reference"
3029
+ },
3030
+ {
3031
+ "const": "uri-template"
3032
+ },
3033
+ {
3034
+ "const": "url"
3035
+ },
3036
+ {
3037
+ "const": "date"
3038
+ },
3039
+ {
3040
+ "const": "time"
3041
+ },
3042
+ {
3043
+ "const": "duration"
3044
+ },
3045
+ {
3046
+ "const": "json-pointer"
3047
+ },
3048
+ {
3049
+ "const": "relative-json-pointer"
3050
+ }
3051
+ ]
2880
3052
  },
2881
3053
  pattern: {
2882
3054
  description: "Pattern restriction.",
@@ -3320,12 +3492,12 @@ const collection = {
3320
3492
  }
3321
3493
  },
3322
3494
  description: "Reviews and validates DTO content completeness and consistency in OpenAPI\nschemas.\n\nThis specialized content review function focuses exclusively on ensuring\nDTOs accurately and completely represent their business entities. It\nvalidates field completeness, type accuracy, required field settings, and\ndocumentation quality.\n\nThe review process validates and corrects:\n\n- Field completeness against Prisma schema\n- Data type accuracy (Prisma to OpenAPI type mappings)\n- Required field arrays matching Prisma nullability\n- Description quality and comprehensiveness\n- Consistency across DTO variants (IEntity, ICreate, IUpdate, ISummary)\n- Missing variant detection and creation",
3323
- validate: (() => { const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
3495
+ validate: (() => { const _iv1 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _iv2 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv7 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _vv8 = new Set(["date-time", "password", "regex", "uuid", "email", "hostname", "idn-email", "idn-hostname", "iri", "iri-reference", "ipv4", "ipv6", "uri", "uri-reference", "uri-template", "url", "date", "time", "duration", "json-pointer", "relative-json-pointer"]); const _io0 = input => "object" === typeof input.think && null !== input.think && _io1(input.think) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io2(input.content)); const _io1 = input => "string" === typeof input.review && "string" === typeof input.plan; const _io2 = input => Object.keys(input).every(key => {
3324
3496
  const value = input[key];
3325
3497
  if (undefined === value)
3326
3498
  return true;
3327
3499
  return "object" === typeof value && null !== value && _iu1(value);
3328
- }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
3500
+ }); const _io3 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && "string" === typeof input.description; const _io4 = input => "boolean" === input.type && "string" === typeof input.description; const _io5 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && "string" === typeof input.description; const _io6 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && "string" === typeof input.description; const _io7 = input => (undefined === input.format || true === _iv1.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && "string" === typeof input.description; const _io8 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && "string" === typeof input.description; const _io9 = input => (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type; const _io10 = input => (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type; const _io11 = input => (undefined === input.format || true === _iv2.has(input.format)) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type; const _io12 = input => "string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]; const _io13 = input => "boolean" === input.type; 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type; 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; const _io16 = input => "string" === typeof input.$ref; 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)); const _io18 = input => "null" === input.type; const _io19 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io20(input.mapping)); const _io20 = input => Object.keys(input).every(key => {
3329
3501
  const value = input[key];
3330
3502
  if (undefined === value)
3331
3503
  return true;
@@ -3526,9 +3698,9 @@ const collection = {
3526
3698
  path: _path + ".description",
3527
3699
  expected: "string",
3528
3700
  value: input.description
3529
- })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
3701
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv7.has(input.format) || _report(_exceptionable, {
3530
3702
  path: _path + ".format",
3531
- expected: "(string | undefined)",
3703
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
3532
3704
  value: input.format
3533
3705
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
3534
3706
  path: _path + ".pattern",
@@ -3666,9 +3838,9 @@ const collection = {
3666
3838
  path: _path + ".type",
3667
3839
  expected: "\"number\"",
3668
3840
  value: input.type
3669
- })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
3841
+ })].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
3670
3842
  path: _path + ".format",
3671
- expected: "(string | undefined)",
3843
+ expected: "(\"date\" | \"date-time\" | \"duration\" | \"email\" | \"hostname\" | \"idn-email\" | \"idn-hostname\" | \"ipv4\" | \"ipv6\" | \"iri\" | \"iri-reference\" | \"json-pointer\" | \"password\" | \"regex\" | \"relative-json-pointer\" | \"time\" | \"uri\" | \"uri-reference\" | \"uri-template\" | \"url\" | \"uuid\" | undefined)",
3672
3844
  value: input.format
3673
3845
  }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
3674
3846
  path: _path + ".pattern",
@@ -3766,8 +3938,8 @@ const collection = {
3766
3938
  path: _path + ".required",
3767
3939
  expected: "Array<string>",
3768
3940
  value: input.required
3769
- })) && input.required.map((elem, _index5) => "string" === typeof elem || _report(_exceptionable, {
3770
- path: _path + ".required[" + _index5 + "]",
3941
+ })) && input.required.map((elem, _index9) => "string" === typeof elem || _report(_exceptionable, {
3942
+ path: _path + ".required[" + _index9 + "]",
3771
3943
  expected: "string",
3772
3944
  value: elem
3773
3945
  })).every(flag => flag) || _report(_exceptionable, {
@@ -3786,12 +3958,12 @@ const collection = {
3786
3958
  path: _path + ".oneOf",
3787
3959
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
3788
3960
  value: input.oneOf
3789
- })) && input.oneOf.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
3790
- path: _path + ".oneOf[" + _index6 + "]",
3961
+ })) && input.oneOf.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
3962
+ path: _path + ".oneOf[" + _index10 + "]",
3791
3963
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
3792
3964
  value: elem
3793
- })) && _vu0(elem, _path + ".oneOf[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
3794
- path: _path + ".oneOf[" + _index6 + "]",
3965
+ })) && _vu0(elem, _path + ".oneOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
3966
+ path: _path + ".oneOf[" + _index10 + "]",
3795
3967
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
3796
3968
  value: elem
3797
3969
  })).every(flag => flag) || _report(_exceptionable, {
@@ -3859,8 +4031,8 @@ const collection = {
3859
4031
  path: _path + ".required",
3860
4032
  expected: "Array<string>",
3861
4033
  value: input.required
3862
- })) && input.required.map((elem, _index7) => "string" === typeof elem || _report(_exceptionable, {
3863
- path: _path + ".required[" + _index7 + "]",
4034
+ })) && input.required.map((elem, _index11) => "string" === typeof elem || _report(_exceptionable, {
4035
+ path: _path + ".required[" + _index11 + "]",
3864
4036
  expected: "string",
3865
4037
  value: elem
3866
4038
  })).every(flag => flag) || _report(_exceptionable, {
@@ -3887,12 +4059,12 @@ const collection = {
3887
4059
  path: _path + ".oneOf",
3888
4060
  expected: "Array<IInteger | INumber | IString | IConstant | IBoolean | IArray | IObject | IReference | INull>",
3889
4061
  value: input.oneOf
3890
- })) && input.oneOf.map((elem, _index8) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
3891
- path: _path + ".oneOf[" + _index8 + "]",
4062
+ })) && input.oneOf.map((elem, _index12) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4063
+ path: _path + ".oneOf[" + _index12 + "]",
3892
4064
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
3893
4065
  value: elem
3894
- })) && _vu0(elem, _path + ".oneOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
3895
- path: _path + ".oneOf[" + _index8 + "]",
4066
+ })) && _vu0(elem, _path + ".oneOf[" + _index12 + "]", true && _exceptionable) || _report(_exceptionable, {
4067
+ path: _path + ".oneOf[" + _index12 + "]",
3896
4068
  expected: "(AutoBeOpenApi.IJsonSchema.IArray | AutoBeOpenApi.IJsonSchema.IBoolean | AutoBeOpenApi.IJsonSchema.IConstant | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INull | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IObject | AutoBeOpenApi.IJsonSchema.IReference | AutoBeOpenApi.IJsonSchema.IString)",
3897
4069
  value: elem
3898
4070
  })).every(flag => flag) || _report(_exceptionable, {