@autobe/agent 0.27.0 → 0.28.1

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 (109) hide show
  1. package/lib/constants/AutoBeSystemPromptConstant.d.ts +1 -1
  2. package/lib/context/assertSchemaModel.d.ts +1 -1
  3. package/lib/context/assertSchemaModel.js +4 -7
  4. package/lib/context/assertSchemaModel.js.map +1 -1
  5. package/lib/index.mjs +18186 -7689
  6. package/lib/index.mjs.map +1 -1
  7. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js +1 -1
  8. package/lib/orchestrate/analyze/histories/transformAnalyzeScenarioHistories.js.map +1 -1
  9. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js +164 -86
  10. package/lib/orchestrate/analyze/orchestrateAnalyzeReview.js.map +1 -1
  11. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js +656 -335
  12. package/lib/orchestrate/analyze/orchestrateAnalyzeScenario.js.map +1 -1
  13. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js +143 -74
  14. package/lib/orchestrate/analyze/orchestrateAnalyzeWrite.js.map +1 -1
  15. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.d.ts +17 -52
  16. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.d.ts +25 -22
  17. package/lib/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.d.ts +7 -23
  18. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js +165 -2
  19. package/lib/orchestrate/common/orchestrateCommonCorrectCasting.js.map +1 -1
  20. package/lib/orchestrate/facade/createAutoBeFacadeController.js +773 -403
  21. package/lib/orchestrate/facade/createAutoBeFacadeController.js.map +1 -1
  22. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js +749 -2
  23. package/lib/orchestrate/interface/orchestrateInterfaceAuthorizations.js.map +1 -1
  24. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js +1637 -9
  25. package/lib/orchestrate/interface/orchestrateInterfaceComplement.js.map +1 -1
  26. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js +252 -133
  27. package/lib/orchestrate/interface/orchestrateInterfaceEndpoints.js.map +1 -1
  28. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js +258 -135
  29. package/lib/orchestrate/interface/orchestrateInterfaceEndpointsReview.js.map +1 -1
  30. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js +342 -226
  31. package/lib/orchestrate/interface/orchestrateInterfaceGroups.js.map +1 -1
  32. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js +633 -1
  33. package/lib/orchestrate/interface/orchestrateInterfaceOperations.js.map +1 -1
  34. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js +785 -3
  35. package/lib/orchestrate/interface/orchestrateInterfaceOperationsReview.js.map +1 -1
  36. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js +206 -3
  37. package/lib/orchestrate/interface/orchestrateInterfacePrerequisites.js.map +1 -1
  38. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js +107 -1
  39. package/lib/orchestrate/interface/orchestrateInterfaceSchemaRename.js.map +1 -1
  40. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js +1676 -9
  41. package/lib/orchestrate/interface/orchestrateInterfaceSchemaReview.js.map +1 -1
  42. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js +1637 -9
  43. package/lib/orchestrate/interface/orchestrateInterfaceSchemas.js.map +1 -1
  44. package/lib/orchestrate/prisma/orchestratePrismaComponent.js +397 -201
  45. package/lib/orchestrate/prisma/orchestratePrismaComponent.js.map +1 -1
  46. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js +1184 -599
  47. package/lib/orchestrate/prisma/orchestratePrismaCorrect.js.map +1 -1
  48. package/lib/orchestrate/prisma/orchestratePrismaReview.js +1202 -608
  49. package/lib/orchestrate/prisma/orchestratePrismaReview.js.map +1 -1
  50. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js +4 -2
  51. package/lib/orchestrate/prisma/orchestratePrismaSchemas.js.map +1 -1
  52. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js +369 -185
  53. package/lib/orchestrate/realize/orchestrateRealizeAuthorization.js.map +1 -1
  54. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js +405 -203
  55. package/lib/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.js.map +1 -1
  56. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js +130 -2
  57. package/lib/orchestrate/realize/orchestrateRealizeCorrect.js.map +1 -1
  58. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js +165 -2
  59. package/lib/orchestrate/realize/orchestrateRealizeCorrectCasting.js.map +1 -1
  60. package/lib/orchestrate/realize/orchestrateRealizeWrite.js +130 -2
  61. package/lib/orchestrate/realize/orchestrateRealizeWrite.js.map +1 -1
  62. package/lib/orchestrate/test/histories/transformTestWriteHistories.js.map +1 -1
  63. package/lib/orchestrate/test/orchestrateTestCorrect.js +131 -2
  64. package/lib/orchestrate/test/orchestrateTestCorrect.js.map +1 -1
  65. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js +166 -2
  66. package/lib/orchestrate/test/orchestrateTestCorrectInvalidRequest.js.map +1 -1
  67. package/lib/orchestrate/test/orchestrateTestScenario.js +257 -3
  68. package/lib/orchestrate/test/orchestrateTestScenario.js.map +1 -1
  69. package/lib/orchestrate/test/orchestrateTestScenarioReview.js +283 -3
  70. package/lib/orchestrate/test/orchestrateTestScenarioReview.js.map +1 -1
  71. package/lib/orchestrate/test/orchestrateTestWrite.js +139 -2
  72. package/lib/orchestrate/test/orchestrateTestWrite.js.map +1 -1
  73. package/package.json +9 -9
  74. package/src/constants/AutoBeSystemPromptConstant.ts +1 -1
  75. package/src/context/assertSchemaModel.ts +5 -8
  76. package/src/orchestrate/analyze/orchestrateAnalyzeReview.ts +7 -9
  77. package/src/orchestrate/analyze/orchestrateAnalyzeScenario.ts +13 -9
  78. package/src/orchestrate/analyze/orchestrateAnalyzeWrite.ts +7 -9
  79. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeReviewApplication.ts +19 -54
  80. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts +25 -22
  81. package/src/orchestrate/analyze/structures/IAutoBeAnalyzeWriteApplication.ts +8 -24
  82. package/src/orchestrate/common/orchestrateCommonCorrectCasting.ts +15 -1
  83. package/src/orchestrate/facade/createAutoBeFacadeController.ts +7 -6
  84. package/src/orchestrate/interface/orchestrateInterfaceAuthorizations.ts +11 -1
  85. package/src/orchestrate/interface/orchestrateInterfaceComplement.ts +11 -1
  86. package/src/orchestrate/interface/orchestrateInterfaceEndpoints.ts +13 -9
  87. package/src/orchestrate/interface/orchestrateInterfaceEndpointsReview.ts +13 -9
  88. package/src/orchestrate/interface/orchestrateInterfaceGroups.ts +17 -14
  89. package/src/orchestrate/interface/orchestrateInterfaceOperations.ts +11 -1
  90. package/src/orchestrate/interface/orchestrateInterfaceOperationsReview.ts +14 -1
  91. package/src/orchestrate/interface/orchestrateInterfacePrerequisites.ts +11 -1
  92. package/src/orchestrate/interface/orchestrateInterfaceSchemaRename.ts +9 -1
  93. package/src/orchestrate/interface/orchestrateInterfaceSchemaReview.ts +14 -1
  94. package/src/orchestrate/interface/orchestrateInterfaceSchemas.ts +11 -1
  95. package/src/orchestrate/prisma/orchestratePrismaComponent.ts +13 -9
  96. package/src/orchestrate/prisma/orchestratePrismaCorrect.ts +7 -9
  97. package/src/orchestrate/prisma/orchestratePrismaReview.ts +7 -10
  98. package/src/orchestrate/realize/orchestrateRealizeAuthorization.ts +13 -9
  99. package/src/orchestrate/realize/orchestrateRealizeAuthorizationCorrect.ts +13 -9
  100. package/src/orchestrate/realize/orchestrateRealizeCorrect.ts +11 -1
  101. package/src/orchestrate/realize/orchestrateRealizeCorrectCasting.ts +15 -1
  102. package/src/orchestrate/realize/orchestrateRealizeWrite.ts +11 -1
  103. package/src/orchestrate/test/experimental/orchestrateTestWrite.ast +5 -1
  104. package/src/orchestrate/test/histories/transformTestWriteHistories.ts +1 -1
  105. package/src/orchestrate/test/orchestrateTestCorrect.ts +11 -1
  106. package/src/orchestrate/test/orchestrateTestCorrectInvalidRequest.ts +18 -1
  107. package/src/orchestrate/test/orchestrateTestScenario.ts +11 -1
  108. package/src/orchestrate/test/orchestrateTestScenarioReview.ts +11 -1
  109. package/src/orchestrate/test/orchestrateTestWrite.ts +11 -1
@@ -495,7 +495,11 @@ function createController(props) {
495
495
  };
496
496
  return result;
497
497
  };
498
- const application = collection[props.model === "chatgpt" ? "chatgpt" : "claude"](validate);
498
+ const application = collection[props.model === "chatgpt"
499
+ ? "chatgpt"
500
+ : props.model === "gemini"
501
+ ? "gemini"
502
+ : "claude"](validate);
499
503
  return {
500
504
  protocol: "class",
501
505
  name: "interface",
@@ -1798,5 +1802,633 @@ const collection = {
1798
1802
  }), { equals: false }));
1799
1803
  return application;
1800
1804
  })(),
1805
+ gemini: (validate) => (() => {
1806
+ const application = {
1807
+ model: "gemini",
1808
+ options: {
1809
+ reference: true,
1810
+ separate: null
1811
+ },
1812
+ functions: [
1813
+ {
1814
+ name: "makeOperations",
1815
+ parameters: {
1816
+ description: " Properties containing the operations to generate.\n\n------------------------------\n\nCurrent Type: {@link IAutoBeInterfaceOperationApplication.IProps}",
1817
+ type: "object",
1818
+ properties: {
1819
+ operations: {
1820
+ description: "Array of API operations to generate.\n\nEach operation in this array includes:\n\n- Specification: Detailed API specification with clear purpose and\n functionality\n- Path: Resource-centric URL path (e.g., \"/resources/{resourceId}\")\n- Method: HTTP method (get, post, put, delete, patch)\n- Description: Extremely detailed multi-paragraph description referencing\n Prisma schema comments\n- Summary: Concise one-sentence summary of the endpoint\n- Parameters: Array of all necessary parameters with descriptions and\n schema definitions\n- RequestBody: For POST/PUT/PATCH methods, with typeName referencing\n components.schemas\n- ResponseBody: With typeName referencing appropriate response type\n\nAll operations follow strict quality standards:\n\n1. Detailed descriptions referencing Prisma schema comments\n2. Accurate parameter definitions matching path parameters\n3. Appropriate request/response body type references\n4. Consistent patterns for CRUD operations\n\nFor list retrievals (typically PATCH), include pagination, search, and\nsorting. For detail retrieval (GET), return a single resource. For\ncreation (POST), use .ICreate request body. For modification (PUT), use\n.IUpdate request body.",
1821
+ type: "array",
1822
+ items: {
1823
+ $ref: "#/$defs/IAutoBeInterfaceOperationApplication.IOperation"
1824
+ }
1825
+ }
1826
+ },
1827
+ required: [
1828
+ "operations"
1829
+ ],
1830
+ additionalProperties: false,
1831
+ $defs: {
1832
+ "IAutoBeInterfaceOperationApplication.IOperation": {
1833
+ description: "Operation of the Restful API.\n\nThis interface defines a single API endpoint with its HTTP {@link method},\n{@link path}, {@link parameters path parameters},\n{@link requestBody request body}, and {@link responseBody} structure. It\ncorresponds to an individual operation in the paths section of an OpenAPI\ndocument.\n\nEach operation requires a detailed explanation of its purpose through the\nreason and description fields, making it clear why the API was designed and\nhow it should be used.\n\nDO: Use object types for all request bodies and responses. DO: Reference\nnamed types defined in the components section. DO: Use `application/json`\nas the content-type. DO: Use `string & tags.Format<\"uri\">` in the schema\nfor file upload/download operations instead of binary data formats.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"/shoppings/customers/orders\": {\n \"post\": {\n \"description\": \"Create a new order application from shopping cart...\",\n \"parameters\": [...],\n \"requestBody\": {...},\n \"responses\": {...}\n }\n }\n}\n```",
1834
+ type: "object",
1835
+ properties: {
1836
+ specification: {
1837
+ description: "Specification of the API operation.\n\nBefore defining the API operation interface, please describe what you're\nplanning to write in this `specification` field.\n\nThe specification must be fully detailed and clear, so that anyone can\nunderstand the purpose and functionality of the API operation and its\nrelated components (e.g., {@link path}, {@link parameters},\n{@link requestBody}).\n\nIMPORTANT: The specification MUST identify which Prisma DB table this\noperation is associated with, helping ensure complete coverage of all\ndatabase entities.",
1838
+ type: "string"
1839
+ },
1840
+ description: {
1841
+ description: "Detailed description about the API operation.\n\nIMPORTANT: This field MUST be extensively detailed and MUST reference the\ndescription comments from the related Prisma DB schema tables and\ncolumns. The description should be organized into MULTIPLE PARAGRAPHS\nseparated by line breaks to improve readability and comprehension.\n\nFor example, include separate paragraphs for:\n\n- The purpose and overview of the API operation\n- Security considerations and user permissions\n- Relationship to underlying database entities\n- Validation rules and business logic\n- Related API operations that might be used together with this one\n- Expected behavior and error handling\n\nWhen writing the description, be sure to incorporate the corresponding DB\nschema's description comments, matching the level of detail and style of\nthose comments. This ensures consistency between the API documentation\nand database structure.\n\nIf there's a dependency to other APIs, please describe the dependency API\noperation in this field with detailed reason. For example, if this API\noperation needs a pre-execution of other API operation, it must be\nexplicitly described.\n\n- `GET /shoppings/customers/sales` must be pre-executed to get entire list\n of summarized sales. Detailed sale information would be obtained by\n specifying the sale ID in the path parameter.\n\n**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this description\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\nExample of problematic description: \u274C \"This would normally be a\nsoft-delete, but we intentionally perform permanent deletion here\" - This\ntriggers soft delete validation despite being a hard delete operation.\n\n> MUST be written in English. Never use other languages.",
1842
+ type: "string"
1843
+ },
1844
+ summary: {
1845
+ description: "Short summary of the API operation.\n\nThis should be a concise description of the API operation, typically one\nsentence long. It should provide a quick overview of what the API does\nwithout going into too much detail.\n\nThis summary will be used in the OpenAPI documentation to give users a\nquick understanding of the API operation's purpose.\n\nIMPORTANT: The summary should clearly indicate which Prisma DB table this\noperation relates to, helping to ensure all tables have API coverage.\n\n**CRITICAL WARNING about soft delete keywords**: DO NOT use terms like\n\"soft delete\", \"soft-delete\", or similar variations in this summary\nUNLESS the operation actually implements soft deletion. These keywords\ntrigger validation logic that expects a corresponding soft_delete_column\nto be specified. Only use these terms when you intend to implement soft\ndeletion (marking records as deleted without removing them from the\ndatabase).\n\n> MUST be written in English. Never use other languages",
1846
+ type: "string"
1847
+ },
1848
+ parameters: {
1849
+ description: "List of path parameters.\n\nNote that, the {@link AutoBeOpenApi.IParameter.name identifier name} of\npath parameter must be corresponded to the\n{@link path API operation path}.\n\nFor example, if there's an API operation which has {@link path} of\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nits list of {@link AutoBeOpenApi.IParameter.name path parameters} must be\nlike:\n\n- `saleId`\n- `questionId`\n- `commentId`",
1850
+ type: "array",
1851
+ items: {
1852
+ $ref: "#/$defs/AutoBeOpenApi.IParameter"
1853
+ }
1854
+ },
1855
+ requestBody: {
1856
+ description: "Request body of the API operation.\n\nDefines the payload structure for the request. Contains a description and\nschema reference to define the expected input data.\n\nShould be `null` for operations that don't require a request body, such\nas most \"get\" operations.",
1857
+ anyOf: [
1858
+ {
1859
+ type: "null"
1860
+ },
1861
+ {
1862
+ $ref: "#/$defs/AutoBeOpenApi.IRequestBody"
1863
+ }
1864
+ ]
1865
+ },
1866
+ responseBody: {
1867
+ description: "Response body of the API operation.\n\nDefines the structure of the successful response data. Contains a\ndescription and schema reference for the returned data.\n\nShould be null for operations that don't return any data.",
1868
+ anyOf: [
1869
+ {
1870
+ type: "null"
1871
+ },
1872
+ {
1873
+ $ref: "#/$defs/AutoBeOpenApi.IResponseBody"
1874
+ }
1875
+ ]
1876
+ },
1877
+ name: {
1878
+ description: "Functional name of the API endpoint.\n\nThis is a semantic identifier that represents the primary function or\npurpose of the API endpoint. It serves as a canonical name that can be\nused for code generation, SDK method names, and internal references.\n\n## Reserved Word Restrictions\n\nCRITICAL: The name MUST NOT be a TypeScript/JavaScript reserved word, as\nit will be used as a class method name in generated code. Avoid names\nlike:\n\n- `delete`, `for`, `if`, `else`, `while`, `do`, `switch`, `case`, `break`\n- `continue`, `function`, `return`, `with`, `in`, `of`, `instanceof`\n- `typeof`, `void`, `var`, `let`, `const`, `class`, `extends`, `import`\n- `export`, `default`, `try`, `catch`, `finally`, `throw`, `new`\n- `super`, `this`, `null`, `true`, `false`, `async`, `await`\n- `yield`, `static`, `private`, `protected`, `public`, `implements`\n- `interface`, `package`, `enum`, `debugger`\n\nInstead, use alternative names for these operations:\n\n- Use `erase` instead of `delete`\n- Use `iterate` instead of `for`\n- Use `when` instead of `if`\n- Use `cls` instead of `class`\n\n## Standard Endpoint Names\n\nUse these conventional names based on the endpoint's primary function:\n\n- **`index`**: List/search operations that return multiple entities\n\n - Typically used with PATCH method for complex queries\n - Example: `PATCH /users` \u2192 `name: \"index\"`\n- **`at`**: Retrieve a specific entity by identifier\n\n - Typically used with GET method on single resource\n - Example: `GET /users/{userId}` \u2192 `name: \"at\"`\n- **`create`**: Create a new entity\n\n - Typically used with POST method\n - Example: `POST /users` \u2192 `name: \"create\"`\n- **`update`**: Update an existing entity\n\n - Typically used with PUT method\n - Example: `PUT /users/{userId}` \u2192 `name: \"update\"`\n- **`erase`**: Delete/remove an entity (NOT `delete` - reserved word!)\n\n - Typically used with DELETE method\n - Example: `DELETE /users/{userId}` \u2192 `name: \"erase\"`\n\n## Custom Endpoint Names\n\nFor specialized operations beyond basic CRUD, use descriptive verbs:\n\n- **`activate`**: Enable or turn on a feature/entity\n- **`deactivate`**: Disable or turn off a feature/entity\n- **`approve`**: Approve a request or entity\n- **`reject`**: Reject a request or entity\n- **`publish`**: Make content publicly available\n- **`archive`**: Move to archived state\n- **`restore`**: Restore from archived/deleted state\n- **`duplicate`**: Create a copy of an entity\n- **`transfer`**: Move ownership or change assignment\n- **`validate`**: Validate data or state\n- **`process`**: Execute a business process or workflow\n- **`export`**: Generate downloadable data\n- **`import`**: Process uploaded data\n\n## Naming Guidelines\n\n- MUST use camelCase naming convention\n- Use singular verb forms\n- Be concise but descriptive\n- Avoid abbreviations unless widely understood\n- Ensure the name clearly represents the endpoint's primary action\n- For nested resources, focus on the action rather than hierarchy\n- NEVER use JavaScript/TypeScript reserved words\n\nValid Examples:\n\n- `index`, `create`, `update`, `erase` (single word)\n- `updatePassword`, `cancelOrder`, `publishArticle` (camelCase)\n- `validateEmail`, `generateReport`, `exportData` (camelCase)\n\nInvalid Examples:\n\n- `update_password` (snake_case not allowed)\n- `UpdatePassword` (PascalCase not allowed)\n- `update-password` (kebab-case not allowed)\n\nPath to Name Examples:\n\n- `GET /shopping/orders/{orderId}/items` \u2192 `name: \"index\"` (lists items)\n- `POST /shopping/orders/{orderId}/cancel` \u2192 `name: \"cancel\"`\n- `PUT /users/{userId}/password` \u2192 `name: \"updatePassword\"`\n\n## Uniqueness Rule\n\nThe `name` must be unique within the API's accessor namespace. The\naccessor is formed by combining the path segments (excluding parameters)\nwith the operation name.\n\nAccessor formation:\n\n1. Extract non-parameter segments from the path (remove `{...}` parts)\n2. Join segments with dots\n3. Append the operation name\n\nExamples:\n\n- Path: `/shopping/sale/{saleId}/review/{reviewId}`, Name: `at` \u2192 Accessor:\n `shopping.sale.review.at`\n- Path: `/users/{userId}/posts`, Name: `index` \u2192 Accessor:\n `users.posts.index`\n- Path: `/auth/login`, Name: `signIn` \u2192 Accessor: `auth.login.signIn`\n\nEach accessor must be globally unique across the entire API. This ensures\noperations can be uniquely identified in generated SDKs and prevents\nnaming conflicts.",
1879
+ type: "string",
1880
+ pattern: "^[a-z][a-zA-Z0-9]*$"
1881
+ },
1882
+ authorizationActors: {
1883
+ description: "Authorization actors required to access this API operation.\n\nThis field specifies which user actors are allowed to access this\nendpoint. Multiple actors can be specified to allow different types of\nusers to access the same endpoint.\n\n## \u26A0\uFE0F CRITICAL: Actor Multiplication Effect\n\n**EACH ACTOR IN THIS ARRAY GENERATES A SEPARATE ENDPOINT**\n\n- If you specify `[\"admin\", \"moderator\", \"member\"]`, this creates 3\n separate endpoints\n- Total generated endpoints = operations \u00D7 average actors.length\n- Example: 100 operations with 3 actors each = 300 actual endpoints\n\n## \uD83D\uDD34 AVOID OVER-GENERATION\n\n**DO NOT create actor-specific endpoints when a public endpoint would\nsuffice:**\n\n- \u274C BAD: Separate GET endpoints for admin, member, moderator to view the\n same public data\n- \u2705 GOOD: Single public endpoint `[]` with actor-based filtering in business\n logic\n\n**DO NOT enumerate all possible actors when the Prisma schema uses a\nsingle User table:**\n\n- If Prisma has a User table with role/permission fields, you likely only\n need `[\"user\"]`\n- Avoid listing `[\"admin\", \"seller\", \"buyer\", \"moderator\", ...]`\n unnecessarily\n- The actual actor checking happens in business logic, not at the endpoint\n level\n\n## Naming Convention\n\nDO: Use camelCase for all actor names.\n\n## Important Guidelines\n\n- Set to empty array `[]` for public endpoints that require no\n authentication\n- Set to array with actor strings for actor-restricted endpoints\n- **MINIMIZE the number of actors per endpoint to prevent explosion**\n- Consider if the endpoint can be public with actor-based filtering instead\n- The actor names match exactly with the user type/actor defined in the\n database\n- This will be used by the Realize Agent to generate appropriate decorator\n and authorization logic in the provider functions\n- The controller will apply the corresponding authentication decorator\n based on these actors\n\n## Examples\n\n- `[]` - Public endpoint, no authentication required (PREFERRED for read\n operations)\n- `[\"user\"]` - Any authenticated user can access (PREFERRED for\n user-specific operations)\n- `[\"admin\"]` - Only admin users can access (USE SPARINGLY)\n- `[\"admin\", \"moderator\"]` - Both admin and moderator users can access\n (AVOID if possible)\n- `[\"seller\"]` - Only seller users can access (ONLY if Seller is a separate\n table)\n\n## Best Practices\n\n1. **Start with public `[]` for all read operations** unless sensitive data\n is involved\n2. **Use single actor `[\"user\"]` for authenticated operations** and handle\n permissions in business logic\n3. **Only use multiple actors when absolutely necessary** for different\n business logic paths\n4. **Remember: Fewer actors = Fewer endpoints = Better performance and\n maintainability**\n\nNote: The actual authentication/authorization implementation will be\nhandled by decorators at the controller level, and the provider function\nwill receive the authenticated user object with the appropriate type.",
1884
+ type: "array",
1885
+ items: {
1886
+ type: "string",
1887
+ pattern: "^[a-z][a-zA-Z0-9]*$",
1888
+ minLength: 1
1889
+ }
1890
+ },
1891
+ path: {
1892
+ description: "HTTP path of the API operation.\n\nThe URL path for accessing this API operation, using path parameters\nenclosed in curly braces (e.g., `/shoppings/customers/sales/{saleId}`).\n\nIt must be corresponded to the {@link parameters path parameters}.\n\nThe path structure should clearly indicate which database entity this\noperation is manipulating, helping to ensure all entities have\nappropriate API coverage.\n\nPath validation rules:\n\n- Must start with a forward slash (/)\n- Can contain only: letters (a-z, A-Z), numbers (0-9), forward slashes (/),\n curly braces for parameters ({paramName}), hyphens (-), and underscores\n (_)\n- Parameters must be enclosed in curly braces: {paramName}\n- Resource names should be in camelCase\n- No quotes, spaces, or invalid special characters allowed\n- No domain or role-based prefixes\n\nValid examples:\n\n- \"/users\"\n- \"/users/{userId}\"\n- \"/articles/{articleId}/comments\"\n- \"/attachmentFiles\"\n- \"/orders/{orderId}/items/{itemId}\"\n\nInvalid examples:\n\n- \"'/users'\" (contains quotes)\n- \"/user profile\" (contains space)\n- \"/users/[userId]\" (wrong bracket format)\n- \"/admin/users\" (role prefix)\n- \"/api/v1/users\" (API prefix)",
1893
+ type: "string",
1894
+ pattern: "^\\/[a-zA-Z0-9\\/_{}.-]*$"
1895
+ },
1896
+ method: {
1897
+ description: "HTTP method of the API operation.\n\n**IMPORTANT**: Methods must be written in lowercase only (e.g., \"get\",\nnot \"GET\").\n\nNote that, if the API operation has {@link requestBody}, method must not\nbe `get`.\n\nAlso, even though the API operation has been designed to only get\ninformation, but it needs complicated request information, it must be\ndefined as `patch` method with {@link requestBody} data specification.\n\n- `get`: get information\n- `patch`: get information with complicated request data\n ({@link requestBody})\n- `post`: create new record\n- `put`: update existing record\n- `delete`: remove record",
1898
+ type: "string",
1899
+ "enum": [
1900
+ "get",
1901
+ "post",
1902
+ "put",
1903
+ "delete",
1904
+ "patch"
1905
+ ]
1906
+ }
1907
+ },
1908
+ required: [
1909
+ "specification",
1910
+ "description",
1911
+ "summary",
1912
+ "parameters",
1913
+ "requestBody",
1914
+ "responseBody",
1915
+ "name",
1916
+ "authorizationActors",
1917
+ "path",
1918
+ "method"
1919
+ ]
1920
+ },
1921
+ "AutoBeOpenApi.IParameter": {
1922
+ description: "Path parameter information for API routes.\n\nThis interface defines a path parameter that appears in the URL of an API\nendpoint. Path parameters are enclosed in curly braces in the\n{@link AutoBeOpenApi.IOperation.path operation path} and must be defined\nwith their types and descriptions.\n\nFor example, if API operation path is\n`/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}`,\nthe path parameters should be like below:\n\n```json\n{\n \"path\": \"/shoppings/customers/sales/{saleId}/questions/${questionId}/comments/${commentId}\",\n \"method\": \"get\",\n \"parameters\": [\n {\n \"name\": \"saleId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target sale's ID\"\n },\n {\n \"name\": \"questionId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target question's ID\"\n },\n {\n \"name\": \"commentId\",\n \"in\": \"path\",\n \"schema\": { \"type\": \"string\", \"format\": \"uuid\" },\n \"description\": \"Target comment's ID\"\n }\n ]\n}\n```",
1923
+ type: "object",
1924
+ properties: {
1925
+ name: {
1926
+ description: "Identifier name of the path parameter.\n\nThis name must match exactly with the parameter name in the route path.\nIt must be corresponded to the\n{@link AutoBeOpenApi.IOperation.path API operation path}.\n\nMUST use camelCase naming convention.",
1927
+ type: "string",
1928
+ pattern: "^[a-z][a-zA-Z0-9]*$"
1929
+ },
1930
+ description: {
1931
+ description: "Description about the path parameter.\n\nMake short, concise and clear description about the path parameter.\n\n> MUST be written in English. Never use other languages.",
1932
+ type: "string"
1933
+ },
1934
+ schema: {
1935
+ description: "Type schema of the path parameter.\n\nPath parameters are typically primitive types like\n{@link AutoBeOpenApi.IJsonSchema.IString strings},\n{@link AutoBeOpenApi.IJsonSchema.IInteger integers},\n{@link AutoBeOpenApi.IJsonSchema.INumber numbers}.\n\nIf you need other types, please use request body instead with object type\nencapsulation.",
1936
+ anyOf: [
1937
+ {
1938
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber"
1939
+ },
1940
+ {
1941
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger"
1942
+ },
1943
+ {
1944
+ $ref: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
1945
+ }
1946
+ ],
1947
+ "x-discriminator": {
1948
+ propertyName: "type",
1949
+ mapping: {
1950
+ number: "#/$defs/AutoBeOpenApi.IJsonSchema.INumber",
1951
+ integer: "#/$defs/AutoBeOpenApi.IJsonSchema.IInteger",
1952
+ string: "#/$defs/AutoBeOpenApi.IJsonSchema.IString"
1953
+ }
1954
+ }
1955
+ }
1956
+ },
1957
+ required: [
1958
+ "name",
1959
+ "description",
1960
+ "schema"
1961
+ ]
1962
+ },
1963
+ "AutoBeOpenApi.IJsonSchema.INumber": {
1964
+ description: "Number (double) type info.",
1965
+ type: "object",
1966
+ properties: {
1967
+ minimum: {
1968
+ description: "Minimum value restriction.",
1969
+ type: "number"
1970
+ },
1971
+ maximum: {
1972
+ description: "Maximum value restriction.",
1973
+ type: "number"
1974
+ },
1975
+ exclusiveMinimum: {
1976
+ description: "Exclusive minimum value restriction.",
1977
+ type: "number"
1978
+ },
1979
+ exclusiveMaximum: {
1980
+ description: "Exclusive maximum value restriction.",
1981
+ type: "number"
1982
+ },
1983
+ multipleOf: {
1984
+ description: "Multiple of value restriction.",
1985
+ type: "number",
1986
+ exclusiveMinimum: 0
1987
+ },
1988
+ type: {
1989
+ description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
1990
+ type: "string",
1991
+ "enum": [
1992
+ "number"
1993
+ ]
1994
+ }
1995
+ },
1996
+ required: [
1997
+ "type"
1998
+ ]
1999
+ },
2000
+ "AutoBeOpenApi.IJsonSchema.IInteger": {
2001
+ description: "Integer type info.",
2002
+ type: "object",
2003
+ properties: {
2004
+ minimum: {
2005
+ description: "Minimum value restriction.",
2006
+ type: "integer"
2007
+ },
2008
+ maximum: {
2009
+ description: "Maximum value restriction.",
2010
+ type: "integer"
2011
+ },
2012
+ exclusiveMinimum: {
2013
+ description: "Exclusive minimum value restriction.",
2014
+ type: "number"
2015
+ },
2016
+ exclusiveMaximum: {
2017
+ description: "Exclusive maximum value restriction.",
2018
+ type: "number"
2019
+ },
2020
+ multipleOf: {
2021
+ description: "Multiple of value restriction.",
2022
+ type: "integer",
2023
+ exclusiveMinimum: 0
2024
+ },
2025
+ type: {
2026
+ description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
2027
+ type: "string",
2028
+ "enum": [
2029
+ "integer"
2030
+ ]
2031
+ }
2032
+ },
2033
+ required: [
2034
+ "type"
2035
+ ]
2036
+ },
2037
+ "AutoBeOpenApi.IJsonSchema.IString": {
2038
+ description: "String type info.",
2039
+ type: "object",
2040
+ properties: {
2041
+ format: {
2042
+ description: "Format restriction.",
2043
+ type: "string",
2044
+ "enum": [
2045
+ "date-time",
2046
+ "password",
2047
+ "regex",
2048
+ "uuid",
2049
+ "email",
2050
+ "hostname",
2051
+ "idn-email",
2052
+ "idn-hostname",
2053
+ "iri",
2054
+ "iri-reference",
2055
+ "ipv4",
2056
+ "ipv6",
2057
+ "uri",
2058
+ "uri-reference",
2059
+ "uri-template",
2060
+ "url",
2061
+ "date",
2062
+ "time",
2063
+ "duration",
2064
+ "json-pointer",
2065
+ "relative-json-pointer"
2066
+ ]
2067
+ },
2068
+ pattern: {
2069
+ description: "Pattern restriction.",
2070
+ type: "string"
2071
+ },
2072
+ contentMediaType: {
2073
+ description: "Content media type restriction.",
2074
+ type: "string"
2075
+ },
2076
+ minLength: {
2077
+ description: "Minimum length restriction.",
2078
+ type: "integer",
2079
+ minimum: 0
2080
+ },
2081
+ maxLength: {
2082
+ description: "Maximum length restriction.",
2083
+ type: "integer",
2084
+ minimum: 0
2085
+ },
2086
+ type: {
2087
+ description: "Discriminator value of the type.\n\nCRITICAL: This MUST be a SINGLE string value, NOT an array. The type\nfield identifies the JSON Schema type and must be exactly one of:\n\"boolean\", \"integer\", \"number\", \"string\", \"array\", \"object\", or\n\"null\".\n\n\u274C INCORRECT: type: [\"string\", \"null\"] // This is WRONG! \u2705 CORRECT:\ntype: \"string\" // For nullable string, use oneOf instead\n\nIf you need to express a nullable type (e.g., string | null), you MUST\nuse the `IOneOf` structure:\n\n```typescript\n{\n \"oneOf\": [{ \"type\": \"string\" }, { \"type\": \"null\" }]\n}\n```\n\nNEVER use array notation in the type field. The type field is a\ndiscriminator that accepts only a single string value.",
2088
+ type: "string",
2089
+ "enum": [
2090
+ "string"
2091
+ ]
2092
+ }
2093
+ },
2094
+ required: [
2095
+ "type"
2096
+ ]
2097
+ },
2098
+ "AutoBeOpenApi.IRequestBody": {
2099
+ description: "Request body information of OpenAPI operation.\n\nThis interface defines the structure for request bodies in API routes. It\ncorresponds to the requestBody section in OpenAPI specifications, providing\nboth a description and schema reference for the request payload.\n\nThe content-type for all request bodies is always `application/json`. Even\nwhen file uploading is required, don't use `multipart/form-data` or\n`application/x-www-form-urlencoded` content types. Instead, just define an\nURI string property in the request body schema.\n\nNote that, all body schemas must be transformable to a\n{@link AutoBeOpenApi.IJsonSchema.IReference reference} type defined in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"requestBody\": {\n \"description\": \"Creation info of the order\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n }\n }\n }\n}\n```",
2100
+ type: "object",
2101
+ properties: {
2102
+ description: {
2103
+ description: "Description about the request body.\n\nMake short, concise and clear description about the request body.\n\n> MUST be written in English. Never use other languages.",
2104
+ type: "string"
2105
+ },
2106
+ typeName: {
2107
+ description: "Request body type name.\n\nThis specifies the data structure expected in the request body, that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference reference}\ntype in the {@link AutoBeOpenApi.IComponents.schemas components section}\nas an {@link AutoBeOpenApi.IJsonSchema.Object object} type.\n\nHere is the naming convention for the request body type:\n\n- `IEntityName.ICreate`: Request body for creation operations (POST)\n- `IEntityName.IUpdate`: Request body for update operations (PUT)\n- `IEntityName.IRequest`: Request parameters for list operations (often\n with search/pagination)\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder.ICreate\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder.ICreate\"\n }\n}\n```",
2108
+ type: "string"
2109
+ }
2110
+ },
2111
+ required: [
2112
+ "description",
2113
+ "typeName"
2114
+ ]
2115
+ },
2116
+ "AutoBeOpenApi.IResponseBody": {
2117
+ description: "Response body information for OpenAPI operation.\n\nThis interface defines the structure of a successful response from an API\noperation. It provides a description of the response and a schema reference\nto define the returned data structure.\n\nThe content-type for all responses is always `application/json`. Even when\nfile downloading is required, don't use `application/octet-stream` or\n`multipart/form-data` content types. Instead, just define an URI string\nproperty in the response body schema.\n\nIn OpenAPI, this might represent:\n\n```json\n{\n \"responses\": {\n \"200\": {\n \"description\": \"Order information\",\n \"content\": {\n \"application/json\": {\n \"schema\": { \"$ref\": \"#/components/schemas/IShoppingOrder\" }\n }\n }\n }\n }\n}\n```",
2118
+ type: "object",
2119
+ properties: {
2120
+ description: {
2121
+ description: "Description about the response body.\n\nMake short, concise and clear description about the response body.\n\n> MUST be written in English. Never use other languages.",
2122
+ type: "string"
2123
+ },
2124
+ typeName: {
2125
+ description: "Response body's data type.\n\nSpecifies the structure of the returned data (response body), that will\nbe transformed to {@link AutoBeOpenApi.IJsonSchema.IReference} type in the\n{@link AutoBeOpenApi.IComponents.schemas components section} as an\n{@link AutoBeOpenApi.IJsonSchema.IObject object} type.\n\nHere is the naming convention for the response body type:\n\n- `IEntityName`: Main entity with detailed information (e.g.,\n `IShoppingSale`)\n- `IEntityName.ISummary`: Simplified response version with essential\n properties\n- `IEntityName.IInvert`: Alternative view of an entity from a different\n perspective\n- `IPageIEntityName`: Paginated results container with `pagination` and\n `data` properties\n\nWhat you write:\n\n```json\n{\n \"typeName\": \"IShoppingOrder\"\n}\n```\n\nTransformed to:\n\n```json\n{\n \"schema\": {\n \"$ref\": \"#/components/schemas/IShoppingOrder\"\n }\n}\n```",
2126
+ type: "string"
2127
+ }
2128
+ },
2129
+ required: [
2130
+ "description",
2131
+ "typeName"
2132
+ ]
2133
+ }
2134
+ }
2135
+ },
2136
+ description: "Generate detailed API operations from path/method combinations.\n\nThis function creates complete API operations following REST principles and\nquality standards. Each generated operation includes specification, path,\nmethod, detailed multi-paragraph description, concise summary, parameters,\nand appropriate request/response bodies.\n\nThe function processes as many operations as possible in a single call,\nwith progress tracking to ensure iterative completion of all required\nendpoints.",
2137
+ validate: (() => { const _iv4 = 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 => Array.isArray(input.operations) && input.operations.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.specification && "string" === typeof input.description && "string" === typeof input.summary && (Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (null === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && _io6(input.requestBody)) && (null === input.responseBody || "object" === typeof input.responseBody && null !== input.responseBody && _io7(input.responseBody)) && ("string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name)) && (Array.isArray(input.authorizationActors) && input.authorizationActors.every(elem => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) && 1 <= elem.length))) && ("string" === typeof input.path && RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path)) && ("get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method); const _io2 = input => "string" === typeof input.name && RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) && "string" === typeof input.description && ("object" === typeof input.schema && null !== input.schema && _iu0(input.schema)); const _io3 = 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 _io4 = 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 _io5 = input => (undefined === input.format || true === _iv4.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 _io6 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _io7 = input => "string" === typeof input.description && "string" === typeof input.typeName; const _iu0 = input => (() => {
2138
+ if ("number" === input.type)
2139
+ return _io4(input);
2140
+ else if ("integer" === input.type)
2141
+ return _io3(input);
2142
+ else if ("string" === input.type)
2143
+ return _io5(input);
2144
+ else
2145
+ return false;
2146
+ })(); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.operations) || _report(_exceptionable, {
2147
+ path: _path + ".operations",
2148
+ expected: "Array<IAutoBeInterfaceOperationApplication.IOperation>",
2149
+ value: input.operations
2150
+ })) && input.operations.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2151
+ path: _path + ".operations[" + _index5 + "]",
2152
+ expected: "IAutoBeInterfaceOperationApplication.IOperation",
2153
+ value: elem
2154
+ })) && _vo1(elem, _path + ".operations[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
2155
+ path: _path + ".operations[" + _index5 + "]",
2156
+ expected: "IAutoBeInterfaceOperationApplication.IOperation",
2157
+ value: elem
2158
+ })).every(flag => flag) || _report(_exceptionable, {
2159
+ path: _path + ".operations",
2160
+ expected: "Array<IAutoBeInterfaceOperationApplication.IOperation>",
2161
+ value: input.operations
2162
+ })].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.specification || _report(_exceptionable, {
2163
+ path: _path + ".specification",
2164
+ expected: "string",
2165
+ value: input.specification
2166
+ }), "string" === typeof input.description || _report(_exceptionable, {
2167
+ path: _path + ".description",
2168
+ expected: "string",
2169
+ value: input.description
2170
+ }), "string" === typeof input.summary || _report(_exceptionable, {
2171
+ path: _path + ".summary",
2172
+ expected: "string",
2173
+ value: input.summary
2174
+ }), (Array.isArray(input.parameters) || _report(_exceptionable, {
2175
+ path: _path + ".parameters",
2176
+ expected: "Array<AutoBeOpenApi.IParameter>",
2177
+ value: input.parameters
2178
+ })) && input.parameters.map((elem, _index6) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2179
+ path: _path + ".parameters[" + _index6 + "]",
2180
+ expected: "AutoBeOpenApi.IParameter",
2181
+ value: elem
2182
+ })) && _vo2(elem, _path + ".parameters[" + _index6 + "]", true && _exceptionable) || _report(_exceptionable, {
2183
+ path: _path + ".parameters[" + _index6 + "]",
2184
+ expected: "AutoBeOpenApi.IParameter",
2185
+ value: elem
2186
+ })).every(flag => flag) || _report(_exceptionable, {
2187
+ path: _path + ".parameters",
2188
+ expected: "Array<AutoBeOpenApi.IParameter>",
2189
+ value: input.parameters
2190
+ }), null === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || _report(_exceptionable, {
2191
+ path: _path + ".requestBody",
2192
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
2193
+ value: input.requestBody
2194
+ })) && _vo6(input.requestBody, _path + ".requestBody", true && _exceptionable) || _report(_exceptionable, {
2195
+ path: _path + ".requestBody",
2196
+ expected: "(AutoBeOpenApi.IRequestBody | null)",
2197
+ value: input.requestBody
2198
+ }), null === input.responseBody || ("object" === typeof input.responseBody && null !== input.responseBody || _report(_exceptionable, {
2199
+ path: _path + ".responseBody",
2200
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
2201
+ value: input.responseBody
2202
+ })) && _vo7(input.responseBody, _path + ".responseBody", true && _exceptionable) || _report(_exceptionable, {
2203
+ path: _path + ".responseBody",
2204
+ expected: "(AutoBeOpenApi.IResponseBody | null)",
2205
+ value: input.responseBody
2206
+ }), "string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
2207
+ path: _path + ".name",
2208
+ expected: "string & CamelCasePattern",
2209
+ value: input.name
2210
+ })) || _report(_exceptionable, {
2211
+ path: _path + ".name",
2212
+ expected: "(string & CamelCasePattern)",
2213
+ value: input.name
2214
+ }), (Array.isArray(input.authorizationActors) || _report(_exceptionable, {
2215
+ path: _path + ".authorizationActors",
2216
+ expected: "Array<string & CamelCasePattern & MinLength<1>>",
2217
+ value: input.authorizationActors
2218
+ })) && input.authorizationActors.map((elem, _index7) => "string" === typeof elem && (RegExp("^[a-z][a-zA-Z0-9]*$").test(elem) || _report(_exceptionable, {
2219
+ path: _path + ".authorizationActors[" + _index7 + "]",
2220
+ expected: "string & CamelCasePattern",
2221
+ value: elem
2222
+ })) && (1 <= elem.length || _report(_exceptionable, {
2223
+ path: _path + ".authorizationActors[" + _index7 + "]",
2224
+ expected: "string & MinLength<1>",
2225
+ value: elem
2226
+ })) || _report(_exceptionable, {
2227
+ path: _path + ".authorizationActors[" + _index7 + "]",
2228
+ expected: "(string & CamelCasePattern & MinLength<1>)",
2229
+ value: elem
2230
+ })).every(flag => flag) || _report(_exceptionable, {
2231
+ path: _path + ".authorizationActors",
2232
+ expected: "Array<string & CamelCasePattern & MinLength<1>>",
2233
+ value: input.authorizationActors
2234
+ }), "string" === typeof input.path && (RegExp("^\\/[a-zA-Z0-9\\/_{}.-]*$").test(input.path) || _report(_exceptionable, {
2235
+ path: _path + ".path",
2236
+ expected: "string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">",
2237
+ value: input.path
2238
+ })) || _report(_exceptionable, {
2239
+ path: _path + ".path",
2240
+ expected: "(string & Pattern<\"^\\\\/[a-zA-Z0-9\\\\/_{}.-]*$\">)",
2241
+ value: input.path
2242
+ }), "get" === input.method || "post" === input.method || "put" === input.method || "delete" === input.method || "patch" === input.method || _report(_exceptionable, {
2243
+ path: _path + ".method",
2244
+ expected: "(\"delete\" | \"get\" | \"patch\" | \"post\" | \"put\")",
2245
+ value: input.method
2246
+ })].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name && (RegExp("^[a-z][a-zA-Z0-9]*$").test(input.name) || _report(_exceptionable, {
2247
+ path: _path + ".name",
2248
+ expected: "string & CamelCasePattern",
2249
+ value: input.name
2250
+ })) || _report(_exceptionable, {
2251
+ path: _path + ".name",
2252
+ expected: "(string & CamelCasePattern)",
2253
+ value: input.name
2254
+ }), "string" === typeof input.description || _report(_exceptionable, {
2255
+ path: _path + ".description",
2256
+ expected: "string",
2257
+ value: input.description
2258
+ }), ("object" === typeof input.schema && null !== input.schema || _report(_exceptionable, {
2259
+ path: _path + ".schema",
2260
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
2261
+ value: input.schema
2262
+ })) && _vu0(input.schema, _path + ".schema", true && _exceptionable) || _report(_exceptionable, {
2263
+ path: _path + ".schema",
2264
+ expected: "(AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IString)",
2265
+ value: input.schema
2266
+ })].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000 || _report(_exceptionable, {
2267
+ path: _path + ".minimum",
2268
+ expected: "number & Type<\"int64\">",
2269
+ value: input.minimum
2270
+ })) || _report(_exceptionable, {
2271
+ path: _path + ".minimum",
2272
+ expected: "((number & Type<\"int64\">) | undefined)",
2273
+ value: input.minimum
2274
+ }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000 || _report(_exceptionable, {
2275
+ path: _path + ".maximum",
2276
+ expected: "number & Type<\"int64\">",
2277
+ value: input.maximum
2278
+ })) || _report(_exceptionable, {
2279
+ path: _path + ".maximum",
2280
+ expected: "((number & Type<\"int64\">) | undefined)",
2281
+ value: input.maximum
2282
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
2283
+ path: _path + ".exclusiveMinimum",
2284
+ expected: "(number | undefined)",
2285
+ value: input.exclusiveMinimum
2286
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
2287
+ path: _path + ".exclusiveMaximum",
2288
+ expected: "(number | undefined)",
2289
+ value: input.exclusiveMaximum
2290
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 || _report(_exceptionable, {
2291
+ path: _path + ".multipleOf",
2292
+ expected: "number & Type<\"uint64\">",
2293
+ value: input.multipleOf
2294
+ })) && (0 < input.multipleOf || _report(_exceptionable, {
2295
+ path: _path + ".multipleOf",
2296
+ expected: "number & ExclusiveMinimum<0>",
2297
+ value: input.multipleOf
2298
+ })) || _report(_exceptionable, {
2299
+ path: _path + ".multipleOf",
2300
+ expected: "((number & Type<\"uint64\"> & ExclusiveMinimum<0>) | undefined)",
2301
+ value: input.multipleOf
2302
+ }), "integer" === input.type || _report(_exceptionable, {
2303
+ path: _path + ".type",
2304
+ expected: "\"integer\"",
2305
+ value: input.type
2306
+ })].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
2307
+ path: _path + ".minimum",
2308
+ expected: "(number | undefined)",
2309
+ value: input.minimum
2310
+ }), undefined === input.maximum || "number" === typeof input.maximum || _report(_exceptionable, {
2311
+ path: _path + ".maximum",
2312
+ expected: "(number | undefined)",
2313
+ value: input.maximum
2314
+ }), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
2315
+ path: _path + ".exclusiveMinimum",
2316
+ expected: "(number | undefined)",
2317
+ value: input.exclusiveMinimum
2318
+ }), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
2319
+ path: _path + ".exclusiveMaximum",
2320
+ expected: "(number | undefined)",
2321
+ value: input.exclusiveMaximum
2322
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
2323
+ path: _path + ".multipleOf",
2324
+ expected: "number & ExclusiveMinimum<0>",
2325
+ value: input.multipleOf
2326
+ })) || _report(_exceptionable, {
2327
+ path: _path + ".multipleOf",
2328
+ expected: "((number & ExclusiveMinimum<0>) | undefined)",
2329
+ value: input.multipleOf
2330
+ }), "number" === input.type || _report(_exceptionable, {
2331
+ path: _path + ".type",
2332
+ expected: "\"number\"",
2333
+ value: input.type
2334
+ })].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.format || true === _vv8.has(input.format) || _report(_exceptionable, {
2335
+ path: _path + ".format",
2336
+ 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)",
2337
+ value: input.format
2338
+ }), undefined === input.pattern || "string" === typeof input.pattern || _report(_exceptionable, {
2339
+ path: _path + ".pattern",
2340
+ expected: "(string | undefined)",
2341
+ value: input.pattern
2342
+ }), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
2343
+ path: _path + ".contentMediaType",
2344
+ expected: "(string | undefined)",
2345
+ value: input.contentMediaType
2346
+ }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || _report(_exceptionable, {
2347
+ path: _path + ".minLength",
2348
+ expected: "number & Type<\"uint64\">",
2349
+ value: input.minLength
2350
+ })) || _report(_exceptionable, {
2351
+ path: _path + ".minLength",
2352
+ expected: "((number & Type<\"uint64\">) | undefined)",
2353
+ value: input.minLength
2354
+ }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000 || _report(_exceptionable, {
2355
+ path: _path + ".maxLength",
2356
+ expected: "number & Type<\"uint64\">",
2357
+ value: input.maxLength
2358
+ })) || _report(_exceptionable, {
2359
+ path: _path + ".maxLength",
2360
+ expected: "((number & Type<\"uint64\">) | undefined)",
2361
+ value: input.maxLength
2362
+ }), "string" === input.type || _report(_exceptionable, {
2363
+ path: _path + ".type",
2364
+ expected: "\"string\"",
2365
+ value: input.type
2366
+ })].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
2367
+ path: _path + ".description",
2368
+ expected: "string",
2369
+ value: input.description
2370
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
2371
+ path: _path + ".typeName",
2372
+ expected: "string",
2373
+ value: input.typeName
2374
+ })].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.description || _report(_exceptionable, {
2375
+ path: _path + ".description",
2376
+ expected: "string",
2377
+ value: input.description
2378
+ }), "string" === typeof input.typeName || _report(_exceptionable, {
2379
+ path: _path + ".typeName",
2380
+ expected: "string",
2381
+ value: input.typeName
2382
+ })].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
2383
+ if ("number" === input.type)
2384
+ return _vo4(input, _path, true && _exceptionable);
2385
+ else if ("integer" === input.type)
2386
+ return _vo3(input, _path, true && _exceptionable);
2387
+ else if ("string" === input.type)
2388
+ return _vo5(input, _path, true && _exceptionable);
2389
+ else
2390
+ return _report(_exceptionable, {
2391
+ path: _path,
2392
+ expected: "(AutoBeOpenApi.IJsonSchema.INumber | AutoBeOpenApi.IJsonSchema.IInteger | AutoBeOpenApi.IJsonSchema.IString)",
2393
+ value: input
2394
+ });
2395
+ })(); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
2396
+ if (false === __is(input)) {
2397
+ errors = [];
2398
+ _report = __typia_transform__validateReport._validateReport(errors);
2399
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
2400
+ path: _path + "",
2401
+ expected: "IAutoBeInterfaceOperationApplication.IProps",
2402
+ value: input
2403
+ })) && _vo0(input, _path + "", true) || _report(true, {
2404
+ path: _path + "",
2405
+ expected: "IAutoBeInterfaceOperationApplication.IProps",
2406
+ value: input
2407
+ }))(input, "$input", true);
2408
+ const success = 0 === errors.length;
2409
+ return success ? {
2410
+ success,
2411
+ data: input
2412
+ } : {
2413
+ success,
2414
+ errors,
2415
+ data: input
2416
+ };
2417
+ }
2418
+ return {
2419
+ success: true,
2420
+ data: input
2421
+ };
2422
+ }; })()
2423
+ }
2424
+ ]
2425
+ };
2426
+ __typia_transform__llmApplicationFinalize._llmApplicationFinalize(application, Object.assign(Object.assign({}, {
2427
+ validate: {
2428
+ makeOperations: validate,
2429
+ },
2430
+ }), { equals: false }));
2431
+ return application;
2432
+ })(),
1801
2433
  };
1802
2434
  //# sourceMappingURL=orchestrateInterfaceOperations.js.map