@go-mondo/identity-sdk 0.0.2-beta.5 → 0.0.2-beta.7
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/.release-please-manifest.json +1 -1
- package/.tsbuildinfo/cjs.json +1 -1
- package/.tsbuildinfo/esm.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/cjs/action/schema/base.d.ts +12 -5
- package/dist/cjs/action/schema/base.d.ts.map +1 -1
- package/dist/cjs/action/schema/base.js +8 -3
- package/dist/cjs/action/schema/operations/set-password.d.ts +11 -11
- package/dist/cjs/action/schema/operations/set-password.js +2 -2
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/cjs/action/schema/operations/sign-up-verification.js +1 -1
- package/dist/cjs/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/cjs/action/schema/operations/sign-up.js +12 -12
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/cjs/action/schema/operations/user-attribute-verification.js +1 -1
- package/dist/cjs/action/schema/schema.d.ts +27 -34
- package/dist/cjs/action/schema/schema.d.ts.map +1 -1
- package/dist/cjs/action/schema/schema.js +2 -7
- package/dist/cjs/activity/index.d.ts +1 -0
- package/dist/cjs/activity/index.d.ts.map +1 -1
- package/dist/cjs/activity/index.js +1 -0
- package/dist/cjs/activity/resources.d.ts +13 -0
- package/dist/cjs/activity/resources.d.ts.map +1 -0
- package/dist/cjs/activity/resources.js +29 -0
- package/dist/cjs/activity/schema/base.d.ts +23 -7
- package/dist/cjs/activity/schema/base.d.ts.map +1 -1
- package/dist/cjs/activity/schema/base.js +12 -2
- package/dist/cjs/activity/schema/schema.d.ts +123 -29
- package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
- package/dist/cjs/activity/schema/schema.js +5 -2
- package/dist/cjs/activity/schema/types/authentication.d.ts +28 -5
- package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/authentication.js +5 -2
- package/dist/cjs/activity/schema/types/authorization.d.ts +28 -5
- package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/authorization.js +6 -4
- package/dist/cjs/activity/schema/types/note.d.ts +27 -7
- package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/note.js +4 -2
- package/dist/cjs/activity/schema/types/operation.d.ts +27 -5
- package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/operation.js +4 -2
- package/dist/cjs/activity/schema/types/unknown.d.ts +25 -5
- package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/unknown.js +4 -2
- package/dist/cjs/app/authorization/resources.d.ts +12 -0
- package/dist/cjs/app/authorization/resources.d.ts.map +1 -0
- package/dist/cjs/app/authorization/resources.js +35 -0
- package/dist/cjs/app/authorization/schema.d.ts +54 -0
- package/dist/cjs/app/authorization/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/authorization.js → authorization/schema.js} +31 -15
- package/dist/cjs/app/index.d.ts +13 -1
- package/dist/cjs/app/index.d.ts.map +1 -1
- package/dist/cjs/app/index.js +20 -1
- package/dist/cjs/app/oauth/resources.d.ts +12 -0
- package/dist/cjs/app/oauth/resources.d.ts.map +1 -0
- package/dist/cjs/app/oauth/resources.js +35 -0
- package/dist/cjs/app/{schema/oauth.d.ts → oauth/schema.d.ts} +18 -6
- package/dist/cjs/app/oauth/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/oauth.js → oauth/schema.js} +10 -3
- package/dist/cjs/app/oidc/resources.d.ts +16 -0
- package/dist/cjs/app/oidc/resources.d.ts.map +1 -0
- package/dist/cjs/app/oidc/resources.js +49 -0
- package/dist/cjs/app/{schema/oidc.d.ts → oidc/schema.d.ts} +19 -9
- package/dist/cjs/app/oidc/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/oidc.js → oidc/schema.js} +7 -2
- package/dist/cjs/app/registration/resources.d.ts +12 -0
- package/dist/cjs/app/registration/resources.d.ts.map +1 -0
- package/dist/cjs/app/registration/resources.js +35 -0
- package/dist/cjs/app/{schema/registration.d.ts → registration/schema.d.ts} +16 -6
- package/dist/cjs/app/registration/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/registration.js → registration/schema.js} +9 -2
- package/dist/cjs/app/resources.d.ts +21 -0
- package/dist/cjs/app/resources.d.ts.map +1 -0
- package/dist/cjs/app/resources.js +57 -0
- package/dist/cjs/app/saml/resources.d.ts +16 -0
- package/dist/cjs/app/saml/resources.d.ts.map +1 -0
- package/dist/cjs/app/saml/resources.js +49 -0
- package/dist/cjs/app/{schema/saml.d.ts → saml/schema.d.ts} +19 -9
- package/dist/cjs/app/saml/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/saml.js → saml/schema.js} +7 -2
- package/dist/cjs/app/{schema/app.d.ts → schema.d.ts} +24 -9
- package/dist/cjs/app/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/app.js → schema.js} +12 -4
- package/dist/cjs/app/utils.d.ts.map +1 -0
- package/dist/cjs/association/index.d.ts +2 -1
- package/dist/cjs/association/index.d.ts.map +1 -1
- package/dist/cjs/association/index.js +2 -1
- package/dist/cjs/association/resources.d.ts +23 -0
- package/dist/cjs/association/resources.d.ts.map +1 -0
- package/dist/cjs/association/resources.js +51 -0
- package/dist/cjs/association/schema.d.ts +147 -0
- package/dist/cjs/association/schema.d.ts.map +1 -0
- package/dist/cjs/association/{schema/association.js → schema.js} +21 -5
- package/dist/cjs/authentication/{schema/factors.d.ts → factors/schema.d.ts} +12 -3
- package/dist/cjs/authentication/factors/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/factors.js → factors/schema.js} +6 -2
- package/dist/cjs/authentication/factors/schema.test.d.ts +2 -0
- package/dist/cjs/authentication/factors/schema.test.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/factors.test.js → factors/schema.test.js} +17 -17
- package/dist/cjs/authentication/index.d.ts +8 -1
- package/dist/cjs/authentication/index.d.ts.map +1 -1
- package/dist/cjs/authentication/index.js +13 -1
- package/dist/cjs/authentication/{schema/provider.d.ts → providers/schema.d.ts} +5 -5
- package/dist/cjs/authentication/providers/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/provider.js → providers/schema.js} +1 -1
- package/dist/cjs/authentication/resources.d.ts +2 -0
- package/dist/cjs/authentication/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/resources.js +4 -0
- package/dist/cjs/authentication/sessions/resources.d.ts +21 -0
- package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/sessions/resources.js +43 -0
- package/dist/cjs/authentication/sessions/schema.d.ts +81 -0
- package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/session.js → sessions/schema.js} +16 -7
- package/dist/cjs/authentication/settings/resources.d.ts +12 -0
- package/dist/cjs/authentication/settings/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/settings/resources.js +32 -0
- package/dist/cjs/authentication/{schema/settings.d.ts → settings/schema.d.ts} +31 -8
- package/dist/cjs/authentication/settings/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/settings.js → settings/schema.js} +11 -4
- package/dist/cjs/authentication/strategies/resources.d.ts +20 -0
- package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/strategies/resources.js +58 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/base.d.ts +17 -7
- package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/base.js +10 -2
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/schema.d.ts +102 -53
- package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/schema.js +2 -1
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/email.d.ts +27 -9
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/email.js +4 -3
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/password.d.ts +76 -43
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -0
- package/dist/cjs/authentication/strategies/schema/types/password.js +52 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/totp.d.ts +33 -13
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/totp.js +12 -3
- package/dist/cjs/authorization/index.d.ts.map +1 -1
- package/dist/cjs/authorization/index.js +2 -0
- package/dist/cjs/authorization/permissions/resources.d.ts +2 -2
- package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/resources.js +1 -1
- package/dist/cjs/authorization/permissions/schema.d.ts +8 -8
- package/dist/cjs/authorization/roles/resources.d.ts +2 -2
- package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
- package/dist/cjs/authorization/roles/resources.js +1 -1
- package/dist/cjs/authorization/roles/schema.d.ts +8 -8
- package/dist/cjs/common/index.d.ts +1 -0
- package/dist/cjs/common/index.d.ts.map +1 -1
- package/dist/cjs/common/index.js +6 -0
- package/dist/cjs/common/schema/dates.d.ts +7 -7
- package/dist/cjs/common/schema/dates.d.ts.map +1 -1
- package/dist/cjs/common/schema/metadata.d.ts +8 -6
- package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
- package/dist/cjs/common/schema/schema.d.ts +2 -1
- package/dist/cjs/common/schema/schema.d.ts.map +1 -1
- package/dist/cjs/common/schema/schema.js +2 -1
- package/dist/cjs/common/schema/schema.test.d.ts +2 -0
- package/dist/cjs/common/schema/schema.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/schema.test.js +35 -0
- package/dist/cjs/common/schema/sets.d.ts +2 -2
- package/dist/cjs/common/schema/sets.d.ts.map +1 -1
- package/dist/cjs/common/schema/url.d.ts +2 -0
- package/dist/cjs/common/schema/url.d.ts.map +1 -0
- package/dist/cjs/common/schema/url.js +12 -0
- package/dist/cjs/customer/index.d.ts +1 -0
- package/dist/cjs/customer/index.d.ts.map +1 -1
- package/dist/cjs/customer/index.js +1 -0
- package/dist/cjs/customer/schema/organization.d.ts +7 -7
- package/dist/cjs/customer/users/resources.d.ts +2 -2
- package/dist/cjs/customer/users/resources.d.ts.map +1 -1
- package/dist/cjs/customer/users/resources.js +2 -2
- package/dist/cjs/customer/users/schema.d.ts +10 -11
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +1 -3
- package/dist/cjs/customer/users/schema.test.js +2 -0
- package/dist/cjs/customer/users/utils.d.ts +10 -0
- package/dist/cjs/customer/users/utils.d.ts.map +1 -0
- package/dist/cjs/customer/users/utils.js +33 -0
- package/dist/cjs/identity/index.d.ts +1 -1
- package/dist/cjs/identity/index.d.ts.map +1 -1
- package/dist/cjs/identity/index.js +1 -1
- package/dist/cjs/identity/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +9 -9
- package/dist/cjs/oauth/common/schema.d.ts +6 -0
- package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
- package/dist/cjs/oauth/common/schema.js +7 -1
- package/dist/cjs/oauth/index.d.ts +1 -1
- package/dist/cjs/oauth/index.d.ts.map +1 -1
- package/dist/cjs/oauth/index.js +2 -1
- package/dist/cjs/oauth/token/schema/grants/client-credentials.js +6 -6
- package/dist/cjs/oauth/token/schema/grants/refresh-token.js +4 -4
- package/dist/cjs/workspace/{schema/authorization.d.ts → authorization/schema.d.ts} +6 -6
- package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/branding.d.ts → branding/schema.d.ts} +6 -6
- package/dist/cjs/workspace/branding/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/index.d.ts +8 -1
- package/dist/cjs/workspace/index.d.ts.map +1 -1
- package/dist/cjs/workspace/index.js +8 -1
- package/dist/cjs/workspace/{schema/membership.d.ts → membership/schema.d.ts} +6 -6
- package/dist/cjs/workspace/membership/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/registration.d.ts → registration/schema.d.ts} +6 -6
- package/dist/cjs/workspace/registration/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/registration.js → registration/schema.js} +1 -1
- package/dist/cjs/workspace/{schema/settings.d.ts → settings/schema.d.ts} +6 -6
- package/dist/cjs/workspace/settings/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/tenant.d.ts → tenant/schema.d.ts} +11 -11
- package/dist/cjs/workspace/{schema/tenant.d.ts.map → tenant/schema.d.ts.map} +1 -1
- package/dist/cjs/workspace/{schema/tenant.js → tenant/schema.js} +3 -3
- package/dist/cjs/workspace/{schema/user-notification.d.ts → user/notifications/schema.d.ts} +8 -8
- package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/user-notification.js → user/notifications/schema.js} +4 -4
- package/dist/cjs/workspace/{schema/user-preferences.d.ts → user/preferences/schema.d.ts} +6 -6
- package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/user-preferences.js → user/preferences/schema.js} +2 -2
- package/dist/cjs/workspace/user/schema.d.ts +3 -0
- package/dist/cjs/workspace/user/schema.d.ts.map +1 -0
- package/dist/cjs/{association/schema → workspace/user}/schema.js +2 -1
- package/dist/cjs/workspace/utils.d.ts.map +1 -0
- package/dist/esm/action/schema/base.d.ts +12 -5
- package/dist/esm/action/schema/base.d.ts.map +1 -1
- package/dist/esm/action/schema/base.js +6 -1
- package/dist/esm/action/schema/operations/set-password.d.ts +11 -11
- package/dist/esm/action/schema/operations/set-password.js +2 -2
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/esm/action/schema/operations/sign-up-verification.js +1 -1
- package/dist/esm/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/esm/action/schema/operations/sign-up.js +1 -1
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/esm/action/schema/operations/user-attribute-verification.js +1 -1
- package/dist/esm/action/schema/schema.d.ts +27 -34
- package/dist/esm/action/schema/schema.d.ts.map +1 -1
- package/dist/esm/action/schema/schema.js +1 -7
- package/dist/esm/activity/index.d.ts +1 -0
- package/dist/esm/activity/index.d.ts.map +1 -1
- package/dist/esm/activity/index.js +1 -0
- package/dist/esm/activity/resources.d.ts +13 -0
- package/dist/esm/activity/resources.d.ts.map +1 -0
- package/dist/esm/activity/resources.js +24 -0
- package/dist/esm/activity/schema/base.d.ts +23 -7
- package/dist/esm/activity/schema/base.d.ts.map +1 -1
- package/dist/esm/activity/schema/base.js +13 -3
- package/dist/esm/activity/schema/schema.d.ts +123 -29
- package/dist/esm/activity/schema/schema.d.ts.map +1 -1
- package/dist/esm/activity/schema/schema.js +9 -6
- package/dist/esm/activity/schema/types/authentication.d.ts +28 -5
- package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/authentication.js +5 -2
- package/dist/esm/activity/schema/types/authorization.d.ts +28 -5
- package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/authorization.js +6 -4
- package/dist/esm/activity/schema/types/note.d.ts +27 -7
- package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/note.js +4 -2
- package/dist/esm/activity/schema/types/operation.d.ts +27 -5
- package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/operation.js +4 -2
- package/dist/esm/activity/schema/types/unknown.d.ts +25 -5
- package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/unknown.js +4 -2
- package/dist/esm/app/authorization/resources.d.ts +12 -0
- package/dist/esm/app/authorization/resources.d.ts.map +1 -0
- package/dist/esm/app/authorization/resources.js +29 -0
- package/dist/esm/app/authorization/schema.d.ts +54 -0
- package/dist/esm/app/authorization/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/authorization.js → authorization/schema.js} +32 -16
- package/dist/esm/app/index.d.ts +13 -1
- package/dist/esm/app/index.d.ts.map +1 -1
- package/dist/esm/app/index.js +20 -1
- package/dist/esm/app/oauth/resources.d.ts +12 -0
- package/dist/esm/app/oauth/resources.d.ts.map +1 -0
- package/dist/esm/app/oauth/resources.js +29 -0
- package/dist/esm/app/{schema/oauth.d.ts → oauth/schema.d.ts} +18 -6
- package/dist/esm/app/oauth/schema.d.ts.map +1 -0
- package/dist/esm/app/oauth/schema.js +25 -0
- package/dist/esm/app/oidc/resources.d.ts +16 -0
- package/dist/esm/app/oidc/resources.d.ts.map +1 -0
- package/dist/esm/app/oidc/resources.js +41 -0
- package/dist/esm/app/{schema/oidc.d.ts → oidc/schema.d.ts} +19 -9
- package/dist/esm/app/oidc/schema.d.ts.map +1 -0
- package/dist/esm/app/oidc/schema.js +15 -0
- package/dist/esm/app/registration/resources.d.ts +12 -0
- package/dist/esm/app/registration/resources.d.ts.map +1 -0
- package/dist/esm/app/registration/resources.js +29 -0
- package/dist/esm/app/registration/schema.d.ts +32 -0
- package/dist/esm/app/registration/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/registration.js → registration/schema.js} +10 -3
- package/dist/esm/app/resources.d.ts +21 -0
- package/dist/esm/app/resources.d.ts.map +1 -0
- package/dist/esm/app/resources.js +48 -0
- package/dist/esm/app/saml/resources.d.ts +16 -0
- package/dist/esm/app/saml/resources.d.ts.map +1 -0
- package/dist/esm/app/saml/resources.js +41 -0
- package/dist/esm/app/{schema/saml.d.ts → saml/schema.d.ts} +19 -9
- package/dist/esm/app/saml/schema.d.ts.map +1 -0
- package/dist/esm/app/saml/schema.js +15 -0
- package/dist/esm/app/{schema/app.d.ts → schema.d.ts} +24 -9
- package/dist/esm/app/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/app.js → schema.js} +11 -3
- package/dist/esm/app/utils.d.ts.map +1 -0
- package/dist/esm/association/index.d.ts +2 -1
- package/dist/esm/association/index.d.ts.map +1 -1
- package/dist/esm/association/index.js +2 -1
- package/dist/esm/association/resources.d.ts +23 -0
- package/dist/esm/association/resources.d.ts.map +1 -0
- package/dist/esm/association/resources.js +44 -0
- package/dist/esm/association/schema.d.ts +147 -0
- package/dist/esm/association/schema.d.ts.map +1 -0
- package/dist/esm/association/schema.js +39 -0
- package/dist/esm/authentication/{schema/factors.d.ts → factors/schema.d.ts} +12 -3
- package/dist/esm/authentication/factors/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/factors.js → factors/schema.js} +5 -1
- package/dist/esm/authentication/factors/schema.test.d.ts +2 -0
- package/dist/esm/authentication/factors/schema.test.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/factors.test.js → factors/schema.test.js} +1 -1
- package/dist/esm/authentication/index.d.ts +8 -1
- package/dist/esm/authentication/index.d.ts.map +1 -1
- package/dist/esm/authentication/index.js +13 -1
- package/dist/esm/authentication/{schema/provider.d.ts → providers/schema.d.ts} +5 -5
- package/dist/esm/authentication/providers/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/provider.js → providers/schema.js} +1 -1
- package/dist/esm/authentication/resources.d.ts +2 -0
- package/dist/esm/authentication/resources.d.ts.map +1 -0
- package/dist/esm/authentication/resources.js +1 -0
- package/dist/esm/authentication/sessions/resources.d.ts +21 -0
- package/dist/esm/authentication/sessions/resources.d.ts.map +1 -0
- package/dist/esm/authentication/sessions/resources.js +37 -0
- package/dist/esm/authentication/sessions/schema.d.ts +81 -0
- package/dist/esm/authentication/sessions/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/session.js → sessions/schema.js} +17 -8
- package/dist/esm/authentication/settings/resources.d.ts +12 -0
- package/dist/esm/authentication/settings/resources.d.ts.map +1 -0
- package/dist/esm/authentication/settings/resources.js +26 -0
- package/dist/esm/authentication/{schema/settings.d.ts → settings/schema.d.ts} +31 -8
- package/dist/esm/authentication/settings/schema.d.ts.map +1 -0
- package/dist/esm/authentication/settings/schema.js +20 -0
- package/dist/esm/authentication/strategies/resources.d.ts +20 -0
- package/dist/esm/authentication/strategies/resources.d.ts.map +1 -0
- package/dist/esm/authentication/strategies/resources.js +49 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/base.d.ts +17 -7
- package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/base.js +11 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/schema.d.ts +102 -53
- package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/schema.js +4 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/email.d.ts +27 -9
- package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/email.js +4 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/password.d.ts +76 -43
- package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -0
- package/dist/esm/authentication/strategies/schema/types/password.js +49 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/totp.d.ts +33 -13
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/totp.js +12 -3
- package/dist/esm/authorization/index.d.ts.map +1 -1
- package/dist/esm/authorization/index.js +2 -0
- package/dist/esm/authorization/permissions/resources.d.ts +2 -2
- package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/resources.js +1 -1
- package/dist/esm/authorization/permissions/schema.d.ts +8 -8
- package/dist/esm/authorization/roles/resources.d.ts +2 -2
- package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
- package/dist/esm/authorization/roles/resources.js +1 -1
- package/dist/esm/authorization/roles/schema.d.ts +8 -8
- package/dist/esm/common/index.d.ts +1 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +1 -0
- package/dist/esm/common/schema/dates.d.ts +7 -7
- package/dist/esm/common/schema/dates.d.ts.map +1 -1
- package/dist/esm/common/schema/metadata.d.ts +8 -6
- package/dist/esm/common/schema/metadata.d.ts.map +1 -1
- package/dist/esm/common/schema/schema.d.ts +2 -1
- package/dist/esm/common/schema/schema.d.ts.map +1 -1
- package/dist/esm/common/schema/schema.js +2 -1
- package/dist/esm/common/schema/schema.test.d.ts +2 -0
- package/dist/esm/common/schema/schema.test.d.ts.map +1 -0
- package/dist/esm/common/schema/schema.test.js +33 -0
- package/dist/esm/common/schema/sets.d.ts +2 -2
- package/dist/esm/common/schema/sets.d.ts.map +1 -1
- package/dist/esm/common/schema/url.d.ts +2 -0
- package/dist/esm/common/schema/url.d.ts.map +1 -0
- package/dist/esm/common/schema/url.js +9 -0
- package/dist/esm/customer/index.d.ts +1 -0
- package/dist/esm/customer/index.d.ts.map +1 -1
- package/dist/esm/customer/index.js +1 -0
- package/dist/esm/customer/schema/organization.d.ts +7 -7
- package/dist/esm/customer/users/resources.d.ts +2 -2
- package/dist/esm/customer/users/resources.d.ts.map +1 -1
- package/dist/esm/customer/users/resources.js +3 -3
- package/dist/esm/customer/users/schema.d.ts +10 -11
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +1 -3
- package/dist/esm/customer/users/schema.test.js +2 -0
- package/dist/esm/customer/users/utils.d.ts +10 -0
- package/dist/esm/customer/users/utils.d.ts.map +1 -0
- package/dist/esm/customer/users/utils.js +27 -0
- package/dist/esm/identity/index.d.ts +1 -1
- package/dist/esm/identity/index.d.ts.map +1 -1
- package/dist/esm/identity/index.js +1 -1
- package/dist/esm/identity/schema.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +1 -1
- package/dist/esm/oauth/common/schema.d.ts +6 -0
- package/dist/esm/oauth/common/schema.d.ts.map +1 -1
- package/dist/esm/oauth/common/schema.js +6 -0
- package/dist/esm/oauth/index.d.ts +1 -1
- package/dist/esm/oauth/index.d.ts.map +1 -1
- package/dist/esm/oauth/index.js +1 -1
- package/dist/esm/oauth/token/schema/grants/client-credentials.js +1 -1
- package/dist/esm/oauth/token/schema/grants/refresh-token.js +1 -1
- package/dist/esm/workspace/{schema/authorization.d.ts → authorization/schema.d.ts} +6 -6
- package/dist/esm/workspace/authorization/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/branding.d.ts → branding/schema.d.ts} +6 -6
- package/dist/esm/workspace/branding/schema.d.ts.map +1 -0
- package/dist/esm/workspace/index.d.ts +8 -1
- package/dist/esm/workspace/index.d.ts.map +1 -1
- package/dist/esm/workspace/index.js +8 -1
- package/dist/esm/workspace/{schema/membership.d.ts → membership/schema.d.ts} +6 -6
- package/dist/esm/workspace/membership/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/registration.d.ts → registration/schema.d.ts} +6 -6
- package/dist/esm/workspace/registration/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/registration.js → registration/schema.js} +1 -1
- package/dist/esm/workspace/{schema/settings.d.ts → settings/schema.d.ts} +6 -6
- package/dist/esm/workspace/settings/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/tenant.d.ts → tenant/schema.d.ts} +11 -11
- package/dist/esm/workspace/{schema/tenant.d.ts.map → tenant/schema.d.ts.map} +1 -1
- package/dist/esm/workspace/{schema/tenant.js → tenant/schema.js} +2 -2
- package/dist/esm/workspace/{schema/user-notification.d.ts → user/notifications/schema.d.ts} +8 -8
- package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/user-notification.js → user/notifications/schema.js} +4 -4
- package/dist/esm/workspace/{schema/user-preferences.d.ts → user/preferences/schema.d.ts} +6 -6
- package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/user-preferences.js → user/preferences/schema.js} +2 -2
- package/dist/esm/workspace/user/schema.d.ts +3 -0
- package/dist/esm/workspace/user/schema.d.ts.map +1 -0
- package/dist/esm/workspace/user/schema.js +2 -0
- package/dist/esm/workspace/utils.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/cjs/app/schema/app.d.ts.map +0 -1
- package/dist/cjs/app/schema/authorization.d.ts +0 -37
- package/dist/cjs/app/schema/authorization.d.ts.map +0 -1
- package/dist/cjs/app/schema/oauth.d.ts.map +0 -1
- package/dist/cjs/app/schema/oidc.d.ts.map +0 -1
- package/dist/cjs/app/schema/registration.d.ts.map +0 -1
- package/dist/cjs/app/schema/saml.d.ts.map +0 -1
- package/dist/cjs/app/schema/schema.d.ts +0 -8
- package/dist/cjs/app/schema/schema.d.ts.map +0 -1
- package/dist/cjs/app/schema/schema.js +0 -23
- package/dist/cjs/app/schema/utils.d.ts.map +0 -1
- package/dist/cjs/association/schema/association.d.ts +0 -82
- package/dist/cjs/association/schema/association.d.ts.map +0 -1
- package/dist/cjs/association/schema/schema.d.ts +0 -2
- package/dist/cjs/association/schema/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/factors.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/factors.test.d.ts +0 -2
- package/dist/cjs/authentication/schema/factors.test.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/provider.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/schema.d.ts +0 -6
- package/dist/cjs/authentication/schema/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/schema.js +0 -21
- package/dist/cjs/authentication/schema/session.d.ts +0 -59
- package/dist/cjs/authentication/schema/session.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/settings.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/base.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/password.js +0 -35
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts.map +0 -1
- package/dist/cjs/identity/schema/schema.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/authorization.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/branding.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/membership.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/registration.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/schema.d.ts +0 -10
- package/dist/cjs/workspace/schema/schema.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/schema.js +0 -25
- package/dist/cjs/workspace/schema/settings.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/user-notification.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/user-preferences.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/utils.d.ts.map +0 -1
- package/dist/esm/app/schema/app.d.ts.map +0 -1
- package/dist/esm/app/schema/authorization.d.ts +0 -37
- package/dist/esm/app/schema/authorization.d.ts.map +0 -1
- package/dist/esm/app/schema/oauth.d.ts.map +0 -1
- package/dist/esm/app/schema/oauth.js +0 -18
- package/dist/esm/app/schema/oidc.d.ts.map +0 -1
- package/dist/esm/app/schema/oidc.js +0 -10
- package/dist/esm/app/schema/registration.d.ts +0 -22
- package/dist/esm/app/schema/registration.d.ts.map +0 -1
- package/dist/esm/app/schema/saml.d.ts.map +0 -1
- package/dist/esm/app/schema/saml.js +0 -10
- package/dist/esm/app/schema/schema.d.ts +0 -8
- package/dist/esm/app/schema/schema.d.ts.map +0 -1
- package/dist/esm/app/schema/schema.js +0 -7
- package/dist/esm/app/schema/utils.d.ts.map +0 -1
- package/dist/esm/association/schema/association.d.ts +0 -82
- package/dist/esm/association/schema/association.d.ts.map +0 -1
- package/dist/esm/association/schema/association.js +0 -23
- package/dist/esm/association/schema/schema.d.ts +0 -2
- package/dist/esm/association/schema/schema.d.ts.map +0 -1
- package/dist/esm/association/schema/schema.js +0 -1
- package/dist/esm/authentication/schema/factors.d.ts.map +0 -1
- package/dist/esm/authentication/schema/factors.test.d.ts +0 -2
- package/dist/esm/authentication/schema/factors.test.d.ts.map +0 -1
- package/dist/esm/authentication/schema/provider.d.ts.map +0 -1
- package/dist/esm/authentication/schema/schema.d.ts +0 -6
- package/dist/esm/authentication/schema/schema.d.ts.map +0 -1
- package/dist/esm/authentication/schema/schema.js +0 -5
- package/dist/esm/authentication/schema/session.d.ts +0 -59
- package/dist/esm/authentication/schema/session.d.ts.map +0 -1
- package/dist/esm/authentication/schema/settings.d.ts.map +0 -1
- package/dist/esm/authentication/schema/settings.js +0 -13
- package/dist/esm/authentication/schema/strategy/base.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/schema.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/email.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/password.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/password.js +0 -32
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts.map +0 -1
- package/dist/esm/identity/schema/schema.d.ts.map +0 -1
- package/dist/esm/workspace/schema/authorization.d.ts.map +0 -1
- package/dist/esm/workspace/schema/branding.d.ts.map +0 -1
- package/dist/esm/workspace/schema/membership.d.ts.map +0 -1
- package/dist/esm/workspace/schema/registration.d.ts.map +0 -1
- package/dist/esm/workspace/schema/schema.d.ts +0 -10
- package/dist/esm/workspace/schema/schema.d.ts.map +0 -1
- package/dist/esm/workspace/schema/schema.js +0 -9
- package/dist/esm/workspace/schema/settings.d.ts.map +0 -1
- package/dist/esm/workspace/schema/user-notification.d.ts.map +0 -1
- package/dist/esm/workspace/schema/user-preferences.d.ts.map +0 -1
- package/dist/esm/workspace/schema/utils.d.ts.map +0 -1
- package/dist/cjs/app/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cjs/app/{schema/utils.js → utils.js} +0 -0
- package/dist/cjs/identity/{schema/schema.d.ts → schema.d.ts} +0 -0
- package/dist/cjs/identity/{schema/schema.js → schema.js} +0 -0
- package/dist/cjs/workspace/{schema/authorization.js → authorization/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/branding.js → branding/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/membership.js → membership/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/settings.js → settings/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cjs/workspace/{schema/utils.js → utils.js} +1 -1
- package/dist/esm/app/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/esm/app/{schema/utils.js → utils.js} +0 -0
- package/dist/esm/identity/{schema/schema.d.ts → schema.d.ts} +0 -0
- package/dist/esm/identity/{schema/schema.js → schema.js} +0 -0
- package/dist/esm/workspace/{schema/authorization.js → authorization/schema.js} +0 -0
- package/dist/esm/workspace/{schema/branding.js → branding/schema.js} +0 -0
- package/dist/esm/workspace/{schema/membership.js → membership/schema.js} +0 -0
- package/dist/esm/workspace/{schema/settings.js → settings/schema.js} +0 -0
- package/dist/esm/workspace/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/esm/workspace/{schema/utils.js → utils.js} +1 -1
|
@@ -2,107 +2,109 @@
|
|
|
2
2
|
* Union(s)
|
|
3
3
|
*/
|
|
4
4
|
export declare const InsertStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
5
|
+
type: "email";
|
|
5
6
|
label: string;
|
|
6
7
|
status: import("arktype/out/attributes.js").Default<"enabled" | "disabled", "enabled">;
|
|
7
8
|
id?: string | undefined;
|
|
8
9
|
metadata?: ((In: {
|
|
9
10
|
[x: string]: string | number | boolean;
|
|
10
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
11
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
11
12
|
[x: string]: string | number | boolean;
|
|
12
13
|
} | undefined>) | undefined;
|
|
13
|
-
type: "email";
|
|
14
14
|
} | {
|
|
15
|
+
type: "password";
|
|
15
16
|
label: string;
|
|
16
17
|
status: import("arktype/out/attributes.js").Default<"enabled" | "disabled", "enabled">;
|
|
17
18
|
id?: string | undefined;
|
|
18
19
|
metadata?: ((In: {
|
|
19
20
|
[x: string]: string | number | boolean;
|
|
20
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
21
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
21
22
|
[x: string]: string | number | boolean;
|
|
22
23
|
} | undefined>) | undefined;
|
|
23
|
-
|
|
24
|
-
settings: {
|
|
24
|
+
settings?: {
|
|
25
25
|
passwordPolicy: {
|
|
26
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
27
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
28
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
29
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
30
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
31
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
26
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
27
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
28
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
29
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
30
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
31
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
32
32
|
};
|
|
33
|
-
};
|
|
33
|
+
} | undefined;
|
|
34
34
|
} | {
|
|
35
|
+
type: "totp";
|
|
35
36
|
label: string;
|
|
36
37
|
status: import("arktype/out/attributes.js").Default<"enabled" | "disabled", "enabled">;
|
|
37
38
|
id?: string | undefined;
|
|
38
39
|
metadata?: ((In: {
|
|
39
40
|
[x: string]: string | number | boolean;
|
|
40
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
41
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
41
42
|
[x: string]: string | number | boolean;
|
|
42
43
|
} | undefined>) | undefined;
|
|
43
|
-
|
|
44
|
-
settings: {
|
|
44
|
+
settings?: {
|
|
45
45
|
digits: import("arktype/out/attributes.js").Default<6 | 7 | 8, 6>;
|
|
46
46
|
period: import("arktype/out/attributes.js").Default<15 | 30 | 60, 30>;
|
|
47
47
|
algorithm: import("arktype/out/attributes.js").Default<string, string>;
|
|
48
|
-
};
|
|
48
|
+
} | undefined;
|
|
49
49
|
}, {}>;
|
|
50
|
+
export type InsertStrategyInput = typeof InsertStrategyPayloadSchema.inferIn;
|
|
50
51
|
export type InsertStrategyPayload = typeof InsertStrategyPayloadSchema.inferOut;
|
|
51
52
|
export declare const UpdateStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
53
|
+
type: "email";
|
|
52
54
|
label?: string | undefined;
|
|
53
55
|
status?: "enabled" | "disabled" | undefined;
|
|
54
56
|
metadata?: ((In: {
|
|
55
57
|
[x: string]: string | number | boolean;
|
|
56
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
58
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
57
59
|
[x: string]: string | number | boolean;
|
|
58
60
|
} | undefined>) | undefined;
|
|
59
|
-
type: "email";
|
|
60
61
|
} | {
|
|
62
|
+
type: "password";
|
|
61
63
|
label?: string | undefined;
|
|
62
64
|
status?: "enabled" | "disabled" | undefined;
|
|
63
65
|
metadata?: ((In: {
|
|
64
66
|
[x: string]: string | number | boolean;
|
|
65
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
67
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
66
68
|
[x: string]: string | number | boolean;
|
|
67
69
|
} | undefined>) | undefined;
|
|
68
|
-
|
|
69
|
-
settings: {
|
|
70
|
+
settings?: {
|
|
70
71
|
passwordPolicy: {
|
|
71
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
72
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
73
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
74
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
75
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
76
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
72
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
73
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
74
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
75
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
76
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
77
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
77
78
|
};
|
|
78
|
-
};
|
|
79
|
+
} | undefined;
|
|
79
80
|
} | {
|
|
81
|
+
type: "totp";
|
|
80
82
|
label?: string | undefined;
|
|
81
83
|
status?: "enabled" | "disabled" | undefined;
|
|
82
84
|
metadata?: ((In: {
|
|
83
85
|
[x: string]: string | number | boolean;
|
|
84
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
86
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
85
87
|
[x: string]: string | number | boolean;
|
|
86
88
|
} | undefined>) | undefined;
|
|
87
|
-
|
|
88
|
-
settings: {
|
|
89
|
+
settings?: {
|
|
89
90
|
digits: import("arktype/out/attributes.js").Default<6 | 7 | 8, 6>;
|
|
90
91
|
period: import("arktype/out/attributes.js").Default<15 | 30 | 60, 30>;
|
|
91
92
|
algorithm: import("arktype/out/attributes.js").Default<string, string>;
|
|
92
|
-
};
|
|
93
|
+
} | undefined;
|
|
93
94
|
}, {}>;
|
|
95
|
+
export type UpdateStrategyInput = typeof UpdateStrategyPayloadSchema.inferIn;
|
|
94
96
|
export type UpdateStrategyPayload = typeof UpdateStrategyPayloadSchema.inferOut;
|
|
95
97
|
export declare const StrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
96
98
|
id: string;
|
|
97
99
|
status: "enabled" | "disabled";
|
|
98
100
|
label: string;
|
|
99
|
-
createdAt: (In: string | Date) => import("arktype
|
|
100
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
101
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
102
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
101
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
102
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
103
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
104
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
103
105
|
metadata?: ((In: {
|
|
104
106
|
[x: string]: string | number | boolean;
|
|
105
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
107
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
106
108
|
[x: string]: string | number | boolean;
|
|
107
109
|
} | undefined>) | undefined;
|
|
108
110
|
type: "email";
|
|
@@ -110,37 +112,37 @@ export declare const StrategyPayloadSchema: import("arktype/out/methods/object.j
|
|
|
110
112
|
id: string;
|
|
111
113
|
status: "enabled" | "disabled";
|
|
112
114
|
label: string;
|
|
113
|
-
createdAt: (In: string | Date) => import("arktype
|
|
114
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
115
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
116
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
115
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
116
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
117
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
118
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
117
119
|
metadata?: ((In: {
|
|
118
120
|
[x: string]: string | number | boolean;
|
|
119
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
121
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
120
122
|
[x: string]: string | number | boolean;
|
|
121
123
|
} | undefined>) | undefined;
|
|
122
124
|
type: "password";
|
|
123
125
|
settings: {
|
|
124
126
|
passwordPolicy: {
|
|
125
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
126
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
127
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
128
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
129
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
130
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
127
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
128
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
129
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
130
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
131
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
132
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
131
133
|
};
|
|
132
134
|
};
|
|
133
135
|
} | {
|
|
134
136
|
id: string;
|
|
135
137
|
status: "enabled" | "disabled";
|
|
136
138
|
label: string;
|
|
137
|
-
createdAt: (In: string | Date) => import("arktype
|
|
138
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
139
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
140
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
139
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
140
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
141
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
142
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
141
143
|
metadata?: ((In: {
|
|
142
144
|
[x: string]: string | number | boolean;
|
|
143
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
145
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
144
146
|
[x: string]: string | number | boolean;
|
|
145
147
|
} | undefined>) | undefined;
|
|
146
148
|
type: "totp";
|
|
@@ -151,6 +153,53 @@ export declare const StrategyPayloadSchema: import("arktype/out/methods/object.j
|
|
|
151
153
|
};
|
|
152
154
|
}, {}>;
|
|
153
155
|
export type StrategyPayload = typeof StrategyPayloadSchema.inferOut;
|
|
156
|
+
export declare const StrategySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
157
|
+
id: string;
|
|
158
|
+
status: "enabled" | "disabled";
|
|
159
|
+
label: string;
|
|
160
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
161
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
162
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
163
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
164
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
165
|
+
type: "email";
|
|
166
|
+
} | {
|
|
167
|
+
id: string;
|
|
168
|
+
status: "enabled" | "disabled";
|
|
169
|
+
label: string;
|
|
170
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
171
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
172
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
173
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
174
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
175
|
+
type: "password";
|
|
176
|
+
settings: {
|
|
177
|
+
passwordPolicy: {
|
|
178
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
179
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
180
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
181
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
182
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
183
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
} | {
|
|
187
|
+
id: string;
|
|
188
|
+
status: "enabled" | "disabled";
|
|
189
|
+
label: string;
|
|
190
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
191
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
192
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
193
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
194
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
195
|
+
type: "totp";
|
|
196
|
+
settings: {
|
|
197
|
+
digits: import("arktype/out/attributes.js").Default<6 | 7 | 8, 6>;
|
|
198
|
+
period: import("arktype/out/attributes.js").Default<15 | 30 | 60, 30>;
|
|
199
|
+
algorithm: import("arktype/out/attributes.js").Default<string, string>;
|
|
200
|
+
};
|
|
201
|
+
}, {}>;
|
|
202
|
+
export type Strategy = typeof StrategySchema.inferOut;
|
|
154
203
|
export { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseUpdateStrategyPayloadSchema, StrategyIdPropertySchema, StrategyIdSchema, StrategyLabelSchema, StrategyStatus, StrategyStatusSchema, StrategyType, type AnyStrategyStatus, type AnyStrategyType, type StrategyId, type StrategyIdProperty, } from './base.js';
|
|
155
204
|
export * from './types/email.js';
|
|
156
205
|
export * from './types/password.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAC4C,CAAC;AACxE,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.StrategyType = exports.StrategyStatusSchema = exports.StrategyStatus = exports.StrategyLabelSchema = exports.StrategyIdSchema = exports.StrategyIdPropertySchema = exports.BaseUpdateStrategyPayloadSchema = exports.BaseStrategyPayloadSchema = exports.BaseInsertStrategyPayloadSchema = exports.StrategyPayloadSchema = exports.UpdateStrategyPayloadSchema = exports.InsertStrategyPayloadSchema = void 0;
|
|
17
|
+
exports.StrategyType = exports.StrategyStatusSchema = exports.StrategyStatus = exports.StrategyLabelSchema = exports.StrategyIdSchema = exports.StrategyIdPropertySchema = exports.BaseUpdateStrategyPayloadSchema = exports.BaseStrategyPayloadSchema = exports.BaseInsertStrategyPayloadSchema = exports.StrategySchema = exports.StrategyPayloadSchema = exports.UpdateStrategyPayloadSchema = exports.InsertStrategyPayloadSchema = void 0;
|
|
18
18
|
const email_js_1 = require("./types/email.js");
|
|
19
19
|
const password_js_1 = require("./types/password.js");
|
|
20
20
|
const totp_js_1 = require("./types/totp.js");
|
|
@@ -24,6 +24,7 @@ const totp_js_1 = require("./types/totp.js");
|
|
|
24
24
|
exports.InsertStrategyPayloadSchema = password_js_1.InsertPasswordStrategyPayloadSchema.or(email_js_1.InsertEmailStrategyPayloadSchema).or(totp_js_1.InsertTOTPStrategyPayloadSchema);
|
|
25
25
|
exports.UpdateStrategyPayloadSchema = password_js_1.UpdatePasswordStrategyPayloadSchema.or(email_js_1.UpdateEmailStrategyPayloadSchema).or(totp_js_1.UpdateTOTPStrategyPayloadSchema);
|
|
26
26
|
exports.StrategyPayloadSchema = password_js_1.PasswordStrategyPayloadSchema.or(email_js_1.EmailStrategyPayloadSchema.or(totp_js_1.TOTPStrategyPayloadSchema));
|
|
27
|
+
exports.StrategySchema = password_js_1.PasswordStrategySchema.or(email_js_1.EmailStrategySchema).or(totp_js_1.TOTPStrategySchema);
|
|
27
28
|
var base_js_1 = require("./base.js");
|
|
28
29
|
Object.defineProperty(exports, "BaseInsertStrategyPayloadSchema", { enumerable: true, get: function () { return base_js_1.BaseInsertStrategyPayloadSchema; } });
|
|
29
30
|
Object.defineProperty(exports, "BaseStrategyPayloadSchema", { enumerable: true, get: function () { return base_js_1.BaseStrategyPayloadSchema; } });
|
|
@@ -1,39 +1,57 @@
|
|
|
1
|
+
export declare const EmailStrategySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
status: "enabled" | "disabled";
|
|
4
|
+
label: string;
|
|
5
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
6
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
7
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
8
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
9
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
10
|
+
type: "email";
|
|
11
|
+
}, {}>;
|
|
12
|
+
export type EmailStrategyProperties = typeof EmailStrategySchema.inferIn;
|
|
13
|
+
export type EmailStrategy = typeof EmailStrategySchema.inferOut;
|
|
1
14
|
export declare const EmailStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
15
|
id: string;
|
|
3
16
|
status: "enabled" | "disabled";
|
|
4
17
|
label: string;
|
|
5
|
-
createdAt: (In: string | Date) => import("arktype
|
|
6
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
7
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
8
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
18
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
19
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
20
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
21
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
9
22
|
metadata?: ((In: {
|
|
10
23
|
[x: string]: string | number | boolean;
|
|
11
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
24
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
12
25
|
[x: string]: string | number | boolean;
|
|
13
26
|
} | undefined>) | undefined;
|
|
14
27
|
type: "email";
|
|
15
28
|
}, {}>;
|
|
29
|
+
export type EmailStrategyPayload = typeof EmailStrategyPayloadSchema.inferOut;
|
|
16
30
|
export declare const InsertEmailStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
31
|
+
type: "email";
|
|
17
32
|
label: string;
|
|
18
33
|
status: import("arktype/out/attributes.js").Default<"enabled" | "disabled", "enabled">;
|
|
19
34
|
id?: string | undefined;
|
|
20
35
|
metadata?: ((In: {
|
|
21
36
|
[x: string]: string | number | boolean;
|
|
22
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
37
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
23
38
|
[x: string]: string | number | boolean;
|
|
24
39
|
} | undefined>) | undefined;
|
|
25
|
-
type: "email";
|
|
26
40
|
}, {}>;
|
|
41
|
+
export type InsertEmailStrategyInput = typeof InsertEmailStrategyPayloadSchema.inferIn;
|
|
42
|
+
export type InsertEmailStrategyPayload = typeof InsertEmailStrategyPayloadSchema.inferOut;
|
|
27
43
|
export declare const UpdateEmailStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
44
|
+
type: "email";
|
|
28
45
|
label?: string | undefined;
|
|
29
46
|
status?: "enabled" | "disabled" | undefined;
|
|
30
47
|
metadata?: ((In: {
|
|
31
48
|
[x: string]: string | number | boolean;
|
|
32
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
49
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
33
50
|
[x: string]: string | number | boolean;
|
|
34
51
|
} | undefined>) | undefined;
|
|
35
|
-
type: "email";
|
|
36
52
|
}, {}>;
|
|
53
|
+
export type UpdateEmailStrategyInput = typeof UpdateEmailStrategyPayloadSchema.inferIn;
|
|
54
|
+
export type UpdateEmailStrategyPayload = typeof UpdateEmailStrategyPayloadSchema.inferOut;
|
|
37
55
|
export declare const VerifyEmailSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
38
56
|
code: string;
|
|
39
57
|
email?: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/email.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;;;;;MAAqC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,OAAO,mBAAmB,CAAC,OAAO,CAAC;AACzE,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;MACI,CAAC;AAC5C,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,QAAQ,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;MAE5B,CAAC;AAClB,MAAM,MAAM,wBAAwB,GAClC,OAAO,gCAAgC,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC;AAEnD,eAAO,MAAM,gCAAgC;;;;;;;;;MAE5C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAClC,OAAO,gCAAgC,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC;AAEnD,eAAO,MAAM,iBAAiB;;;MAK5B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;MAE1C,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendEmailVerificationCodeSchema = exports.VerifyEmailSchema = exports.UpdateEmailStrategyPayloadSchema = exports.InsertEmailStrategyPayloadSchema = exports.EmailStrategyPayloadSchema = void 0;
|
|
3
|
+
exports.SendEmailVerificationCodeSchema = exports.VerifyEmailSchema = exports.UpdateEmailStrategyPayloadSchema = exports.InsertEmailStrategyPayloadSchema = exports.EmailStrategyPayloadSchema = exports.EmailStrategySchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const base_js_1 = require("../base.js");
|
|
6
6
|
const TypeSchema = (0, arktype_1.type)({
|
|
7
7
|
type: "'email'",
|
|
8
8
|
});
|
|
9
|
+
exports.EmailStrategySchema = base_js_1.BaseStrategySchema.and(TypeSchema);
|
|
9
10
|
exports.EmailStrategyPayloadSchema = base_js_1.BaseStrategyPayloadSchema.and(TypeSchema);
|
|
10
|
-
exports.InsertEmailStrategyPayloadSchema = base_js_1.BaseInsertStrategyPayloadSchema.and(TypeSchema);
|
|
11
|
-
exports.UpdateEmailStrategyPayloadSchema = base_js_1.BaseUpdateStrategyPayloadSchema
|
|
11
|
+
exports.InsertEmailStrategyPayloadSchema = TypeSchema.and(base_js_1.BaseInsertStrategyPayloadSchema).and(TypeSchema);
|
|
12
|
+
exports.UpdateEmailStrategyPayloadSchema = TypeSchema.and(base_js_1.BaseUpdateStrategyPayloadSchema);
|
|
12
13
|
exports.VerifyEmailSchema = (0, arktype_1.type)({
|
|
13
14
|
email: (0, arktype_1.type)('string.email').optional(),
|
|
14
15
|
code: (0, arktype_1.type)('string').configure({
|
|
@@ -1,91 +1,124 @@
|
|
|
1
|
+
export declare const PasswordPolicyDefaults: {
|
|
2
|
+
minimumLength: number;
|
|
3
|
+
maximumLength: number;
|
|
4
|
+
minimumCapital: number;
|
|
5
|
+
minimumLower: number;
|
|
6
|
+
minimumNumber: number;
|
|
7
|
+
minimumSpecial: number;
|
|
8
|
+
};
|
|
1
9
|
export declare const PasswordPolicySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
3
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
4
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
5
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
6
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
7
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
10
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
11
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
12
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
13
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
14
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
15
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
8
16
|
}, {}>;
|
|
9
17
|
export declare const PasswordStrategySettingsPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
10
18
|
settings: {
|
|
11
19
|
passwordPolicy: {
|
|
12
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
13
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
14
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
15
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
16
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
17
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
20
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
21
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
22
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
23
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
24
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
25
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
18
26
|
};
|
|
19
27
|
};
|
|
20
28
|
}, {}>;
|
|
29
|
+
export declare const PasswordStrategySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
30
|
+
id: string;
|
|
31
|
+
status: "enabled" | "disabled";
|
|
32
|
+
label: string;
|
|
33
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
34
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
35
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
36
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
37
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
38
|
+
type: "password";
|
|
39
|
+
settings: {
|
|
40
|
+
passwordPolicy: {
|
|
41
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
42
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
43
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
44
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
45
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
46
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {}>;
|
|
50
|
+
export type PasswordStrategyProperties = typeof PasswordStrategySchema.inferIn;
|
|
51
|
+
export type PasswordStrategy = typeof PasswordStrategySchema.inferOut;
|
|
21
52
|
export declare const PasswordStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
22
53
|
id: string;
|
|
23
54
|
status: "enabled" | "disabled";
|
|
24
55
|
label: string;
|
|
25
|
-
createdAt: (In: string | Date) => import("arktype
|
|
26
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
27
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
28
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
56
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
57
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
58
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
59
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
29
60
|
metadata?: ((In: {
|
|
30
61
|
[x: string]: string | number | boolean;
|
|
31
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
62
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
32
63
|
[x: string]: string | number | boolean;
|
|
33
64
|
} | undefined>) | undefined;
|
|
34
65
|
type: "password";
|
|
35
66
|
settings: {
|
|
36
67
|
passwordPolicy: {
|
|
37
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
38
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
39
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
40
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
41
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
42
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
68
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
69
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
70
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
71
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
72
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
73
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
43
74
|
};
|
|
44
75
|
};
|
|
45
76
|
}, {}>;
|
|
46
77
|
export type PasswordStrategyPayload = typeof PasswordStrategyPayloadSchema.inferOut;
|
|
47
78
|
export declare const InsertPasswordStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
79
|
+
type: "password";
|
|
48
80
|
label: string;
|
|
49
81
|
status: import("arktype/out/attributes.js").Default<"enabled" | "disabled", "enabled">;
|
|
50
82
|
id?: string | undefined;
|
|
51
83
|
metadata?: ((In: {
|
|
52
84
|
[x: string]: string | number | boolean;
|
|
53
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
85
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
54
86
|
[x: string]: string | number | boolean;
|
|
55
87
|
} | undefined>) | undefined;
|
|
56
|
-
|
|
57
|
-
settings: {
|
|
88
|
+
settings?: {
|
|
58
89
|
passwordPolicy: {
|
|
59
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
60
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
61
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
62
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
63
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
64
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
90
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
91
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
92
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
93
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
94
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
95
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
65
96
|
};
|
|
66
|
-
};
|
|
97
|
+
} | undefined;
|
|
67
98
|
}, {}>;
|
|
99
|
+
export type InsertPasswordStrategyInput = typeof InsertPasswordStrategyPayloadSchema.inferIn;
|
|
68
100
|
export type InsertPasswordStrategyPayload = typeof InsertPasswordStrategyPayloadSchema.inferOut;
|
|
69
101
|
export declare const UpdatePasswordStrategyPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
102
|
+
type: "password";
|
|
70
103
|
label?: string | undefined;
|
|
71
104
|
status?: "enabled" | "disabled" | undefined;
|
|
72
105
|
metadata?: ((In: {
|
|
73
106
|
[x: string]: string | number | boolean;
|
|
74
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
107
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
75
108
|
[x: string]: string | number | boolean;
|
|
76
109
|
} | undefined>) | undefined;
|
|
77
|
-
|
|
78
|
-
settings: {
|
|
110
|
+
settings?: {
|
|
79
111
|
passwordPolicy: {
|
|
80
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
81
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
82
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
83
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
84
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
85
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
112
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
113
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
114
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
115
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
116
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
117
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
86
118
|
};
|
|
87
|
-
};
|
|
119
|
+
} | undefined;
|
|
88
120
|
}, {}>;
|
|
121
|
+
export type UpdatePasswordStrategyInput = typeof UpdatePasswordStrategyPayloadSchema.inferIn;
|
|
89
122
|
export type UpdatePasswordStrategyPayload = typeof UpdatePasswordStrategyPayloadSchema.inferOut;
|
|
90
123
|
export declare const ForgotPasswordSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
91
124
|
identifier?: string | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/password.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;MAO/B,CAAC;AAMH,eAAO,MAAM,sCAAsC;;;;;;;;;;;MAEjD,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;MAEjC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,sBAAsB,CAAC,OAAO,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;MAEG,CAAC;AAC9C,MAAM,MAAM,uBAAuB,GACjC,OAAO,6BAA6B,CAAC,QAAQ,CAAC;AAEhD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;MAM5C,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,mCAAmC,CAAC,OAAO,CAAC;AACrD,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC;AAEtD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;MAI9C,CAAC;AACH,MAAM,MAAM,2BAA2B,GACrC,OAAO,mCAAmC,CAAC,OAAO,CAAC;AACrD,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC;AAEtD,eAAO,MAAM,oBAAoB;;;MAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;MAI/B,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifyPasswordSchema = exports.ForgotPasswordSchema = exports.UpdatePasswordStrategyPayloadSchema = exports.InsertPasswordStrategyPayloadSchema = exports.PasswordStrategyPayloadSchema = exports.PasswordStrategySchema = exports.PasswordStrategySettingsPropertySchema = exports.PasswordPolicySchema = exports.PasswordPolicyDefaults = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const schema_js_1 = require("../../../../identity/schema.js");
|
|
6
|
+
const base_js_1 = require("../base.js");
|
|
7
|
+
exports.PasswordPolicyDefaults = {
|
|
8
|
+
minimumLength: 8,
|
|
9
|
+
maximumLength: 36,
|
|
10
|
+
minimumCapital: 1,
|
|
11
|
+
minimumLower: 1,
|
|
12
|
+
minimumNumber: 1,
|
|
13
|
+
minimumSpecial: 1,
|
|
14
|
+
};
|
|
15
|
+
const TypeSchema = (0, arktype_1.type)({
|
|
16
|
+
type: "'password'",
|
|
17
|
+
});
|
|
18
|
+
exports.PasswordPolicySchema = (0, arktype_1.type)({
|
|
19
|
+
minimumLength: arktype_1.type.number.default(exports.PasswordPolicyDefaults.minimumLength),
|
|
20
|
+
maximumLength: arktype_1.type.number.default(exports.PasswordPolicyDefaults.maximumLength),
|
|
21
|
+
minimumCapital: arktype_1.type.number.default(exports.PasswordPolicyDefaults.minimumCapital),
|
|
22
|
+
minimumLower: arktype_1.type.number.default(exports.PasswordPolicyDefaults.minimumLower),
|
|
23
|
+
minimumNumber: arktype_1.type.number.default(exports.PasswordPolicyDefaults.minimumNumber),
|
|
24
|
+
minimumSpecial: arktype_1.type.number.default(exports.PasswordPolicyDefaults.minimumSpecial),
|
|
25
|
+
});
|
|
26
|
+
const SettingsSchema = (0, arktype_1.type)({
|
|
27
|
+
passwordPolicy: exports.PasswordPolicySchema,
|
|
28
|
+
});
|
|
29
|
+
exports.PasswordStrategySettingsPropertySchema = (0, arktype_1.type)({
|
|
30
|
+
settings: SettingsSchema,
|
|
31
|
+
});
|
|
32
|
+
exports.PasswordStrategySchema = base_js_1.BaseStrategySchema.and(TypeSchema).and({
|
|
33
|
+
settings: SettingsSchema,
|
|
34
|
+
});
|
|
35
|
+
exports.PasswordStrategyPayloadSchema = base_js_1.BaseStrategyPayloadSchema.and(TypeSchema).and(exports.PasswordStrategySettingsPropertySchema);
|
|
36
|
+
exports.InsertPasswordStrategyPayloadSchema = TypeSchema.and(base_js_1.BaseInsertStrategyPayloadSchema)
|
|
37
|
+
.and(TypeSchema)
|
|
38
|
+
.and({
|
|
39
|
+
settings: SettingsSchema.optional(),
|
|
40
|
+
});
|
|
41
|
+
exports.UpdatePasswordStrategyPayloadSchema = TypeSchema.and(base_js_1.BaseUpdateStrategyPayloadSchema).and({
|
|
42
|
+
settings: SettingsSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
exports.ForgotPasswordSchema = (0, arktype_1.type)({
|
|
45
|
+
identifier: (0, arktype_1.type)('string').optional(),
|
|
46
|
+
identifierType: schema_js_1.IdentityIdentifierSchema.optional(),
|
|
47
|
+
});
|
|
48
|
+
exports.VerifyPasswordSchema = (0, arktype_1.type)({
|
|
49
|
+
password: (0, arktype_1.type)('string'),
|
|
50
|
+
identifier: (0, arktype_1.type)('string').optional(),
|
|
51
|
+
identifierType: schema_js_1.IdentityIdentifierSchema.optional(),
|
|
52
|
+
});
|