@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,122 @@
|
|
|
1
|
+
export declare const VerifiableAttribute: {
|
|
2
|
+
readonly EMAIL: "email";
|
|
3
|
+
readonly PHONE_NUMBER: "phoneNumber";
|
|
4
|
+
};
|
|
5
|
+
export type AnyVerifiableAttribute = (typeof VerifiableAttribute)[keyof typeof VerifiableAttribute];
|
|
6
|
+
export declare const UserStatus: {
|
|
7
|
+
readonly ACTIVE: "active";
|
|
8
|
+
readonly SUSPENDED: "suspended";
|
|
9
|
+
readonly UNVERIFIED: "unverified";
|
|
10
|
+
};
|
|
11
|
+
export type AnyUserStatus = (typeof UserStatus)[keyof typeof UserStatus];
|
|
12
|
+
export declare const UserNamePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
13
|
+
givenName?: string | undefined;
|
|
14
|
+
middleName?: string | undefined;
|
|
15
|
+
familyName?: string | undefined;
|
|
16
|
+
honorificPrefix?: string | undefined;
|
|
17
|
+
honorificSuffix?: string | undefined;
|
|
18
|
+
}, {}>;
|
|
19
|
+
export type UserNameProperties = typeof UserNamePropertiesSchema.inferOut;
|
|
20
|
+
export declare const UpsertUserNamePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
21
|
+
givenName?: string | null | undefined;
|
|
22
|
+
middleName?: string | null | undefined;
|
|
23
|
+
familyName?: string | null | undefined;
|
|
24
|
+
honorificPrefix?: string | null | undefined;
|
|
25
|
+
honorificSuffix?: string | null | undefined;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export declare const UserIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
28
|
+
export type UserId = typeof UserIdSchema.inferOut;
|
|
29
|
+
export declare const UserIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
30
|
+
id: string;
|
|
31
|
+
}, {}>;
|
|
32
|
+
export type UserIdProperty = typeof UserIdPropertySchema.inferOut;
|
|
33
|
+
export declare const RequiredEmailSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
34
|
+
export declare const RequiredPhoneNumberSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
35
|
+
export declare const VerifiedEmailOrPhonePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
36
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
37
|
+
verifiedEmail?: boolean | undefined;
|
|
38
|
+
phoneNumber?: string | undefined;
|
|
39
|
+
verifiedPhoneNumber?: boolean | undefined;
|
|
40
|
+
}, {}>;
|
|
41
|
+
export declare const EmailOrPhonePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
42
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
43
|
+
phoneNumber?: string | undefined;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export declare const UserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
46
|
+
status: "active" | "suspended" | "unverified";
|
|
47
|
+
createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
48
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
49
|
+
roles?: {
|
|
50
|
+
ids?: string[] | undefined;
|
|
51
|
+
count?: number[] | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
lastLogin?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
54
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
55
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
56
|
+
id: string;
|
|
57
|
+
givenName?: string | undefined;
|
|
58
|
+
middleName?: string | undefined;
|
|
59
|
+
familyName?: string | undefined;
|
|
60
|
+
honorificPrefix?: string | undefined;
|
|
61
|
+
honorificSuffix?: string | undefined;
|
|
62
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
63
|
+
verifiedEmail?: boolean | undefined;
|
|
64
|
+
phoneNumber?: string | undefined;
|
|
65
|
+
verifiedPhoneNumber?: boolean | undefined;
|
|
66
|
+
metadata?: ((In: {
|
|
67
|
+
[x: string]: string | number | boolean;
|
|
68
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
69
|
+
[x: string]: string | number | boolean;
|
|
70
|
+
} | undefined>) | undefined;
|
|
71
|
+
}, {}>;
|
|
72
|
+
export type UserPayload = typeof UserPayloadSchema.inferOut;
|
|
73
|
+
export declare const InsertUserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
74
|
+
id: import("arktype/out/attributes.js").Default<string, string>;
|
|
75
|
+
suspended?: boolean | undefined;
|
|
76
|
+
givenName?: string | undefined;
|
|
77
|
+
middleName?: string | undefined;
|
|
78
|
+
familyName?: string | undefined;
|
|
79
|
+
honorificPrefix?: string | undefined;
|
|
80
|
+
honorificSuffix?: string | undefined;
|
|
81
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
82
|
+
verifiedEmail?: boolean | undefined;
|
|
83
|
+
phoneNumber?: string | undefined;
|
|
84
|
+
verifiedPhoneNumber?: boolean | undefined;
|
|
85
|
+
metadata?: ((In: {
|
|
86
|
+
[x: string]: string | number | boolean;
|
|
87
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
88
|
+
[x: string]: string | number | boolean;
|
|
89
|
+
} | null>) | undefined;
|
|
90
|
+
}, {}>;
|
|
91
|
+
export type InsertUserPayload = typeof InsertUserPayloadSchema.inferOut;
|
|
92
|
+
export declare const UpdateUserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
93
|
+
suspended?: boolean | undefined;
|
|
94
|
+
givenName?: string | null | undefined;
|
|
95
|
+
middleName?: string | null | undefined;
|
|
96
|
+
familyName?: string | null | undefined;
|
|
97
|
+
honorificPrefix?: string | null | undefined;
|
|
98
|
+
honorificSuffix?: string | null | undefined;
|
|
99
|
+
metadata?: ((In: {
|
|
100
|
+
[x: string]: string | number | boolean;
|
|
101
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
102
|
+
[x: string]: string | number | boolean;
|
|
103
|
+
} | null>) | undefined;
|
|
104
|
+
}, {}>;
|
|
105
|
+
export type UpdateUserPayload = typeof UpdateUserPayloadSchema.inferOut;
|
|
106
|
+
export declare const UserAssociationsSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
107
|
+
roles?: string[] | undefined;
|
|
108
|
+
}, {}>;
|
|
109
|
+
export type UserAssociations = typeof UserAssociationsSchema.inferOut;
|
|
110
|
+
export declare const UserAssociationReferenceSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
111
|
+
id: string;
|
|
112
|
+
givenName?: string | undefined;
|
|
113
|
+
middleName?: string | undefined;
|
|
114
|
+
familyName?: string | undefined;
|
|
115
|
+
honorificPrefix?: string | undefined;
|
|
116
|
+
honorificSuffix?: string | undefined;
|
|
117
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
118
|
+
phoneNumber?: string | undefined;
|
|
119
|
+
model: "User";
|
|
120
|
+
}, {}>;
|
|
121
|
+
export type UserAssociationReference = typeof UserAssociationReferenceSchema.inferOut;
|
|
122
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/customer/schema/user.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAQzE,eAAO,MAAM,wBAAwB;;;;;;MAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,8BAA8B;;;;;;MAMzC,CAAC;AAEH,eAAO,MAAM,YAAY,gEAAc,CAAC;AACxC,MAAM,MAAM,MAAM,GAAG,OAAO,YAAY,CAAC,QAAQ,CAAC;AAElD,eAAO,MAAM,oBAAoB;;MAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,QAAQ,CAAC;AAElE,eAAO,MAAM,mBAAmB,gEAAuB,CAAC;AACxD,eAAO,MAAM,yBAAyB,gEAAiB,CAAC;AAOxD,eAAO,MAAM,oCAAoC;;;;;MAK/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;MAGvC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;MAYO,CAAC;AACtC,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;MAMO,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;MAIO,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAIxE,eAAO,MAAM,sBAAsB;;MAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,8BAA8B;;;;;;;;;;MAQ1C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAssociationReferenceSchema = exports.UserAssociationsSchema = exports.UpdateUserPayloadSchema = exports.InsertUserPayloadSchema = exports.UserPayloadSchema = exports.EmailOrPhonePropertiesSchema = exports.VerifiedEmailOrPhonePropertiesSchema = exports.RequiredPhoneNumberSchema = exports.RequiredEmailSchema = exports.UserIdPropertySchema = exports.UserIdSchema = exports.UpsertUserNamePropertiesSchema = exports.UserNamePropertiesSchema = exports.UserStatus = exports.VerifiableAttribute = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const aggregate_js_1 = require("../../common/schema/aggregate.js");
|
|
6
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
7
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
8
|
+
const utils_js_1 = require("./utils.js");
|
|
9
|
+
exports.VerifiableAttribute = {
|
|
10
|
+
EMAIL: 'email',
|
|
11
|
+
PHONE_NUMBER: 'phoneNumber',
|
|
12
|
+
};
|
|
13
|
+
exports.UserStatus = {
|
|
14
|
+
ACTIVE: 'active',
|
|
15
|
+
SUSPENDED: 'suspended',
|
|
16
|
+
UNVERIFIED: 'unverified',
|
|
17
|
+
};
|
|
18
|
+
const StatusSchema = arktype_1.type.enumerated(exports.UserStatus.ACTIVE, exports.UserStatus.SUSPENDED, exports.UserStatus.UNVERIFIED);
|
|
19
|
+
exports.UserNamePropertiesSchema = (0, arktype_1.type)({
|
|
20
|
+
givenName: (0, arktype_1.type)('string | undefined').or('undefined').optional(),
|
|
21
|
+
middleName: (0, arktype_1.type)('string | undefined').optional(),
|
|
22
|
+
familyName: (0, arktype_1.type)('string | undefined').optional(),
|
|
23
|
+
honorificPrefix: (0, arktype_1.type)('string | undefined').optional(),
|
|
24
|
+
honorificSuffix: (0, arktype_1.type)('string | undefined').optional(),
|
|
25
|
+
});
|
|
26
|
+
exports.UpsertUserNamePropertiesSchema = (0, arktype_1.type)({
|
|
27
|
+
givenName: (0, arktype_1.type)('string | undefined | null').optional(),
|
|
28
|
+
middleName: (0, arktype_1.type)('string | undefined | null').optional(),
|
|
29
|
+
familyName: (0, arktype_1.type)('string | undefined | null').optional(),
|
|
30
|
+
honorificPrefix: (0, arktype_1.type)('string | undefined | null').optional(),
|
|
31
|
+
honorificSuffix: (0, arktype_1.type)('string | undefined | null').optional(),
|
|
32
|
+
});
|
|
33
|
+
exports.UserIdSchema = arktype_1.type.string;
|
|
34
|
+
exports.UserIdPropertySchema = (0, arktype_1.type)({
|
|
35
|
+
id: exports.UserIdSchema,
|
|
36
|
+
});
|
|
37
|
+
exports.RequiredEmailSchema = (0, arktype_1.type)('string.email');
|
|
38
|
+
exports.RequiredPhoneNumberSchema = (0, arktype_1.type)('string');
|
|
39
|
+
const EmailSchema = exports.RequiredEmailSchema.or('undefined').pipe((v) => v != null ? v : undefined);
|
|
40
|
+
const PhoneNumberSchema = exports.RequiredPhoneNumberSchema.or('undefined');
|
|
41
|
+
exports.VerifiedEmailOrPhonePropertiesSchema = (0, arktype_1.type)({
|
|
42
|
+
email: EmailSchema.optional(),
|
|
43
|
+
verifiedEmail: (0, arktype_1.type)('boolean').or('undefined').optional(),
|
|
44
|
+
phoneNumber: PhoneNumberSchema.optional(),
|
|
45
|
+
verifiedPhoneNumber: (0, arktype_1.type)('boolean').or('undefined').optional(),
|
|
46
|
+
});
|
|
47
|
+
exports.EmailOrPhonePropertiesSchema = (0, arktype_1.type)({
|
|
48
|
+
email: EmailSchema.optional(),
|
|
49
|
+
phoneNumber: PhoneNumberSchema.optional(),
|
|
50
|
+
});
|
|
51
|
+
exports.UserPayloadSchema = (0, arktype_1.type)({
|
|
52
|
+
status: StatusSchema,
|
|
53
|
+
roles: aggregate_js_1.AggregateSchema.or(arktype_1.type.undefined).optional(),
|
|
54
|
+
lastLogin: dates_js_1.OptionalDatePayloadSchema.optional(),
|
|
55
|
+
createdAt: dates_js_1.RequiredDatePayloadSchema,
|
|
56
|
+
updatedAt: dates_js_1.RequiredDatePayloadSchema,
|
|
57
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
58
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
59
|
+
})
|
|
60
|
+
.and(exports.UserIdPropertySchema)
|
|
61
|
+
.and(exports.UserNamePropertiesSchema)
|
|
62
|
+
.and(exports.VerifiedEmailOrPhonePropertiesSchema)
|
|
63
|
+
.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
64
|
+
exports.InsertUserPayloadSchema = (0, arktype_1.type)({
|
|
65
|
+
suspended: arktype_1.type.boolean.optional(),
|
|
66
|
+
id: exports.UserIdSchema.default(() => (0, utils_js_1.generateUserId)()),
|
|
67
|
+
})
|
|
68
|
+
.and(exports.UserNamePropertiesSchema)
|
|
69
|
+
.and(exports.VerifiedEmailOrPhonePropertiesSchema)
|
|
70
|
+
.and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
|
|
71
|
+
exports.UpdateUserPayloadSchema = (0, arktype_1.type)({
|
|
72
|
+
suspended: arktype_1.type.boolean.optional(),
|
|
73
|
+
})
|
|
74
|
+
.and(exports.UpsertUserNamePropertiesSchema)
|
|
75
|
+
.and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
|
|
76
|
+
const UserRoleAssociationSchema = (0, arktype_1.type)('string[] | undefined');
|
|
77
|
+
exports.UserAssociationsSchema = (0, arktype_1.type)({
|
|
78
|
+
'+': 'delete',
|
|
79
|
+
roles: UserRoleAssociationSchema.optional(),
|
|
80
|
+
});
|
|
81
|
+
exports.UserAssociationReferenceSchema = exports.UserIdPropertySchema.and(exports.UserNamePropertiesSchema).and(exports.EmailOrPhonePropertiesSchema.and((0, arktype_1.type)({
|
|
82
|
+
model: "'User'",
|
|
83
|
+
})));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.test.d.ts","sourceRoot":"","sources":["../../../../src/customer/schema/user.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const arktype_1 = require("arktype");
|
|
4
|
+
const vitest_1 = require("vitest");
|
|
5
|
+
const user_js_1 = require("./user.js");
|
|
6
|
+
(0, vitest_1.describe)('Customer - User', () => {
|
|
7
|
+
(0, vitest_1.describe)('User Payload', () => {
|
|
8
|
+
(0, vitest_1.test)('should parse attributes successfully', async () => {
|
|
9
|
+
const item = {
|
|
10
|
+
foo: 'bar',
|
|
11
|
+
id: '123',
|
|
12
|
+
phoneNumber: '123',
|
|
13
|
+
status: user_js_1.UserStatus.ACTIVE,
|
|
14
|
+
createdAt: new Date(),
|
|
15
|
+
updatedAt: new Date(),
|
|
16
|
+
};
|
|
17
|
+
const result = (0, user_js_1.UserPayloadSchema)(item);
|
|
18
|
+
if (result instanceof arktype_1.type.errors) {
|
|
19
|
+
console.log(result.summary);
|
|
20
|
+
}
|
|
21
|
+
(0, vitest_1.expect)(result).not.toBeInstanceOf(arktype_1.type.errors);
|
|
22
|
+
(0, vitest_1.expect)(result?.metadata).to.undefined;
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
(0, vitest_1.describe)('Insert User Payload', () => {
|
|
26
|
+
(0, vitest_1.test)('should parse attributes successfully', async () => {
|
|
27
|
+
const item = {
|
|
28
|
+
foo: 'bar',
|
|
29
|
+
id: '123',
|
|
30
|
+
phoneNumber: '123',
|
|
31
|
+
};
|
|
32
|
+
const result = (0, user_js_1.InsertUserPayloadSchema)(item);
|
|
33
|
+
if (result instanceof arktype_1.type.errors) {
|
|
34
|
+
console.log(result.summary);
|
|
35
|
+
}
|
|
36
|
+
(0, vitest_1.expect)(result).not.toBeInstanceOf(arktype_1.type.errors);
|
|
37
|
+
(0, vitest_1.expect)(result?.metadata).to.undefined;
|
|
38
|
+
});
|
|
39
|
+
(0, vitest_1.test)('should serialize successfully', async () => {
|
|
40
|
+
const item = {
|
|
41
|
+
foo: 'bar',
|
|
42
|
+
id: '123',
|
|
43
|
+
phoneNumber: '123',
|
|
44
|
+
metadata: new Map(),
|
|
45
|
+
// status: UserStatus.ACTIVE,
|
|
46
|
+
// createdAt: new Date(),
|
|
47
|
+
// updatedAt: new Date(),
|
|
48
|
+
};
|
|
49
|
+
const result = (0, user_js_1.InsertUserPayloadSchema)(item);
|
|
50
|
+
if (result instanceof arktype_1.type.errors) {
|
|
51
|
+
console.log(result.summary);
|
|
52
|
+
}
|
|
53
|
+
(0, vitest_1.expect)(result).not.toBeInstanceOf(arktype_1.type.errors);
|
|
54
|
+
(0, vitest_1.expect)(result?.metadata).to.null;
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Model: {
|
|
2
|
+
readonly Organization: {
|
|
3
|
+
readonly UIDPrefix: "org";
|
|
4
|
+
};
|
|
5
|
+
readonly User: {
|
|
6
|
+
readonly UIDPrefix: "usr";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare function generateUserId(): string;
|
|
10
|
+
export declare function generateOrganizationId(): string;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/customer/schema/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;CAOR,CAAC;AAEX,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,sBAAsB,WAErC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Model = void 0;
|
|
7
|
+
exports.generateUserId = generateUserId;
|
|
8
|
+
exports.generateOrganizationId = generateOrganizationId;
|
|
9
|
+
const ksuid_1 = __importDefault(require("ksuid"));
|
|
10
|
+
exports.Model = {
|
|
11
|
+
Organization: {
|
|
12
|
+
UIDPrefix: 'org',
|
|
13
|
+
},
|
|
14
|
+
User: {
|
|
15
|
+
UIDPrefix: 'usr',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
function generateUserId() {
|
|
19
|
+
return `${exports.Model.User.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
20
|
+
}
|
|
21
|
+
function generateOrganizationId() {
|
|
22
|
+
return `${exports.Model.Organization.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/identity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./schema/schema.js"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const IdentityIdentifier: {
|
|
2
|
+
readonly EMAIL: "email";
|
|
3
|
+
readonly PHONE_NUMBER: "phoneNumber";
|
|
4
|
+
};
|
|
5
|
+
export type AnyIdentityIdentifier = (typeof IdentityIdentifier)[keyof typeof IdentityIdentifier];
|
|
6
|
+
export declare const IdentityIdentifierSchema: import("arktype/out/methods/string").StringType<"email" | "phoneNumber", {}>;
|
|
7
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/identity/schema/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,wBAAwB,8EAGpC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityIdentifierSchema = exports.IdentityIdentifier = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
exports.IdentityIdentifier = {
|
|
6
|
+
EMAIL: 'email',
|
|
7
|
+
PHONE_NUMBER: 'phoneNumber',
|
|
8
|
+
};
|
|
9
|
+
exports.IdentityIdentifierSchema = arktype_1.type.enumerated(exports.IdentityIdentifier.EMAIL, exports.IdentityIdentifier.PHONE_NUMBER);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/oauth/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./schema/schema.js"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const GrantType: {
|
|
2
|
+
readonly CLIENT_CREDENTIALS: "client_credentials";
|
|
3
|
+
readonly AUTHORIZATION_CODE: "authorization_code";
|
|
4
|
+
readonly IMPLICIT: "implicit";
|
|
5
|
+
readonly REFRESH_TOKEN: "refresh_token";
|
|
6
|
+
};
|
|
7
|
+
export type AnyGrantType = (typeof GrantType)[keyof typeof GrantType];
|
|
8
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/oauth/schema/schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GrantType = void 0;
|
|
4
|
+
exports.GrantType = {
|
|
5
|
+
CLIENT_CREDENTIALS: 'client_credentials',
|
|
6
|
+
AUTHORIZATION_CODE: 'authorization_code',
|
|
7
|
+
IMPLICIT: 'implicit',
|
|
8
|
+
REFRESH_TOKEN: 'refresh_token',
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./schema/schema.js"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const DEFAULT_SESSION_DURATION: number;
|
|
2
|
+
export declare const DEFAULT_REFRESH_TOKEN_DURATION: number;
|
|
3
|
+
export declare const DEFAULT_ACCESS_TOKEN_DURATION: number;
|
|
4
|
+
export declare const AuthorizationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
5
|
+
sessionDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
6
|
+
refreshTokenDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
7
|
+
accessTokenDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
8
|
+
accessTokenSignatureAlgorithm: import("arktype/out/attributes.js").Default<string, string>;
|
|
9
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
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
|
+
metadata?: ((In: {
|
|
13
|
+
[x: string]: string | number | boolean;
|
|
14
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
15
|
+
[x: string]: string | number | boolean;
|
|
16
|
+
} | undefined>) | undefined;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export type AuthorizationPayload = typeof AuthorizationPayloadSchema.inferOut;
|
|
19
|
+
export declare const UpsertAuthorizationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
20
|
+
sessionDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
21
|
+
refreshTokenDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
22
|
+
accessTokenDuration: import("arktype/out/attributes.js").Default<number, number>;
|
|
23
|
+
accessTokenSignatureAlgorithm: import("arktype/out/attributes.js").Default<string, string>;
|
|
24
|
+
metadata?: ((In: {
|
|
25
|
+
[x: string]: string | number | boolean;
|
|
26
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
27
|
+
[x: string]: string | number | boolean;
|
|
28
|
+
} | undefined>) | undefined;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export type UpsertAuthorizationPayload = typeof UpsertAuthorizationPayloadSchema.inferOut;
|
|
31
|
+
//# sourceMappingURL=authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/authorization.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,wBAAwB,QAAc,CAAC;AACpD,eAAO,MAAM,8BAA8B,QAAoB,CAAC;AAChE,eAAO,MAAM,6BAA6B,QAAc,CAAC;AASzD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;MAIF,CAAC;AACtC,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,QAAQ,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;MAE5C,CAAC;AACF,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertAuthorizationPayloadSchema = exports.AuthorizationPayloadSchema = exports.DEFAULT_ACCESS_TOKEN_DURATION = exports.DEFAULT_REFRESH_TOKEN_DURATION = exports.DEFAULT_SESSION_DURATION = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
const jwt_js_1 = require("../../common/schema/jwt.js");
|
|
7
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
8
|
+
exports.DEFAULT_SESSION_DURATION = 60 * 60 * 4; // 4 hour
|
|
9
|
+
exports.DEFAULT_REFRESH_TOKEN_DURATION = 60 * 60 * 24 * 14; // 14 days
|
|
10
|
+
exports.DEFAULT_ACCESS_TOKEN_DURATION = 60 * 60 * 2; // 2 hours
|
|
11
|
+
const BaseAttributes = (0, arktype_1.type)({
|
|
12
|
+
sessionDuration: (0, arktype_1.type)('number').default(exports.DEFAULT_SESSION_DURATION),
|
|
13
|
+
refreshTokenDuration: (0, arktype_1.type)('number').default(exports.DEFAULT_REFRESH_TOKEN_DURATION),
|
|
14
|
+
accessTokenDuration: (0, arktype_1.type)('number').default(exports.DEFAULT_ACCESS_TOKEN_DURATION),
|
|
15
|
+
accessTokenSignatureAlgorithm: jwt_js_1.AlgorithmSchema.default(jwt_js_1.Algorithm.DEFAULT),
|
|
16
|
+
});
|
|
17
|
+
exports.AuthorizationPayloadSchema = BaseAttributes.and({
|
|
18
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
19
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
20
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
21
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
22
|
+
exports.UpsertAuthorizationPayloadSchema = BaseAttributes.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const BrandingPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
logo?: {
|
|
3
|
+
dark?: string | undefined;
|
|
4
|
+
light?: string | undefined;
|
|
5
|
+
email?: string | undefined;
|
|
6
|
+
} | undefined;
|
|
7
|
+
color?: {
|
|
8
|
+
link?: string | undefined;
|
|
9
|
+
linkHover?: string | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
12
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
13
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
14
|
+
metadata?: ((In: {
|
|
15
|
+
[x: string]: string | number | boolean;
|
|
16
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
17
|
+
[x: string]: string | number | boolean;
|
|
18
|
+
} | undefined>) | undefined;
|
|
19
|
+
}, {}>;
|
|
20
|
+
export type BrandingPayload = typeof BrandingPayloadSchema.inferOut;
|
|
21
|
+
export declare const UpsertBrandingPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
22
|
+
logo?: {
|
|
23
|
+
dark?: string | undefined;
|
|
24
|
+
light?: string | undefined;
|
|
25
|
+
email?: string | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
color?: {
|
|
28
|
+
link?: string | undefined;
|
|
29
|
+
linkHover?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
metadata?: ((In: {
|
|
32
|
+
[x: string]: string | number | boolean;
|
|
33
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
34
|
+
[x: string]: string | number | boolean;
|
|
35
|
+
} | undefined>) | undefined;
|
|
36
|
+
}, {}>;
|
|
37
|
+
export type UpsertBrandingPayload = typeof UpsertBrandingPayloadSchema.inferOut;
|
|
38
|
+
//# sourceMappingURL=branding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/branding.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;MAIG,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;MAEvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertBrandingPayloadSchema = exports.BrandingPayloadSchema = 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 LogoSchema = (0, arktype_1.type)({
|
|
8
|
+
dark: (0, arktype_1.type)('string.url').optional(),
|
|
9
|
+
light: (0, arktype_1.type)('string.url').optional(),
|
|
10
|
+
email: (0, arktype_1.type)('string.url').optional(),
|
|
11
|
+
});
|
|
12
|
+
const ColorSchema = (0, arktype_1.type)({
|
|
13
|
+
link: (0, arktype_1.type)('string').optional(),
|
|
14
|
+
linkHover: (0, arktype_1.type)('string').optional(),
|
|
15
|
+
});
|
|
16
|
+
const BaseAttributes = (0, arktype_1.type)({
|
|
17
|
+
logo: LogoSchema.optional(),
|
|
18
|
+
color: ColorSchema.optional(),
|
|
19
|
+
});
|
|
20
|
+
exports.BrandingPayloadSchema = BaseAttributes.and({
|
|
21
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
22
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
23
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
24
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
25
|
+
exports.UpsertBrandingPayloadSchema = BaseAttributes.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const FeatureFlag: {
|
|
2
|
+
readonly REMOVE_BRANDING: "Branding.Remove";
|
|
3
|
+
};
|
|
4
|
+
export type AnyFeatureFlag = (typeof FeatureFlag)[keyof typeof FeatureFlag];
|
|
5
|
+
export declare const FeaturePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
6
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export type FeaturePayload = typeof FeaturePayloadSchema.inferOut;
|
|
9
|
+
export declare const FeaturesPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
10
|
+
"Branding.Remove"?: {
|
|
11
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
12
|
+
} | undefined;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export type FeaturesPayload = typeof FeaturesPayloadSchema.inferOut;
|
|
15
|
+
export declare const MembershipPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
16
|
+
features?: {
|
|
17
|
+
"Branding.Remove"?: {
|
|
18
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
19
|
+
} | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
startAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
22
|
+
endAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
23
|
+
}, {}>;
|
|
24
|
+
export type MembershipPayload = typeof MembershipPayloadSchema.inferOut;
|
|
25
|
+
//# sourceMappingURL=membership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../../../src/workspace/schema/membership.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;CAEd,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;MAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,QAAQ,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;MAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;MAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MembershipPayloadSchema = exports.FeaturesPayloadSchema = exports.FeaturePayloadSchema = exports.FeatureFlag = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
|
+
exports.FeatureFlag = {
|
|
7
|
+
REMOVE_BRANDING: 'Branding.Remove',
|
|
8
|
+
};
|
|
9
|
+
exports.FeaturePayloadSchema = (0, arktype_1.type)({
|
|
10
|
+
expiresAt: dates_js_1.RequiredDatePayloadSchema,
|
|
11
|
+
});
|
|
12
|
+
exports.FeaturesPayloadSchema = (0, arktype_1.type)({
|
|
13
|
+
[exports.FeatureFlag.REMOVE_BRANDING]: exports.FeaturePayloadSchema.optional(),
|
|
14
|
+
});
|
|
15
|
+
exports.MembershipPayloadSchema = (0, arktype_1.type)({
|
|
16
|
+
features: exports.FeaturesPayloadSchema.optional(),
|
|
17
|
+
'startAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
18
|
+
'endAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
19
|
+
});
|