@intlayer/api 9.5.2 → 9.5.4-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/dist/cjs/getIntlayerAPI/index.cjs +1 -1
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/proxy.cjs +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +1 -1
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/proxy.mjs +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -2
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +1 -3
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +1 -3
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +0 -2
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +1 -3
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -2
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +1 -3
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +1 -2
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -2
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +0 -3
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +1 -2
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +1 -5
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +31 -636
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +1 -2
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +1 -2
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +0 -2
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +1 -2
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +1 -2
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +1 -2
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +3 -7
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -9
- package/dist/types/public/createPublicClient.d.ts +1 -2
- package/dist/types/public/createPublicClient.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -2
- package/package.json +5 -4
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +0 -8
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts +0 -78
- package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/analytics.controller.d.ts +0 -31
- package/dist/types/apps/backend/dist/types/controllers/analytics.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts +0 -12
- package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/audit.controller.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/controllers/bitbucket.controller.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts +0 -14
- package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts +0 -62
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts +0 -26
- package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/eventListener.controller.d.ts +0 -2
- package/dist/types/apps/backend/dist/types/controllers/github.controller.d.ts +0 -2
- package/dist/types/apps/backend/dist/types/controllers/gitlab.controller.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts +0 -16
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts +0 -7
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts +0 -38
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts +0 -50
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts +0 -17
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts +0 -13
- package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/publicDictionary.controller.d.ts +0 -2
- package/dist/types/apps/backend/dist/types/controllers/publicToken.controller.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts +0 -31
- package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts +0 -69
- package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts +0 -19
- package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts +0 -50
- package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts +0 -91
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts +0 -22
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts +0 -15
- package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts +0 -30
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/export.d.ts +0 -67
- package/dist/types/apps/backend/dist/types/routes/ai.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/analytics.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/asset.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/audit.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/bitbucket.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/dictionary.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/environment.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/github.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/gitlab.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/newsletter.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/organization.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/project.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/reviewer.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/showcaseProject.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/stripe.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/translate.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/routes/user.routes.d.ts +0 -1
- package/dist/types/apps/backend/dist/types/services/audit/types.d.ts +0 -52
- package/dist/types/apps/backend/dist/types/services/audit/types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/services/ci.service.d.ts +0 -2
- package/dist/types/apps/backend/dist/types/services/github.service.d.ts +0 -2
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts +0 -14
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts +0 -40
- package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts +0 -25
- package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts +0 -35
- package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/analytics.types.d.ts +0 -128
- package/dist/types/apps/backend/dist/types/types/analytics.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/asset.types.d.ts +0 -30
- package/dist/types/apps/backend/dist/types/types/asset.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts +0 -67
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts +0 -41
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts +0 -14
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts +0 -105
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts +0 -22
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts +0 -127
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts +0 -79
- package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts +0 -25
- package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts +0 -60
- package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/session.types.d.ts +0 -8
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts +0 -57
- package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts +0 -30
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts +0 -31
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts +0 -8
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts +0 -14
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts +0 -11
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +0 -4
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts +0 -10
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts +0 -16
- package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts +0 -11
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts +0 -20
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/auth/getAuth.d.ts +0 -3
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +0 -42
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +0 -20
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +0 -11
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +0 -28
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +0 -21
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +0 -19
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +0 -23
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts +0 -408
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts +0 -9
- package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts.map +0 -1
- package/dist/types/apps/backend/dist/types/utils/permissions.d.ts +0 -7
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts +0 -25
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +0 -8
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +0 -18
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/export.d.ts +0 -3
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +0 -408
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +0 -1
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +0 -18
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts +0 -119
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts +0 -12
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts +0 -9
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts +0 -30
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts +0 -9
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/dictionaryManipulator/plainDynamicLoader.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/dictionaryManipulator/qualifiedDynamicLoader.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/formatters/compact.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/currency.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/date.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/index.d.ts +0 -9
- package/dist/types/packages/@intlayer/core/dist/types/formatters/list.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/number.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/percentage.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/relativeTime.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/formatters/units.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/dictionaryTransformCache.d.ts +0 -4
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getCondition.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/deepTransform.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/getContent.d.ts +0 -3
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/index.d.ts +0 -3
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getContent/plugins.d.ts +0 -7
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getDictionary.d.ts +0 -4
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getDictionaryAsync.d.ts +0 -6
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getEnumeration.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getGender.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getInsertion.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getIntlayer.d.ts +0 -4
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getIntlayerAsync.d.ts +0 -4
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getNesting.d.ts +0 -6
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getPlural.d.ts +0 -3
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getSelect.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/getTranslation.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/index.d.ts +0 -18
- package/dist/types/packages/@intlayer/core/dist/types/interpreter/interpolableNode.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/comparePaths.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/domainUtils.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/generateSitemap.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getBrowserLocale.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getCanonicalPath.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getHTMLTextDir.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocale.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleFromPath.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleLang.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocaleName.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocalizedPath.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getLocalizedUrl.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getMultilingualUrls.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/getPathWithoutLocale.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/getPrefix.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/index.d.ts +0 -22
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeDetector.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeMapper.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/localeResolver.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/resolveBrowserLocale.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/rewriteMatch.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/localization/rewriteUtils.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/localization/validatePrefix.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/markdown/index.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/ICU.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/i18next.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/index.d.ts +0 -5
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/po.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/resolveMessage.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/vue-i18n.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/condition/condition.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/condition/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/enumeration/enumeration.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/enumeration/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/file/file.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/file/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/gender/gender.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/gender/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/html/html.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/html/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/index.d.ts +0 -22
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/insertion/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/insertion/insertion.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/markdown/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/markdown/markdown.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/nesting/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/nesting/nesting.d.ts +0 -4
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/plural/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/plural/plural.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/select/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/select/select.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/translation/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/transpiler/translation/translation.d.ts +0 -2
- package/dist/types/packages/@intlayer/core/dist/types/utils/index.d.ts +0 -3
- package/dist/types/packages/@intlayer/core/dist/types/utils/intl.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/utils/isSameKeyPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/core/dist/types/utils/localeStorage.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/build.d.ts +0 -27
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +0 -6
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/index.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +0 -4
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +0 -3
- package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/cleanOutputDir.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/index.d.ts +0 -5
- package/dist/types/packages/@intlayer/engine/dist/types/createType/createModuleAugmentation.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/createType/createType.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/createType/index.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/formatDictionary.d.ts +0 -3
- package/dist/types/packages/@intlayer/engine/dist/types/intlayer/dist/types/index.d.ts +0 -11
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/index.d.ts +0 -4
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadContentDeclaration.d.ts +0 -3
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadDictionaries.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +0 -3
- package/dist/types/packages/@intlayer/engine/dist/types/prepareIntlayer.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/writeConfiguration/index.d.ts +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +0 -6
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +0 -1
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/index.d.ts +0 -4
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/transformJSFile.d.ts +0 -2
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +0 -4
- package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeJSFile.d.ts +0 -2
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +0 -8
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +0 -1
- package/dist/types/packages/intlayer/dist/types/index.d.ts +0 -13
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +0 -8
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +0 -19
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/export.d.ts +0 -3
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +0 -408
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts +0 -18
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.12.4/node_modules/fastify/fastify.js";
|
|
2
|
-
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/cheerio@1.2.0/node_modules/cheerio/dist/browser/index.js";
|
|
3
|
-
//#region ../../../apps/backend/dist/types/services/audit/types.d.ts
|
|
4
|
-
type Details = null | undefined | string | number | boolean | Details[] | {
|
|
5
|
-
[key: string]: Details;
|
|
6
|
-
};
|
|
7
|
-
type AuditStatus = 'started' | 'success' | 'warning' | 'error' | 'done';
|
|
8
|
-
export type AuditData = {
|
|
9
|
-
successDetails?: Details;
|
|
10
|
-
warningsDetails?: Details;
|
|
11
|
-
errorsDetails?: Details;
|
|
12
|
-
};
|
|
13
|
-
type Url = string;
|
|
14
|
-
/**
|
|
15
|
-
* Prefixes for the per-URL audit checks. The full runtime key is
|
|
16
|
-
* backslash-separated (e.g. `url_hasCanonical\https://example.com`), built by
|
|
17
|
-
* the producers/consumers of {@link AuditEvent}.
|
|
18
|
-
*/
|
|
19
|
-
type UrlAuditCheck = 'url_hasCanonical' | 'url_hasLocalizedLinks' | 'url_currentLocale' | 'url_htmlLang' | 'url_htmlDir' | 'url_hreflang' | 'url_hasXDefault' | 'url_allAnchorsLocalized' | 'url_hasFlagIcons' | 'url_unusedBundleContent';
|
|
20
|
-
/**
|
|
21
|
-
* Keys used to describe each audit check.
|
|
22
|
-
*
|
|
23
|
-
* The per-URL keys interpolate the audited URL as `${UrlAuditCheck}${T}`. The
|
|
24
|
-
* literal backslash that separates the prefix from the URL at runtime is
|
|
25
|
-
* intentionally omitted from the type: the TypeScript 7 native `.d.ts` emitter
|
|
26
|
-
* cannot serialise a backslash inside a template-literal type (it silently
|
|
27
|
-
* drops the whole declaration). Widening the suffix to the interpolated URL is
|
|
28
|
-
* emit-safe and the runtime keys still satisfy the type.
|
|
29
|
-
*/
|
|
30
|
-
export type AuditDataList<T extends Url> = `${UrlAuditCheck}${T}` | 'robots_robotsPresent' | 'robots_noLocalizedUrlsForgotten' | 'sitemap_sitemapPresent' | 'sitemap_noLocalizedUrlsForgotten' | 'sitemap_hasXDefault' | 'sitemap_hasAlternates';
|
|
31
|
-
type Locale = string;
|
|
32
|
-
export type DomainData = {
|
|
33
|
-
discoveredUrls: Record<Locale, string[]>;
|
|
34
|
-
discoveredLocales: Locale[];
|
|
35
|
-
defaultLocale: Locale;
|
|
36
|
-
image: string;
|
|
37
|
-
title: string;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
export type AuditEvent = {
|
|
41
|
-
type?: AuditDataList<Url>;
|
|
42
|
-
status?: AuditStatus;
|
|
43
|
-
data?: AuditData;
|
|
44
|
-
score?: number;
|
|
45
|
-
progress?: number;
|
|
46
|
-
message?: string;
|
|
47
|
-
globalError?: string;
|
|
48
|
-
domainData?: Partial<DomainData>;
|
|
49
|
-
};
|
|
50
|
-
//#endregion
|
|
51
|
-
//#endregion
|
|
52
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../../../../../../../../apps/backend/dist/types/services/audit/types.d.ts"],"mappings":";;;KASK,yDAAyD;GAC3D,cAAc;;KAEZ;YACO;EACV,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;;KAEb;;;;;;KAMA;;;;;;;;;;;YAWO,cAAc,UAAU,UAAU,gBAAgB;KACzD;YACO;EACV,gBAAgB,OAAO;EACvB,mBAAmB;EACnB,eAAe;EACf;EACA;EACA;;YAEU;EACV,OAAO,cAAc;EACrB,SAAS;EACT,OAAO;EACP;EACA;EACA;EACA;EACA,aAAa,QAAQ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import "../types/plan.types.js";
|
|
2
|
-
import "../types/organization.types.js";
|
|
3
|
-
//#region ../../../apps/backend/dist/types/services/subscription.service.d.ts
|
|
4
|
-
export type PricingResult = Record<string, {
|
|
5
|
-
originalTotal: number;
|
|
6
|
-
discountApplied: number;
|
|
7
|
-
discountType: 'amount' | 'percentage' | null;
|
|
8
|
-
finalTotal: number;
|
|
9
|
-
currency: string;
|
|
10
|
-
planType: 'premium' | 'enterprise' | 'one_time' | 'unknown';
|
|
11
|
-
period: 'monthly' | 'yearly' | 'one_time' | 'unknown';
|
|
12
|
-
}>;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=subscription.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.service.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/services/subscription.service.d.ts"],"mappings":";;;YAaY,gBAAgB;EAC1B;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { User } from "./user.types.js";
|
|
3
|
-
import "./organization.types.js";
|
|
4
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
-
//#region ../../../apps/backend/dist/types/types/affiliate.types.d.ts
|
|
6
|
-
//#region src/types/affiliate.types.d.ts
|
|
7
|
-
export type AffiliateStatus = 'pending' | 'onboarding' | 'active' | 'suspended';
|
|
8
|
-
export type CommissionType = 'recurring' | 'one_time';
|
|
9
|
-
export type StripeAccountType = 'express' | 'standard';
|
|
10
|
-
export type AffiliateData = {
|
|
11
|
-
userId: User['id'];
|
|
12
|
-
stripeAccountId?: string;
|
|
13
|
-
stripeAccountType?: StripeAccountType;
|
|
14
|
-
referralCode: string;
|
|
15
|
-
status: AffiliateStatus;
|
|
16
|
-
commissionRate: number;
|
|
17
|
-
commissionType: CommissionType;
|
|
18
|
-
chargesEnabled?: boolean;
|
|
19
|
-
payoutsEnabled?: boolean;
|
|
20
|
-
activatedAt?: Date;
|
|
21
|
-
stripeOnboardingInitiated?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export type Affiliate = AffiliateData & {
|
|
24
|
-
id: Types.ObjectId;
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
updatedAt: Date;
|
|
27
|
-
};
|
|
28
|
-
export type AffiliateAPI = ObjectIdToString<Affiliate>;
|
|
29
|
-
export type AffiliateStats = {
|
|
30
|
-
affiliate: AffiliateAPI;
|
|
31
|
-
totalReferrals: number;
|
|
32
|
-
convertedReferrals: number;
|
|
33
|
-
pendingReferrals: number;
|
|
34
|
-
totalCommissionEarned: number;
|
|
35
|
-
pendingCommission: number;
|
|
36
|
-
referralLink: string;
|
|
37
|
-
};
|
|
38
|
-
//#endregion
|
|
39
|
-
//#endregion
|
|
40
|
-
//# sourceMappingURL=affiliate.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affiliate.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/affiliate.types.d.ts"],"mappings":";;;;;;YAKY;YACA;YAGA;YACA;EACV,QAAQ;EACR;EACA,oBAAoB;EACpB;EACA,QAAQ;EACR;EACA,gBAAgB;EAChB;EACA;EACA,cAAc;EACd;;YAEU,YAAY;EACtB,IAAI,MAAM;EACV,WAAW;EACX,WAAW;;YAED,eAAe,iBAAiB;YAuBhC;EACV,WAAW;EACX;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { User } from "./user.types.js";
|
|
3
|
-
import { CommissionType } from "./affiliate.types.js";
|
|
4
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
-
//#region ../../../apps/backend/dist/types/types/affiliateInvitation.types.d.ts
|
|
6
|
-
//#region src/types/affiliateInvitation.types.d.ts
|
|
7
|
-
export type AffiliateInvitationStatus = 'pending' | 'accepted' | 'expired';
|
|
8
|
-
export type AffiliateInvitationData = {
|
|
9
|
-
email: string;
|
|
10
|
-
token: string;
|
|
11
|
-
status: AffiliateInvitationStatus;
|
|
12
|
-
invitedBy: User['id'];
|
|
13
|
-
commissionRate: number;
|
|
14
|
-
commissionType: CommissionType;
|
|
15
|
-
country?: string;
|
|
16
|
-
expiresAt: Date;
|
|
17
|
-
};
|
|
18
|
-
export type AffiliateInvitation = AffiliateInvitationData & {
|
|
19
|
-
id: Types.ObjectId;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
};
|
|
23
|
-
export type AffiliateInvitationAPI = ObjectIdToString<AffiliateInvitation>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//# sourceMappingURL=affiliateInvitation.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"affiliateInvitation.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/affiliateInvitation.types.d.ts"],"mappings":";;;;;;YAKY;YACA;EACV;EACA;EACA,QAAQ;EACR,WAAW;EACX;EACA,gBAAgB;EAChB;EACA,WAAW;;YAED,sBAAsB;EAChC,IAAI,MAAM;EACV,WAAW;EACX,WAAW;;YAED,yBAAyB,iBAAiB"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
//#region ../../../apps/backend/dist/types/types/aiStats.types.d.ts
|
|
2
|
-
//#region src/types/aiStats.types.d.ts
|
|
3
|
-
/** Aggregated token-usage breakdown per AI model. */
|
|
4
|
-
export type AIModelUsage = {
|
|
5
|
-
/** AI model identifier (e.g. `gpt-4o-mini`). */
|
|
6
|
-
aiModel: string;
|
|
7
|
-
/** Number of discussions that used this model. */
|
|
8
|
-
discussionCount: number;
|
|
9
|
-
/** Total prompt / input tokens consumed by this model. */
|
|
10
|
-
totalInputTokens: number;
|
|
11
|
-
/** Total completion / output tokens produced by this model. */
|
|
12
|
-
totalOutputTokens: number;
|
|
13
|
-
/** Sum of input and output tokens for this model. */
|
|
14
|
-
totalTokens: number;
|
|
15
|
-
};
|
|
16
|
-
/** Project-level AI usage statistics surfaced on the dashboard overview. */
|
|
17
|
-
export type AIStats = {
|
|
18
|
-
/** The project the stats were computed for. */
|
|
19
|
-
projectId: string;
|
|
20
|
-
/** Unix epoch (ms) at which the snapshot was computed. */
|
|
21
|
-
generatedAt: number;
|
|
22
|
-
/** Total number of saved dashboard chat discussions for the project. */
|
|
23
|
-
totalDiscussions: number;
|
|
24
|
-
/** Total prompt / input tokens consumed across all discussions. */
|
|
25
|
-
totalInputTokens: number;
|
|
26
|
-
/** Total completion / output tokens produced across all discussions. */
|
|
27
|
-
totalOutputTokens: number;
|
|
28
|
-
/** Grand total of all tokens (input + output). */
|
|
29
|
-
totalTokens: number;
|
|
30
|
-
/** Per-model breakdown (only includes discussions that recorded token usage). */
|
|
31
|
-
modelUsage: AIModelUsage[];
|
|
32
|
-
};
|
|
33
|
-
//#endregion
|
|
34
|
-
//#endregion
|
|
35
|
-
//# sourceMappingURL=aiStats.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aiStats.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/aiStats.types.d.ts"],"mappings":";;;YAEY;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,YAAY"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { Document, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
-
//#region ../../../apps/backend/dist/types/types/analytics.types.d.ts
|
|
4
|
-
//#region src/types/analytics.types.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* The kind of signal an ingested analytics event carries. Mirrors the wire
|
|
7
|
-
* contract emitted by `@intlayer/analytics`.
|
|
8
|
-
*/
|
|
9
|
-
export type AnalyticsEventType = 'page_view' | 'content_exposure' | 'conversion';
|
|
10
|
-
/**
|
|
11
|
-
* A single event as sent by the client SDK (short keys keep the payload small).
|
|
12
|
-
*/
|
|
13
|
-
export type IncomingAnalyticsEvent = {
|
|
14
|
-
type: AnalyticsEventType;
|
|
15
|
-
/** Client timestamp (ms since epoch). */
|
|
16
|
-
t: number;
|
|
17
|
-
/** Current locale being displayed. */
|
|
18
|
-
locale: string;
|
|
19
|
-
/** Page pathname. */
|
|
20
|
-
url: string;
|
|
21
|
-
/** Referrer host (page views). */
|
|
22
|
-
ref?: string;
|
|
23
|
-
/** Dictionary key (content exposures). */
|
|
24
|
-
dictionaryKey?: string;
|
|
25
|
-
/** Serialized key path (content exposures). */
|
|
26
|
-
keyPath?: string;
|
|
27
|
-
/** Interpreter node type (content exposures). */
|
|
28
|
-
nodeType?: string;
|
|
29
|
-
/** A/B variant (content exposures + conversions). */
|
|
30
|
-
variant?: string;
|
|
31
|
-
/** Coalesced exposure count. */
|
|
32
|
-
count?: number;
|
|
33
|
-
/** Experiment key (conversions). */
|
|
34
|
-
experimentKey?: string;
|
|
35
|
-
/** Conversion goal name. */
|
|
36
|
-
goal?: string;
|
|
37
|
-
/** Optional numeric conversion value. */
|
|
38
|
-
value?: number;
|
|
39
|
-
};
|
|
40
|
-
/** Selectable rolling windows for the audience report. */
|
|
41
|
-
export type AudienceRange = '1h' | '24h' | '7d' | '30d' | '90d' | '6mo' | '1y' | '3y';
|
|
42
|
-
/**
|
|
43
|
-
* Bucket size of the evolution series. Derived from the requested range so a
|
|
44
|
-
* three-year window does not return a thousand daily points.
|
|
45
|
-
*/
|
|
46
|
-
export type AudienceGranularity = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
47
|
-
/** One point of the audience evolution series. */
|
|
48
|
-
export type AudienceSeriesPoint = {
|
|
49
|
-
/**
|
|
50
|
-
* UTC start of the bucket. `YYYY-MM-DDTHH:mm` for the `minute` and `hour`
|
|
51
|
-
* granularities, `YYYY-MM-DD` for `day`, `week`, and `month`.
|
|
52
|
-
*/
|
|
53
|
-
bucket: string;
|
|
54
|
-
/** Distinct visitors first seen in this bucket. */
|
|
55
|
-
users: number;
|
|
56
|
-
/** Page views in this bucket. */
|
|
57
|
-
views: number;
|
|
58
|
-
};
|
|
59
|
-
/** A ranked audience breakdown row (by locale, by country, or by page). */
|
|
60
|
-
export type AudienceBreakdownRow = {
|
|
61
|
-
/** The locale code, country code, or page pathname. */
|
|
62
|
-
key: string;
|
|
63
|
-
/** Distinct visitors for this bucket. */
|
|
64
|
-
users: number;
|
|
65
|
-
/** Page views for this bucket. */
|
|
66
|
-
views: number;
|
|
67
|
-
};
|
|
68
|
-
/** The full audience report backing the dashboard overview. */
|
|
69
|
-
export type AudienceStats = {
|
|
70
|
-
/** Distinct visitors today (UTC). */
|
|
71
|
-
usersToday: number;
|
|
72
|
-
/** Distinct visitors over the last 7 days. */
|
|
73
|
-
usersLast7Days: number;
|
|
74
|
-
/** Distinct visitors over the requested window. */
|
|
75
|
-
usersInRange: number;
|
|
76
|
-
/** Page views over the requested window. */
|
|
77
|
-
viewsInRange: number;
|
|
78
|
-
/** The window this report covers. */
|
|
79
|
-
range: AudienceRange;
|
|
80
|
-
/** Number of hours covered by the window. */
|
|
81
|
-
rangeHours: number;
|
|
82
|
-
/** Bucket size of `series`. */
|
|
83
|
-
granularity: AudienceGranularity;
|
|
84
|
-
/** Evolution over the requested window, oldest bucket first. */
|
|
85
|
-
series: AudienceSeriesPoint[];
|
|
86
|
-
/** Most-consulted locales, highest first. */
|
|
87
|
-
byLocale: AudienceBreakdownRow[];
|
|
88
|
-
/** Visitor location breakdown, highest first. */
|
|
89
|
-
byCountry: AudienceBreakdownRow[];
|
|
90
|
-
/**
|
|
91
|
-
* Most-consulted pages, highest first. Keyed by pathname, so a localized
|
|
92
|
-
* route contributes one row per locale prefix (`/en/pricing`, `/fr/pricing`).
|
|
93
|
-
* Visitors are not attributed per page — only `views` is populated.
|
|
94
|
-
*/
|
|
95
|
-
byPage: AudienceBreakdownRow[];
|
|
96
|
-
};
|
|
97
|
-
/** Aggregated page/locale totals for the dashboard overview. */
|
|
98
|
-
export type AnalyticsOverviewRow = {
|
|
99
|
-
url: string;
|
|
100
|
-
locale: string;
|
|
101
|
-
views: number;
|
|
102
|
-
};
|
|
103
|
-
/** Aggregated per-content exposure totals. */
|
|
104
|
-
export type ContentStatRow = {
|
|
105
|
-
dictionaryKey: string;
|
|
106
|
-
keyPath: string;
|
|
107
|
-
locale: string;
|
|
108
|
-
exposures: number;
|
|
109
|
-
};
|
|
110
|
-
/** Per-variant A/B result with significance. */
|
|
111
|
-
export type ExperimentVariantResult = {
|
|
112
|
-
variant: string;
|
|
113
|
-
exposures: number;
|
|
114
|
-
conversions: number;
|
|
115
|
-
conversionRate: number;
|
|
116
|
-
};
|
|
117
|
-
/** Full A/B experiment result set. */
|
|
118
|
-
export type ExperimentResult = {
|
|
119
|
-
experimentKey: string;
|
|
120
|
-
variants: ExperimentVariantResult[];
|
|
121
|
-
/** Two-proportion z-test p-value of the best variant vs. the control. */
|
|
122
|
-
pValue: number | null;
|
|
123
|
-
/** The best-performing variant, when there is enough data to pick one. */
|
|
124
|
-
winner: string | null;
|
|
125
|
-
};
|
|
126
|
-
//#endregion
|
|
127
|
-
//#endregion
|
|
128
|
-
//# sourceMappingURL=analytics.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/analytics.types.d.ts"],"mappings":";;;;;;;;YAOY;;;;YAIA;EACV,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAgFU;;;;;YAKA;;YAEA;;;;;EAKV;;EAEA;;EAEA;;;YAGU;;EAEV;;EAEA;;EAEA;;;YAGU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;;EAEA,aAAa;;EAEb,QAAQ;;EAER,UAAU;;EAEV,WAAW;;;;;;EAMX,QAAQ;;;YAGE;EACV;EACA;EACA;;;YAGU;EACV;EACA;EACA;EACA;;;YAGU;EACV;EACA;EACA;EACA;;;YAGU;EACV;EACA,UAAU;;EAEV;;EAEA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
-
//#region ../../../apps/backend/dist/types/types/asset.types.d.ts
|
|
4
|
-
//#region src/types/asset.types.d.ts
|
|
5
|
-
export interface Asset extends Document {
|
|
6
|
-
id: Types.ObjectId;
|
|
7
|
-
/** Project this asset belongs to. */
|
|
8
|
-
projectId: Types.ObjectId;
|
|
9
|
-
/** Original file name as provided by the uploader. */
|
|
10
|
-
originalName: string;
|
|
11
|
-
/** MIME type (e.g. "image/jpeg"). */
|
|
12
|
-
mimeType: string;
|
|
13
|
-
/** File size in bytes. */
|
|
14
|
-
size: number;
|
|
15
|
-
/** S3 object key (used for deletion). */
|
|
16
|
-
s3Key: string;
|
|
17
|
-
/** Publicly accessible CDN URL. */
|
|
18
|
-
publicUrl: string;
|
|
19
|
-
/** Optional alt text for accessibility. */
|
|
20
|
-
alt?: string;
|
|
21
|
-
/** Optional caption displayed below the image. */
|
|
22
|
-
caption?: string;
|
|
23
|
-
/** User who uploaded the asset. */
|
|
24
|
-
uploadedBy: Types.ObjectId;
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
updatedAt: Date;
|
|
27
|
-
}
|
|
28
|
-
export type AssetAPI = ObjectIdToString<Asset>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//# sourceMappingURL=asset.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asset.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/asset.types.d.ts"],"mappings":";;;;iBAGiB,cAAc;EAC7B,IAAI,MAAM;;EAEV,WAAW,MAAM;;EAEjB;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,YAAY,MAAM;EAClB,WAAW;EACX,WAAW;;YAED,WAAW,iBAAiB"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { User } from "./user.types.js";
|
|
3
|
-
import { Project } from "./project.types.js";
|
|
4
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
-
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
-
//#region ../../../apps/backend/dist/types/types/dictionary.types.d.ts
|
|
7
|
-
//#region src/types/dictionary.types.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Qualifier coordinates of a dictionary (collections / variants).
|
|
10
|
-
*
|
|
11
|
-
* Pushed dictionaries are unmerged: sibling declarations sharing a `key` are
|
|
12
|
-
* distinguished by these coordinates. Persisting them lets the build re-merge
|
|
13
|
-
* remote dictionaries into a `QualifiedDictionaryGroup` on pull. A plain
|
|
14
|
-
* dictionary leaves all of them undefined.
|
|
15
|
-
*/
|
|
16
|
-
export type DictionaryQualifiers = {
|
|
17
|
-
/**
|
|
18
|
-
* Variant discriminator — a named string (A/B testing, seasonal banners…) or
|
|
19
|
-
* a structured object (CMS records, user-specific copy…).
|
|
20
|
-
*/
|
|
21
|
-
variant?: string | Record<string, string | number>;
|
|
22
|
-
/** Ordered collection item index. */
|
|
23
|
-
item?: number;
|
|
24
|
-
};
|
|
25
|
-
export type DictionaryCreationData = DictionaryQualifiers & {
|
|
26
|
-
projectIds: (Project['id'] | string)[];
|
|
27
|
-
key: string;
|
|
28
|
-
content?: ContentNode;
|
|
29
|
-
title?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
priority?: number;
|
|
32
|
-
importMode?: 'static' | 'dynamic' | 'fetch';
|
|
33
|
-
tags?: string[];
|
|
34
|
-
environmentId?: string;
|
|
35
|
-
};
|
|
36
|
-
export type VersionedContentEl = {
|
|
37
|
-
name?: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
content: ContentNode;
|
|
40
|
-
};
|
|
41
|
-
export type VersionedContent = Map<string, VersionedContentEl>;
|
|
42
|
-
export type DictionaryData = DictionaryQualifiers & {
|
|
43
|
-
key: string;
|
|
44
|
-
content: VersionedContent;
|
|
45
|
-
projectIds: (Project['id'] | string)[];
|
|
46
|
-
creatorId: User['id'];
|
|
47
|
-
title?: string;
|
|
48
|
-
description?: string;
|
|
49
|
-
priority?: number;
|
|
50
|
-
importMode?: 'static' | 'dynamic' | 'fetch';
|
|
51
|
-
tags?: string[];
|
|
52
|
-
/** If set, this dictionary belongs to a specific project environment. Null means shared (visible in all envs). */
|
|
53
|
-
environmentId?: Types.ObjectId | string | null;
|
|
54
|
-
};
|
|
55
|
-
type Dictionary$1 = DictionaryData & {
|
|
56
|
-
id: Types.ObjectId;
|
|
57
|
-
createdAt: number;
|
|
58
|
-
updatedAt: number;
|
|
59
|
-
};
|
|
60
|
-
export type DictionaryAPI = ObjectIdToString<Dictionary & {
|
|
61
|
-
projectIds: (Project['id'] | string)[];
|
|
62
|
-
updatedAt: number;
|
|
63
|
-
createdAt: number;
|
|
64
|
-
}>;
|
|
65
|
-
//#endregion
|
|
66
|
-
export { Dictionary$1 as Dictionary };
|
|
67
|
-
//# sourceMappingURL=dictionary.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/dictionary.types.d.ts"],"mappings":";;;;;;;;;;;;;;;YAcY;;;;;EAKV,mBAAmB;;EAEnB;;YAEU,yBAAyB;EACnC,aAAa;EACb;EACA,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;;YAEU;EACV;EACA;EACA,SAAS;;YAGC,mBAAmB,YAAY;YAC/B,iBAAiB;EAC3B;EACA,SAAS;EACT,aAAa;EACb,WAAW;EACX;EACA;EACA;EACA;EACA;;EAEA,gBAAgB,MAAM;;KAEZ,eAAa;EACvB,IAAI,MAAM;EACV;EACA;;YAEU,gBAAgB,iBAAiB;EAC3C,aAAa;EACb;EACA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
3
|
-
//#region ../../../apps/backend/dist/types/types/discussion.types.d.ts
|
|
4
|
-
//#region src/types/discussion.types.d.ts
|
|
5
|
-
export interface Message {
|
|
6
|
-
role: 'user' | 'assistant' | 'system';
|
|
7
|
-
content: string;
|
|
8
|
-
relatedFiles?: string[];
|
|
9
|
-
timestamp: Date;
|
|
10
|
-
}
|
|
11
|
-
export type DiscussionType = 'doc' | 'dashboard';
|
|
12
|
-
export interface TokenUsage {
|
|
13
|
-
/** Tokens consumed by the input/prompt. */
|
|
14
|
-
inputTokens: number;
|
|
15
|
-
/** Tokens produced in the model output. */
|
|
16
|
-
outputTokens: number;
|
|
17
|
-
/** Sum of inputTokens and outputTokens. */
|
|
18
|
-
totalTokens: number;
|
|
19
|
-
}
|
|
20
|
-
export interface Discussion extends Document {
|
|
21
|
-
id: Types.ObjectId;
|
|
22
|
-
discussionId: string;
|
|
23
|
-
messages: Message[];
|
|
24
|
-
userId?: Types.ObjectId;
|
|
25
|
-
projectId?: Types.ObjectId;
|
|
26
|
-
organizationId?: Types.ObjectId;
|
|
27
|
-
title?: string;
|
|
28
|
-
type?: DiscussionType;
|
|
29
|
-
isArchived: boolean;
|
|
30
|
-
/** AI model identifier used for the last completion in this discussion. */
|
|
31
|
-
aiModel?: string;
|
|
32
|
-
/** Token consumption recorded for the last AI call in this discussion. */
|
|
33
|
-
tokenUsage?: TokenUsage;
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
updatedAt: Date;
|
|
36
|
-
}
|
|
37
|
-
export type DiscussionAPI = ObjectIdToString<Discussion & {
|
|
38
|
-
numberOfMessages: number;
|
|
39
|
-
}>;
|
|
40
|
-
//#endregion
|
|
41
|
-
//# sourceMappingURL=discussion.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"discussion.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/discussion.types.d.ts"],"mappings":";;;;iBAGiB;EACf;EACA;EACA;EACA,WAAW;;YAED;iBACK;;EAEf;;EAEA;;EAEA;;iBAEe,mBAAmB;EAClC,IAAI,MAAM;EACV;EACA,UAAU;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB,iBAAiB,MAAM;EACvB;EACA,OAAO;EACP;;EAEA;;EAEA,aAAa;EACb,WAAW;EACX,WAAW;;YAED,gBAAgB,iBAAiB;EAC3C"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UserAPI } from "./user.types.js";
|
|
2
|
-
import { OrganizationAPI } from "./organization.types.js";
|
|
3
|
-
import { ProjectAPI } from "./project.types.js";
|
|
4
|
-
import { Document } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
-
import { Token } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/@node-oauth+oauth2-server@5.3.0/node_modules/@node-oauth/oauth2-server/index.js";
|
|
6
|
-
//#region ../../../apps/backend/dist/types/types/oAuth2.types.d.ts
|
|
7
|
-
//#region src/types/oAuth2.types.d.ts
|
|
8
|
-
export type OAuth2Token = Token & {
|
|
9
|
-
organization: OrganizationAPI;
|
|
10
|
-
project: ProjectAPI;
|
|
11
|
-
user: UserAPI;
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=oAuth2.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth2.types.d.ts","names":[],"sources":["../../../../../../../../../../apps/backend/dist/types/types/oAuth2.types.d.ts"],"mappings":";;;;;;;YAMY,cAAc;EACxB,cAAc;EACd,SAAS;EACT,MAAM"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import "../utils/mongoDB/types.js";
|
|
2
|
-
import { User } from "./user.types.js";
|
|
3
|
-
import { Plan } from "./plan.types.js";
|
|
4
|
-
import { Document, ObjectIdToString, Types } from "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/mongoose@9.10.0+7f93886e57f5bac2/node_modules/mongoose/index.js";
|
|
5
|
-
//#region ../../../apps/backend/dist/types/types/organization.types.d.ts
|
|
6
|
-
//#region src/types/organization.types.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Note: SSO configuration is managed entirely by better-auth's SSO plugin.
|
|
9
|
-
* The organization only stores a reference to whether SSO is enabled
|
|
10
|
-
* and the domain for SSO provider lookup.
|
|
11
|
-
* See: https://www.better-auth.com/docs/plugins/sso
|
|
12
|
-
*/
|
|
13
|
-
export type OrganizationCreationData = {
|
|
14
|
-
name: Organization['name'];
|
|
15
|
-
};
|
|
16
|
-
/** Supported transactional email providers for a per-organization mailer. */
|
|
17
|
-
export type MailerProvider = 'resend' | 'smtp';
|
|
18
|
-
/**
|
|
19
|
-
* Per-organization mailer configuration.
|
|
20
|
-
*
|
|
21
|
-
* The same shape is used both for the stored document and for API responses,
|
|
22
|
-
* which keeps `Organization` structurally assignable to `OrganizationAPI`.
|
|
23
|
-
* The two representations differ only in which optional fields are populated:
|
|
24
|
-
*
|
|
25
|
-
* - Stored: secrets (`resend.apiKey`, `smtp.password`) hold the encrypted value
|
|
26
|
-
* (see `@utils/crypto/encryption`); the `has*` flags are absent.
|
|
27
|
-
* - API: `mapOrganizationToAPI` strips the secrets and sets the `has*` flags so
|
|
28
|
-
* the dashboard can indicate that a value is configured without exposing it.
|
|
29
|
-
*/
|
|
30
|
-
export type OrganizationMailerConfig = {
|
|
31
|
-
/** Whether org-scoped emails should use this mailer instead of the default. */
|
|
32
|
-
isActive: boolean;
|
|
33
|
-
/** Which provider to send through. */
|
|
34
|
-
provider: MailerProvider;
|
|
35
|
-
/** Display name used in the `From` header (e.g. "Acme"). */
|
|
36
|
-
fromName?: string;
|
|
37
|
-
/** Sender address used in the `From` header (e.g. "no-reply@acme.com"). */
|
|
38
|
-
fromEmail?: string;
|
|
39
|
-
/** Resend-specific settings. */
|
|
40
|
-
resend?: {
|
|
41
|
-
/** Encrypted API key. Present only on the stored document, never in API responses. */
|
|
42
|
-
apiKey?: string;
|
|
43
|
-
/** API-only flag: whether a Resend API key is currently stored. */
|
|
44
|
-
hasApiKey?: boolean;
|
|
45
|
-
};
|
|
46
|
-
/** SMTP-specific settings. */
|
|
47
|
-
smtp?: {
|
|
48
|
-
host?: string;
|
|
49
|
-
port?: number;
|
|
50
|
-
/** Whether to use an implicit TLS connection (usually port 465). */
|
|
51
|
-
secure?: boolean;
|
|
52
|
-
user?: string;
|
|
53
|
-
/** Encrypted password. Present only on the stored document, never in API responses. */
|
|
54
|
-
password?: string;
|
|
55
|
-
/** API-only flag: whether an SMTP password is currently stored. */
|
|
56
|
-
hasPassword?: boolean;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Payload accepted when updating a mailer configuration.
|
|
61
|
-
*
|
|
62
|
-
* Secrets are plaintext and optional: an omitted or empty secret means "keep
|
|
63
|
-
* the value already stored", so the dashboard never has to round-trip it.
|
|
64
|
-
*/
|
|
65
|
-
export type OrganizationMailerConfigInput = {
|
|
66
|
-
isActive: boolean;
|
|
67
|
-
provider: MailerProvider;
|
|
68
|
-
fromName?: string;
|
|
69
|
-
fromEmail?: string;
|
|
70
|
-
resend?: {
|
|
71
|
-
apiKey?: string;
|
|
72
|
-
};
|
|
73
|
-
smtp?: {
|
|
74
|
-
host?: string;
|
|
75
|
-
port?: number;
|
|
76
|
-
secure?: boolean;
|
|
77
|
-
user?: string;
|
|
78
|
-
password?: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export type OrganizationData = {
|
|
82
|
-
name: string;
|
|
83
|
-
membersIds: User['id'][];
|
|
84
|
-
adminsIds: User['id'][];
|
|
85
|
-
/** Whether SSO is configured for this organization (managed by better-auth) */
|
|
86
|
-
ssoEnabled: boolean;
|
|
87
|
-
/** Primary domain for this organization (used for SSO provider lookup) */
|
|
88
|
-
domain: string;
|
|
89
|
-
/**
|
|
90
|
-
* Optional per-organization transactional mailer. When active, org-scoped
|
|
91
|
-
* emails (invites, access keys, reviewer, subscription…) are sent through it.
|
|
92
|
-
* Secrets are stored encrypted; see {@link OrganizationMailerConfig}.
|
|
93
|
-
*/
|
|
94
|
-
mailerConfig?: OrganizationMailerConfig;
|
|
95
|
-
};
|
|
96
|
-
export type Organization = OrganizationData & {
|
|
97
|
-
id: Types.ObjectId;
|
|
98
|
-
creatorId: User['id'];
|
|
99
|
-
plan?: Plan;
|
|
100
|
-
createdAt: number;
|
|
101
|
-
updatedAt: number;
|
|
102
|
-
};
|
|
103
|
-
export type OrganizationAPI = ObjectIdToString<Organization>;
|
|
104
|
-
//#endregion
|
|
105
|
-
//# sourceMappingURL=organization.types.d.ts.map
|