@go-mondo/identity-sdk 0.0.1 → 0.0.2-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yaml +105 -0
- package/.release-please-manifest.json +3 -1
- package/.tsbuildinfo/cjs.json +1 -0
- package/.tsbuildinfo/esm.json +1 -0
- package/.vscode/settings.json +41 -0
- package/CHANGELOG.md +38 -0
- package/biome.json +1 -1
- package/dist/cjs/action/index.d.ts +2 -0
- package/dist/cjs/action/index.d.ts.map +1 -0
- package/dist/cjs/action/index.js +17 -0
- package/dist/cjs/action/schema/base.d.ts +21 -0
- package/dist/cjs/action/schema/base.d.ts.map +1 -0
- package/dist/cjs/action/schema/base.js +19 -0
- package/dist/cjs/action/schema/operations/set-password.d.ts +31 -0
- package/dist/cjs/action/schema/operations/set-password.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/set-password.js +18 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.js +15 -0
- package/dist/cjs/action/schema/operations/sign-up.d.ts +44 -0
- package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/sign-up.js +21 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.js +13 -0
- package/dist/cjs/action/schema/schema.d.ts +92 -0
- package/dist/cjs/action/schema/schema.d.ts.map +1 -0
- package/dist/cjs/action/schema/schema.js +40 -0
- package/dist/cjs/activity/index.d.ts +2 -0
- package/dist/cjs/activity/index.d.ts.map +1 -0
- package/dist/cjs/activity/index.js +17 -0
- package/dist/cjs/activity/schema/base.d.ts +54 -0
- package/dist/cjs/activity/schema/base.d.ts.map +1 -0
- package/dist/cjs/activity/schema/base.js +34 -0
- package/dist/cjs/activity/schema/schema.d.ts +156 -0
- package/dist/cjs/activity/schema/schema.d.ts.map +1 -0
- package/dist/cjs/activity/schema/schema.js +54 -0
- package/dist/cjs/activity/schema/types/authentication.d.ts +29 -0
- package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/authentication.js +16 -0
- package/dist/cjs/activity/schema/types/authorization.d.ts +29 -0
- package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/authorization.js +17 -0
- package/dist/cjs/activity/schema/types/note.d.ts +51 -0
- package/dist/cjs/activity/schema/types/note.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/note.js +17 -0
- package/dist/cjs/activity/schema/types/operation.d.ts +31 -0
- package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/operation.js +18 -0
- package/dist/cjs/activity/schema/types/unknown.d.ts +22 -0
- package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/unknown.js +9 -0
- package/dist/cjs/activity/schema/utils.d.ts +7 -0
- package/dist/cjs/activity/schema/utils.d.ts.map +1 -0
- package/dist/cjs/activity/schema/utils.js +16 -0
- package/dist/cjs/app/index.d.ts +2 -0
- package/dist/cjs/app/index.d.ts.map +1 -0
- package/dist/cjs/app/index.js +17 -0
- package/dist/cjs/app/schema/app.d.ts +58 -0
- package/dist/cjs/app/schema/app.d.ts.map +1 -0
- package/dist/cjs/app/schema/app.js +43 -0
- package/dist/cjs/app/schema/authorization.d.ts +37 -0
- package/dist/cjs/app/schema/authorization.d.ts.map +1 -0
- package/dist/cjs/app/schema/authorization.js +44 -0
- package/dist/cjs/app/schema/oauth.d.ts +30 -0
- package/dist/cjs/app/schema/oauth.d.ts.map +1 -0
- package/dist/cjs/app/schema/oauth.js +21 -0
- package/dist/cjs/app/schema/oidc.d.ts +28 -0
- package/dist/cjs/app/schema/oidc.d.ts.map +1 -0
- package/dist/cjs/app/schema/oidc.js +13 -0
- package/dist/cjs/app/schema/registration.d.ts +22 -0
- package/dist/cjs/app/schema/registration.d.ts.map +1 -0
- package/dist/cjs/app/schema/registration.js +16 -0
- package/dist/cjs/app/schema/saml.d.ts +28 -0
- package/dist/cjs/app/schema/saml.d.ts.map +1 -0
- package/dist/cjs/app/schema/saml.js +13 -0
- package/dist/cjs/app/schema/schema.d.ts +8 -0
- package/dist/cjs/app/schema/schema.d.ts.map +1 -0
- package/dist/cjs/app/schema/schema.js +23 -0
- package/dist/cjs/app/schema/utils.d.ts +11 -0
- package/dist/cjs/app/schema/utils.d.ts.map +1 -0
- package/dist/cjs/app/schema/utils.js +23 -0
- package/dist/cjs/association/index.d.ts +2 -0
- package/dist/cjs/association/index.d.ts.map +1 -0
- package/dist/cjs/association/index.js +17 -0
- package/dist/cjs/association/schema/association.d.ts +82 -0
- package/dist/cjs/association/schema/association.d.ts.map +1 -0
- package/dist/cjs/association/schema/association.js +26 -0
- package/dist/cjs/association/schema/schema.d.ts +2 -0
- package/dist/cjs/association/schema/schema.d.ts.map +1 -0
- package/dist/cjs/association/schema/schema.js +17 -0
- package/dist/cjs/authentication/index.d.ts +2 -0
- package/dist/cjs/authentication/index.d.ts.map +1 -0
- package/dist/cjs/authentication/index.js +17 -0
- package/dist/cjs/authentication/schema/factors.d.ts +48 -0
- package/dist/cjs/authentication/schema/factors.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/factors.js +28 -0
- package/dist/cjs/authentication/schema/factors.test.d.ts +2 -0
- package/dist/cjs/authentication/schema/factors.test.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/factors.test.js +123 -0
- package/dist/cjs/authentication/schema/provider.d.ts +27 -0
- package/dist/cjs/authentication/schema/provider.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/provider.js +24 -0
- package/dist/cjs/authentication/schema/schema.d.ts +6 -0
- package/dist/cjs/authentication/schema/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/schema.js +21 -0
- package/dist/cjs/authentication/schema/session.d.ts +59 -0
- package/dist/cjs/authentication/schema/session.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/session.js +46 -0
- package/dist/cjs/authentication/schema/settings.d.ts +46 -0
- package/dist/cjs/authentication/schema/settings.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/settings.js +16 -0
- package/dist/cjs/authentication/schema/strategy/base.d.ts +54 -0
- package/dist/cjs/authentication/schema/strategy/base.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/base.js +39 -0
- package/dist/cjs/authentication/schema/strategy/schema.d.ts +158 -0
- package/dist/cjs/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/schema.js +39 -0
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts +44 -0
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/email.js +20 -0
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts +99 -0
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/password.js +35 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.js +48 -0
- package/dist/cjs/authorization/index.d.ts +6 -0
- package/dist/cjs/authorization/index.d.ts.map +1 -0
- package/dist/cjs/authorization/index.js +21 -0
- package/dist/cjs/authorization/permissions/resources.d.ts +20 -0
- package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -0
- package/dist/cjs/authorization/permissions/resources.js +57 -0
- package/dist/cjs/authorization/permissions/schema.d.ts +104 -0
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -0
- package/dist/cjs/authorization/permissions/schema.js +66 -0
- package/dist/cjs/authorization/roles/resources.d.ts +20 -0
- package/dist/cjs/authorization/roles/resources.d.ts.map +1 -0
- package/dist/cjs/authorization/roles/resources.js +57 -0
- package/dist/cjs/authorization/roles/schema.d.ts +113 -0
- package/dist/cjs/authorization/roles/schema.d.ts.map +1 -0
- package/dist/cjs/authorization/roles/schema.js +72 -0
- package/dist/cjs/authorization/utils.d.ts +11 -0
- package/dist/cjs/authorization/utils.d.ts.map +1 -0
- package/dist/cjs/authorization/utils.js +23 -0
- package/dist/cjs/common/errors/http.d.ts +17 -0
- package/dist/cjs/common/errors/http.d.ts.map +1 -0
- package/dist/cjs/common/errors/http.js +18 -0
- package/dist/cjs/common/errors/validation.d.ts +11 -0
- package/dist/cjs/common/errors/validation.d.ts.map +1 -0
- package/dist/cjs/common/errors/validation.js +12 -0
- package/dist/cjs/common/index.d.ts +6 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +21 -0
- package/dist/cjs/common/resources/authorization.d.ts +2 -0
- package/dist/cjs/common/resources/authorization.d.ts.map +1 -0
- package/dist/cjs/common/resources/authorization.js +2 -0
- package/dist/cjs/common/resources/init.d.ts +16 -0
- package/dist/cjs/common/resources/init.d.ts.map +1 -0
- package/dist/cjs/common/resources/init.js +38 -0
- package/dist/cjs/common/resources/operations.d.ts +7 -0
- package/dist/cjs/common/resources/operations.d.ts.map +1 -0
- package/dist/cjs/common/resources/operations.js +90 -0
- package/dist/cjs/common/resources/utils.d.ts +18 -0
- package/dist/cjs/common/resources/utils.d.ts.map +1 -0
- package/dist/cjs/common/resources/utils.js +96 -0
- package/dist/cjs/common/schema/aggregate.d.ts +6 -0
- package/dist/cjs/common/schema/aggregate.d.ts.map +1 -0
- package/dist/cjs/common/schema/aggregate.js +8 -0
- package/dist/cjs/common/schema/collection.d.ts +18 -0
- package/dist/cjs/common/schema/collection.d.ts.map +1 -0
- package/dist/cjs/common/schema/collection.js +10 -0
- package/dist/cjs/common/schema/dates.d.ts +39 -0
- package/dist/cjs/common/schema/dates.d.ts.map +1 -0
- package/dist/cjs/common/schema/dates.js +34 -0
- package/dist/cjs/common/schema/dates.test.d.ts +2 -0
- package/dist/cjs/common/schema/dates.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/dates.test.js +33 -0
- package/dist/cjs/common/schema/jwt.d.ts +21 -0
- package/dist/cjs/common/schema/jwt.d.ts.map +1 -0
- package/dist/cjs/common/schema/jwt.js +24 -0
- package/dist/cjs/common/schema/metadata.d.ts +47 -0
- package/dist/cjs/common/schema/metadata.d.ts.map +1 -0
- package/dist/cjs/common/schema/metadata.js +88 -0
- package/dist/cjs/common/schema/metadata.test.d.ts +2 -0
- package/dist/cjs/common/schema/metadata.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/metadata.test.js +62 -0
- package/dist/cjs/common/schema/pagination.d.ts +6 -0
- package/dist/cjs/common/schema/pagination.d.ts.map +1 -0
- package/dist/cjs/common/schema/pagination.js +8 -0
- package/dist/cjs/common/schema/schema.d.ts +8 -0
- package/dist/cjs/common/schema/schema.d.ts.map +1 -0
- package/dist/cjs/common/schema/schema.js +23 -0
- package/dist/cjs/common/schema/sets.d.ts +3 -0
- package/dist/cjs/common/schema/sets.d.ts.map +1 -0
- package/dist/cjs/common/schema/sets.js +9 -0
- package/dist/cjs/customer/index.d.ts +4 -0
- package/dist/cjs/customer/index.d.ts.map +1 -0
- package/dist/cjs/customer/index.js +19 -0
- package/dist/cjs/customer/schema/organization.d.ts +54 -0
- package/dist/cjs/customer/schema/organization.d.ts.map +1 -0
- package/dist/cjs/customer/schema/organization.js +40 -0
- package/dist/cjs/customer/schema/schema.d.ts +4 -0
- package/dist/cjs/customer/schema/schema.d.ts.map +1 -0
- package/dist/cjs/customer/schema/schema.js +19 -0
- package/dist/cjs/customer/schema/utils.d.ts +11 -0
- package/dist/cjs/customer/schema/utils.d.ts.map +1 -0
- package/dist/cjs/customer/schema/utils.js +23 -0
- package/dist/cjs/customer/users/resources.d.ts +20 -0
- package/dist/cjs/customer/users/resources.d.ts.map +1 -0
- package/dist/cjs/customer/users/resources.js +57 -0
- package/dist/cjs/customer/users/schema.d.ts +151 -0
- package/dist/cjs/customer/users/schema.d.ts.map +1 -0
- package/dist/cjs/customer/users/schema.js +91 -0
- package/dist/cjs/customer/users/schema.test.d.ts +2 -0
- package/dist/cjs/customer/users/schema.test.d.ts.map +1 -0
- package/dist/cjs/customer/users/schema.test.js +57 -0
- package/dist/cjs/identity/index.d.ts +2 -0
- package/dist/cjs/identity/index.d.ts.map +1 -0
- package/dist/cjs/identity/index.js +17 -0
- package/dist/cjs/identity/schema/schema.d.ts +7 -0
- package/dist/cjs/identity/schema/schema.d.ts.map +1 -0
- package/dist/cjs/identity/schema/schema.js +9 -0
- package/dist/cjs/oauth/authorize/index.d.ts +2 -0
- package/dist/cjs/oauth/authorize/index.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/index.js +17 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +29 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +34 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +11 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.js +21 -0
- package/dist/cjs/oauth/authorize/schema/schema.d.ts +42 -0
- package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/schema.js +25 -0
- package/dist/cjs/oauth/common/schema.d.ts +62 -0
- package/dist/cjs/oauth/common/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/common/schema.js +54 -0
- package/dist/cjs/oauth/index.d.ts +4 -0
- package/dist/cjs/oauth/index.d.ts.map +1 -0
- package/dist/cjs/oauth/index.js +49 -0
- package/dist/cjs/oauth/token/index.d.ts +2 -0
- package/dist/cjs/oauth/token/index.d.ts.map +1 -0
- package/dist/cjs/oauth/token/index.js +17 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +10 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.js +20 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +21 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.js +25 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +9 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.js +17 -0
- package/dist/cjs/oauth/token/schema/schema.d.ts +28 -0
- package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/schema.js +27 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/workspace/index.d.ts +2 -0
- package/dist/cjs/workspace/index.d.ts.map +1 -0
- package/dist/cjs/workspace/index.js +17 -0
- package/dist/cjs/workspace/schema/authorization.d.ts +31 -0
- package/dist/cjs/workspace/schema/authorization.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/authorization.js +22 -0
- package/dist/cjs/workspace/schema/branding.d.ts +38 -0
- package/dist/cjs/workspace/schema/branding.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/branding.js +25 -0
- package/dist/cjs/workspace/schema/membership.d.ts +25 -0
- package/dist/cjs/workspace/schema/membership.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/membership.js +19 -0
- package/dist/cjs/workspace/schema/registration.d.ts +28 -0
- package/dist/cjs/workspace/schema/registration.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/registration.js +22 -0
- package/dist/cjs/workspace/schema/schema.d.ts +10 -0
- package/dist/cjs/workspace/schema/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/schema.js +25 -0
- package/dist/cjs/workspace/schema/settings.d.ts +23 -0
- package/dist/cjs/workspace/schema/settings.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/settings.js +15 -0
- package/dist/cjs/workspace/schema/tenant.d.ts +57 -0
- package/dist/cjs/workspace/schema/tenant.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/tenant.js +26 -0
- package/dist/cjs/workspace/schema/user-notification.d.ts +62 -0
- package/dist/cjs/workspace/schema/user-notification.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/user-notification.js +44 -0
- package/dist/cjs/workspace/schema/user-preferences.d.ts +26 -0
- package/dist/cjs/workspace/schema/user-preferences.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/user-preferences.js +19 -0
- package/dist/cjs/workspace/schema/utils.d.ts +15 -0
- package/dist/cjs/workspace/schema/utils.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/utils.js +64 -0
- package/dist/esm/action/index.d.ts +2 -0
- package/dist/esm/action/index.d.ts.map +1 -0
- package/dist/esm/action/index.js +1 -0
- package/dist/esm/action/schema/base.d.ts +21 -0
- package/dist/esm/action/schema/base.d.ts.map +1 -0
- package/dist/esm/action/schema/base.js +16 -0
- package/dist/esm/action/schema/operations/set-password.d.ts +31 -0
- package/dist/esm/action/schema/operations/set-password.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/set-password.js +15 -0
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/sign-up-verification.js +12 -0
- package/dist/esm/action/schema/operations/sign-up.d.ts +44 -0
- package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/sign-up.js +18 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.js +10 -0
- package/dist/esm/action/schema/schema.d.ts +92 -0
- package/dist/esm/action/schema/schema.d.ts.map +1 -0
- package/dist/esm/action/schema/schema.js +21 -0
- package/dist/esm/activity/index.d.ts +2 -0
- package/dist/esm/activity/index.d.ts.map +1 -0
- package/dist/esm/activity/index.js +1 -0
- package/dist/esm/activity/schema/base.d.ts +54 -0
- package/dist/esm/activity/schema/base.d.ts.map +1 -0
- package/dist/esm/activity/schema/base.js +31 -0
- package/dist/esm/activity/schema/schema.d.ts +156 -0
- package/dist/esm/activity/schema/schema.d.ts.map +1 -0
- package/dist/esm/activity/schema/schema.js +33 -0
- package/dist/esm/activity/schema/types/authentication.d.ts +29 -0
- package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/authentication.js +13 -0
- package/dist/esm/activity/schema/types/authorization.d.ts +29 -0
- package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/authorization.js +14 -0
- package/dist/esm/activity/schema/types/note.d.ts +51 -0
- package/dist/esm/activity/schema/types/note.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/note.js +14 -0
- package/dist/esm/activity/schema/types/operation.d.ts +31 -0
- package/dist/esm/activity/schema/types/operation.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/operation.js +15 -0
- package/dist/esm/activity/schema/types/unknown.d.ts +22 -0
- package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/unknown.js +6 -0
- package/dist/esm/activity/schema/utils.d.ts +7 -0
- package/dist/esm/activity/schema/utils.d.ts.map +1 -0
- package/dist/esm/activity/schema/utils.js +9 -0
- package/dist/esm/app/index.d.ts +2 -0
- package/dist/esm/app/index.d.ts.map +1 -0
- package/dist/esm/app/index.js +1 -0
- package/dist/esm/app/schema/app.d.ts +58 -0
- package/dist/esm/app/schema/app.d.ts.map +1 -0
- package/dist/esm/app/schema/app.js +40 -0
- package/dist/esm/app/schema/authorization.d.ts +37 -0
- package/dist/esm/app/schema/authorization.d.ts.map +1 -0
- package/dist/esm/app/schema/authorization.js +41 -0
- package/dist/esm/app/schema/oauth.d.ts +30 -0
- package/dist/esm/app/schema/oauth.d.ts.map +1 -0
- package/dist/esm/app/schema/oauth.js +18 -0
- package/dist/esm/app/schema/oidc.d.ts +28 -0
- package/dist/esm/app/schema/oidc.d.ts.map +1 -0
- package/dist/esm/app/schema/oidc.js +10 -0
- package/dist/esm/app/schema/registration.d.ts +22 -0
- package/dist/esm/app/schema/registration.d.ts.map +1 -0
- package/dist/esm/app/schema/registration.js +13 -0
- package/dist/esm/app/schema/saml.d.ts +28 -0
- package/dist/esm/app/schema/saml.d.ts.map +1 -0
- package/dist/esm/app/schema/saml.js +10 -0
- package/dist/esm/app/schema/schema.d.ts +8 -0
- package/dist/esm/app/schema/schema.d.ts.map +1 -0
- package/dist/esm/app/schema/schema.js +7 -0
- package/dist/esm/app/schema/utils.d.ts +11 -0
- package/dist/esm/app/schema/utils.d.ts.map +1 -0
- package/dist/esm/app/schema/utils.js +15 -0
- package/dist/esm/association/index.d.ts +2 -0
- package/dist/esm/association/index.d.ts.map +1 -0
- package/dist/esm/association/index.js +1 -0
- package/dist/esm/association/schema/association.d.ts +82 -0
- package/dist/esm/association/schema/association.d.ts.map +1 -0
- package/dist/esm/association/schema/association.js +23 -0
- package/dist/esm/association/schema/schema.d.ts +2 -0
- package/dist/esm/association/schema/schema.d.ts.map +1 -0
- package/dist/esm/association/schema/schema.js +1 -0
- package/dist/esm/authentication/index.d.ts +2 -0
- package/dist/esm/authentication/index.d.ts.map +1 -0
- package/dist/esm/authentication/index.js +1 -0
- package/dist/esm/authentication/schema/factors.d.ts +48 -0
- package/dist/esm/authentication/schema/factors.d.ts.map +1 -0
- package/dist/esm/authentication/schema/factors.js +25 -0
- package/dist/esm/authentication/schema/factors.test.d.ts +2 -0
- package/dist/esm/authentication/schema/factors.test.d.ts.map +1 -0
- package/dist/esm/authentication/schema/factors.test.js +121 -0
- package/dist/esm/authentication/schema/provider.d.ts +27 -0
- package/dist/esm/authentication/schema/provider.d.ts.map +1 -0
- package/dist/esm/authentication/schema/provider.js +21 -0
- package/dist/esm/authentication/schema/schema.d.ts +6 -0
- package/dist/esm/authentication/schema/schema.d.ts.map +1 -0
- package/dist/esm/authentication/schema/schema.js +5 -0
- package/dist/esm/authentication/schema/session.d.ts +59 -0
- package/dist/esm/authentication/schema/session.d.ts.map +1 -0
- package/dist/esm/authentication/schema/session.js +43 -0
- package/dist/esm/authentication/schema/settings.d.ts +46 -0
- package/dist/esm/authentication/schema/settings.d.ts.map +1 -0
- package/dist/esm/authentication/schema/settings.js +13 -0
- package/dist/esm/authentication/schema/strategy/base.d.ts +54 -0
- package/dist/esm/authentication/schema/strategy/base.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/base.js +36 -0
- package/dist/esm/authentication/schema/strategy/schema.d.ts +158 -0
- package/dist/esm/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/schema.js +13 -0
- package/dist/esm/authentication/schema/strategy/types/email.d.ts +44 -0
- package/dist/esm/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/email.js +17 -0
- package/dist/esm/authentication/schema/strategy/types/password.d.ts +99 -0
- package/dist/esm/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/password.js +32 -0
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/totp.js +45 -0
- package/dist/esm/authorization/index.d.ts +6 -0
- package/dist/esm/authorization/index.d.ts.map +1 -0
- package/dist/esm/authorization/index.js +5 -0
- package/dist/esm/authorization/permissions/resources.d.ts +20 -0
- package/dist/esm/authorization/permissions/resources.d.ts.map +1 -0
- package/dist/esm/authorization/permissions/resources.js +48 -0
- package/dist/esm/authorization/permissions/schema.d.ts +104 -0
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -0
- package/dist/esm/authorization/permissions/schema.js +63 -0
- package/dist/esm/authorization/roles/resources.d.ts +20 -0
- package/dist/esm/authorization/roles/resources.d.ts.map +1 -0
- package/dist/esm/authorization/roles/resources.js +48 -0
- package/dist/esm/authorization/roles/schema.d.ts +113 -0
- package/dist/esm/authorization/roles/schema.d.ts.map +1 -0
- package/dist/esm/authorization/roles/schema.js +69 -0
- package/dist/esm/authorization/utils.d.ts +11 -0
- package/dist/esm/authorization/utils.d.ts.map +1 -0
- package/dist/esm/authorization/utils.js +15 -0
- package/dist/esm/common/errors/http.d.ts +17 -0
- package/dist/esm/common/errors/http.d.ts.map +1 -0
- package/dist/esm/common/errors/http.js +14 -0
- package/dist/esm/common/errors/validation.d.ts +11 -0
- package/dist/esm/common/errors/validation.d.ts.map +1 -0
- package/dist/esm/common/errors/validation.js +8 -0
- package/dist/esm/common/index.d.ts +6 -0
- package/dist/esm/common/index.d.ts.map +1 -0
- package/dist/esm/common/index.js +5 -0
- package/dist/esm/common/resources/authorization.d.ts +2 -0
- package/dist/esm/common/resources/authorization.d.ts.map +1 -0
- package/dist/esm/common/resources/authorization.js +1 -0
- package/dist/esm/common/resources/init.d.ts +16 -0
- package/dist/esm/common/resources/init.d.ts.map +1 -0
- package/dist/esm/common/resources/init.js +34 -0
- package/dist/esm/common/resources/operations.d.ts +7 -0
- package/dist/esm/common/resources/operations.d.ts.map +1 -0
- package/dist/esm/common/resources/operations.js +83 -0
- package/dist/esm/common/resources/utils.d.ts +18 -0
- package/dist/esm/common/resources/utils.d.ts.map +1 -0
- package/dist/esm/common/resources/utils.js +86 -0
- package/dist/esm/common/schema/aggregate.d.ts +6 -0
- package/dist/esm/common/schema/aggregate.d.ts.map +1 -0
- package/dist/esm/common/schema/aggregate.js +5 -0
- package/dist/esm/common/schema/collection.d.ts +18 -0
- package/dist/esm/common/schema/collection.d.ts.map +1 -0
- package/dist/esm/common/schema/collection.js +7 -0
- package/dist/esm/common/schema/dates.d.ts +39 -0
- package/dist/esm/common/schema/dates.d.ts.map +1 -0
- package/dist/esm/common/schema/dates.js +31 -0
- package/dist/esm/common/schema/dates.test.d.ts +2 -0
- package/dist/esm/common/schema/dates.test.d.ts.map +1 -0
- package/dist/esm/common/schema/dates.test.js +31 -0
- package/dist/esm/common/schema/jwt.d.ts +21 -0
- package/dist/esm/common/schema/jwt.d.ts.map +1 -0
- package/dist/esm/common/schema/jwt.js +21 -0
- package/dist/esm/common/schema/metadata.d.ts +47 -0
- package/dist/esm/common/schema/metadata.d.ts.map +1 -0
- package/dist/esm/common/schema/metadata.js +83 -0
- package/dist/esm/common/schema/metadata.test.d.ts +2 -0
- package/dist/esm/common/schema/metadata.test.d.ts.map +1 -0
- package/dist/esm/common/schema/metadata.test.js +60 -0
- package/dist/esm/common/schema/pagination.d.ts +6 -0
- package/dist/esm/common/schema/pagination.d.ts.map +1 -0
- package/dist/esm/common/schema/pagination.js +5 -0
- package/dist/esm/common/schema/schema.d.ts +8 -0
- package/dist/esm/common/schema/schema.d.ts.map +1 -0
- package/dist/esm/common/schema/schema.js +7 -0
- package/dist/esm/common/schema/sets.d.ts +3 -0
- package/dist/esm/common/schema/sets.d.ts.map +1 -0
- package/dist/esm/common/schema/sets.js +6 -0
- package/dist/esm/customer/index.d.ts +4 -0
- package/dist/esm/customer/index.d.ts.map +1 -0
- package/dist/esm/customer/index.js +3 -0
- package/dist/esm/customer/schema/organization.d.ts +54 -0
- package/dist/esm/customer/schema/organization.d.ts.map +1 -0
- package/dist/esm/customer/schema/organization.js +37 -0
- package/dist/esm/customer/schema/schema.d.ts +4 -0
- package/dist/esm/customer/schema/schema.d.ts.map +1 -0
- package/dist/esm/customer/schema/schema.js +3 -0
- package/dist/esm/customer/schema/utils.d.ts +11 -0
- package/dist/esm/customer/schema/utils.d.ts.map +1 -0
- package/dist/esm/customer/schema/utils.js +15 -0
- package/dist/esm/customer/users/resources.d.ts +20 -0
- package/dist/esm/customer/users/resources.d.ts.map +1 -0
- package/dist/esm/customer/users/resources.js +48 -0
- package/dist/esm/customer/users/schema.d.ts +151 -0
- package/dist/esm/customer/users/schema.d.ts.map +1 -0
- package/dist/esm/customer/users/schema.js +88 -0
- package/dist/esm/customer/users/schema.test.d.ts +2 -0
- package/dist/esm/customer/users/schema.test.d.ts.map +1 -0
- package/dist/esm/customer/users/schema.test.js +55 -0
- package/dist/esm/identity/index.d.ts +2 -0
- package/dist/esm/identity/index.d.ts.map +1 -0
- package/dist/esm/identity/index.js +1 -0
- package/dist/esm/identity/schema/schema.d.ts +7 -0
- package/dist/esm/identity/schema/schema.d.ts.map +1 -0
- package/dist/esm/identity/schema/schema.js +6 -0
- package/dist/esm/oauth/authorize/index.d.ts +2 -0
- package/dist/esm/oauth/authorize/index.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/index.js +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +29 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +31 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +11 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.js +18 -0
- package/dist/esm/oauth/authorize/schema/schema.d.ts +42 -0
- package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/schema.js +8 -0
- package/dist/esm/oauth/common/schema.d.ts +62 -0
- package/dist/esm/oauth/common/schema.d.ts.map +1 -0
- package/dist/esm/oauth/common/schema.js +51 -0
- package/dist/esm/oauth/index.d.ts +4 -0
- package/dist/esm/oauth/index.d.ts.map +1 -0
- package/dist/esm/oauth/index.js +3 -0
- package/dist/esm/oauth/token/index.d.ts +2 -0
- package/dist/esm/oauth/token/index.d.ts.map +1 -0
- package/dist/esm/oauth/token/index.js +1 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +10 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.js +17 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +21 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.js +22 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +9 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.js +14 -0
- package/dist/esm/oauth/token/schema/schema.d.ts +28 -0
- package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/schema.js +10 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/workspace/index.d.ts +2 -0
- package/dist/esm/workspace/index.d.ts.map +1 -0
- package/dist/esm/workspace/index.js +1 -0
- package/dist/esm/workspace/schema/authorization.d.ts +31 -0
- package/dist/esm/workspace/schema/authorization.d.ts.map +1 -0
- package/dist/esm/workspace/schema/authorization.js +19 -0
- package/dist/esm/workspace/schema/branding.d.ts +38 -0
- package/dist/esm/workspace/schema/branding.d.ts.map +1 -0
- package/dist/esm/workspace/schema/branding.js +22 -0
- package/dist/esm/workspace/schema/membership.d.ts +25 -0
- package/dist/esm/workspace/schema/membership.d.ts.map +1 -0
- package/dist/esm/workspace/schema/membership.js +16 -0
- package/dist/esm/workspace/schema/registration.d.ts +28 -0
- package/dist/esm/workspace/schema/registration.d.ts.map +1 -0
- package/dist/esm/workspace/schema/registration.js +19 -0
- package/dist/esm/workspace/schema/schema.d.ts +10 -0
- package/dist/esm/workspace/schema/schema.d.ts.map +1 -0
- package/dist/esm/workspace/schema/schema.js +9 -0
- package/dist/esm/workspace/schema/settings.d.ts +23 -0
- package/dist/esm/workspace/schema/settings.d.ts.map +1 -0
- package/dist/esm/workspace/schema/settings.js +12 -0
- package/dist/esm/workspace/schema/tenant.d.ts +57 -0
- package/dist/esm/workspace/schema/tenant.d.ts.map +1 -0
- package/dist/esm/workspace/schema/tenant.js +23 -0
- package/dist/esm/workspace/schema/user-notification.d.ts +62 -0
- package/dist/esm/workspace/schema/user-notification.d.ts.map +1 -0
- package/dist/esm/workspace/schema/user-notification.js +41 -0
- package/dist/esm/workspace/schema/user-preferences.d.ts +26 -0
- package/dist/esm/workspace/schema/user-preferences.d.ts.map +1 -0
- package/dist/esm/workspace/schema/user-preferences.js +16 -0
- package/dist/esm/workspace/schema/utils.d.ts +15 -0
- package/dist/esm/workspace/schema/utils.d.ts.map +1 -0
- package/dist/esm/workspace/schema/utils.js +22 -0
- package/package.json +50 -55
- package/release-please-config.json +13 -3
- package/tsconfig.esm.json +1 -1
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Model = void 0;
|
|
40
|
+
exports.generateTenantId = generateTenantId;
|
|
41
|
+
exports.generateHandle = generateHandle;
|
|
42
|
+
exports.generateNotificationId = generateNotificationId;
|
|
43
|
+
const crypto = __importStar(require("node:crypto"));
|
|
44
|
+
const ksuid_1 = __importDefault(require("ksuid"));
|
|
45
|
+
exports.Model = {
|
|
46
|
+
Action: {
|
|
47
|
+
UIDPrefix: 'act',
|
|
48
|
+
},
|
|
49
|
+
Notification: {
|
|
50
|
+
UIDPrefix: 'ntf',
|
|
51
|
+
},
|
|
52
|
+
Tenant: {
|
|
53
|
+
UIDPrefix: 'tnt',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
function generateTenantId() {
|
|
57
|
+
return `${exports.Model.Tenant.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
58
|
+
}
|
|
59
|
+
function generateHandle() {
|
|
60
|
+
return crypto.randomBytes(6).toString('hex');
|
|
61
|
+
}
|
|
62
|
+
function generateNotificationId() {
|
|
63
|
+
return `${exports.Model.Notification.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
64
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/action/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema/schema.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const ActionIdSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
2
|
+
export type ActionId = typeof ActionIdSchema.inferOut;
|
|
3
|
+
export declare const ActionIdPropertySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export type ActionIdProperty = typeof ActionIdPropertySchema.inferOut;
|
|
7
|
+
export declare const OperationSchema: import("arktype/internal/methods/string.ts").StringType<"set-password" | "user-attribute-verification" | "sign-up" | "sign-up-verification", {}>;
|
|
8
|
+
export declare const BasePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
9
|
+
id: string;
|
|
10
|
+
attempt: number;
|
|
11
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
12
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
13
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
14
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
15
|
+
metadata?: ((In: {
|
|
16
|
+
[x: string]: string | number | boolean;
|
|
17
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
18
|
+
[x: string]: string | number | boolean;
|
|
19
|
+
} | undefined>) | undefined;
|
|
20
|
+
}, {}>;
|
|
21
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,qEAAc,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,eAAO,MAAM,sBAAsB;;MAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,eAAe,kJAK3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;MAMO,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/schema/dates.js';
|
|
3
|
+
import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
|
|
4
|
+
import { ActionOperation } from './schema.js';
|
|
5
|
+
export const ActionIdSchema = type.string;
|
|
6
|
+
export const ActionIdPropertySchema = type({
|
|
7
|
+
id: ActionIdSchema,
|
|
8
|
+
});
|
|
9
|
+
export const OperationSchema = type.enumerated(ActionOperation.SIGN_UP, ActionOperation.SIGN_UP_VERIFICATION, ActionOperation.SET_PASSWORD, ActionOperation.USER_ATTRIBUTE_VERIFICATION);
|
|
10
|
+
export const BasePayloadSchema = ActionIdPropertySchema.and({
|
|
11
|
+
attempt: type('number'),
|
|
12
|
+
expiresAt: RequiredDatePayloadSchema,
|
|
13
|
+
updatedAt: RequiredDatePayloadSchema,
|
|
14
|
+
'deletedAt?': OptionalDatePayloadSchema,
|
|
15
|
+
'deactivatedAt?': OptionalDatePayloadSchema,
|
|
16
|
+
}).and(MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const SetPasswordActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "set-password";
|
|
14
|
+
user: string;
|
|
15
|
+
identifier: "email" | "phoneNumber";
|
|
16
|
+
policy: {
|
|
17
|
+
minimumLength: import("arktype/internal/attributes.ts").Default<number, 8>;
|
|
18
|
+
maximumLength: import("arktype/internal/attributes.ts").Default<number, 36>;
|
|
19
|
+
minimumCapital: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
20
|
+
minimumLower: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
21
|
+
minimumNumber: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
22
|
+
minimumSpecial: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
23
|
+
};
|
|
24
|
+
}, {}>;
|
|
25
|
+
export type SetPasswordActionPayload = typeof SetPasswordActionPayloadSchema.inferOut;
|
|
26
|
+
export declare const SetPasswordActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
27
|
+
code: string;
|
|
28
|
+
password: string;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export type SetPasswordActionRequest = typeof SetPasswordActionRequestSchema.inferOut;
|
|
31
|
+
//# sourceMappingURL=set-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-password.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/set-password.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;MAKf,CAAC;AAC7B,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC;AAEjD,eAAO,MAAM,8BAA8B;;;MAGf,CAAC;AAC7B,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { PasswordPolicySchema } from '../../../authentication/schema/schema.js';
|
|
3
|
+
import { UserIdSchema } from '../../../customer/users/schema.js';
|
|
4
|
+
import { IdentityIdentifierSchema } from '../../../identity/schema/schema.js';
|
|
5
|
+
import { BasePayloadSchema } from '../base.js';
|
|
6
|
+
export const SetPasswordActionPayloadSchema = BasePayloadSchema.and({
|
|
7
|
+
operation: type("'set-password'"),
|
|
8
|
+
user: UserIdSchema,
|
|
9
|
+
identifier: IdentityIdentifierSchema,
|
|
10
|
+
policy: PasswordPolicySchema,
|
|
11
|
+
}).onUndeclaredKey('delete');
|
|
12
|
+
export const SetPasswordActionRequestSchema = type({
|
|
13
|
+
code: type('string'),
|
|
14
|
+
password: type('string'),
|
|
15
|
+
}).onUndeclaredKey('delete');
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const SignUpVerificationActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "sign-up-verification";
|
|
14
|
+
user: string;
|
|
15
|
+
identifier: "email" | "phoneNumber";
|
|
16
|
+
}, {}>;
|
|
17
|
+
export type SignUpVerificationActionPayload = typeof SignUpVerificationActionPayloadSchema.inferOut;
|
|
18
|
+
export declare const SignUpVerificationActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
19
|
+
code: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export type SignUpVerificationActionRequest = typeof SignUpVerificationActionRequestSchema.inferOut;
|
|
22
|
+
//# sourceMappingURL=sign-up-verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-up-verification.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/sign-up-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;MAItB,CAAC;AAC7B,MAAM,MAAM,+BAA+B,GACzC,OAAO,qCAAqC,CAAC,QAAQ,CAAC;AAExD,eAAO,MAAM,qCAAqC;;MAEtB,CAAC;AAC7B,MAAM,MAAM,+BAA+B,GACzC,OAAO,qCAAqC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { UserIdSchema } from '../../../customer/users/schema.js';
|
|
3
|
+
import { IdentityIdentifierSchema } from '../../../identity/schema/schema.js';
|
|
4
|
+
import { BasePayloadSchema } from '../base.js';
|
|
5
|
+
export const SignUpVerificationActionPayloadSchema = BasePayloadSchema.and({
|
|
6
|
+
operation: type("'sign-up-verification'"),
|
|
7
|
+
user: UserIdSchema,
|
|
8
|
+
identifier: IdentityIdentifierSchema,
|
|
9
|
+
}).onUndeclaredKey('delete');
|
|
10
|
+
export const SignUpVerificationActionRequestSchema = type({
|
|
11
|
+
code: type('string'),
|
|
12
|
+
}).onUndeclaredKey('delete');
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const SignUpActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "sign-up";
|
|
14
|
+
user: {
|
|
15
|
+
givenName?: string | undefined;
|
|
16
|
+
middleName?: string | undefined;
|
|
17
|
+
familyName?: string | undefined;
|
|
18
|
+
honorificPrefix?: string | undefined;
|
|
19
|
+
honorificSuffix?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
app?: string | undefined;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export type SignUpActionPayload = typeof SignUpActionPayloadSchema.inferOut;
|
|
24
|
+
export declare const SignUpActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
25
|
+
givenName?: string | undefined;
|
|
26
|
+
middleName?: string | undefined;
|
|
27
|
+
familyName?: string | undefined;
|
|
28
|
+
honorificPrefix?: string | undefined;
|
|
29
|
+
honorificSuffix?: string | undefined;
|
|
30
|
+
email: string;
|
|
31
|
+
phoneNumber?: string | undefined;
|
|
32
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
33
|
+
} | {
|
|
34
|
+
givenName?: string | undefined;
|
|
35
|
+
middleName?: string | undefined;
|
|
36
|
+
familyName?: string | undefined;
|
|
37
|
+
honorificPrefix?: string | undefined;
|
|
38
|
+
honorificSuffix?: string | undefined;
|
|
39
|
+
phoneNumber: string;
|
|
40
|
+
email?: string | undefined;
|
|
41
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export type SignUpActionRequest = typeof SignUpActionRequestSchema.inferOut;
|
|
44
|
+
//# sourceMappingURL=sign-up.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/sign-up.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;MAIV,CAAC;AAC7B,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAY5E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;MAErC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { AppIdSchema } from '../../../app/schema/app.js';
|
|
3
|
+
import { InsertUserPayloadSchema, RequiredEmailSchema, RequiredPhoneNumberSchema, UserNamePropertiesSchema, } from '../../../customer/users/schema.js';
|
|
4
|
+
import { BasePayloadSchema } from '../base.js';
|
|
5
|
+
export const SignUpActionPayloadSchema = BasePayloadSchema.and({
|
|
6
|
+
operation: type("'sign-up'"),
|
|
7
|
+
app: AppIdSchema.optional(),
|
|
8
|
+
user: UserNamePropertiesSchema,
|
|
9
|
+
}).onUndeclaredKey('delete');
|
|
10
|
+
const EmailSignUpActionRequestSchema = UserNamePropertiesSchema.and({
|
|
11
|
+
email: RequiredEmailSchema,
|
|
12
|
+
phoneNumber: RequiredPhoneNumberSchema.optional(),
|
|
13
|
+
}).and(InsertUserPayloadSchema.pick('id'));
|
|
14
|
+
const PhoneNumberSignUpActionRequestSchema = UserNamePropertiesSchema.and({
|
|
15
|
+
phoneNumber: RequiredPhoneNumberSchema,
|
|
16
|
+
email: RequiredEmailSchema.optional(),
|
|
17
|
+
}).and(InsertUserPayloadSchema.pick('id'));
|
|
18
|
+
export const SignUpActionRequestSchema = EmailSignUpActionRequestSchema.or(PhoneNumberSignUpActionRequestSchema);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const UserAttributeVerificationActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "user-attribute-verification";
|
|
14
|
+
user: string;
|
|
15
|
+
attribute: "email" | "phoneNumber";
|
|
16
|
+
}, {}>;
|
|
17
|
+
export type UserAttributeVerificationActionPayload = typeof UserAttributeVerificationActionPayloadSchema.inferOut;
|
|
18
|
+
export declare const UserAttributeVerificationActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<object, {}>;
|
|
19
|
+
export type UserAttributeVerificationActionRequest = typeof UserAttributeVerificationActionRequestSchema.inferOut;
|
|
20
|
+
//# sourceMappingURL=user-attribute-verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-attribute-verification.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/user-attribute-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;MAK3B,CAAC;AAC/B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC;AAE/D,eAAO,MAAM,4CAA4C,qEAE9B,CAAC;AAC5B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { UserIdSchema } from '../../../customer/users/schema.js';
|
|
3
|
+
import { IdentityIdentifierSchema } from '../../../identity/schema/schema.js';
|
|
4
|
+
import { BasePayloadSchema } from '../base.js';
|
|
5
|
+
export const UserAttributeVerificationActionPayloadSchema = BasePayloadSchema.and({
|
|
6
|
+
operation: type("'user-attribute-verification'"),
|
|
7
|
+
user: UserIdSchema,
|
|
8
|
+
attribute: IdentityIdentifierSchema,
|
|
9
|
+
}).onUndeclaredKey('delete');
|
|
10
|
+
export const UserAttributeVerificationActionRequestSchema = type({}).onUndeclaredKey('delete');
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const ActionOperation: {
|
|
2
|
+
readonly SET_PASSWORD: "set-password";
|
|
3
|
+
readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
|
|
4
|
+
readonly SIGN_UP: "sign-up";
|
|
5
|
+
readonly SIGN_UP_VERIFICATION: "sign-up-verification";
|
|
6
|
+
};
|
|
7
|
+
export type AnyActionOperation = (typeof ActionOperation)[keyof typeof ActionOperation];
|
|
8
|
+
/**
|
|
9
|
+
* Union
|
|
10
|
+
*/
|
|
11
|
+
export declare const ActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
12
|
+
id: string;
|
|
13
|
+
attempt: number;
|
|
14
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
15
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
16
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
17
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
18
|
+
metadata?: ((In: {
|
|
19
|
+
[x: string]: string | number | boolean;
|
|
20
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
21
|
+
[x: string]: string | number | boolean;
|
|
22
|
+
} | undefined>) | undefined;
|
|
23
|
+
operation: "set-password";
|
|
24
|
+
user: string;
|
|
25
|
+
identifier: "email" | "phoneNumber";
|
|
26
|
+
policy: {
|
|
27
|
+
minimumLength: import("arktype/internal/attributes.ts").Default<number, 8>;
|
|
28
|
+
maximumLength: import("arktype/internal/attributes.ts").Default<number, 36>;
|
|
29
|
+
minimumCapital: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
30
|
+
minimumLower: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
31
|
+
minimumNumber: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
32
|
+
minimumSpecial: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
id: string;
|
|
36
|
+
attempt: number;
|
|
37
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
38
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
39
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
40
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
41
|
+
metadata?: ((In: {
|
|
42
|
+
[x: string]: string | number | boolean;
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
44
|
+
[x: string]: string | number | boolean;
|
|
45
|
+
} | undefined>) | undefined;
|
|
46
|
+
operation: "sign-up-verification";
|
|
47
|
+
user: string;
|
|
48
|
+
identifier: "email" | "phoneNumber";
|
|
49
|
+
} | {
|
|
50
|
+
id: string;
|
|
51
|
+
attempt: number;
|
|
52
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
53
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
54
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
55
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
56
|
+
metadata?: ((In: {
|
|
57
|
+
[x: string]: string | number | boolean;
|
|
58
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
59
|
+
[x: string]: string | number | boolean;
|
|
60
|
+
} | undefined>) | undefined;
|
|
61
|
+
operation: "sign-up";
|
|
62
|
+
user: {
|
|
63
|
+
givenName?: string | undefined;
|
|
64
|
+
middleName?: string | undefined;
|
|
65
|
+
familyName?: string | undefined;
|
|
66
|
+
honorificPrefix?: string | undefined;
|
|
67
|
+
honorificSuffix?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
app?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
id: string;
|
|
72
|
+
attempt: number;
|
|
73
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
74
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
75
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
76
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
77
|
+
metadata?: ((In: {
|
|
78
|
+
[x: string]: string | number | boolean;
|
|
79
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
80
|
+
[x: string]: string | number | boolean;
|
|
81
|
+
} | undefined>) | undefined;
|
|
82
|
+
operation: "user-attribute-verification";
|
|
83
|
+
user: string;
|
|
84
|
+
attribute: "email" | "phoneNumber";
|
|
85
|
+
}, {}>;
|
|
86
|
+
export type ActionPayload = typeof ActionPayloadSchema.inferOut;
|
|
87
|
+
export { ActionIdPropertySchema, ActionIdSchema, type ActionId, type ActionIdProperty, } from './base.js';
|
|
88
|
+
export * from './operations/set-password.js';
|
|
89
|
+
export * from './operations/sign-up-verification.js';
|
|
90
|
+
export * from './operations/sign-up.js';
|
|
91
|
+
export * from './operations/user-attribute-verification.js';
|
|
92
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAImB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SetPasswordActionPayloadSchema } from './operations/set-password.js';
|
|
2
|
+
import { SignUpVerificationActionPayloadSchema } from './operations/sign-up-verification.js';
|
|
3
|
+
import { SignUpActionPayloadSchema } from './operations/sign-up.js';
|
|
4
|
+
import { UserAttributeVerificationActionPayloadSchema } from './operations/user-attribute-verification.js';
|
|
5
|
+
export const ActionOperation = {
|
|
6
|
+
SET_PASSWORD: 'set-password',
|
|
7
|
+
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
8
|
+
SIGN_UP: 'sign-up',
|
|
9
|
+
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Union
|
|
13
|
+
*/
|
|
14
|
+
export const ActionPayloadSchema = SetPasswordActionPayloadSchema.or(SignUpVerificationActionPayloadSchema)
|
|
15
|
+
.or(SignUpActionPayloadSchema)
|
|
16
|
+
.or(UserAttributeVerificationActionPayloadSchema);
|
|
17
|
+
export { ActionIdPropertySchema, ActionIdSchema, } from './base.js';
|
|
18
|
+
export * from './operations/set-password.js';
|
|
19
|
+
export * from './operations/sign-up-verification.js';
|
|
20
|
+
export * from './operations/sign-up.js';
|
|
21
|
+
export * from './operations/user-attribute-verification.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema/schema.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const ActivityIdSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
2
|
+
export type ActivityId = typeof ActivityIdSchema.inferOut;
|
|
3
|
+
export declare const ActivityIdPropertySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export type ActivityIdProperty = typeof ActivityIdPropertySchema.inferOut;
|
|
7
|
+
export declare const SourceSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
8
|
+
export declare const PerformedBySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
9
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
10
|
+
identifier: string;
|
|
11
|
+
}, {}>;
|
|
12
|
+
export type PerformedBy = typeof PerformedBySchema.inferOut;
|
|
13
|
+
export declare const BasePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
14
|
+
id: string;
|
|
15
|
+
performedBy: {
|
|
16
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
17
|
+
identifier: string;
|
|
18
|
+
};
|
|
19
|
+
source: string;
|
|
20
|
+
isMutateable: boolean;
|
|
21
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
22
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
23
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
24
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
25
|
+
metadata?: ((In: {
|
|
26
|
+
[x: string]: string | number | boolean;
|
|
27
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
28
|
+
[x: string]: string | number | boolean;
|
|
29
|
+
} | undefined>) | undefined;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export declare const BaseInsertPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
32
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
33
|
+
performedBy?: {
|
|
34
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
35
|
+
identifier: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
metadata?: ((In: {
|
|
38
|
+
[x: string]: string | number | boolean;
|
|
39
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
40
|
+
[x: string]: string | number | boolean;
|
|
41
|
+
} | null>) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export declare const BaseUpdatePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
44
|
+
performedBy?: {
|
|
45
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
46
|
+
identifier: string;
|
|
47
|
+
} | undefined;
|
|
48
|
+
metadata?: ((In: {
|
|
49
|
+
[x: string]: string | number | boolean;
|
|
50
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
51
|
+
[x: string]: string | number | boolean;
|
|
52
|
+
} | null>) | undefined;
|
|
53
|
+
}, {}>;
|
|
54
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,qEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY,qEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;MASO,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;MAGO,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;;;;;MAEO,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/index.js';
|
|
3
|
+
import { MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
|
+
import { PerformerType } from './schema.js';
|
|
5
|
+
import { generateActivityId } from './utils.js';
|
|
6
|
+
export const ActivityIdSchema = type.string;
|
|
7
|
+
export const ActivityIdPropertySchema = type({
|
|
8
|
+
id: ActivityIdSchema,
|
|
9
|
+
});
|
|
10
|
+
export const SourceSchema = type('string');
|
|
11
|
+
export const PerformedBySchema = type({
|
|
12
|
+
type: type.enumerated(PerformerType.SYSTEM, PerformerType.GUEST, PerformerType.IDENTITY, PerformerType.AUTOMATION, PerformerType.INTEGRATION),
|
|
13
|
+
identifier: type('string'),
|
|
14
|
+
});
|
|
15
|
+
export const BasePayloadSchema = type({
|
|
16
|
+
id: ActivityIdSchema,
|
|
17
|
+
performedBy: PerformedBySchema,
|
|
18
|
+
source: SourceSchema,
|
|
19
|
+
isMutateable: type('boolean'),
|
|
20
|
+
createdAt: RequiredDatePayloadSchema,
|
|
21
|
+
updatedAt: RequiredDatePayloadSchema,
|
|
22
|
+
'deletedAt?': OptionalDatePayloadSchema,
|
|
23
|
+
'deactivatedAt?': OptionalDatePayloadSchema,
|
|
24
|
+
}).and(MetadataPayloadPropertySchema);
|
|
25
|
+
export const BaseInsertPayloadSchema = type({
|
|
26
|
+
id: ActivityIdSchema.default(() => generateActivityId()),
|
|
27
|
+
performedBy: PerformedBySchema.optional(),
|
|
28
|
+
}).and(UpsertMetadataPayloadPropertySchema);
|
|
29
|
+
export const BaseUpdatePayloadSchema = type({
|
|
30
|
+
performedBy: PerformedBySchema.optional(),
|
|
31
|
+
}).and(UpsertMetadataPayloadPropertySchema);
|