@ai-grator/api 0.0.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.
- package/_common/error.contract.ts +21 -0
- package/_common/http-contract.helper.ts +25 -0
- package/_common/index.ts +4 -0
- package/_common/success.contract.ts +9 -0
- package/_common/types/cursor-pagination.type.ts +9 -0
- package/_common/types/icon.type.ts +8 -0
- package/_common/types/index.ts +2 -0
- package/admin/endpoints/admin.ts +13 -0
- package/admin/endpoints/commands/create-admin-partner-bonus-operation.command.ts +45 -0
- package/admin/endpoints/commands/index.ts +3 -0
- package/admin/endpoints/commands/update-admin-partner-referral-config.command.ts +48 -0
- package/admin/endpoints/commands/update-admin-referral-config.command.ts +39 -0
- package/admin/endpoints/index.ts +3 -0
- package/admin/endpoints/queries/get-admin-partner-bonus-operations.query.ts +39 -0
- package/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.ts +37 -0
- package/admin/endpoints/queries/get-admin-partner-referral-config.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-partner-referrals.query.ts +37 -0
- package/admin/endpoints/queries/get-admin-partner.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-partners.query.ts +36 -0
- package/admin/endpoints/queries/get-admin-referral-config.query.ts +17 -0
- package/admin/endpoints/queries/index.ts +7 -0
- package/admin/enums/admin-bonus-history-operation-type.enum.ts +6 -0
- package/admin/enums/admin-bonus-operation-type.enum.ts +4 -0
- package/admin/enums/admin-partner-rates-type.enum.ts +4 -0
- package/admin/enums/index.ts +3 -0
- package/admin/index.ts +3 -0
- package/admin/models/admin-bonus-operation-response.schema.ts +16 -0
- package/admin/models/admin-partner-bonus-operation-response.schema.ts +13 -0
- package/admin/models/admin-partner-details-response.schema.ts +17 -0
- package/admin/models/admin-partner-l2-bonus-response.schema.ts +11 -0
- package/admin/models/admin-partner-referral-config-response.schema.ts +13 -0
- package/admin/models/admin-partner-referral-response.schema.ts +13 -0
- package/admin/models/admin-partner-response.schema.ts +18 -0
- package/admin/models/admin-referral-config-response.schema.ts +8 -0
- package/admin/models/index.ts +8 -0
- package/ai-model/endpoints/ai-model.ts +6 -0
- package/ai-model/endpoints/index.ts +2 -0
- package/ai-model/endpoints/queries/get-ai-model-by-uuid.query.ts +24 -0
- package/ai-model/endpoints/queries/get-ai-models.query.ts +23 -0
- package/ai-model/endpoints/queries/index.ts +2 -0
- package/ai-model/index.ts +2 -0
- package/ai-model/models/ai-model-response.schema.ts +34 -0
- package/ai-model/models/index.ts +1 -0
- package/article/endpoints/article.ts +17 -0
- package/article/endpoints/commands/create-article.command.ts +38 -0
- package/article/endpoints/commands/delete-article.command.ts +25 -0
- package/article/endpoints/commands/index.ts +4 -0
- package/article/endpoints/commands/publish-article.command.ts +26 -0
- package/article/endpoints/commands/update-article.command.ts +49 -0
- package/article/endpoints/index.ts +3 -0
- package/article/endpoints/queries/get-article-by-uuid.query.ts +26 -0
- package/article/endpoints/queries/get-articles.query.ts +27 -0
- package/article/endpoints/queries/get-published-by-slug.query.ts +24 -0
- package/article/endpoints/queries/index.ts +4 -0
- package/article/endpoints/queries/list-published.query.ts +28 -0
- package/article/enums/article-status.enum.ts +4 -0
- package/article/enums/index.ts +1 -0
- package/article/index.ts +3 -0
- package/article/models/article-content.schema.ts +13 -0
- package/article/models/article-response.schema.ts +21 -0
- package/article/models/index.ts +4 -0
- package/article/models/published-article-card.schema.ts +19 -0
- package/article/models/published-article-detail.schema.ts +22 -0
- package/auth/endpoints/auth.ts +14 -0
- package/auth/endpoints/commands/change-password.command.ts +28 -0
- package/auth/endpoints/commands/delete-account.command.ts +17 -0
- package/auth/endpoints/commands/index.ts +10 -0
- package/auth/endpoints/commands/login.command.ts +29 -0
- package/auth/endpoints/commands/logout.command.ts +16 -0
- package/auth/endpoints/commands/refresh.command.ts +19 -0
- package/auth/endpoints/commands/register.command.ts +35 -0
- package/auth/endpoints/commands/reset-password.command.ts +25 -0
- package/auth/endpoints/commands/restore-password.command.ts +26 -0
- package/auth/endpoints/commands/verify-email-retry.command.ts +28 -0
- package/auth/endpoints/commands/verify-email.command.ts +28 -0
- package/auth/endpoints/index.ts +2 -0
- package/auth/index.ts +1 -0
- package/build/_common/error.contract.d.ts +13 -0
- package/build/_common/error.contract.d.ts.map +1 -0
- package/build/_common/error.contract.js +17 -0
- package/build/_common/http-contract.helper.d.ts +21 -0
- package/build/_common/http-contract.helper.d.ts.map +1 -0
- package/build/_common/http-contract.helper.js +15 -0
- package/build/_common/index.d.ts +5 -0
- package/build/_common/index.d.ts.map +1 -0
- package/build/_common/index.js +20 -0
- package/build/_common/success.contract.d.ts +6 -0
- package/build/_common/success.contract.d.ts.map +1 -0
- package/build/_common/success.contract.js +7 -0
- package/build/_common/types/cursor-pagination.type.d.ts +7 -0
- package/build/_common/types/cursor-pagination.type.d.ts.map +1 -0
- package/build/_common/types/cursor-pagination.type.js +10 -0
- package/build/_common/types/icon.type.d.ts +7 -0
- package/build/_common/types/icon.type.d.ts.map +1 -0
- package/build/_common/types/icon.type.js +8 -0
- package/build/_common/types/index.d.ts +3 -0
- package/build/_common/types/index.d.ts.map +1 -0
- package/build/_common/types/index.js +18 -0
- package/build/admin/endpoints/admin.d.ts +13 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -0
- package/build/admin/endpoints/admin.js +15 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts +59 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.js +34 -0
- package/build/admin/endpoints/commands/index.d.ts +4 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -0
- package/build/admin/endpoints/commands/index.js +19 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts +93 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.js +37 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts +58 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-referral-config.command.js +36 -0
- package/build/admin/endpoints/index.d.ts +4 -0
- package/build/admin/endpoints/index.d.ts.map +1 -0
- package/build/admin/endpoints/index.js +19 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts +57 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts +55 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts +74 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts +59 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner-referrals.query.js +32 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.d.ts +46 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partner.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.d.ts +65 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-partners.query.js +33 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts +34 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-referral-config.query.js +18 -0
- package/build/admin/endpoints/queries/index.d.ts +8 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -0
- package/build/admin/endpoints/queries/index.js +23 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts +7 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-bonus-history-operation-type.enum.js +10 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.d.ts +5 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-bonus-operation-type.enum.js +8 -0
- package/build/admin/enums/admin-partner-rates-type.enum.d.ts +5 -0
- package/build/admin/enums/admin-partner-rates-type.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-partner-rates-type.enum.js +8 -0
- package/build/admin/enums/index.d.ts +4 -0
- package/build/admin/enums/index.d.ts.map +1 -0
- package/build/admin/enums/index.js +19 -0
- package/build/admin/index.d.ts +4 -0
- package/build/admin/index.d.ts.map +1 -0
- package/build/admin/index.js +19 -0
- package/build/admin/models/admin-bonus-operation-response.schema.d.ts +15 -0
- package/build/admin/models/admin-bonus-operation-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-bonus-operation-response.schema.js +16 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts +12 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-bonus-operation-response.schema.js +13 -0
- package/build/admin/models/admin-partner-details-response.schema.d.ts +16 -0
- package/build/admin/models/admin-partner-details-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-details-response.schema.js +17 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts +10 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-l2-bonus-response.schema.js +11 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.d.ts +29 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-referral-config-response.schema.js +13 -0
- package/build/admin/models/admin-partner-referral-response.schema.d.ts +12 -0
- package/build/admin/models/admin-partner-referral-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-referral-response.schema.js +13 -0
- package/build/admin/models/admin-partner-response.schema.d.ts +17 -0
- package/build/admin/models/admin-partner-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-partner-response.schema.js +18 -0
- package/build/admin/models/admin-referral-config-response.schema.d.ts +14 -0
- package/build/admin/models/admin-referral-config-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-referral-config-response.schema.js +8 -0
- package/build/admin/models/index.d.ts +9 -0
- package/build/admin/models/index.d.ts.map +1 -0
- package/build/admin/models/index.js +24 -0
- package/build/ai-model/endpoints/ai-model.d.ts +6 -0
- package/build/ai-model/endpoints/ai-model.d.ts.map +1 -0
- package/build/ai-model/endpoints/ai-model.js +8 -0
- package/build/ai-model/endpoints/index.d.ts +3 -0
- package/build/ai-model/endpoints/index.d.ts.map +1 -0
- package/build/ai-model/endpoints/index.js +18 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts +68 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.js +24 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts +69 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/get-ai-models.query.js +22 -0
- package/build/ai-model/endpoints/queries/index.d.ts +3 -0
- package/build/ai-model/endpoints/queries/index.d.ts.map +1 -0
- package/build/ai-model/endpoints/queries/index.js +18 -0
- package/build/ai-model/index.d.ts +3 -0
- package/build/ai-model/index.d.ts.map +1 -0
- package/build/ai-model/index.js +18 -0
- package/build/ai-model/models/ai-model-response.schema.d.ts +38 -0
- package/build/ai-model/models/ai-model-response.schema.d.ts.map +1 -0
- package/build/ai-model/models/ai-model-response.schema.js +32 -0
- package/build/ai-model/models/index.d.ts +2 -0
- package/build/ai-model/models/index.d.ts.map +1 -0
- package/build/ai-model/models/index.js +17 -0
- package/build/article/endpoints/article.d.ts +15 -0
- package/build/article/endpoints/article.d.ts.map +1 -0
- package/build/article/endpoints/article.js +17 -0
- package/build/article/endpoints/commands/create-article.command.d.ts +89 -0
- package/build/article/endpoints/commands/create-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/create-article.command.js +38 -0
- package/build/article/endpoints/commands/delete-article.command.d.ts +24 -0
- package/build/article/endpoints/commands/delete-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/delete-article.command.js +25 -0
- package/build/article/endpoints/commands/index.d.ts +5 -0
- package/build/article/endpoints/commands/index.d.ts.map +1 -0
- package/build/article/endpoints/commands/index.js +20 -0
- package/build/article/endpoints/commands/publish-article.command.d.ts +64 -0
- package/build/article/endpoints/commands/publish-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/publish-article.command.js +26 -0
- package/build/article/endpoints/commands/update-article.command.d.ts +96 -0
- package/build/article/endpoints/commands/update-article.command.d.ts.map +1 -0
- package/build/article/endpoints/commands/update-article.command.js +48 -0
- package/build/article/endpoints/index.d.ts +4 -0
- package/build/article/endpoints/index.d.ts.map +1 -0
- package/build/article/endpoints/index.js +19 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts +64 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-article-by-uuid.query.js +26 -0
- package/build/article/endpoints/queries/get-articles.query.d.ts +73 -0
- package/build/article/endpoints/queries/get-articles.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-articles.query.js +27 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.d.ts +68 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/get-published-by-slug.query.js +24 -0
- package/build/article/endpoints/queries/index.d.ts +5 -0
- package/build/article/endpoints/queries/index.d.ts.map +1 -0
- package/build/article/endpoints/queries/index.js +20 -0
- package/build/article/endpoints/queries/list-published.query.d.ts +59 -0
- package/build/article/endpoints/queries/list-published.query.d.ts.map +1 -0
- package/build/article/endpoints/queries/list-published.query.js +28 -0
- package/build/article/enums/article-status.enum.d.ts +5 -0
- package/build/article/enums/article-status.enum.d.ts.map +1 -0
- package/build/article/enums/article-status.enum.js +8 -0
- package/build/article/enums/index.d.ts +2 -0
- package/build/article/enums/index.d.ts.map +1 -0
- package/build/article/enums/index.js +17 -0
- package/build/article/index.d.ts +4 -0
- package/build/article/index.d.ts.map +1 -0
- package/build/article/index.js +19 -0
- package/build/article/models/article-content.schema.d.ts +15 -0
- package/build/article/models/article-content.schema.d.ts.map +1 -0
- package/build/article/models/article-content.schema.js +12 -0
- package/build/article/models/article-response.schema.d.ts +25 -0
- package/build/article/models/article-response.schema.d.ts.map +1 -0
- package/build/article/models/article-response.schema.js +21 -0
- package/build/article/models/index.d.ts +5 -0
- package/build/article/models/index.d.ts.map +1 -0
- package/build/article/models/index.js +20 -0
- package/build/article/models/published-article-card.schema.d.ts +21 -0
- package/build/article/models/published-article-card.schema.d.ts.map +1 -0
- package/build/article/models/published-article-card.schema.js +18 -0
- package/build/article/models/published-article-detail.schema.d.ts +31 -0
- package/build/article/models/published-article-detail.schema.d.ts.map +1 -0
- package/build/article/models/published-article-detail.schema.js +21 -0
- package/build/auth/endpoints/auth.d.ts +14 -0
- package/build/auth/endpoints/auth.d.ts.map +1 -0
- package/build/auth/endpoints/auth.js +16 -0
- package/build/auth/endpoints/commands/change-password.command.d.ts +28 -0
- package/build/auth/endpoints/commands/change-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/change-password.command.js +29 -0
- package/build/auth/endpoints/commands/delete-account.command.d.ts +15 -0
- package/build/auth/endpoints/commands/delete-account.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/delete-account.command.js +19 -0
- package/build/auth/endpoints/commands/index.d.ts +11 -0
- package/build/auth/endpoints/commands/index.d.ts.map +1 -0
- package/build/auth/endpoints/commands/index.js +26 -0
- package/build/auth/endpoints/commands/login.command.d.ts +31 -0
- package/build/auth/endpoints/commands/login.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/login.command.js +30 -0
- package/build/auth/endpoints/commands/logout.command.d.ts +14 -0
- package/build/auth/endpoints/commands/logout.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/logout.command.js +18 -0
- package/build/auth/endpoints/commands/refresh.command.d.ts +19 -0
- package/build/auth/endpoints/commands/refresh.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/refresh.command.js +21 -0
- package/build/auth/endpoints/commands/register.command.d.ts +40 -0
- package/build/auth/endpoints/commands/register.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/register.command.js +35 -0
- package/build/auth/endpoints/commands/reset-password.command.d.ts +24 -0
- package/build/auth/endpoints/commands/reset-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/reset-password.command.js +26 -0
- package/build/auth/endpoints/commands/restore-password.command.d.ts +26 -0
- package/build/auth/endpoints/commands/restore-password.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/restore-password.command.js +27 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.d.ts +30 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/verify-email-retry.command.js +29 -0
- package/build/auth/endpoints/commands/verify-email.command.d.ts +30 -0
- package/build/auth/endpoints/commands/verify-email.command.d.ts.map +1 -0
- package/build/auth/endpoints/commands/verify-email.command.js +29 -0
- package/build/auth/endpoints/index.d.ts +3 -0
- package/build/auth/endpoints/index.d.ts.map +1 -0
- package/build/auth/endpoints/index.js +18 -0
- package/build/auth/index.d.ts +2 -0
- package/build/auth/index.d.ts.map +1 -0
- package/build/auth/index.js +17 -0
- package/build/category/endpoints/category.d.ts +9 -0
- package/build/category/endpoints/category.d.ts.map +1 -0
- package/build/category/endpoints/category.js +11 -0
- package/build/category/endpoints/commands/create-category.command.d.ts +40 -0
- package/build/category/endpoints/commands/create-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/create-category.command.js +29 -0
- package/build/category/endpoints/commands/delete-category.command.d.ts +24 -0
- package/build/category/endpoints/commands/delete-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/delete-category.command.js +25 -0
- package/build/category/endpoints/commands/index.d.ts +4 -0
- package/build/category/endpoints/commands/index.d.ts.map +1 -0
- package/build/category/endpoints/commands/index.js +19 -0
- package/build/category/endpoints/commands/update-category.command.d.ts +46 -0
- package/build/category/endpoints/commands/update-category.command.d.ts.map +1 -0
- package/build/category/endpoints/commands/update-category.command.js +38 -0
- package/build/category/endpoints/index.d.ts +4 -0
- package/build/category/endpoints/index.d.ts.map +1 -0
- package/build/category/endpoints/index.js +19 -0
- package/build/category/endpoints/queries/get-categories.query.d.ts +31 -0
- package/build/category/endpoints/queries/get-categories.query.d.ts.map +1 -0
- package/build/category/endpoints/queries/get-categories.query.js +21 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts +36 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts.map +1 -0
- package/build/category/endpoints/queries/get-category-by-uuid.query.js +26 -0
- package/build/category/endpoints/queries/index.d.ts +3 -0
- package/build/category/endpoints/queries/index.d.ts.map +1 -0
- package/build/category/endpoints/queries/index.js +18 -0
- package/build/category/index.d.ts +3 -0
- package/build/category/index.d.ts.map +1 -0
- package/build/category/index.js +18 -0
- package/build/category/models/category-response.schema.d.ts +10 -0
- package/build/category/models/category-response.schema.d.ts.map +1 -0
- package/build/category/models/category-response.schema.js +11 -0
- package/build/category/models/index.d.ts +2 -0
- package/build/category/models/index.d.ts.map +1 -0
- package/build/category/models/index.js +17 -0
- package/build/chat/endpoints/chat.d.ts +9 -0
- package/build/chat/endpoints/chat.d.ts.map +1 -0
- package/build/chat/endpoints/chat.js +11 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts +50 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/create-chat.command.js +24 -0
- package/build/chat/endpoints/commands/delete-chat.command.d.ts +22 -0
- package/build/chat/endpoints/commands/delete-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/delete-chat.command.js +23 -0
- package/build/chat/endpoints/commands/index.d.ts +4 -0
- package/build/chat/endpoints/commands/index.d.ts.map +1 -0
- package/build/chat/endpoints/commands/index.js +19 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts +57 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -0
- package/build/chat/endpoints/commands/update-chat.command.js +33 -0
- package/build/chat/endpoints/index.d.ts +4 -0
- package/build/chat/endpoints/index.d.ts.map +1 -0
- package/build/chat/endpoints/index.js +19 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +50 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.js +24 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts +59 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -0
- package/build/chat/endpoints/queries/get-chats.query.js +25 -0
- package/build/chat/endpoints/queries/index.d.ts +3 -0
- package/build/chat/endpoints/queries/index.d.ts.map +1 -0
- package/build/chat/endpoints/queries/index.js +18 -0
- package/build/chat/enums/chat-status.enum.d.ts +6 -0
- package/build/chat/enums/chat-status.enum.d.ts.map +1 -0
- package/build/chat/enums/chat-status.enum.js +9 -0
- package/build/chat/enums/index.d.ts +2 -0
- package/build/chat/enums/index.d.ts.map +1 -0
- package/build/chat/enums/index.js +17 -0
- package/build/chat/index.d.ts +4 -0
- package/build/chat/index.d.ts.map +1 -0
- package/build/chat/index.js +19 -0
- package/build/chat/models/chat-response.schema.d.ts +28 -0
- package/build/chat/models/chat-response.schema.d.ts.map +1 -0
- package/build/chat/models/chat-response.schema.js +21 -0
- package/build/chat/models/index.d.ts +2 -0
- package/build/chat/models/index.d.ts.map +1 -0
- package/build/chat/models/index.js +17 -0
- package/build/errors/errors.d.ts +680 -0
- package/build/errors/errors.d.ts.map +1 -0
- package/build/errors/errors.js +682 -0
- package/build/errors/index.d.ts +2 -0
- package/build/errors/index.d.ts.map +1 -0
- package/build/errors/index.js +17 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts +60 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.js +26 -0
- package/build/feedback-survey/endpoints/commands/index.d.ts +2 -0
- package/build/feedback-survey/endpoints/commands/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/commands/index.js +17 -0
- package/build/feedback-survey/endpoints/feedback-survey.d.ts +11 -0
- package/build/feedback-survey/endpoints/feedback-survey.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/feedback-survey.js +13 -0
- package/build/feedback-survey/endpoints/index.d.ts +4 -0
- package/build/feedback-survey/endpoints/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/index.js +19 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts +52 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.js +20 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts +17 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.js +17 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts +59 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.js +27 -0
- package/build/feedback-survey/endpoints/queries/index.d.ts +4 -0
- package/build/feedback-survey/endpoints/queries/index.d.ts.map +1 -0
- package/build/feedback-survey/endpoints/queries/index.js +19 -0
- package/build/feedback-survey/enums/index.d.ts +2 -0
- package/build/feedback-survey/enums/index.d.ts.map +1 -0
- package/build/feedback-survey/enums/index.js +17 -0
- package/build/feedback-survey/enums/question-type.enum.d.ts +7 -0
- package/build/feedback-survey/enums/question-type.enum.d.ts.map +1 -0
- package/build/feedback-survey/enums/question-type.enum.js +10 -0
- package/build/feedback-survey/index.d.ts +4 -0
- package/build/feedback-survey/index.d.ts.map +1 -0
- package/build/feedback-survey/index.js +19 -0
- package/build/feedback-survey/models/answer-input.schema.d.ts +9 -0
- package/build/feedback-survey/models/answer-input.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/answer-input.schema.js +10 -0
- package/build/feedback-survey/models/answer-response.schema.d.ts +12 -0
- package/build/feedback-survey/models/answer-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/answer-response.schema.js +13 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts +17 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/feedback-survey-submission-response.schema.js +11 -0
- package/build/feedback-survey/models/index.d.ts +7 -0
- package/build/feedback-survey/models/index.d.ts.map +1 -0
- package/build/feedback-survey/models/index.js +22 -0
- package/build/feedback-survey/models/question-option-response.schema.d.ts +10 -0
- package/build/feedback-survey/models/question-option-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/question-option-response.schema.js +11 -0
- package/build/feedback-survey/models/question-response.schema.d.ts +22 -0
- package/build/feedback-survey/models/question-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/question-response.schema.js +18 -0
- package/build/feedback-survey/models/status-response.schema.d.ts +6 -0
- package/build/feedback-survey/models/status-response.schema.d.ts.map +1 -0
- package/build/feedback-survey/models/status-response.schema.js +7 -0
- package/build/file/endpoints/commands/index.d.ts +2 -0
- package/build/file/endpoints/commands/index.d.ts.map +1 -0
- package/build/file/endpoints/commands/index.js +17 -0
- package/build/file/endpoints/commands/upload-file.command.d.ts +59 -0
- package/build/file/endpoints/commands/upload-file.command.d.ts.map +1 -0
- package/build/file/endpoints/commands/upload-file.command.js +30 -0
- package/build/file/endpoints/file.d.ts +5 -0
- package/build/file/endpoints/file.d.ts.map +1 -0
- package/build/file/endpoints/file.js +7 -0
- package/build/file/endpoints/index.d.ts +3 -0
- package/build/file/endpoints/index.d.ts.map +1 -0
- package/build/file/endpoints/index.js +18 -0
- package/build/file/endpoints/queries/index.d.ts +2 -0
- package/build/file/endpoints/queries/index.d.ts.map +1 -0
- package/build/file/endpoints/queries/index.js +2 -0
- package/build/file/enums/file.enum.d.ts +19 -0
- package/build/file/enums/file.enum.d.ts.map +1 -0
- package/build/file/enums/file.enum.js +88 -0
- package/build/file/enums/index.d.ts +2 -0
- package/build/file/enums/index.d.ts.map +1 -0
- package/build/file/enums/index.js +17 -0
- package/build/file/index.d.ts +4 -0
- package/build/file/index.d.ts.map +1 -0
- package/build/file/index.js +19 -0
- package/build/file/models/file-response.schema.d.ts +20 -0
- package/build/file/models/file-response.schema.d.ts.map +1 -0
- package/build/file/models/file-response.schema.js +21 -0
- package/build/file/models/index.d.ts +2 -0
- package/build/file/models/index.d.ts.map +1 -0
- package/build/file/models/index.js +17 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +63 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.js +30 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts +22 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/delete-generation-job.command.js +23 -0
- package/build/generation-job/endpoints/commands/index.d.ts +4 -0
- package/build/generation-job/endpoints/commands/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/index.js +19 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +77 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.js +38 -0
- package/build/generation-job/endpoints/generation-job.d.ts +10 -0
- package/build/generation-job/endpoints/generation-job.d.ts.map +1 -0
- package/build/generation-job/endpoints/generation-job.js +12 -0
- package/build/generation-job/endpoints/index.d.ts +4 -0
- package/build/generation-job/endpoints/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/index.js +19 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +54 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.js +24 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +94 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +35 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +57 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +26 -0
- package/build/generation-job/endpoints/queries/index.d.ts +4 -0
- package/build/generation-job/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-job/endpoints/queries/index.js +19 -0
- package/build/generation-job/enums/generation-job-status.enum.d.ts +8 -0
- package/build/generation-job/enums/generation-job-status.enum.d.ts.map +1 -0
- package/build/generation-job/enums/generation-job-status.enum.js +11 -0
- package/build/generation-job/enums/index.d.ts +2 -0
- package/build/generation-job/enums/index.d.ts.map +1 -0
- package/build/generation-job/enums/index.js +17 -0
- package/build/generation-job/index.d.ts +4 -0
- package/build/generation-job/index.d.ts.map +1 -0
- package/build/generation-job/index.js +19 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts +26 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -0
- package/build/generation-job/models/generation-job-response.schema.js +26 -0
- package/build/generation-job/models/index.d.ts +2 -0
- package/build/generation-job/models/index.d.ts.map +1 -0
- package/build/generation-job/models/index.js +17 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +42 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.js +27 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts +22 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.js +23 -0
- package/build/generation-job-chat/endpoints/commands/index.d.ts +4 -0
- package/build/generation-job-chat/endpoints/commands/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/index.js +19 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +45 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.js +33 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.d.ts +9 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/generation-job-chat.js +11 -0
- package/build/generation-job-chat/endpoints/index.d.ts +4 -0
- package/build/generation-job-chat/endpoints/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/index.js +19 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +38 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.js +24 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +49 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +28 -0
- package/build/generation-job-chat/endpoints/queries/index.d.ts +3 -0
- package/build/generation-job-chat/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-job-chat/endpoints/queries/index.js +18 -0
- package/build/generation-job-chat/index.d.ts +3 -0
- package/build/generation-job-chat/index.d.ts.map +1 -0
- package/build/generation-job-chat/index.js +18 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +12 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.js +14 -0
- package/build/generation-job-chat/models/index.d.ts +2 -0
- package/build/generation-job-chat/models/index.d.ts.map +1 -0
- package/build/generation-job-chat/models/index.js +17 -0
- package/build/generation-model/endpoints/generation-model.d.ts +7 -0
- package/build/generation-model/endpoints/generation-model.d.ts.map +1 -0
- package/build/generation-model/endpoints/generation-model.js +9 -0
- package/build/generation-model/endpoints/index.d.ts +3 -0
- package/build/generation-model/endpoints/index.d.ts.map +1 -0
- package/build/generation-model/endpoints/index.js +18 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +85 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.js +25 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +77 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.js +19 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts +32 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/get-generation-price.query.js +29 -0
- package/build/generation-model/endpoints/queries/index.d.ts +4 -0
- package/build/generation-model/endpoints/queries/index.d.ts.map +1 -0
- package/build/generation-model/endpoints/queries/index.js +19 -0
- package/build/generation-model/enums/generation-type.enum.d.ts +5 -0
- package/build/generation-model/enums/generation-type.enum.d.ts.map +1 -0
- package/build/generation-model/enums/generation-type.enum.js +8 -0
- package/build/generation-model/enums/index.d.ts +2 -0
- package/build/generation-model/enums/index.d.ts.map +1 -0
- package/build/generation-model/enums/index.js +17 -0
- package/build/generation-model/index.d.ts +4 -0
- package/build/generation-model/index.d.ts.map +1 -0
- package/build/generation-model/index.js +19 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts +36 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -0
- package/build/generation-model/models/generation-model-response.schema.js +23 -0
- package/build/generation-model/models/index.d.ts +3 -0
- package/build/generation-model/models/index.d.ts.map +1 -0
- package/build/generation-model/models/index.js +18 -0
- package/build/generation-model/models/pricing-policy.schema.d.ts +52 -0
- package/build/generation-model/models/pricing-policy.schema.d.ts.map +1 -0
- package/build/generation-model/models/pricing-policy.schema.js +29 -0
- package/build/index.d.ts +17 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +32 -0
- package/build/message/endpoints/commands/create-message.command.d.ts +68 -0
- package/build/message/endpoints/commands/create-message.command.d.ts.map +1 -0
- package/build/message/endpoints/commands/create-message.command.js +48 -0
- package/build/message/endpoints/commands/delete-message.command.d.ts +22 -0
- package/build/message/endpoints/commands/delete-message.command.d.ts.map +1 -0
- package/build/message/endpoints/commands/delete-message.command.js +23 -0
- package/build/message/endpoints/commands/index.d.ts +3 -0
- package/build/message/endpoints/commands/index.d.ts.map +1 -0
- package/build/message/endpoints/commands/index.js +18 -0
- package/build/message/endpoints/index.d.ts +4 -0
- package/build/message/endpoints/index.d.ts.map +1 -0
- package/build/message/endpoints/index.js +19 -0
- package/build/message/endpoints/message.d.ts +9 -0
- package/build/message/endpoints/message.d.ts.map +1 -0
- package/build/message/endpoints/message.js +11 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts +74 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-message-by-uuid.query.js +24 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts +41 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-message-price-estimate.query.js +35 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts +90 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts.map +1 -0
- package/build/message/endpoints/queries/get-messages-by-chat.query.js +30 -0
- package/build/message/endpoints/queries/index.d.ts +4 -0
- package/build/message/endpoints/queries/index.d.ts.map +1 -0
- package/build/message/endpoints/queries/index.js +19 -0
- package/build/message/enums/index.d.ts +3 -0
- package/build/message/enums/index.d.ts.map +1 -0
- package/build/message/enums/index.js +18 -0
- package/build/message/enums/message-roles.enum.d.ts +5 -0
- package/build/message/enums/message-roles.enum.d.ts.map +1 -0
- package/build/message/enums/message-roles.enum.js +8 -0
- package/build/message/enums/message-status.enum.d.ts +10 -0
- package/build/message/enums/message-status.enum.d.ts.map +1 -0
- package/build/message/enums/message-status.enum.js +13 -0
- package/build/message/index.d.ts +4 -0
- package/build/message/index.d.ts.map +1 -0
- package/build/message/index.js +19 -0
- package/build/message/models/index.d.ts +2 -0
- package/build/message/models/index.d.ts.map +1 -0
- package/build/message/models/index.js +17 -0
- package/build/message/models/message-response.schema.d.ts +31 -0
- package/build/message/models/message-response.schema.d.ts.map +1 -0
- package/build/message/models/message-response.schema.js +17 -0
- package/build/payment/endpoints/commands/create-payment.command.d.ts +119 -0
- package/build/payment/endpoints/commands/create-payment.command.d.ts.map +1 -0
- package/build/payment/endpoints/commands/create-payment.command.js +40 -0
- package/build/payment/endpoints/commands/index.d.ts +2 -0
- package/build/payment/endpoints/commands/index.d.ts.map +1 -0
- package/build/payment/endpoints/commands/index.js +17 -0
- package/build/payment/endpoints/index.d.ts +3 -0
- package/build/payment/endpoints/index.d.ts.map +1 -0
- package/build/payment/endpoints/index.js +18 -0
- package/build/payment/endpoints/payment.d.ts +5 -0
- package/build/payment/endpoints/payment.d.ts.map +1 -0
- package/build/payment/endpoints/payment.js +7 -0
- package/build/payment/enums/index.d.ts +2 -0
- package/build/payment/enums/index.d.ts.map +1 -0
- package/build/payment/enums/index.js +17 -0
- package/build/payment/enums/payment-status.enum.d.ts +7 -0
- package/build/payment/enums/payment-status.enum.d.ts.map +1 -0
- package/build/payment/enums/payment-status.enum.js +10 -0
- package/build/payment/index.d.ts +4 -0
- package/build/payment/index.d.ts.map +1 -0
- package/build/payment/index.js +19 -0
- package/build/payment/models/index.d.ts +2 -0
- package/build/payment/models/index.d.ts.map +1 -0
- package/build/payment/models/index.js +17 -0
- package/build/payment/models/payment-response.schema.d.ts +50 -0
- package/build/payment/models/payment-response.schema.d.ts.map +1 -0
- package/build/payment/models/payment-response.schema.js +45 -0
- package/build/referral/endpoints/index.d.ts +2 -0
- package/build/referral/endpoints/index.d.ts.map +1 -0
- package/build/referral/endpoints/index.js +17 -0
- package/build/referral/endpoints/referral.d.ts +7 -0
- package/build/referral/endpoints/referral.d.ts.map +1 -0
- package/build/referral/endpoints/referral.js +9 -0
- package/build/referral/enums/bonus-history-filter.enum.d.ts +6 -0
- package/build/referral/enums/bonus-history-filter.enum.d.ts.map +1 -0
- package/build/referral/enums/bonus-history-filter.enum.js +9 -0
- package/build/referral/enums/index.d.ts +4 -0
- package/build/referral/enums/index.d.ts.map +1 -0
- package/build/referral/enums/index.js +19 -0
- package/build/referral/enums/referral-reward-status.enum.d.ts +6 -0
- package/build/referral/enums/referral-reward-status.enum.d.ts.map +1 -0
- package/build/referral/enums/referral-reward-status.enum.js +9 -0
- package/build/referral/enums/referral-status.enum.d.ts +6 -0
- package/build/referral/enums/referral-status.enum.d.ts.map +1 -0
- package/build/referral/enums/referral-status.enum.js +9 -0
- package/build/referral/index.d.ts +4 -0
- package/build/referral/index.d.ts.map +1 -0
- package/build/referral/index.js +19 -0
- package/build/referral/models/bonus-history-response.schema.d.ts +88 -0
- package/build/referral/models/bonus-history-response.schema.d.ts.map +1 -0
- package/build/referral/models/bonus-history-response.schema.js +27 -0
- package/build/referral/models/index.d.ts +5 -0
- package/build/referral/models/index.d.ts.map +1 -0
- package/build/referral/models/index.js +20 -0
- package/build/referral/models/partner-referral-rate-config.schema.d.ts +10 -0
- package/build/referral/models/partner-referral-rate-config.schema.d.ts.map +1 -0
- package/build/referral/models/partner-referral-rate-config.schema.js +11 -0
- package/build/referral/models/referral-config-response.schema.d.ts +24 -0
- package/build/referral/models/referral-config-response.schema.d.ts.map +1 -0
- package/build/referral/models/referral-config-response.schema.js +16 -0
- package/build/referral/models/referral-stats-response.schema.d.ts +21 -0
- package/build/referral/models/referral-stats-response.schema.d.ts.map +1 -0
- package/build/referral/models/referral-stats-response.schema.js +17 -0
- package/build/scripts/generate-openapi.d.ts +2 -0
- package/build/scripts/generate-openapi.d.ts.map +1 -0
- package/build/scripts/generate-openapi.js +536 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/build/users/endpoints/index.d.ts +3 -0
- package/build/users/endpoints/index.d.ts.map +1 -0
- package/build/users/endpoints/index.js +18 -0
- package/build/users/endpoints/queries/get-profile.query.d.ts +13 -0
- package/build/users/endpoints/queries/get-profile.query.d.ts.map +1 -0
- package/build/users/endpoints/queries/get-profile.query.js +14 -0
- package/build/users/endpoints/queries/get-stat.query.d.ts +9 -0
- package/build/users/endpoints/queries/get-stat.query.d.ts.map +1 -0
- package/build/users/endpoints/queries/get-stat.query.js +10 -0
- package/build/users/endpoints/queries/index.d.ts +3 -0
- package/build/users/endpoints/queries/index.d.ts.map +1 -0
- package/build/users/endpoints/queries/index.js +18 -0
- package/build/users/endpoints/user.d.ts +6 -0
- package/build/users/endpoints/user.d.ts.map +1 -0
- package/build/users/endpoints/user.js +8 -0
- package/build/users/enums/index.d.ts +3 -0
- package/build/users/enums/index.d.ts.map +1 -0
- package/build/users/enums/index.js +18 -0
- package/build/users/enums/user-roles.enum.d.ts +5 -0
- package/build/users/enums/user-roles.enum.d.ts.map +1 -0
- package/build/users/enums/user-roles.enum.js +8 -0
- package/build/users/enums/user-status.enum.d.ts +6 -0
- package/build/users/enums/user-status.enum.d.ts.map +1 -0
- package/build/users/enums/user-status.enum.js +9 -0
- package/build/users/index.d.ts +3 -0
- package/build/users/index.d.ts.map +1 -0
- package/build/users/index.js +18 -0
- package/build/wallet/endpoints/index.d.ts +3 -0
- package/build/wallet/endpoints/index.d.ts.map +1 -0
- package/build/wallet/endpoints/index.js +18 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts +20 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/get-wallet-balance.query.js +18 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts +53 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/get-wallet-transactions.query.js +30 -0
- package/build/wallet/endpoints/queries/index.d.ts +3 -0
- package/build/wallet/endpoints/queries/index.d.ts.map +1 -0
- package/build/wallet/endpoints/queries/index.js +18 -0
- package/build/wallet/endpoints/wallet.d.ts +6 -0
- package/build/wallet/endpoints/wallet.d.ts.map +1 -0
- package/build/wallet/endpoints/wallet.js +8 -0
- package/build/wallet/enums/index.d.ts +4 -0
- package/build/wallet/enums/index.d.ts.map +1 -0
- package/build/wallet/enums/index.js +19 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts +10 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-source-type.enum.js +13 -0
- package/build/wallet/enums/wallet-transaction-status.enum.d.ts +7 -0
- package/build/wallet/enums/wallet-transaction-status.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-status.enum.js +10 -0
- package/build/wallet/enums/wallet-transaction-type.enum.d.ts +7 -0
- package/build/wallet/enums/wallet-transaction-type.enum.d.ts.map +1 -0
- package/build/wallet/enums/wallet-transaction-type.enum.js +10 -0
- package/build/wallet/index.d.ts +4 -0
- package/build/wallet/index.d.ts.map +1 -0
- package/build/wallet/index.js +19 -0
- package/build/wallet/models/index.d.ts +3 -0
- package/build/wallet/models/index.d.ts.map +1 -0
- package/build/wallet/models/index.js +18 -0
- package/build/wallet/models/wallet-balance-response.schema.d.ts +7 -0
- package/build/wallet/models/wallet-balance-response.schema.d.ts.map +1 -0
- package/build/wallet/models/wallet-balance-response.schema.js +8 -0
- package/build/wallet/models/wallet-transaction-response.schema.d.ts +13 -0
- package/build/wallet/models/wallet-transaction-response.schema.d.ts.map +1 -0
- package/build/wallet/models/wallet-transaction-response.schema.js +14 -0
- package/category/endpoints/category.ts +9 -0
- package/category/endpoints/commands/create-category.command.ts +30 -0
- package/category/endpoints/commands/delete-category.command.ts +25 -0
- package/category/endpoints/commands/index.ts +3 -0
- package/category/endpoints/commands/update-category.command.ts +39 -0
- package/category/endpoints/index.ts +3 -0
- package/category/endpoints/queries/get-categories.query.ts +20 -0
- package/category/endpoints/queries/get-category-by-uuid.query.ts +26 -0
- package/category/endpoints/queries/index.ts +2 -0
- package/category/index.ts +2 -0
- package/category/models/category-response.schema.ts +11 -0
- package/category/models/index.ts +1 -0
- package/chat/endpoints/chat.ts +9 -0
- package/chat/endpoints/commands/create-chat.command.ts +24 -0
- package/chat/endpoints/commands/delete-chat.command.ts +23 -0
- package/chat/endpoints/commands/index.ts +3 -0
- package/chat/endpoints/commands/update-chat.command.ts +34 -0
- package/chat/endpoints/index.ts +3 -0
- package/chat/endpoints/queries/get-chat-by-uuid.query.ts +24 -0
- package/chat/endpoints/queries/get-chats.query.ts +25 -0
- package/chat/endpoints/queries/index.ts +2 -0
- package/chat/enums/chat-status.enum.ts +5 -0
- package/chat/enums/index.ts +1 -0
- package/chat/index.ts +3 -0
- package/chat/models/chat-response.schema.ts +24 -0
- package/chat/models/index.ts +1 -0
- package/errors/errors.ts +680 -0
- package/errors/index.ts +1 -0
- package/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.ts +26 -0
- package/feedback-survey/endpoints/commands/index.ts +1 -0
- package/feedback-survey/endpoints/feedback-survey.ts +13 -0
- package/feedback-survey/endpoints/index.ts +3 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.ts +19 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-status.query.ts +16 -0
- package/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.ts +27 -0
- package/feedback-survey/endpoints/queries/index.ts +3 -0
- package/feedback-survey/enums/index.ts +1 -0
- package/feedback-survey/enums/question-type.enum.ts +6 -0
- package/feedback-survey/index.ts +3 -0
- package/feedback-survey/models/answer-input.schema.ts +10 -0
- package/feedback-survey/models/answer-response.schema.ts +13 -0
- package/feedback-survey/models/feedback-survey-submission-response.schema.ts +11 -0
- package/feedback-survey/models/index.ts +6 -0
- package/feedback-survey/models/question-option-response.schema.ts +11 -0
- package/feedback-survey/models/question-response.schema.ts +18 -0
- package/feedback-survey/models/status-response.schema.ts +7 -0
- package/file/endpoints/commands/index.ts +1 -0
- package/file/endpoints/commands/upload-file.command.ts +30 -0
- package/file/endpoints/file.ts +5 -0
- package/file/endpoints/index.ts +2 -0
- package/file/endpoints/queries/index.ts +0 -0
- package/file/enums/file.enum.ts +101 -0
- package/file/enums/index.ts +1 -0
- package/file/index.ts +3 -0
- package/file/models/file-response.schema.ts +21 -0
- package/file/models/index.ts +1 -0
- package/generation-job/endpoints/commands/create-generation-job.command.ts +30 -0
- package/generation-job/endpoints/commands/delete-generation-job.command.ts +23 -0
- package/generation-job/endpoints/commands/index.ts +3 -0
- package/generation-job/endpoints/commands/update-generation-job.command.ts +39 -0
- package/generation-job/endpoints/generation-job.ts +10 -0
- package/generation-job/endpoints/index.ts +3 -0
- package/generation-job/endpoints/queries/get-generation-job-by-uuid.query.ts +24 -0
- package/generation-job/endpoints/queries/get-generation-job-history.query.ts +38 -0
- package/generation-job/endpoints/queries/get-generation-jobs.query.ts +26 -0
- package/generation-job/endpoints/queries/index.ts +3 -0
- package/generation-job/enums/generation-job-status.enum.ts +7 -0
- package/generation-job/enums/index.ts +1 -0
- package/generation-job/index.ts +3 -0
- package/generation-job/models/generation-job-response.schema.ts +29 -0
- package/generation-job/models/index.ts +1 -0
- package/generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts +27 -0
- package/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.ts +23 -0
- package/generation-job-chat/endpoints/commands/index.ts +3 -0
- package/generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts +34 -0
- package/generation-job-chat/endpoints/generation-job-chat.ts +9 -0
- package/generation-job-chat/endpoints/index.ts +3 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts +24 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +28 -0
- package/generation-job-chat/endpoints/queries/index.ts +2 -0
- package/generation-job-chat/index.ts +2 -0
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +14 -0
- package/generation-job-chat/models/index.ts +1 -0
- package/generation-model/endpoints/generation-model.ts +7 -0
- package/generation-model/endpoints/index.ts +2 -0
- package/generation-model/endpoints/queries/get-generation-models-by-type.query.ts +25 -0
- package/generation-model/endpoints/queries/get-generation-models.query.ts +18 -0
- package/generation-model/endpoints/queries/get-generation-price.query.ts +30 -0
- package/generation-model/endpoints/queries/index.ts +3 -0
- package/generation-model/enums/generation-type.enum.ts +4 -0
- package/generation-model/enums/index.ts +1 -0
- package/generation-model/index.ts +3 -0
- package/generation-model/models/generation-model-response.schema.ts +25 -0
- package/generation-model/models/index.ts +2 -0
- package/generation-model/models/pricing-policy.schema.ts +35 -0
- package/index.ts +16 -0
- package/message/endpoints/commands/create-message.command.ts +50 -0
- package/message/endpoints/commands/delete-message.command.ts +23 -0
- package/message/endpoints/commands/index.ts +2 -0
- package/message/endpoints/index.ts +3 -0
- package/message/endpoints/message.ts +9 -0
- package/message/endpoints/queries/get-message-by-uuid.query.ts +24 -0
- package/message/endpoints/queries/get-message-price-estimate.query.ts +35 -0
- package/message/endpoints/queries/get-messages-by-chat.query.ts +31 -0
- package/message/endpoints/queries/index.ts +3 -0
- package/message/enums/index.ts +2 -0
- package/message/enums/message-roles.enum.ts +4 -0
- package/message/enums/message-status.enum.ts +9 -0
- package/message/index.ts +3 -0
- package/message/models/index.ts +1 -0
- package/message/models/message-response.schema.ts +17 -0
- package/package.json +15 -0
- package/payment/endpoints/commands/create-payment.command.ts +41 -0
- package/payment/endpoints/commands/index.ts +1 -0
- package/payment/endpoints/index.ts +2 -0
- package/payment/endpoints/payment.ts +5 -0
- package/payment/enums/index.ts +1 -0
- package/payment/enums/payment-status.enum.ts +6 -0
- package/payment/index.ts +3 -0
- package/payment/models/index.ts +1 -0
- package/payment/models/payment-response.schema.ts +53 -0
- package/referral/endpoints/index.ts +1 -0
- package/referral/endpoints/referral.ts +7 -0
- package/referral/enums/bonus-history-filter.enum.ts +5 -0
- package/referral/enums/index.ts +3 -0
- package/referral/enums/referral-reward-status.enum.ts +5 -0
- package/referral/enums/referral-status.enum.ts +5 -0
- package/referral/index.ts +3 -0
- package/referral/models/bonus-history-response.schema.ts +36 -0
- package/referral/models/index.ts +4 -0
- package/referral/models/partner-referral-rate-config.schema.ts +11 -0
- package/referral/models/referral-config-response.schema.ts +19 -0
- package/referral/models/referral-stats-response.schema.ts +20 -0
- package/scripts/generate-openapi.ts +700 -0
- package/tsconfig.json +20 -0
- package/users/endpoints/index.ts +2 -0
- package/users/endpoints/queries/get-profile.query.ts +14 -0
- package/users/endpoints/queries/get-stat.query.ts +10 -0
- package/users/endpoints/queries/index.ts +2 -0
- package/users/endpoints/user.ts +6 -0
- package/users/enums/index.ts +2 -0
- package/users/enums/user-roles.enum.ts +4 -0
- package/users/enums/user-status.enum.ts +5 -0
- package/users/index.ts +2 -0
- package/wallet/endpoints/index.ts +2 -0
- package/wallet/endpoints/queries/get-wallet-balance.query.ts +17 -0
- package/wallet/endpoints/queries/get-wallet-transactions.query.ts +30 -0
- package/wallet/endpoints/queries/index.ts +2 -0
- package/wallet/endpoints/wallet.ts +6 -0
- package/wallet/enums/index.ts +3 -0
- package/wallet/enums/wallet-transaction-source-type.enum.ts +9 -0
- package/wallet/enums/wallet-transaction-status.enum.ts +6 -0
- package/wallet/enums/wallet-transaction-type.enum.ts +6 -0
- package/wallet/index.ts +3 -0
- package/wallet/models/index.ts +2 -0
- package/wallet/models/wallet-balance-response.schema.ts +8 -0
- package/wallet/models/wallet-transaction-response.schema.ts +14 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const promises_1 = require("node:fs/promises");
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const zod_to_openapi_1 = require("@asteasolutions/zod-to-openapi");
|
|
6
|
+
const error_contract_1 = require("../_common/error.contract");
|
|
7
|
+
const success_contract_1 = require("../_common/success.contract");
|
|
8
|
+
const auth_1 = require("../auth/endpoints/auth");
|
|
9
|
+
const change_password_command_1 = require("../auth/endpoints/commands/change-password.command");
|
|
10
|
+
const delete_account_command_1 = require("../auth/endpoints/commands/delete-account.command");
|
|
11
|
+
const login_command_1 = require("../auth/endpoints/commands/login.command");
|
|
12
|
+
const register_command_1 = require("../auth/endpoints/commands/register.command");
|
|
13
|
+
const reset_password_command_1 = require("../auth/endpoints/commands/reset-password.command");
|
|
14
|
+
const restore_password_command_1 = require("../auth/endpoints/commands/restore-password.command");
|
|
15
|
+
const verify_email_command_1 = require("../auth/endpoints/commands/verify-email.command");
|
|
16
|
+
const verify_email_retry_command_1 = require("../auth/endpoints/commands/verify-email-retry.command");
|
|
17
|
+
const chat_1 = require("../chat/endpoints/chat");
|
|
18
|
+
const create_chat_command_1 = require("../chat/endpoints/commands/create-chat.command");
|
|
19
|
+
const delete_chat_command_1 = require("../chat/endpoints/commands/delete-chat.command");
|
|
20
|
+
const update_chat_command_1 = require("../chat/endpoints/commands/update-chat.command");
|
|
21
|
+
const get_chat_by_uuid_query_1 = require("../chat/endpoints/queries/get-chat-by-uuid.query");
|
|
22
|
+
const get_chats_query_1 = require("../chat/endpoints/queries/get-chats.query");
|
|
23
|
+
const message_1 = require("../message/endpoints/message");
|
|
24
|
+
const create_message_command_1 = require("../message/endpoints/commands/create-message.command");
|
|
25
|
+
const delete_message_command_1 = require("../message/endpoints/commands/delete-message.command");
|
|
26
|
+
const get_message_by_uuid_query_1 = require("../message/endpoints/queries/get-message-by-uuid.query");
|
|
27
|
+
const get_messages_by_chat_query_1 = require("../message/endpoints/queries/get-messages-by-chat.query");
|
|
28
|
+
const get_message_price_estimate_query_1 = require("../message/endpoints/queries/get-message-price-estimate.query");
|
|
29
|
+
const file_1 = require("../file/endpoints/file");
|
|
30
|
+
const upload_file_command_1 = require("../file/endpoints/commands/upload-file.command");
|
|
31
|
+
const wallet_1 = require("../wallet/endpoints/wallet");
|
|
32
|
+
const get_wallet_balance_query_1 = require("../wallet/endpoints/queries/get-wallet-balance.query");
|
|
33
|
+
const get_wallet_transactions_query_1 = require("../wallet/endpoints/queries/get-wallet-transactions.query");
|
|
34
|
+
const payment_1 = require("../payment/endpoints/payment");
|
|
35
|
+
const create_payment_command_1 = require("../payment/endpoints/commands/create-payment.command");
|
|
36
|
+
const ai_model_1 = require("../ai-model/endpoints/ai-model");
|
|
37
|
+
const get_ai_model_by_uuid_query_1 = require("../ai-model/endpoints/queries/get-ai-model-by-uuid.query");
|
|
38
|
+
const get_ai_models_query_1 = require("../ai-model/endpoints/queries/get-ai-models.query");
|
|
39
|
+
const generation_model_1 = require("../generation-model/endpoints/generation-model");
|
|
40
|
+
const get_generation_models_query_1 = require("../generation-model/endpoints/queries/get-generation-models.query");
|
|
41
|
+
const get_generation_models_by_type_query_1 = require("../generation-model/endpoints/queries/get-generation-models-by-type.query");
|
|
42
|
+
const generation_job_1 = require("../generation-job/endpoints/generation-job");
|
|
43
|
+
const create_generation_job_command_1 = require("../generation-job/endpoints/commands/create-generation-job.command");
|
|
44
|
+
const delete_generation_job_command_1 = require("../generation-job/endpoints/commands/delete-generation-job.command");
|
|
45
|
+
const update_generation_job_command_1 = require("../generation-job/endpoints/commands/update-generation-job.command");
|
|
46
|
+
const get_generation_job_by_uuid_query_1 = require("../generation-job/endpoints/queries/get-generation-job-by-uuid.query");
|
|
47
|
+
const get_generation_jobs_query_1 = require("../generation-job/endpoints/queries/get-generation-jobs.query");
|
|
48
|
+
const get_generation_job_history_query_1 = require("../generation-job/endpoints/queries/get-generation-job-history.query");
|
|
49
|
+
const generation_job_chat_1 = require("../generation-job-chat/endpoints/generation-job-chat");
|
|
50
|
+
const create_generation_job_chat_command_1 = require("../generation-job-chat/endpoints/commands/create-generation-job-chat.command");
|
|
51
|
+
const update_generation_job_chat_command_1 = require("../generation-job-chat/endpoints/commands/update-generation-job-chat.command");
|
|
52
|
+
const delete_generation_job_chat_command_1 = require("../generation-job-chat/endpoints/commands/delete-generation-job-chat.command");
|
|
53
|
+
const get_generation_job_chats_query_1 = require("../generation-job-chat/endpoints/queries/get-generation-job-chats.query");
|
|
54
|
+
const get_generation_job_chat_by_uuid_query_1 = require("../generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query");
|
|
55
|
+
const get_generation_price_query_1 = require("../generation-model/endpoints/queries/get-generation-price.query");
|
|
56
|
+
const supportedHttpMethods = new Set(['get', 'post', 'put', 'patch', 'delete']);
|
|
57
|
+
function toOpenApiPath(controller, routePath) {
|
|
58
|
+
const normalizedController = controller.replace(/^\/+|\/+$/g, '');
|
|
59
|
+
const normalizedRoute = routePath.replace(/^\/+|\/+$/g, '');
|
|
60
|
+
const joined = `/${normalizedController}/${normalizedRoute}`.replace(/\/+/g, '/');
|
|
61
|
+
return joined.replace(/:([^/]+)/g, '{$1}');
|
|
62
|
+
}
|
|
63
|
+
function buildResponses(contractsResponses, schemaResolver) {
|
|
64
|
+
const entries = Object.entries(contractsResponses).map(([status, schema]) => {
|
|
65
|
+
return [
|
|
66
|
+
status,
|
|
67
|
+
{
|
|
68
|
+
description: `HTTP ${status}`,
|
|
69
|
+
content: {
|
|
70
|
+
'application/json': {
|
|
71
|
+
schema: schemaResolver(schema),
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
});
|
|
77
|
+
return Object.fromEntries(entries);
|
|
78
|
+
}
|
|
79
|
+
function buildSseSuccessResponses(contractsResponses, successStatus, schemaResolver) {
|
|
80
|
+
const entries = Object.entries(contractsResponses).map(([status, schema]) => {
|
|
81
|
+
const statusCode = Number(status);
|
|
82
|
+
const contentType = statusCode === successStatus ? 'text/event-stream' : 'application/json';
|
|
83
|
+
return [
|
|
84
|
+
status,
|
|
85
|
+
{
|
|
86
|
+
description: `HTTP ${status}`,
|
|
87
|
+
content: {
|
|
88
|
+
[contentType]: {
|
|
89
|
+
schema: schemaResolver(schema),
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
});
|
|
95
|
+
return Object.fromEntries(entries);
|
|
96
|
+
}
|
|
97
|
+
async function main() {
|
|
98
|
+
const registry = new zod_to_openapi_1.OpenAPIRegistry();
|
|
99
|
+
const schemaMap = new WeakMap();
|
|
100
|
+
const registerSchema = (name, schema) => {
|
|
101
|
+
const registered = schema.meta({ id: name });
|
|
102
|
+
schemaMap.set(schema, registered);
|
|
103
|
+
return registered;
|
|
104
|
+
};
|
|
105
|
+
const resolveSchema = (schema) => schemaMap.get(schema) ?? schema;
|
|
106
|
+
registerSchema('HttpErrorResponse', error_contract_1.HttpErrorResponseSchema);
|
|
107
|
+
registerSchema('HttpSuccessResponse', success_contract_1.HttpSuccessResponseSchema);
|
|
108
|
+
registerSchema('AuthLoginRequest', login_command_1.AuthLoginSchema.LoginCommandBody);
|
|
109
|
+
registerSchema('AuthLoginResponse', login_command_1.AuthLoginSchema.LoginCommandResponse);
|
|
110
|
+
registerSchema('AuthRegisterRequest', register_command_1.AuthRegisterSchema.RegisterCommandBody);
|
|
111
|
+
registerSchema('AuthRegisterResponse', register_command_1.AuthRegisterSchema.RegisterCommandResponse);
|
|
112
|
+
registerSchema('AuthResetPasswordRequest', reset_password_command_1.AuthResetPasswordSchema.ResetPasswordCommandBody);
|
|
113
|
+
registerSchema('AuthResetPasswordResponse', reset_password_command_1.AuthResetPasswordSchema.ResetPasswordCommandResponse);
|
|
114
|
+
registerSchema('AuthRestorePasswordRequest', restore_password_command_1.AuthRestorePasswordSchema.RestorePasswordCommandBody);
|
|
115
|
+
registerSchema('AuthRestorePasswordResponse', restore_password_command_1.AuthRestorePasswordSchema.RestorePasswordCommandResponse);
|
|
116
|
+
registerSchema('AuthVerifyEmailRequest', verify_email_command_1.AuthVerifyEmailSchema.VerifyEmailCommandBody);
|
|
117
|
+
registerSchema('AuthVerifyEmailResponse', verify_email_command_1.AuthVerifyEmailSchema.VerifyEmailCommandResponse);
|
|
118
|
+
registerSchema('AuthVerifyEmailRetryRequest', verify_email_retry_command_1.AuthVerifyEmailRetrySchema.VerifyEmailRetryCommandBody);
|
|
119
|
+
registerSchema('AuthVerifyEmailRetryResponse', verify_email_retry_command_1.AuthVerifyEmailRetrySchema.VerifyEmailRetryCommandResponse);
|
|
120
|
+
registerSchema('AuthDeleteAccountResponse', delete_account_command_1.AuthDeleteAccountSchema.DeleteAccountCommandResponse);
|
|
121
|
+
registerSchema('AuthChangePasswordRequest', change_password_command_1.AuthChangePasswordSchema.ChangePasswordCommandBody);
|
|
122
|
+
registerSchema('AuthChangePasswordResponse', change_password_command_1.AuthChangePasswordSchema.ChangePasswordCommandResponse);
|
|
123
|
+
registerSchema('ChatCreateRequest', create_chat_command_1.CreateChatCommandBody);
|
|
124
|
+
registerSchema('ChatCreateResponse', create_chat_command_1.CreateChatCommandResponse);
|
|
125
|
+
registerSchema('ChatGetAllResponse', get_chats_query_1.GetChatsQueryResponse);
|
|
126
|
+
registerSchema('ChatGetByUuidParams', get_chat_by_uuid_query_1.GetChatByUuidQueryParams);
|
|
127
|
+
registerSchema('ChatGetByUuidResponse', get_chat_by_uuid_query_1.GetChatByUuidQueryResponse);
|
|
128
|
+
registerSchema('ChatUpdateParams', update_chat_command_1.UpdateChatCommandParams);
|
|
129
|
+
registerSchema('ChatUpdateRequest', update_chat_command_1.UpdateChatCommandBody);
|
|
130
|
+
registerSchema('ChatUpdateResponse', update_chat_command_1.UpdateChatCommandResponse);
|
|
131
|
+
registerSchema('ChatDeleteParams', delete_chat_command_1.DeleteChatCommandParams);
|
|
132
|
+
registerSchema('ChatDeleteResponse', delete_chat_command_1.DeleteChatCommandResponse);
|
|
133
|
+
registerSchema('MessageCreateRequest', create_message_command_1.CreateMessageCommandBody);
|
|
134
|
+
registerSchema('MessageCreateResponse', create_message_command_1.CreateMessageCommandResponse);
|
|
135
|
+
registerSchema('MessageGetByUuidParams', get_message_by_uuid_query_1.GetMessageByUuidQueryParams);
|
|
136
|
+
registerSchema('MessageGetByUuidResponse', get_message_by_uuid_query_1.GetMessageByUuidQueryResponse);
|
|
137
|
+
registerSchema('MessageGetByChatParams', get_messages_by_chat_query_1.GetMessagesByChatQueryParams);
|
|
138
|
+
registerSchema('MessageGetByChatResponse', get_messages_by_chat_query_1.GetMessagesByChatQueryResponse);
|
|
139
|
+
registerSchema('MessagePriceEstimateQuery', get_message_price_estimate_query_1.GetMessagePriceEstimateQueryQuery);
|
|
140
|
+
registerSchema('MessagePriceEstimateResponse', get_message_price_estimate_query_1.GetMessagePriceEstimateQueryResponse);
|
|
141
|
+
registerSchema('MessageDeleteParams', delete_message_command_1.DeleteMessageCommandParams);
|
|
142
|
+
registerSchema('MessageDeleteResponse', delete_message_command_1.DeleteMessageCommandResponse);
|
|
143
|
+
registerSchema('FileUploadRequest', upload_file_command_1.UploadFileCommandBody);
|
|
144
|
+
registerSchema('FileUploadResponse', upload_file_command_1.UploadFileCommandResponse);
|
|
145
|
+
registerSchema('WalletBalanceResponse', get_wallet_balance_query_1.GetWalletBalanceQueryResponse);
|
|
146
|
+
registerSchema('WalletTransactionsQuery', get_wallet_transactions_query_1.GetWalletTransactionsQueryQuery);
|
|
147
|
+
registerSchema('WalletTransactionsResponse', get_wallet_transactions_query_1.GetWalletTransactionsQueryResponse);
|
|
148
|
+
registerSchema('PaymentCreateRequest', create_payment_command_1.CreatePaymentCommandBody);
|
|
149
|
+
registerSchema('PaymentCreateResponse', create_payment_command_1.CreatePaymentCommandResponse);
|
|
150
|
+
registerSchema('AiModelsGetAllResponse', get_ai_models_query_1.GetAllAiModelsQueryResponse);
|
|
151
|
+
registerSchema('AiModelsGetByUuidParams', get_ai_model_by_uuid_query_1.GetAiModelByUuidQueryParams);
|
|
152
|
+
registerSchema('AiModelsGetByUuidResponse', get_ai_model_by_uuid_query_1.GetAiModelByUuidQueryResponse);
|
|
153
|
+
registerSchema('GenerationModelGetAllResponse', get_generation_models_query_1.GetGenerationModelsQueryResponse);
|
|
154
|
+
registerSchema('GenerationModelGetByTypeParams', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryParams);
|
|
155
|
+
registerSchema('GenerationModelGetByTypeResponse', get_generation_models_by_type_query_1.GetGenerationModelsByTypeQueryResponse);
|
|
156
|
+
registerSchema('GenerationJobCreateRequest', create_generation_job_command_1.CreateGenerationJobCommandBody);
|
|
157
|
+
registerSchema('GenerationJobCreateResponse', create_generation_job_command_1.CreateGenerationJobCommandResponse);
|
|
158
|
+
registerSchema('GenerationJobGetAllResponse', get_generation_jobs_query_1.GetGenerationJobsQueryResponse);
|
|
159
|
+
registerSchema('GenerationJobGetByUuidParams', get_generation_job_by_uuid_query_1.GetGenerationJobByUuidQueryParams);
|
|
160
|
+
registerSchema('GenerationJobGetByUuidResponse', get_generation_job_by_uuid_query_1.GetGenerationJobByUuidQueryResponse);
|
|
161
|
+
registerSchema('GenerationJobUpdateParams', update_generation_job_command_1.UpdateGenerationJobCommandParams);
|
|
162
|
+
registerSchema('GenerationJobUpdateRequest', update_generation_job_command_1.UpdateGenerationJobCommandBody);
|
|
163
|
+
registerSchema('GenerationJobUpdateResponse', update_generation_job_command_1.UpdateGenerationJobCommandResponse);
|
|
164
|
+
registerSchema('GenerationJobDeleteParams', delete_generation_job_command_1.DeleteGenerationJobCommandParams);
|
|
165
|
+
registerSchema('GenerationJobDeleteResponse', delete_generation_job_command_1.DeleteGenerationJobCommandResponse);
|
|
166
|
+
registerSchema('GenerationJobHistoryQuery', get_generation_job_history_query_1.GetGenerationJobHistoryQueryQuery);
|
|
167
|
+
registerSchema('GenerationJobHistoryResponse', get_generation_job_history_query_1.GetGenerationJobHistoryQueryResponse);
|
|
168
|
+
registerSchema('GenerationJobChatCreateRequest', create_generation_job_chat_command_1.CreateGenerationJobChatCommandBody);
|
|
169
|
+
registerSchema('GenerationJobChatCreateResponse', create_generation_job_chat_command_1.CreateGenerationJobChatCommandResponse);
|
|
170
|
+
registerSchema('GenerationJobChatGetAllQuery', get_generation_job_chats_query_1.GetGenerationJobChatsQueryQuery);
|
|
171
|
+
registerSchema('GenerationJobChatGetAllResponse', get_generation_job_chats_query_1.GetGenerationJobChatsQueryResponse);
|
|
172
|
+
registerSchema('GenerationJobChatGetByUuidParams', get_generation_job_chat_by_uuid_query_1.GetGenerationJobChatByUuidQueryParams);
|
|
173
|
+
registerSchema('GenerationJobChatGetByUuidResponse', get_generation_job_chat_by_uuid_query_1.GetGenerationJobChatByUuidQueryResponse);
|
|
174
|
+
registerSchema('GenerationJobChatUpdateParams', update_generation_job_chat_command_1.UpdateGenerationJobChatCommandParams);
|
|
175
|
+
registerSchema('GenerationJobChatUpdateRequest', update_generation_job_chat_command_1.UpdateGenerationJobChatCommandBody);
|
|
176
|
+
registerSchema('GenerationJobChatUpdateResponse', update_generation_job_chat_command_1.UpdateGenerationJobChatCommandResponse);
|
|
177
|
+
registerSchema('GenerationJobChatDeleteParams', delete_generation_job_chat_command_1.DeleteGenerationJobChatCommandParams);
|
|
178
|
+
registerSchema('GenerationJobChatDeleteResponse', delete_generation_job_chat_command_1.DeleteGenerationJobChatCommandResponse);
|
|
179
|
+
registerSchema('GenerationPriceParams', get_generation_price_query_1.GetGenerationPriceBodyParams);
|
|
180
|
+
registerSchema('GenerationPriceRequest', get_generation_price_query_1.GetGenerationPriceBody);
|
|
181
|
+
registerSchema('GenerationPriceResponse', get_generation_price_query_1.GetGenerationPriceResponse);
|
|
182
|
+
const authContracts = [
|
|
183
|
+
register_command_1.RegisterCommand,
|
|
184
|
+
login_command_1.LoginCommand,
|
|
185
|
+
delete_account_command_1.DeleteAccountCommand,
|
|
186
|
+
reset_password_command_1.ResetPasswordCommand,
|
|
187
|
+
restore_password_command_1.RestorePasswordCommand,
|
|
188
|
+
change_password_command_1.ChangePasswordCommand,
|
|
189
|
+
verify_email_command_1.VerifyEmailCommand,
|
|
190
|
+
verify_email_retry_command_1.VerifyEmailRetryCommand,
|
|
191
|
+
];
|
|
192
|
+
const chatContracts = [
|
|
193
|
+
create_chat_command_1.CreateChatCommand,
|
|
194
|
+
get_chats_query_1.GetChatsQuery,
|
|
195
|
+
get_chat_by_uuid_query_1.GetChatByUuidQuery,
|
|
196
|
+
update_chat_command_1.UpdateChatCommand,
|
|
197
|
+
delete_chat_command_1.DeleteChatCommand,
|
|
198
|
+
];
|
|
199
|
+
const messageContracts = [
|
|
200
|
+
create_message_command_1.CreateMessageCommand,
|
|
201
|
+
get_message_price_estimate_query_1.GetMessagePriceEstimateQuery,
|
|
202
|
+
get_messages_by_chat_query_1.GetMessagesByChatQuery,
|
|
203
|
+
get_message_by_uuid_query_1.GetMessageByUuidQuery,
|
|
204
|
+
delete_message_command_1.DeleteMessageCommand,
|
|
205
|
+
];
|
|
206
|
+
const fileContracts = [upload_file_command_1.UploadFileCommand];
|
|
207
|
+
const walletContracts = [get_wallet_balance_query_1.GetWalletBalanceQuery, get_wallet_transactions_query_1.GetWalletTransactionsQuery];
|
|
208
|
+
const paymentContracts = [create_payment_command_1.CreatePaymentCommand];
|
|
209
|
+
const aiModelContracts = [get_ai_models_query_1.GetAllAiModelsQuery, get_ai_model_by_uuid_query_1.GetAiModelByUuidQuery];
|
|
210
|
+
const generationModelContracts = [
|
|
211
|
+
get_generation_models_query_1.GetGenerationModelsQuery,
|
|
212
|
+
get_generation_models_by_type_query_1.GetGenerationModelsByTypeQuery,
|
|
213
|
+
get_generation_price_query_1.GetGenerationPriceQuery,
|
|
214
|
+
];
|
|
215
|
+
const generationJobContracts = [
|
|
216
|
+
create_generation_job_command_1.CreateGenerationJobCommand,
|
|
217
|
+
get_generation_jobs_query_1.GetGenerationJobsQuery,
|
|
218
|
+
get_generation_job_by_uuid_query_1.GetGenerationJobByUuidQuery,
|
|
219
|
+
get_generation_job_history_query_1.GetGenerationJobHistoryQuery,
|
|
220
|
+
update_generation_job_command_1.UpdateGenerationJobCommand,
|
|
221
|
+
delete_generation_job_command_1.DeleteGenerationJobCommand,
|
|
222
|
+
];
|
|
223
|
+
const generationJobChatContracts = [
|
|
224
|
+
create_generation_job_chat_command_1.CreateGenerationJobChatCommand,
|
|
225
|
+
get_generation_job_chats_query_1.GetGenerationJobChatsQuery,
|
|
226
|
+
get_generation_job_chat_by_uuid_query_1.GetGenerationJobChatByUuidQuery,
|
|
227
|
+
update_generation_job_chat_command_1.UpdateGenerationJobChatCommand,
|
|
228
|
+
delete_generation_job_chat_command_1.DeleteGenerationJobChatCommand,
|
|
229
|
+
];
|
|
230
|
+
for (const contract of authContracts) {
|
|
231
|
+
const method = contract.method.toLowerCase();
|
|
232
|
+
if (!supportedHttpMethods.has(method)) {
|
|
233
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
234
|
+
}
|
|
235
|
+
registry.registerPath({
|
|
236
|
+
method: method,
|
|
237
|
+
path: toOpenApiPath(auth_1.AUTH_CONTROLLER, contract.path),
|
|
238
|
+
summary: contract.summary,
|
|
239
|
+
tags: ['Auth'],
|
|
240
|
+
request: {
|
|
241
|
+
...(contract.request?.body
|
|
242
|
+
? {
|
|
243
|
+
body: {
|
|
244
|
+
required: true,
|
|
245
|
+
content: {
|
|
246
|
+
'application/json': {
|
|
247
|
+
schema: resolveSchema(contract.request.body),
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
}
|
|
252
|
+
: {}),
|
|
253
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
254
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
255
|
+
},
|
|
256
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
for (const contract of chatContracts) {
|
|
260
|
+
const method = contract.method.toLowerCase();
|
|
261
|
+
if (!supportedHttpMethods.has(method)) {
|
|
262
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
263
|
+
}
|
|
264
|
+
registry.registerPath({
|
|
265
|
+
method: method,
|
|
266
|
+
path: toOpenApiPath(chat_1.CHAT_CONTROLLER, contract.path),
|
|
267
|
+
summary: contract.summary,
|
|
268
|
+
tags: ['Chat'],
|
|
269
|
+
request: {
|
|
270
|
+
...(contract.request?.body
|
|
271
|
+
? {
|
|
272
|
+
body: {
|
|
273
|
+
required: true,
|
|
274
|
+
content: {
|
|
275
|
+
'application/json': {
|
|
276
|
+
schema: resolveSchema(contract.request.body),
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
}
|
|
281
|
+
: {}),
|
|
282
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
283
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
284
|
+
},
|
|
285
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
for (const contract of messageContracts) {
|
|
289
|
+
const method = contract.method.toLowerCase();
|
|
290
|
+
if (!supportedHttpMethods.has(method)) {
|
|
291
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
292
|
+
}
|
|
293
|
+
registry.registerPath({
|
|
294
|
+
method: method,
|
|
295
|
+
path: toOpenApiPath(message_1.MESSAGE_CONTROLLER, contract.path),
|
|
296
|
+
summary: contract.summary,
|
|
297
|
+
tags: ['Message'],
|
|
298
|
+
request: {
|
|
299
|
+
...(contract.request?.body
|
|
300
|
+
? {
|
|
301
|
+
body: {
|
|
302
|
+
required: true,
|
|
303
|
+
content: {
|
|
304
|
+
'application/json': {
|
|
305
|
+
schema: resolveSchema(contract.request.body),
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
}
|
|
310
|
+
: {}),
|
|
311
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
312
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
313
|
+
},
|
|
314
|
+
responses: contract === create_message_command_1.CreateMessageCommand
|
|
315
|
+
? buildSseSuccessResponses(contract.responses, 201, resolveSchema)
|
|
316
|
+
: buildResponses(contract.responses, resolveSchema),
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
for (const contract of fileContracts) {
|
|
320
|
+
const method = contract.method.toLowerCase();
|
|
321
|
+
if (!supportedHttpMethods.has(method)) {
|
|
322
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
323
|
+
}
|
|
324
|
+
registry.registerPath({
|
|
325
|
+
method: method,
|
|
326
|
+
path: toOpenApiPath(file_1.FILE_CONTROLLER, contract.path),
|
|
327
|
+
summary: contract.summary,
|
|
328
|
+
tags: ['File'],
|
|
329
|
+
request: {
|
|
330
|
+
...(contract.request?.body
|
|
331
|
+
? {
|
|
332
|
+
body: {
|
|
333
|
+
required: true,
|
|
334
|
+
content: {
|
|
335
|
+
'multipart/form-data': {
|
|
336
|
+
schema: resolveSchema(contract.request.body),
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
}
|
|
341
|
+
: {}),
|
|
342
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
343
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
344
|
+
},
|
|
345
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
for (const contract of walletContracts) {
|
|
349
|
+
const method = contract.method.toLowerCase();
|
|
350
|
+
if (!supportedHttpMethods.has(method)) {
|
|
351
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
352
|
+
}
|
|
353
|
+
registry.registerPath({
|
|
354
|
+
method: method,
|
|
355
|
+
path: toOpenApiPath(wallet_1.WALLET_CONTROLLER, contract.path),
|
|
356
|
+
summary: contract.summary,
|
|
357
|
+
tags: ['Wallet'],
|
|
358
|
+
request: {
|
|
359
|
+
...(contract.request?.body
|
|
360
|
+
? {
|
|
361
|
+
body: {
|
|
362
|
+
required: true,
|
|
363
|
+
content: {
|
|
364
|
+
'application/json': {
|
|
365
|
+
schema: resolveSchema(contract.request.body),
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
}
|
|
370
|
+
: {}),
|
|
371
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
372
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
373
|
+
},
|
|
374
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
for (const contract of paymentContracts) {
|
|
378
|
+
const method = contract.method.toLowerCase();
|
|
379
|
+
if (!supportedHttpMethods.has(method)) {
|
|
380
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
381
|
+
}
|
|
382
|
+
registry.registerPath({
|
|
383
|
+
method: method,
|
|
384
|
+
path: toOpenApiPath(payment_1.PAYMENT_CONTROLLER, contract.path),
|
|
385
|
+
summary: contract.summary,
|
|
386
|
+
tags: ['Payment'],
|
|
387
|
+
request: {
|
|
388
|
+
...(contract.request?.body
|
|
389
|
+
? {
|
|
390
|
+
body: {
|
|
391
|
+
required: true,
|
|
392
|
+
content: {
|
|
393
|
+
'application/json': {
|
|
394
|
+
schema: resolveSchema(contract.request.body),
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
}
|
|
399
|
+
: {}),
|
|
400
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
401
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
402
|
+
},
|
|
403
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
for (const contract of aiModelContracts) {
|
|
407
|
+
const method = contract.method.toLowerCase();
|
|
408
|
+
if (!supportedHttpMethods.has(method)) {
|
|
409
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
410
|
+
}
|
|
411
|
+
registry.registerPath({
|
|
412
|
+
method: method,
|
|
413
|
+
path: toOpenApiPath(ai_model_1.AI_MODELS_CONTROLLER, contract.path),
|
|
414
|
+
summary: contract.summary,
|
|
415
|
+
tags: ['AI Models'],
|
|
416
|
+
request: {
|
|
417
|
+
...(contract.request?.body
|
|
418
|
+
? {
|
|
419
|
+
body: {
|
|
420
|
+
required: true,
|
|
421
|
+
content: {
|
|
422
|
+
'application/json': {
|
|
423
|
+
schema: resolveSchema(contract.request.body),
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
}
|
|
428
|
+
: {}),
|
|
429
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
430
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
431
|
+
},
|
|
432
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
for (const contract of generationModelContracts) {
|
|
436
|
+
const method = contract.method.toLowerCase();
|
|
437
|
+
if (!supportedHttpMethods.has(method)) {
|
|
438
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
439
|
+
}
|
|
440
|
+
registry.registerPath({
|
|
441
|
+
method: method,
|
|
442
|
+
path: toOpenApiPath(generation_model_1.GENERATION_MODEL_CONTROLLER, contract.path),
|
|
443
|
+
summary: contract.summary,
|
|
444
|
+
tags: ['Generation Models'],
|
|
445
|
+
request: {
|
|
446
|
+
...(contract.request?.body
|
|
447
|
+
? {
|
|
448
|
+
body: {
|
|
449
|
+
required: true,
|
|
450
|
+
content: {
|
|
451
|
+
'application/json': {
|
|
452
|
+
schema: resolveSchema(contract.request.body),
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
}
|
|
457
|
+
: {}),
|
|
458
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
459
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
460
|
+
},
|
|
461
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
for (const contract of generationJobContracts) {
|
|
465
|
+
const method = contract.method.toLowerCase();
|
|
466
|
+
if (!supportedHttpMethods.has(method)) {
|
|
467
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
468
|
+
}
|
|
469
|
+
registry.registerPath({
|
|
470
|
+
method: method,
|
|
471
|
+
path: toOpenApiPath(generation_job_1.GENERATION_JOB_CONTROLLER, contract.path),
|
|
472
|
+
summary: contract.summary,
|
|
473
|
+
tags: ['Generation Jobs'],
|
|
474
|
+
request: {
|
|
475
|
+
...(contract.request?.body
|
|
476
|
+
? {
|
|
477
|
+
body: {
|
|
478
|
+
required: true,
|
|
479
|
+
content: {
|
|
480
|
+
'application/json': {
|
|
481
|
+
schema: resolveSchema(contract.request.body),
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
}
|
|
486
|
+
: {}),
|
|
487
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
488
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
489
|
+
},
|
|
490
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
for (const contract of generationJobChatContracts) {
|
|
494
|
+
const method = contract.method.toLowerCase();
|
|
495
|
+
if (!supportedHttpMethods.has(method)) {
|
|
496
|
+
throw new Error(`Unsupported HTTP method: ${contract.method}`);
|
|
497
|
+
}
|
|
498
|
+
registry.registerPath({
|
|
499
|
+
method: method,
|
|
500
|
+
path: toOpenApiPath(generation_job_chat_1.GENERATION_JOB_CHAT_CONTROLLER, contract.path),
|
|
501
|
+
summary: contract.summary,
|
|
502
|
+
tags: ['Generation Job Chats'],
|
|
503
|
+
request: {
|
|
504
|
+
...(contract.request?.body
|
|
505
|
+
? {
|
|
506
|
+
body: {
|
|
507
|
+
required: true,
|
|
508
|
+
content: {
|
|
509
|
+
'application/json': {
|
|
510
|
+
schema: resolveSchema(contract.request.body),
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
}
|
|
515
|
+
: {}),
|
|
516
|
+
...(contract.request?.query ? { query: resolveSchema(contract.request.query) } : {}),
|
|
517
|
+
...(contract.request?.params ? { params: resolveSchema(contract.request.params) } : {}),
|
|
518
|
+
},
|
|
519
|
+
responses: buildResponses(contract.responses, resolveSchema),
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
const generator = new zod_to_openapi_1.OpenApiGeneratorV3(registry.definitions);
|
|
523
|
+
const document = generator.generateDocument({
|
|
524
|
+
openapi: '3.0.0',
|
|
525
|
+
info: {
|
|
526
|
+
title: 'AI Aggregator API',
|
|
527
|
+
version: '1.0.0',
|
|
528
|
+
},
|
|
529
|
+
servers: [{ url: '/' }],
|
|
530
|
+
});
|
|
531
|
+
const outputPath = (0, node_path_1.resolve)(process.cwd(), process.argv[2] ?? 'libs/contract/build/openapi.json');
|
|
532
|
+
await (0, promises_1.mkdir)((0, node_path_1.dirname)(outputPath), { recursive: true });
|
|
533
|
+
await (0, promises_1.writeFile)(outputPath, JSON.stringify(document, null, 2), 'utf-8');
|
|
534
|
+
console.log(`OpenAPI generated: ${outputPath}`);
|
|
535
|
+
}
|
|
536
|
+
void main();
|