@go-mondo/identity-sdk 0.0.1-beta.2
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/.tsbuildinfo/cjs.json +1 -0
- package/.tsbuildinfo/esm.json +1 -0
- package/CHANGELOG.md +63 -0
- package/README.md +3 -0
- package/lib/cjs/action/index.d.ts +2 -0
- package/lib/cjs/action/index.d.ts.map +1 -0
- package/lib/cjs/action/index.js +17 -0
- package/lib/cjs/action/schema/base.d.ts +21 -0
- package/lib/cjs/action/schema/base.d.ts.map +1 -0
- package/lib/cjs/action/schema/base.js +19 -0
- package/lib/cjs/action/schema/operations/set-password.d.ts +31 -0
- package/lib/cjs/action/schema/operations/set-password.d.ts.map +1 -0
- package/lib/cjs/action/schema/operations/set-password.js +18 -0
- package/lib/cjs/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/lib/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/lib/cjs/action/schema/operations/sign-up-verification.js +15 -0
- package/lib/cjs/action/schema/operations/sign-up.d.ts +44 -0
- package/lib/cjs/action/schema/operations/sign-up.d.ts.map +1 -0
- package/lib/cjs/action/schema/operations/sign-up.js +21 -0
- package/lib/cjs/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/lib/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/lib/cjs/action/schema/operations/user-attribute-verification.js +13 -0
- package/lib/cjs/action/schema/schema.d.ts +92 -0
- package/lib/cjs/action/schema/schema.d.ts.map +1 -0
- package/lib/cjs/action/schema/schema.js +40 -0
- package/lib/cjs/activity/index.d.ts +2 -0
- package/lib/cjs/activity/index.d.ts.map +1 -0
- package/lib/cjs/activity/index.js +17 -0
- package/lib/cjs/activity/schema/base.d.ts +54 -0
- package/lib/cjs/activity/schema/base.d.ts.map +1 -0
- package/lib/cjs/activity/schema/base.js +34 -0
- package/lib/cjs/activity/schema/schema.d.ts +156 -0
- package/lib/cjs/activity/schema/schema.d.ts.map +1 -0
- package/lib/cjs/activity/schema/schema.js +54 -0
- package/lib/cjs/activity/schema/types/authentication.d.ts +29 -0
- package/lib/cjs/activity/schema/types/authentication.d.ts.map +1 -0
- package/lib/cjs/activity/schema/types/authentication.js +16 -0
- package/lib/cjs/activity/schema/types/authorization.d.ts +29 -0
- package/lib/cjs/activity/schema/types/authorization.d.ts.map +1 -0
- package/lib/cjs/activity/schema/types/authorization.js +17 -0
- package/lib/cjs/activity/schema/types/note.d.ts +51 -0
- package/lib/cjs/activity/schema/types/note.d.ts.map +1 -0
- package/lib/cjs/activity/schema/types/note.js +17 -0
- package/lib/cjs/activity/schema/types/operation.d.ts +31 -0
- package/lib/cjs/activity/schema/types/operation.d.ts.map +1 -0
- package/lib/cjs/activity/schema/types/operation.js +18 -0
- package/lib/cjs/activity/schema/types/unknown.d.ts +22 -0
- package/lib/cjs/activity/schema/types/unknown.d.ts.map +1 -0
- package/lib/cjs/activity/schema/types/unknown.js +9 -0
- package/lib/cjs/activity/schema/utils.d.ts +7 -0
- package/lib/cjs/activity/schema/utils.d.ts.map +1 -0
- package/lib/cjs/activity/schema/utils.js +16 -0
- package/lib/cjs/app/index.d.ts +2 -0
- package/lib/cjs/app/index.d.ts.map +1 -0
- package/lib/cjs/app/index.js +17 -0
- package/lib/cjs/app/schema/app.d.ts +58 -0
- package/lib/cjs/app/schema/app.d.ts.map +1 -0
- package/lib/cjs/app/schema/app.js +43 -0
- package/lib/cjs/app/schema/authorization.d.ts +37 -0
- package/lib/cjs/app/schema/authorization.d.ts.map +1 -0
- package/lib/cjs/app/schema/authorization.js +44 -0
- package/lib/cjs/app/schema/oauth.d.ts +30 -0
- package/lib/cjs/app/schema/oauth.d.ts.map +1 -0
- package/lib/cjs/app/schema/oauth.js +21 -0
- package/lib/cjs/app/schema/oidc.d.ts +28 -0
- package/lib/cjs/app/schema/oidc.d.ts.map +1 -0
- package/lib/cjs/app/schema/oidc.js +13 -0
- package/lib/cjs/app/schema/registration.d.ts +22 -0
- package/lib/cjs/app/schema/registration.d.ts.map +1 -0
- package/lib/cjs/app/schema/registration.js +16 -0
- package/lib/cjs/app/schema/saml.d.ts +28 -0
- package/lib/cjs/app/schema/saml.d.ts.map +1 -0
- package/lib/cjs/app/schema/saml.js +13 -0
- package/lib/cjs/app/schema/schema.d.ts +8 -0
- package/lib/cjs/app/schema/schema.d.ts.map +1 -0
- package/lib/cjs/app/schema/schema.js +23 -0
- package/lib/cjs/app/schema/utils.d.ts +11 -0
- package/lib/cjs/app/schema/utils.d.ts.map +1 -0
- package/lib/cjs/app/schema/utils.js +23 -0
- package/lib/cjs/association/index.d.ts +2 -0
- package/lib/cjs/association/index.d.ts.map +1 -0
- package/lib/cjs/association/index.js +17 -0
- package/lib/cjs/association/schema/association.d.ts +79 -0
- package/lib/cjs/association/schema/association.d.ts.map +1 -0
- package/lib/cjs/association/schema/association.js +26 -0
- package/lib/cjs/association/schema/schema.d.ts +2 -0
- package/lib/cjs/association/schema/schema.d.ts.map +1 -0
- package/lib/cjs/association/schema/schema.js +17 -0
- package/lib/cjs/authentication/index.d.ts +2 -0
- package/lib/cjs/authentication/index.d.ts.map +1 -0
- package/lib/cjs/authentication/index.js +17 -0
- package/lib/cjs/authentication/schema/factors.d.ts +48 -0
- package/lib/cjs/authentication/schema/factors.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/factors.js +28 -0
- package/lib/cjs/authentication/schema/factors.test.d.ts +2 -0
- package/lib/cjs/authentication/schema/factors.test.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/factors.test.js +123 -0
- package/lib/cjs/authentication/schema/provider.d.ts +27 -0
- package/lib/cjs/authentication/schema/provider.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/provider.js +24 -0
- package/lib/cjs/authentication/schema/schema.d.ts +6 -0
- package/lib/cjs/authentication/schema/schema.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/schema.js +21 -0
- package/lib/cjs/authentication/schema/session.d.ts +59 -0
- package/lib/cjs/authentication/schema/session.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/session.js +46 -0
- package/lib/cjs/authentication/schema/settings.d.ts +46 -0
- package/lib/cjs/authentication/schema/settings.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/settings.js +16 -0
- package/lib/cjs/authentication/schema/strategy/base.d.ts +43 -0
- package/lib/cjs/authentication/schema/strategy/base.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/strategy/base.js +31 -0
- package/lib/cjs/authentication/schema/strategy/schema.d.ts +169 -0
- package/lib/cjs/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/strategy/schema.js +46 -0
- package/lib/cjs/authentication/schema/strategy/types/email.d.ts +44 -0
- package/lib/cjs/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/strategy/types/email.js +20 -0
- package/lib/cjs/authentication/schema/strategy/types/password.d.ts +99 -0
- package/lib/cjs/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/strategy/types/password.js +35 -0
- package/lib/cjs/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/lib/cjs/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/lib/cjs/authentication/schema/strategy/types/totp.js +48 -0
- package/lib/cjs/authorization/index.d.ts +2 -0
- package/lib/cjs/authorization/index.d.ts.map +1 -0
- package/lib/cjs/authorization/index.js +17 -0
- package/lib/cjs/authorization/schema/permission.d.ts +69 -0
- package/lib/cjs/authorization/schema/permission.d.ts.map +1 -0
- package/lib/cjs/authorization/schema/permission.js +50 -0
- package/lib/cjs/authorization/schema/role.d.ts +74 -0
- package/lib/cjs/authorization/schema/role.d.ts.map +1 -0
- package/lib/cjs/authorization/schema/role.js +52 -0
- package/lib/cjs/authorization/schema/schema.d.ts +4 -0
- package/lib/cjs/authorization/schema/schema.d.ts.map +1 -0
- package/lib/cjs/authorization/schema/schema.js +19 -0
- package/lib/cjs/authorization/schema/utils.d.ts +11 -0
- package/lib/cjs/authorization/schema/utils.d.ts.map +1 -0
- package/lib/cjs/authorization/schema/utils.js +23 -0
- package/lib/cjs/common/index.d.ts +2 -0
- package/lib/cjs/common/index.d.ts.map +1 -0
- package/lib/cjs/common/index.js +17 -0
- package/lib/cjs/common/schema/aggregate.d.ts +6 -0
- package/lib/cjs/common/schema/aggregate.d.ts.map +1 -0
- package/lib/cjs/common/schema/aggregate.js +8 -0
- package/lib/cjs/common/schema/dates.d.ts +39 -0
- package/lib/cjs/common/schema/dates.d.ts.map +1 -0
- package/lib/cjs/common/schema/dates.js +34 -0
- package/lib/cjs/common/schema/dates.test.d.ts +2 -0
- package/lib/cjs/common/schema/dates.test.d.ts.map +1 -0
- package/lib/cjs/common/schema/dates.test.js +33 -0
- package/lib/cjs/common/schema/jwt.d.ts +21 -0
- package/lib/cjs/common/schema/jwt.d.ts.map +1 -0
- package/lib/cjs/common/schema/jwt.js +24 -0
- package/lib/cjs/common/schema/metadata.d.ts +42 -0
- package/lib/cjs/common/schema/metadata.d.ts.map +1 -0
- package/lib/cjs/common/schema/metadata.js +88 -0
- package/lib/cjs/common/schema/metadata.test.d.ts +2 -0
- package/lib/cjs/common/schema/metadata.test.d.ts.map +1 -0
- package/lib/cjs/common/schema/metadata.test.js +62 -0
- package/lib/cjs/common/schema/schema.d.ts +5 -0
- package/lib/cjs/common/schema/schema.d.ts.map +1 -0
- package/lib/cjs/common/schema/schema.js +20 -0
- package/lib/cjs/customer/index.d.ts +2 -0
- package/lib/cjs/customer/index.d.ts.map +1 -0
- package/lib/cjs/customer/index.js +17 -0
- package/lib/cjs/customer/schema/organization.d.ts +54 -0
- package/lib/cjs/customer/schema/organization.d.ts.map +1 -0
- package/lib/cjs/customer/schema/organization.js +40 -0
- package/lib/cjs/customer/schema/schema.d.ts +4 -0
- package/lib/cjs/customer/schema/schema.d.ts.map +1 -0
- package/lib/cjs/customer/schema/schema.js +19 -0
- package/lib/cjs/customer/schema/user.d.ts +122 -0
- package/lib/cjs/customer/schema/user.d.ts.map +1 -0
- package/lib/cjs/customer/schema/user.js +83 -0
- package/lib/cjs/customer/schema/user.test.d.ts +2 -0
- package/lib/cjs/customer/schema/user.test.d.ts.map +1 -0
- package/lib/cjs/customer/schema/user.test.js +57 -0
- package/lib/cjs/customer/schema/utils.d.ts +11 -0
- package/lib/cjs/customer/schema/utils.d.ts.map +1 -0
- package/lib/cjs/customer/schema/utils.js +23 -0
- package/lib/cjs/identity/index.d.ts +2 -0
- package/lib/cjs/identity/index.d.ts.map +1 -0
- package/lib/cjs/identity/index.js +17 -0
- package/lib/cjs/identity/schema/schema.d.ts +7 -0
- package/lib/cjs/identity/schema/schema.d.ts.map +1 -0
- package/lib/cjs/identity/schema/schema.js +9 -0
- package/lib/cjs/oauth/index.d.ts +2 -0
- package/lib/cjs/oauth/index.d.ts.map +1 -0
- package/lib/cjs/oauth/index.js +17 -0
- package/lib/cjs/oauth/schema/schema.d.ts +8 -0
- package/lib/cjs/oauth/schema/schema.d.ts.map +1 -0
- package/lib/cjs/oauth/schema/schema.js +9 -0
- package/lib/cjs/package.json +1 -0
- package/lib/cjs/workspace/index.d.ts +2 -0
- package/lib/cjs/workspace/index.d.ts.map +1 -0
- package/lib/cjs/workspace/index.js +17 -0
- package/lib/cjs/workspace/schema/authorization.d.ts +31 -0
- package/lib/cjs/workspace/schema/authorization.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/authorization.js +22 -0
- package/lib/cjs/workspace/schema/branding.d.ts +38 -0
- package/lib/cjs/workspace/schema/branding.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/branding.js +25 -0
- package/lib/cjs/workspace/schema/membership.d.ts +25 -0
- package/lib/cjs/workspace/schema/membership.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/membership.js +19 -0
- package/lib/cjs/workspace/schema/registration.d.ts +28 -0
- package/lib/cjs/workspace/schema/registration.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/registration.js +22 -0
- package/lib/cjs/workspace/schema/schema.d.ts +10 -0
- package/lib/cjs/workspace/schema/schema.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/schema.js +25 -0
- package/lib/cjs/workspace/schema/settings.d.ts +23 -0
- package/lib/cjs/workspace/schema/settings.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/settings.js +15 -0
- package/lib/cjs/workspace/schema/tenant.d.ts +57 -0
- package/lib/cjs/workspace/schema/tenant.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/tenant.js +26 -0
- package/lib/cjs/workspace/schema/user-notification.d.ts +62 -0
- package/lib/cjs/workspace/schema/user-notification.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/user-notification.js +44 -0
- package/lib/cjs/workspace/schema/user-preferences.d.ts +26 -0
- package/lib/cjs/workspace/schema/user-preferences.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/user-preferences.js +19 -0
- package/lib/cjs/workspace/schema/utils.d.ts +15 -0
- package/lib/cjs/workspace/schema/utils.d.ts.map +1 -0
- package/lib/cjs/workspace/schema/utils.js +64 -0
- package/lib/esm/action/index.d.ts +2 -0
- package/lib/esm/action/index.d.ts.map +1 -0
- package/lib/esm/action/index.js +1 -0
- package/lib/esm/action/schema/base.d.ts +21 -0
- package/lib/esm/action/schema/base.d.ts.map +1 -0
- package/lib/esm/action/schema/base.js +16 -0
- package/lib/esm/action/schema/operations/set-password.d.ts +31 -0
- package/lib/esm/action/schema/operations/set-password.d.ts.map +1 -0
- package/lib/esm/action/schema/operations/set-password.js +15 -0
- package/lib/esm/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/lib/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/lib/esm/action/schema/operations/sign-up-verification.js +12 -0
- package/lib/esm/action/schema/operations/sign-up.d.ts +44 -0
- package/lib/esm/action/schema/operations/sign-up.d.ts.map +1 -0
- package/lib/esm/action/schema/operations/sign-up.js +18 -0
- package/lib/esm/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/lib/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/lib/esm/action/schema/operations/user-attribute-verification.js +10 -0
- package/lib/esm/action/schema/schema.d.ts +92 -0
- package/lib/esm/action/schema/schema.d.ts.map +1 -0
- package/lib/esm/action/schema/schema.js +21 -0
- package/lib/esm/activity/index.d.ts +2 -0
- package/lib/esm/activity/index.d.ts.map +1 -0
- package/lib/esm/activity/index.js +1 -0
- package/lib/esm/activity/schema/base.d.ts +54 -0
- package/lib/esm/activity/schema/base.d.ts.map +1 -0
- package/lib/esm/activity/schema/base.js +31 -0
- package/lib/esm/activity/schema/schema.d.ts +156 -0
- package/lib/esm/activity/schema/schema.d.ts.map +1 -0
- package/lib/esm/activity/schema/schema.js +33 -0
- package/lib/esm/activity/schema/types/authentication.d.ts +29 -0
- package/lib/esm/activity/schema/types/authentication.d.ts.map +1 -0
- package/lib/esm/activity/schema/types/authentication.js +13 -0
- package/lib/esm/activity/schema/types/authorization.d.ts +29 -0
- package/lib/esm/activity/schema/types/authorization.d.ts.map +1 -0
- package/lib/esm/activity/schema/types/authorization.js +14 -0
- package/lib/esm/activity/schema/types/note.d.ts +51 -0
- package/lib/esm/activity/schema/types/note.d.ts.map +1 -0
- package/lib/esm/activity/schema/types/note.js +14 -0
- package/lib/esm/activity/schema/types/operation.d.ts +31 -0
- package/lib/esm/activity/schema/types/operation.d.ts.map +1 -0
- package/lib/esm/activity/schema/types/operation.js +15 -0
- package/lib/esm/activity/schema/types/unknown.d.ts +22 -0
- package/lib/esm/activity/schema/types/unknown.d.ts.map +1 -0
- package/lib/esm/activity/schema/types/unknown.js +6 -0
- package/lib/esm/activity/schema/utils.d.ts +7 -0
- package/lib/esm/activity/schema/utils.d.ts.map +1 -0
- package/lib/esm/activity/schema/utils.js +9 -0
- package/lib/esm/app/index.d.ts +2 -0
- package/lib/esm/app/index.d.ts.map +1 -0
- package/lib/esm/app/index.js +1 -0
- package/lib/esm/app/schema/app.d.ts +58 -0
- package/lib/esm/app/schema/app.d.ts.map +1 -0
- package/lib/esm/app/schema/app.js +40 -0
- package/lib/esm/app/schema/authorization.d.ts +37 -0
- package/lib/esm/app/schema/authorization.d.ts.map +1 -0
- package/lib/esm/app/schema/authorization.js +41 -0
- package/lib/esm/app/schema/oauth.d.ts +30 -0
- package/lib/esm/app/schema/oauth.d.ts.map +1 -0
- package/lib/esm/app/schema/oauth.js +18 -0
- package/lib/esm/app/schema/oidc.d.ts +28 -0
- package/lib/esm/app/schema/oidc.d.ts.map +1 -0
- package/lib/esm/app/schema/oidc.js +10 -0
- package/lib/esm/app/schema/registration.d.ts +22 -0
- package/lib/esm/app/schema/registration.d.ts.map +1 -0
- package/lib/esm/app/schema/registration.js +13 -0
- package/lib/esm/app/schema/saml.d.ts +28 -0
- package/lib/esm/app/schema/saml.d.ts.map +1 -0
- package/lib/esm/app/schema/saml.js +10 -0
- package/lib/esm/app/schema/schema.d.ts +8 -0
- package/lib/esm/app/schema/schema.d.ts.map +1 -0
- package/lib/esm/app/schema/schema.js +7 -0
- package/lib/esm/app/schema/utils.d.ts +11 -0
- package/lib/esm/app/schema/utils.d.ts.map +1 -0
- package/lib/esm/app/schema/utils.js +15 -0
- package/lib/esm/association/index.d.ts +2 -0
- package/lib/esm/association/index.d.ts.map +1 -0
- package/lib/esm/association/index.js +1 -0
- package/lib/esm/association/schema/association.d.ts +79 -0
- package/lib/esm/association/schema/association.d.ts.map +1 -0
- package/lib/esm/association/schema/association.js +23 -0
- package/lib/esm/association/schema/schema.d.ts +2 -0
- package/lib/esm/association/schema/schema.d.ts.map +1 -0
- package/lib/esm/association/schema/schema.js +1 -0
- package/lib/esm/authentication/index.d.ts +2 -0
- package/lib/esm/authentication/index.d.ts.map +1 -0
- package/lib/esm/authentication/index.js +1 -0
- package/lib/esm/authentication/schema/factors.d.ts +48 -0
- package/lib/esm/authentication/schema/factors.d.ts.map +1 -0
- package/lib/esm/authentication/schema/factors.js +25 -0
- package/lib/esm/authentication/schema/factors.test.d.ts +2 -0
- package/lib/esm/authentication/schema/factors.test.d.ts.map +1 -0
- package/lib/esm/authentication/schema/factors.test.js +121 -0
- package/lib/esm/authentication/schema/provider.d.ts +27 -0
- package/lib/esm/authentication/schema/provider.d.ts.map +1 -0
- package/lib/esm/authentication/schema/provider.js +21 -0
- package/lib/esm/authentication/schema/schema.d.ts +6 -0
- package/lib/esm/authentication/schema/schema.d.ts.map +1 -0
- package/lib/esm/authentication/schema/schema.js +5 -0
- package/lib/esm/authentication/schema/session.d.ts +59 -0
- package/lib/esm/authentication/schema/session.d.ts.map +1 -0
- package/lib/esm/authentication/schema/session.js +43 -0
- package/lib/esm/authentication/schema/settings.d.ts +46 -0
- package/lib/esm/authentication/schema/settings.d.ts.map +1 -0
- package/lib/esm/authentication/schema/settings.js +13 -0
- package/lib/esm/authentication/schema/strategy/base.d.ts +43 -0
- package/lib/esm/authentication/schema/strategy/base.d.ts.map +1 -0
- package/lib/esm/authentication/schema/strategy/base.js +28 -0
- package/lib/esm/authentication/schema/strategy/schema.d.ts +169 -0
- package/lib/esm/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/lib/esm/authentication/schema/strategy/schema.js +22 -0
- package/lib/esm/authentication/schema/strategy/types/email.d.ts +44 -0
- package/lib/esm/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/lib/esm/authentication/schema/strategy/types/email.js +17 -0
- package/lib/esm/authentication/schema/strategy/types/password.d.ts +99 -0
- package/lib/esm/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/lib/esm/authentication/schema/strategy/types/password.js +32 -0
- package/lib/esm/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/lib/esm/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/lib/esm/authentication/schema/strategy/types/totp.js +45 -0
- package/lib/esm/authorization/index.d.ts +2 -0
- package/lib/esm/authorization/index.d.ts.map +1 -0
- package/lib/esm/authorization/index.js +1 -0
- package/lib/esm/authorization/schema/permission.d.ts +69 -0
- package/lib/esm/authorization/schema/permission.d.ts.map +1 -0
- package/lib/esm/authorization/schema/permission.js +47 -0
- package/lib/esm/authorization/schema/role.d.ts +74 -0
- package/lib/esm/authorization/schema/role.d.ts.map +1 -0
- package/lib/esm/authorization/schema/role.js +49 -0
- package/lib/esm/authorization/schema/schema.d.ts +4 -0
- package/lib/esm/authorization/schema/schema.d.ts.map +1 -0
- package/lib/esm/authorization/schema/schema.js +3 -0
- package/lib/esm/authorization/schema/utils.d.ts +11 -0
- package/lib/esm/authorization/schema/utils.d.ts.map +1 -0
- package/lib/esm/authorization/schema/utils.js +15 -0
- package/lib/esm/common/index.d.ts +2 -0
- package/lib/esm/common/index.d.ts.map +1 -0
- package/lib/esm/common/index.js +1 -0
- package/lib/esm/common/schema/aggregate.d.ts +6 -0
- package/lib/esm/common/schema/aggregate.d.ts.map +1 -0
- package/lib/esm/common/schema/aggregate.js +5 -0
- package/lib/esm/common/schema/dates.d.ts +39 -0
- package/lib/esm/common/schema/dates.d.ts.map +1 -0
- package/lib/esm/common/schema/dates.js +31 -0
- package/lib/esm/common/schema/dates.test.d.ts +2 -0
- package/lib/esm/common/schema/dates.test.d.ts.map +1 -0
- package/lib/esm/common/schema/dates.test.js +31 -0
- package/lib/esm/common/schema/jwt.d.ts +21 -0
- package/lib/esm/common/schema/jwt.d.ts.map +1 -0
- package/lib/esm/common/schema/jwt.js +21 -0
- package/lib/esm/common/schema/metadata.d.ts +42 -0
- package/lib/esm/common/schema/metadata.d.ts.map +1 -0
- package/lib/esm/common/schema/metadata.js +83 -0
- package/lib/esm/common/schema/metadata.test.d.ts +2 -0
- package/lib/esm/common/schema/metadata.test.d.ts.map +1 -0
- package/lib/esm/common/schema/metadata.test.js +60 -0
- package/lib/esm/common/schema/schema.d.ts +5 -0
- package/lib/esm/common/schema/schema.d.ts.map +1 -0
- package/lib/esm/common/schema/schema.js +4 -0
- package/lib/esm/customer/index.d.ts +2 -0
- package/lib/esm/customer/index.d.ts.map +1 -0
- package/lib/esm/customer/index.js +1 -0
- package/lib/esm/customer/schema/organization.d.ts +54 -0
- package/lib/esm/customer/schema/organization.d.ts.map +1 -0
- package/lib/esm/customer/schema/organization.js +37 -0
- package/lib/esm/customer/schema/schema.d.ts +4 -0
- package/lib/esm/customer/schema/schema.d.ts.map +1 -0
- package/lib/esm/customer/schema/schema.js +3 -0
- package/lib/esm/customer/schema/user.d.ts +122 -0
- package/lib/esm/customer/schema/user.d.ts.map +1 -0
- package/lib/esm/customer/schema/user.js +80 -0
- package/lib/esm/customer/schema/user.test.d.ts +2 -0
- package/lib/esm/customer/schema/user.test.d.ts.map +1 -0
- package/lib/esm/customer/schema/user.test.js +55 -0
- package/lib/esm/customer/schema/utils.d.ts +11 -0
- package/lib/esm/customer/schema/utils.d.ts.map +1 -0
- package/lib/esm/customer/schema/utils.js +15 -0
- package/lib/esm/identity/index.d.ts +2 -0
- package/lib/esm/identity/index.d.ts.map +1 -0
- package/lib/esm/identity/index.js +1 -0
- package/lib/esm/identity/schema/schema.d.ts +7 -0
- package/lib/esm/identity/schema/schema.d.ts.map +1 -0
- package/lib/esm/identity/schema/schema.js +6 -0
- package/lib/esm/oauth/index.d.ts +2 -0
- package/lib/esm/oauth/index.d.ts.map +1 -0
- package/lib/esm/oauth/index.js +1 -0
- package/lib/esm/oauth/schema/schema.d.ts +8 -0
- package/lib/esm/oauth/schema/schema.d.ts.map +1 -0
- package/lib/esm/oauth/schema/schema.js +6 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/workspace/index.d.ts +2 -0
- package/lib/esm/workspace/index.d.ts.map +1 -0
- package/lib/esm/workspace/index.js +1 -0
- package/lib/esm/workspace/schema/authorization.d.ts +31 -0
- package/lib/esm/workspace/schema/authorization.d.ts.map +1 -0
- package/lib/esm/workspace/schema/authorization.js +19 -0
- package/lib/esm/workspace/schema/branding.d.ts +38 -0
- package/lib/esm/workspace/schema/branding.d.ts.map +1 -0
- package/lib/esm/workspace/schema/branding.js +22 -0
- package/lib/esm/workspace/schema/membership.d.ts +25 -0
- package/lib/esm/workspace/schema/membership.d.ts.map +1 -0
- package/lib/esm/workspace/schema/membership.js +16 -0
- package/lib/esm/workspace/schema/registration.d.ts +28 -0
- package/lib/esm/workspace/schema/registration.d.ts.map +1 -0
- package/lib/esm/workspace/schema/registration.js +19 -0
- package/lib/esm/workspace/schema/schema.d.ts +10 -0
- package/lib/esm/workspace/schema/schema.d.ts.map +1 -0
- package/lib/esm/workspace/schema/schema.js +9 -0
- package/lib/esm/workspace/schema/settings.d.ts +23 -0
- package/lib/esm/workspace/schema/settings.d.ts.map +1 -0
- package/lib/esm/workspace/schema/settings.js +12 -0
- package/lib/esm/workspace/schema/tenant.d.ts +57 -0
- package/lib/esm/workspace/schema/tenant.d.ts.map +1 -0
- package/lib/esm/workspace/schema/tenant.js +23 -0
- package/lib/esm/workspace/schema/user-notification.d.ts +62 -0
- package/lib/esm/workspace/schema/user-notification.d.ts.map +1 -0
- package/lib/esm/workspace/schema/user-notification.js +41 -0
- package/lib/esm/workspace/schema/user-preferences.d.ts +26 -0
- package/lib/esm/workspace/schema/user-preferences.d.ts.map +1 -0
- package/lib/esm/workspace/schema/user-preferences.js +16 -0
- package/lib/esm/workspace/schema/utils.d.ts +15 -0
- package/lib/esm/workspace/schema/utils.d.ts.map +1 -0
- package/lib/esm/workspace/schema/utils.js +22 -0
- package/package.json +155 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const RegistrationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
allowSelfRegistration: boolean;
|
|
3
|
+
identifiers: {
|
|
4
|
+
type: "email" | "phoneNumber";
|
|
5
|
+
}[];
|
|
6
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
7
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
8
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
9
|
+
metadata?: ((In: {
|
|
10
|
+
[x: string]: string | number | boolean;
|
|
11
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
12
|
+
[x: string]: string | number | boolean;
|
|
13
|
+
} | undefined>) | undefined;
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type RegistrationPayload = typeof RegistrationPayloadSchema.inferOut;
|
|
16
|
+
export declare const UpsertRegistrationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
17
|
+
allowSelfRegistration?: boolean | undefined;
|
|
18
|
+
identifiers?: {
|
|
19
|
+
type: "email" | "phoneNumber";
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
metadata?: ((In: {
|
|
22
|
+
[x: string]: string | number | boolean;
|
|
23
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
24
|
+
[x: string]: string | number | boolean;
|
|
25
|
+
} | undefined>) | undefined;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export type UpsertRegistrationPayload = typeof UpsertRegistrationPayloadSchema.inferOut;
|
|
28
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/registration.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;MAOD,CAAC;AACtC,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;MAGP,CAAC;AACtC,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertRegistrationPayloadSchema = exports.RegistrationPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
+
const schema_js_1 = require("../../identity/schema/schema.js");
|
|
8
|
+
const IdentityIdentifierPropertySchema = (0, arktype_1.type)({
|
|
9
|
+
type: schema_js_1.IdentityIdentifierSchema,
|
|
10
|
+
}).array();
|
|
11
|
+
const AllowSelfRegistrationSchema = (0, arktype_1.type)('boolean');
|
|
12
|
+
exports.RegistrationPayloadSchema = (0, arktype_1.type)({
|
|
13
|
+
allowSelfRegistration: AllowSelfRegistrationSchema,
|
|
14
|
+
identifiers: IdentityIdentifierPropertySchema,
|
|
15
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
16
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
17
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
18
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
19
|
+
exports.UpsertRegistrationPayloadSchema = (0, arktype_1.type)({
|
|
20
|
+
allowSelfRegistration: AllowSelfRegistrationSchema.optional(),
|
|
21
|
+
identifiers: IdentityIdentifierPropertySchema.optional(),
|
|
22
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './authorization.js';
|
|
2
|
+
export * from './branding.js';
|
|
3
|
+
export * from './membership.js';
|
|
4
|
+
export * from './registration.js';
|
|
5
|
+
export * from './settings.js';
|
|
6
|
+
export * from './tenant.js';
|
|
7
|
+
export * from './user-notification.js';
|
|
8
|
+
export * from './user-preferences.js';
|
|
9
|
+
export * from './utils.js';
|
|
10
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/schema.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./authorization.js"), exports);
|
|
18
|
+
__exportStar(require("./branding.js"), exports);
|
|
19
|
+
__exportStar(require("./membership.js"), exports);
|
|
20
|
+
__exportStar(require("./registration.js"), exports);
|
|
21
|
+
__exportStar(require("./settings.js"), exports);
|
|
22
|
+
__exportStar(require("./tenant.js"), exports);
|
|
23
|
+
__exportStar(require("./user-notification.js"), exports);
|
|
24
|
+
__exportStar(require("./user-preferences.js"), exports);
|
|
25
|
+
__exportStar(require("./utils.js"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This isn't really being used yet...but some general settings would go here
|
|
3
|
+
*/
|
|
4
|
+
export declare const SettingsPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
5
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export type SettingsPayload = typeof SettingsPayloadSchema.inferOut;
|
|
15
|
+
export declare const UpsertSettingsPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
16
|
+
metadata?: ((In: {
|
|
17
|
+
[x: string]: string | number | boolean;
|
|
18
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
19
|
+
[x: string]: string | number | boolean;
|
|
20
|
+
} | undefined>) | undefined;
|
|
21
|
+
}, {}>;
|
|
22
|
+
export type UpsertSettingsPayload = typeof UpsertSettingsPayloadSchema.inferOut;
|
|
23
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/settings.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;MAIG,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;MAAgC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertSettingsPayloadSchema = exports.SettingsPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
+
/**
|
|
8
|
+
* This isn't really being used yet...but some general settings would go here
|
|
9
|
+
*/
|
|
10
|
+
exports.SettingsPayloadSchema = (0, arktype_1.type)({
|
|
11
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
12
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
13
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
14
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
15
|
+
exports.UpsertSettingsPayloadSchema = metadata_js_1.MetadataPayloadPropertySchema;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const TenantIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
2
|
+
export declare const TenantIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
3
|
+
id: string;
|
|
4
|
+
}, {}>;
|
|
5
|
+
export declare const TenantPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
6
|
+
status: import("arktype/out/attributes.js").Default<"active" | "suspended", "active">;
|
|
7
|
+
name: string;
|
|
8
|
+
createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
9
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
10
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
11
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
12
|
+
id: string;
|
|
13
|
+
metadata?: ((In: {
|
|
14
|
+
[x: string]: string | number | boolean;
|
|
15
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
16
|
+
[x: string]: string | number | boolean;
|
|
17
|
+
} | undefined>) | undefined;
|
|
18
|
+
handle: string;
|
|
19
|
+
supportEmail?: string | undefined;
|
|
20
|
+
authHost?: string | undefined;
|
|
21
|
+
membership?: {
|
|
22
|
+
features?: {
|
|
23
|
+
"Branding.Remove"?: {
|
|
24
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
25
|
+
} | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
startAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
28
|
+
endAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export type TenantPayload = typeof TenantPayloadSchema.inferOut;
|
|
32
|
+
export declare const InsertTenantPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
33
|
+
name: string;
|
|
34
|
+
status?: "active" | "suspended" | undefined;
|
|
35
|
+
metadata?: ((In: {
|
|
36
|
+
[x: string]: string | number | boolean;
|
|
37
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
38
|
+
[x: string]: string | number | boolean;
|
|
39
|
+
} | null>) | undefined;
|
|
40
|
+
id: import("arktype/out/attributes.js").Default<string, string>;
|
|
41
|
+
handle: import("arktype/out/attributes.js").Default<string, string>;
|
|
42
|
+
supportEmail?: string | undefined;
|
|
43
|
+
}, {}>;
|
|
44
|
+
export type InsertTenantPayload = typeof InsertTenantPayloadSchema.inferOut;
|
|
45
|
+
export declare const UpdateTenantPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
46
|
+
status?: "active" | "suspended" | null | undefined;
|
|
47
|
+
name?: string | null | undefined;
|
|
48
|
+
metadata?: ((In: {
|
|
49
|
+
[x: string]: string | number | boolean;
|
|
50
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
51
|
+
[x: string]: string | number | boolean;
|
|
52
|
+
} | null>) | undefined;
|
|
53
|
+
handle?: string | undefined;
|
|
54
|
+
supportEmail?: string | undefined;
|
|
55
|
+
}, {}>;
|
|
56
|
+
export type UpdateTenantPayload = typeof UpdateTenantPayloadSchema.inferOut;
|
|
57
|
+
//# sourceMappingURL=tenant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/tenant.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,gEAAc,CAAC;AAE1C,eAAO,MAAM,sBAAsB;;MAEjC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;MAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;MAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,yBAAyB;;;;;;;;;;MAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTenantPayloadSchema = exports.InsertTenantPayloadSchema = exports.TenantPayloadSchema = exports.TenantIdPropertySchema = exports.TenantIdSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const organization_js_1 = require("../../customer/schema/organization.js");
|
|
6
|
+
const membership_js_1 = require("./membership.js");
|
|
7
|
+
const utils_js_1 = require("./utils.js");
|
|
8
|
+
exports.TenantIdSchema = arktype_1.type.string;
|
|
9
|
+
exports.TenantIdPropertySchema = (0, arktype_1.type)({
|
|
10
|
+
id: exports.TenantIdSchema,
|
|
11
|
+
});
|
|
12
|
+
exports.TenantPayloadSchema = organization_js_1.OrganizationPayloadSchema.and({
|
|
13
|
+
handle: (0, arktype_1.type)('string'),
|
|
14
|
+
supportEmail: (0, arktype_1.type)('string.email').optional(),
|
|
15
|
+
authHost: (0, arktype_1.type)('string.url').optional(), // Not live yet (used for dev now)
|
|
16
|
+
membership: membership_js_1.MembershipPayloadSchema.optional(),
|
|
17
|
+
});
|
|
18
|
+
exports.InsertTenantPayloadSchema = organization_js_1.InsertOrganizationPayloadSchema.omit('id').and({
|
|
19
|
+
id: exports.TenantIdSchema.default(() => (0, utils_js_1.generateTenantId)()),
|
|
20
|
+
handle: (0, arktype_1.type)('string').default(() => (0, utils_js_1.generateHandle)()),
|
|
21
|
+
supportEmail: (0, arktype_1.type)('string.email').optional(),
|
|
22
|
+
});
|
|
23
|
+
exports.UpdateTenantPayloadSchema = organization_js_1.UpdateOrganizationPayloadSchema.and({
|
|
24
|
+
handle: (0, arktype_1.type)('string').optional(),
|
|
25
|
+
supportEmail: (0, arktype_1.type)('string.email').optional(),
|
|
26
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const NotificationType: {
|
|
2
|
+
readonly INFO: "info";
|
|
3
|
+
readonly IMPORT: "import";
|
|
4
|
+
};
|
|
5
|
+
export type AnyNotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
6
|
+
export declare const UserNotificationIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
7
|
+
export type UserNotificationId = typeof UserNotificationIdSchema.inferOut;
|
|
8
|
+
export declare const UserNotificationIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
9
|
+
id: string;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export type UserNotificationIdProperty = typeof UserNotificationIdPropertySchema.inferOut;
|
|
12
|
+
export declare const UserNotificationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
13
|
+
id: string;
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
message?: string | undefined;
|
|
16
|
+
type: "info" | "import";
|
|
17
|
+
createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
18
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
19
|
+
action?: {
|
|
20
|
+
link: string;
|
|
21
|
+
label: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
24
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
25
|
+
metadata?: ((In: {
|
|
26
|
+
[x: string]: string | number | boolean;
|
|
27
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
28
|
+
[x: string]: string | number | boolean;
|
|
29
|
+
} | undefined>) | undefined;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export type UserNotificationPayload = typeof UserNotificationPayloadSchema.inferOut;
|
|
32
|
+
export declare const InsertUserNotificationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
33
|
+
id: import("arktype/out/attributes.js").Default<string, string>;
|
|
34
|
+
type: "info";
|
|
35
|
+
action?: {
|
|
36
|
+
link: string;
|
|
37
|
+
label: string;
|
|
38
|
+
} | undefined;
|
|
39
|
+
title?: string | undefined;
|
|
40
|
+
message?: string | undefined;
|
|
41
|
+
metadata?: ((In: {
|
|
42
|
+
[x: string]: string | number | boolean;
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
44
|
+
[x: string]: string | number | boolean;
|
|
45
|
+
} | undefined>) | undefined;
|
|
46
|
+
}, {}>;
|
|
47
|
+
export type InsertUserNotificationPayload = typeof InsertUserNotificationPayloadSchema.inferOut;
|
|
48
|
+
export declare const UpdateUserNotificationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
49
|
+
title?: string | undefined;
|
|
50
|
+
message?: string | undefined;
|
|
51
|
+
action?: {
|
|
52
|
+
link: string;
|
|
53
|
+
label: string;
|
|
54
|
+
} | undefined;
|
|
55
|
+
metadata?: ((In: {
|
|
56
|
+
[x: string]: string | number | boolean;
|
|
57
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
58
|
+
[x: string]: string | number | boolean;
|
|
59
|
+
} | undefined>) | undefined;
|
|
60
|
+
}, {}>;
|
|
61
|
+
export type UpdateUserNotificationPayload = typeof UpdateUserNotificationPayloadSchema.inferOut;
|
|
62
|
+
//# sourceMappingURL=user-notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-notification.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/user-notification.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,wBAAwB,gEAAc,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,gCAAgC;;MAE3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC;AAYnD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;MAUH,CAAC;AACxC,MAAM,MAAM,uBAAuB,GACjC,OAAO,6BAA6B,CAAC,QAAQ,CAAC;AAEhD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;MAMX,CAAC;AACtC,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC;AAEtD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;MAEX,CAAC;AACtC,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateUserNotificationPayloadSchema = exports.InsertUserNotificationPayloadSchema = exports.UserNotificationPayloadSchema = exports.UserNotificationIdPropertySchema = exports.UserNotificationIdSchema = exports.NotificationType = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
+
const user_js_1 = require("../../customer/schema/user.js");
|
|
8
|
+
const utils_js_1 = require("./utils.js");
|
|
9
|
+
exports.NotificationType = {
|
|
10
|
+
INFO: 'info',
|
|
11
|
+
IMPORT: 'import',
|
|
12
|
+
};
|
|
13
|
+
exports.UserNotificationIdSchema = arktype_1.type.string;
|
|
14
|
+
exports.UserNotificationIdPropertySchema = (0, arktype_1.type)({
|
|
15
|
+
id: exports.UserNotificationIdSchema,
|
|
16
|
+
});
|
|
17
|
+
const ActionSchema = (0, arktype_1.type)({
|
|
18
|
+
link: (0, arktype_1.type)('string.url'),
|
|
19
|
+
label: (0, arktype_1.type)('string'),
|
|
20
|
+
});
|
|
21
|
+
const BaseAttributes = (0, arktype_1.type)({
|
|
22
|
+
title: (0, arktype_1.type)('string | undefined').optional(),
|
|
23
|
+
message: (0, arktype_1.type)('string | undefined').optional(),
|
|
24
|
+
});
|
|
25
|
+
exports.UserNotificationPayloadSchema = exports.UserNotificationIdPropertySchema.and(BaseAttributes)
|
|
26
|
+
.and({
|
|
27
|
+
type: arktype_1.type.enumerated(exports.NotificationType.IMPORT, exports.NotificationType.INFO),
|
|
28
|
+
action: ActionSchema.or('undefined').optional(),
|
|
29
|
+
createdAt: dates_js_1.RequiredDatePayloadSchema,
|
|
30
|
+
updatedAt: dates_js_1.RequiredDatePayloadSchema,
|
|
31
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
32
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
33
|
+
})
|
|
34
|
+
.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
35
|
+
exports.InsertUserNotificationPayloadSchema = (0, arktype_1.type)({
|
|
36
|
+
id: user_js_1.UserIdSchema.default(() => (0, utils_js_1.generateNotificationId)()),
|
|
37
|
+
type: arktype_1.type.enumerated(exports.NotificationType.INFO),
|
|
38
|
+
action: ActionSchema.optional(),
|
|
39
|
+
})
|
|
40
|
+
.and(BaseAttributes)
|
|
41
|
+
.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
42
|
+
exports.UpdateUserNotificationPayloadSchema = BaseAttributes.and({
|
|
43
|
+
action: ActionSchema.optional(),
|
|
44
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const UserPreferencesPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
views?: Record<string, {
|
|
3
|
+
columns?: string[] | undefined;
|
|
4
|
+
}> | undefined;
|
|
5
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | null>) | undefined;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export type UserPreferencesPayload = typeof UserPreferencesPayloadSchema.inferOut;
|
|
15
|
+
export declare const UpsertUserPreferencesPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
16
|
+
views?: Record<string, {
|
|
17
|
+
columns?: string[] | undefined;
|
|
18
|
+
}> | undefined;
|
|
19
|
+
metadata?: ((In: {
|
|
20
|
+
[x: string]: string | number | boolean;
|
|
21
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
22
|
+
[x: string]: string | number | boolean;
|
|
23
|
+
} | null>) | undefined;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export type UpsertUserPreferencesPayload = typeof UpsertUserPreferencesPayloadSchema.inferOut;
|
|
26
|
+
//# sourceMappingURL=user-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-preferences.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/user-preferences.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;MAIE,CAAC;AAC5C,MAAM,MAAM,sBAAsB,GAChC,OAAO,4BAA4B,CAAC,QAAQ,CAAC;AAE/C,eAAO,MAAM,kCAAkC;;;;;;;;;MAE9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertUserPreferencesPayloadSchema = exports.UserPreferencesPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
+
const TableSchema = (0, arktype_1.type)({
|
|
8
|
+
columns: (0, arktype_1.type)('string').array().optional(),
|
|
9
|
+
});
|
|
10
|
+
const TablesSchema = arktype_1.type.Record('string', TableSchema);
|
|
11
|
+
const BaseAttributes = (0, arktype_1.type)({
|
|
12
|
+
views: TablesSchema.optional(),
|
|
13
|
+
});
|
|
14
|
+
exports.UserPreferencesPayloadSchema = BaseAttributes.and({
|
|
15
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
16
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
17
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
18
|
+
}).and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
|
|
19
|
+
exports.UpsertUserPreferencesPayloadSchema = BaseAttributes.and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const Model: {
|
|
2
|
+
readonly Action: {
|
|
3
|
+
readonly UIDPrefix: "act";
|
|
4
|
+
};
|
|
5
|
+
readonly Notification: {
|
|
6
|
+
readonly UIDPrefix: "ntf";
|
|
7
|
+
};
|
|
8
|
+
readonly Tenant: {
|
|
9
|
+
readonly UIDPrefix: "tnt";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare function generateTenantId(): string;
|
|
13
|
+
export declare function generateHandle(): string;
|
|
14
|
+
export declare function generateNotificationId(): string;
|
|
15
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/utils.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;CAUR,CAAC;AAEX,wBAAgB,gBAAgB,WAE/B;AAED,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,sBAAsB,WAErC"}
|
|
@@ -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/schema/user.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/schema/user.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');
|