@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,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSAMLPayloadSchema = exports.InsertSAMLPayloadSchema = exports.SAMLPayloadSchema = 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
|
+
exports.SAMLPayloadSchema = (0, arktype_1.type)({
|
|
8
|
+
'updatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
9
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
10
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
11
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
12
|
+
exports.InsertSAMLPayloadSchema = metadata_js_1.MetadataPayloadPropertySchema;
|
|
13
|
+
exports.UpdateSAMLPayloadSchema = metadata_js_1.MetadataPayloadPropertySchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/app/schema/schema.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAE1B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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("./app.js"), exports);
|
|
18
|
+
__exportStar(require("./authorization.js"), exports);
|
|
19
|
+
__exportStar(require("./oauth.js"), exports);
|
|
20
|
+
__exportStar(require("./oidc.js"), exports);
|
|
21
|
+
__exportStar(require("./registration.js"), exports);
|
|
22
|
+
__exportStar(require("./saml.js"), exports);
|
|
23
|
+
__exportStar(require("./utils.js"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Model: {
|
|
2
|
+
readonly App: {
|
|
3
|
+
readonly UIDPrefix: "app";
|
|
4
|
+
};
|
|
5
|
+
readonly OAuth: {
|
|
6
|
+
readonly UIDPrefix: "aoa";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare function generateAppId(): string;
|
|
10
|
+
export declare function generateOAuthId(): string;
|
|
11
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/app/schema/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;CAOR,CAAC;AAEX,wBAAgB,aAAa,WAE5B;AAED,wBAAgB,eAAe,WAE9B"}
|
|
@@ -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.generateAppId = generateAppId;
|
|
8
|
+
exports.generateOAuthId = generateOAuthId;
|
|
9
|
+
const ksuid_1 = __importDefault(require("ksuid"));
|
|
10
|
+
exports.Model = {
|
|
11
|
+
App: {
|
|
12
|
+
UIDPrefix: 'app',
|
|
13
|
+
},
|
|
14
|
+
OAuth: {
|
|
15
|
+
UIDPrefix: 'aoa',
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
function generateAppId() {
|
|
19
|
+
return `${exports.Model.App.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
20
|
+
}
|
|
21
|
+
function generateOAuthId() {
|
|
22
|
+
return `${exports.Model.OAuth.UIDPrefix}_${ksuid_1.default.randomSync().string}`;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/association/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,79 @@
|
|
|
1
|
+
export declare const AssociationIdReferenceSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
}, {}>;
|
|
4
|
+
export type AssociationIdReference = typeof AssociationIdReferenceSchema.inferOut;
|
|
5
|
+
export declare const AssociationAttributesReferenceSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
id: string;
|
|
8
|
+
}, {}>;
|
|
9
|
+
export type AssociationAttributesReference = typeof AssociationAttributesReferenceSchema.inferOut;
|
|
10
|
+
export type AssociationReference = AssociationIdReference | AssociationAttributesReference;
|
|
11
|
+
export declare const AssociationObjectSchema: import("arktype/out/methods/object.js").ObjectType<import("arktype/out/methods/object.js").ObjectType<{
|
|
12
|
+
id: string;
|
|
13
|
+
givenName?: string | undefined;
|
|
14
|
+
middleName?: string | undefined;
|
|
15
|
+
familyName?: string | undefined;
|
|
16
|
+
honorificPrefix?: string | undefined;
|
|
17
|
+
honorificSuffix?: string | undefined;
|
|
18
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
19
|
+
phoneNumber?: string | undefined;
|
|
20
|
+
model: "User";
|
|
21
|
+
}, {}> | import("arktype/out/methods/object.js").ObjectType<{
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
model: "Organization";
|
|
25
|
+
}, {}>, {}>;
|
|
26
|
+
export type AssociationObject = typeof AssociationObjectSchema.inferOut;
|
|
27
|
+
export declare const ObjectPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
28
|
+
object: import("arktype/out/methods/object.js").ObjectType<{
|
|
29
|
+
id: string;
|
|
30
|
+
givenName?: string | undefined;
|
|
31
|
+
middleName?: string | undefined;
|
|
32
|
+
familyName?: string | undefined;
|
|
33
|
+
honorificPrefix?: string | undefined;
|
|
34
|
+
honorificSuffix?: string | undefined;
|
|
35
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
36
|
+
phoneNumber?: string | undefined;
|
|
37
|
+
model: "User";
|
|
38
|
+
}, {}> | import("arktype/out/methods/object.js").ObjectType<{
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
model: "Organization";
|
|
42
|
+
}, {}>;
|
|
43
|
+
}, {}>;
|
|
44
|
+
export declare const AssociationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
45
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
46
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
47
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
48
|
+
object: import("arktype/out/methods/object.js").ObjectType<{
|
|
49
|
+
id: string;
|
|
50
|
+
givenName?: string | undefined;
|
|
51
|
+
middleName?: string | undefined;
|
|
52
|
+
familyName?: string | undefined;
|
|
53
|
+
honorificPrefix?: string | undefined;
|
|
54
|
+
honorificSuffix?: string | undefined;
|
|
55
|
+
email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
56
|
+
phoneNumber?: string | undefined;
|
|
57
|
+
model: "User";
|
|
58
|
+
}, {}> | import("arktype/out/methods/object.js").ObjectType<{
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
model: "Organization";
|
|
62
|
+
}, {}>;
|
|
63
|
+
metadata?: ((In: {
|
|
64
|
+
[x: string]: string | number | boolean;
|
|
65
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
66
|
+
[x: string]: string | number | boolean;
|
|
67
|
+
} | undefined>) | undefined;
|
|
68
|
+
}, {}>;
|
|
69
|
+
export type AssociationPayload = typeof AssociationPayloadSchema.inferOut;
|
|
70
|
+
export declare const UpsertAssociationPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
71
|
+
expiresAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
72
|
+
metadata?: ((In: {
|
|
73
|
+
[x: string]: string | number | boolean;
|
|
74
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
75
|
+
[x: string]: string | number | boolean;
|
|
76
|
+
} | undefined>) | undefined;
|
|
77
|
+
}, {}>;
|
|
78
|
+
export type UpsertAssociationPayload = typeof UpsertAssociationPayloadSchema.inferOut;
|
|
79
|
+
//# sourceMappingURL=association.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"association.d.ts","sourceRoot":"","sources":["../../../../src/association/schema/association.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,4BAA4B;;MAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAChC,OAAO,4BAA4B,CAAC,QAAQ,CAAC;AAE/C,eAAO,MAAM,oCAAoC;;;MACY,CAAC;AAC9D,MAAM,MAAM,8BAA8B,GACxC,OAAO,oCAAoC,CAAC,QAAQ,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAC5B,sBAAsB,GACtB,8BAA8B,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;WAGnC,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;MAE/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;MAMA,CAAC;AACtC,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,8BAA8B;;;;;;;MAEN,CAAC;AACtC,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertAssociationPayloadSchema = exports.AssociationPayloadSchema = exports.ObjectPropertySchema = exports.AssociationObjectSchema = exports.AssociationAttributesReferenceSchema = exports.AssociationIdReferenceSchema = 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 organization_js_1 = require("../../customer/schema/organization.js");
|
|
8
|
+
const user_js_1 = require("../../customer/schema/user.js");
|
|
9
|
+
exports.AssociationIdReferenceSchema = (0, arktype_1.type)({
|
|
10
|
+
id: (0, arktype_1.type)('string'),
|
|
11
|
+
});
|
|
12
|
+
exports.AssociationAttributesReferenceSchema = exports.AssociationIdReferenceSchema.and('Record<string, unknown>');
|
|
13
|
+
exports.AssociationObjectSchema = arktype_1.type.enumerated(user_js_1.UserAssociationReferenceSchema, organization_js_1.OrganizationAssociationReferenceSchema);
|
|
14
|
+
exports.ObjectPropertySchema = (0, arktype_1.type)({
|
|
15
|
+
object: exports.AssociationObjectSchema,
|
|
16
|
+
});
|
|
17
|
+
exports.AssociationPayloadSchema = (0, arktype_1.type)({
|
|
18
|
+
updatedAt: dates_js_1.RequiredDatePayloadSchema,
|
|
19
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
20
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
21
|
+
})
|
|
22
|
+
.and(exports.ObjectPropertySchema)
|
|
23
|
+
.and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
24
|
+
exports.UpsertAssociationPayloadSchema = (0, arktype_1.type)({
|
|
25
|
+
expiresAt: dates_js_1.OptionalDatePayloadSchema.optional(),
|
|
26
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/association/schema/schema.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,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("./association.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authentication/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,48 @@
|
|
|
1
|
+
export declare const AuthenticationFactorPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
nextFactors?: {
|
|
4
|
+
id: string;
|
|
5
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
6
|
+
}[] | null | undefined;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export type AuthenticationFactorPayload = typeof AuthenticationFactorPayloadSchema.inferOut;
|
|
9
|
+
export declare const AuthenticationFactorsSchema: import("arktype/out/methods/object.js").ObjectType<(In: {
|
|
10
|
+
id: string;
|
|
11
|
+
nextFactors?: {
|
|
12
|
+
id: string;
|
|
13
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
14
|
+
}[] | null | undefined;
|
|
15
|
+
}[] | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
16
|
+
id: string;
|
|
17
|
+
nextFactors?: {
|
|
18
|
+
id: string;
|
|
19
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
20
|
+
}[] | null | undefined;
|
|
21
|
+
}[] | undefined>, {}>;
|
|
22
|
+
export type AuthenticationFactors = typeof AuthenticationFactorsSchema.inferOut;
|
|
23
|
+
export declare const AuthenticationFactorsPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
24
|
+
factors: (In: {
|
|
25
|
+
id: string;
|
|
26
|
+
nextFactors?: {
|
|
27
|
+
id: string;
|
|
28
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
29
|
+
}[] | null | undefined;
|
|
30
|
+
}[] | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
31
|
+
id: string;
|
|
32
|
+
nextFactors?: {
|
|
33
|
+
id: string;
|
|
34
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
35
|
+
}[] | null | undefined;
|
|
36
|
+
}[] | undefined>;
|
|
37
|
+
}, {}>;
|
|
38
|
+
export type AuthenticationFactorsPayload = typeof AuthenticationFactorsPayloadSchema.inferOut;
|
|
39
|
+
export declare const UpsertAuthenticationFactorsPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
40
|
+
factors?: {
|
|
41
|
+
id: string;
|
|
42
|
+
nextFactors?: {
|
|
43
|
+
id: string;
|
|
44
|
+
nextFactors?: /*elided*/ any[] | null | undefined;
|
|
45
|
+
}[] | null | undefined;
|
|
46
|
+
}[] | null | undefined;
|
|
47
|
+
}, {}>;
|
|
48
|
+
//# sourceMappingURL=factors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factors.d.ts","sourceRoot":"","sources":["../../../../src/authentication/schema/factors.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iCAAiC;;;;;;MAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GACrC,OAAO,iCAAiC,CAAC,QAAQ,CAAC;AAEpD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;qBAGK,CAAC;AAC9C,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;MAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC;AAErD,eAAO,MAAM,wCAAwC;;;;;;;;MAInD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpsertAuthenticationFactorsPayloadSchema = exports.AuthenticationFactorsPayloadSchema = exports.AuthenticationFactorsSchema = exports.AuthenticationFactorPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const base_js_1 = require("./strategy/base.js");
|
|
6
|
+
const factorScope = (0, arktype_1.scope)({
|
|
7
|
+
factor: {
|
|
8
|
+
id: base_js_1.StrategyIdSchema,
|
|
9
|
+
'nextFactors?': 'childFactors',
|
|
10
|
+
},
|
|
11
|
+
childFactors: 'factor[] | undefined | null',
|
|
12
|
+
'nextFactors?': 'factor[] | undefined | null',
|
|
13
|
+
});
|
|
14
|
+
exports.AuthenticationFactorPayloadSchema = (0, arktype_1.type)({
|
|
15
|
+
id: base_js_1.StrategyIdSchema,
|
|
16
|
+
...factorScope.export('nextFactors?'),
|
|
17
|
+
});
|
|
18
|
+
exports.AuthenticationFactorsSchema = exports.AuthenticationFactorPayloadSchema.array()
|
|
19
|
+
.or('undefined | null')
|
|
20
|
+
.pipe((f) => (f == null ? undefined : f));
|
|
21
|
+
exports.AuthenticationFactorsPayloadSchema = (0, arktype_1.type)({
|
|
22
|
+
factors: exports.AuthenticationFactorsSchema,
|
|
23
|
+
});
|
|
24
|
+
exports.UpsertAuthenticationFactorsPayloadSchema = (0, arktype_1.type)({
|
|
25
|
+
factors: exports.AuthenticationFactorPayloadSchema.array()
|
|
26
|
+
.or('undefined | null')
|
|
27
|
+
.optional(),
|
|
28
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factors.test.d.ts","sourceRoot":"","sources":["../../../../src/authentication/schema/factors.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const arktype_1 = require("arktype");
|
|
4
|
+
const vitest_1 = require("vitest");
|
|
5
|
+
const factors_js_1 = require("./factors.js");
|
|
6
|
+
(0, vitest_1.describe)('Authentication - Factors', () => {
|
|
7
|
+
(0, vitest_1.describe)('Schema', () => {
|
|
8
|
+
(0, vitest_1.test)('should parse response payload successfully', async () => {
|
|
9
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
10
|
+
createdAt: new Date(),
|
|
11
|
+
updatedAt: new Date(),
|
|
12
|
+
factors: [
|
|
13
|
+
{
|
|
14
|
+
id: '123',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
18
|
+
// Undefined factors
|
|
19
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
20
|
+
createdAt: new Date(),
|
|
21
|
+
updatedAt: new Date(),
|
|
22
|
+
factors: undefined,
|
|
23
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
24
|
+
});
|
|
25
|
+
(0, vitest_1.test)('should parse upsert payload successfully', async () => {
|
|
26
|
+
(0, vitest_1.expect)((0, factors_js_1.UpsertAuthenticationFactorsPayloadSchema)({
|
|
27
|
+
factors: [
|
|
28
|
+
{
|
|
29
|
+
id: '123',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
33
|
+
// Null factors
|
|
34
|
+
(0, vitest_1.expect)((0, factors_js_1.UpsertAuthenticationFactorsPayloadSchema)({
|
|
35
|
+
factors: null,
|
|
36
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
37
|
+
// Undefined factors
|
|
38
|
+
(0, vitest_1.expect)((0, factors_js_1.UpsertAuthenticationFactorsPayloadSchema)({
|
|
39
|
+
factors: undefined,
|
|
40
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
41
|
+
});
|
|
42
|
+
(0, vitest_1.test)('should throw error for invalid factors', async () => {
|
|
43
|
+
// Factor object
|
|
44
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
45
|
+
createdAt: new Date(),
|
|
46
|
+
updatedAt: new Date(),
|
|
47
|
+
factors: { id: '123' },
|
|
48
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
49
|
+
// Factor array of string
|
|
50
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
51
|
+
createdAt: new Date(),
|
|
52
|
+
updatedAt: new Date(),
|
|
53
|
+
factors: ['123'],
|
|
54
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
55
|
+
});
|
|
56
|
+
(0, vitest_1.test)('should accept various next factors types', async () => {
|
|
57
|
+
// Undefined
|
|
58
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorPayloadSchema)({
|
|
59
|
+
id: '123',
|
|
60
|
+
nextFactors: undefined,
|
|
61
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
62
|
+
// Array
|
|
63
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorPayloadSchema)({
|
|
64
|
+
id: '123',
|
|
65
|
+
nextFactors: [
|
|
66
|
+
{
|
|
67
|
+
id: '456',
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
71
|
+
// Deeply nested array
|
|
72
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorPayloadSchema)({
|
|
73
|
+
id: '123',
|
|
74
|
+
nextFactors: [
|
|
75
|
+
{
|
|
76
|
+
id: '456',
|
|
77
|
+
nextFactors: [
|
|
78
|
+
{
|
|
79
|
+
id: '456',
|
|
80
|
+
nextFactors: [
|
|
81
|
+
{
|
|
82
|
+
id: '456',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
})).not.toBeInstanceOf(arktype_1.type.errors);
|
|
90
|
+
});
|
|
91
|
+
(0, vitest_1.test)('should throw error for invalid factor id', async () => {
|
|
92
|
+
// Number
|
|
93
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
94
|
+
id: 123,
|
|
95
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
96
|
+
// Null
|
|
97
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
98
|
+
id: null,
|
|
99
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
100
|
+
// Undefined
|
|
101
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
102
|
+
id: undefined,
|
|
103
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
104
|
+
});
|
|
105
|
+
(0, vitest_1.test)('should throw error for invalid next factors', async () => {
|
|
106
|
+
// String
|
|
107
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
108
|
+
id: '123',
|
|
109
|
+
nextFactors: '123',
|
|
110
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
111
|
+
// Object
|
|
112
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
113
|
+
id: '123',
|
|
114
|
+
nextFactors: { id: '123' },
|
|
115
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
116
|
+
// Array
|
|
117
|
+
(0, vitest_1.expect)((0, factors_js_1.AuthenticationFactorsPayloadSchema)({
|
|
118
|
+
id: '123',
|
|
119
|
+
nextFactors: ['123'],
|
|
120
|
+
})).toBeInstanceOf(arktype_1.type.errors);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const ProviderType: {
|
|
2
|
+
readonly MONDO: "mondo";
|
|
3
|
+
};
|
|
4
|
+
export type AnyProviderType = (typeof ProviderType)[keyof typeof ProviderType];
|
|
5
|
+
export declare const ProviderIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
6
|
+
export type ProviderId = typeof ProviderIdSchema.inferOut;
|
|
7
|
+
export declare const ProviderIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
8
|
+
id: string;
|
|
9
|
+
}, {}>;
|
|
10
|
+
export type ProviderIdProperty = typeof ProviderIdPropertySchema.inferOut;
|
|
11
|
+
export declare const ProviderTypeSchema: import("arktype/out/methods/string.js").StringType<"mondo", {}>;
|
|
12
|
+
export declare const ProviderPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
13
|
+
id: string;
|
|
14
|
+
type: "mondo";
|
|
15
|
+
user: string;
|
|
16
|
+
strategy: string;
|
|
17
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
18
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
19
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
20
|
+
metadata?: ((In: {
|
|
21
|
+
[x: string]: string | number | boolean;
|
|
22
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
23
|
+
[x: string]: string | number | boolean;
|
|
24
|
+
} | undefined>) | undefined;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export type ProviderPayload = typeof ProviderPayloadSchema.inferOut;
|
|
27
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/authentication/schema/provider.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;CAEf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,gBAAgB,gEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,kBAAkB,iEAAsC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;MAOG,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProviderPayloadSchema = exports.ProviderTypeSchema = exports.ProviderIdPropertySchema = exports.ProviderIdSchema = exports.ProviderType = 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 base_js_1 = require("./strategy/base.js");
|
|
9
|
+
exports.ProviderType = {
|
|
10
|
+
MONDO: 'mondo',
|
|
11
|
+
};
|
|
12
|
+
exports.ProviderIdSchema = arktype_1.type.string;
|
|
13
|
+
exports.ProviderIdPropertySchema = (0, arktype_1.type)({
|
|
14
|
+
id: exports.ProviderIdSchema,
|
|
15
|
+
});
|
|
16
|
+
exports.ProviderTypeSchema = arktype_1.type.enumerated(exports.ProviderType.MONDO);
|
|
17
|
+
exports.ProviderPayloadSchema = exports.ProviderIdPropertySchema.and({
|
|
18
|
+
type: exports.ProviderTypeSchema,
|
|
19
|
+
user: user_js_1.UserIdSchema,
|
|
20
|
+
strategy: base_js_1.StrategyIdSchema,
|
|
21
|
+
updatedAt: dates_js_1.RequiredDatePayloadSchema,
|
|
22
|
+
'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
23
|
+
'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
|
|
24
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/authentication/schema/schema.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./factors.js"), exports);
|
|
18
|
+
__exportStar(require("./provider.js"), exports);
|
|
19
|
+
__exportStar(require("./session.js"), exports);
|
|
20
|
+
__exportStar(require("./settings.js"), exports);
|
|
21
|
+
__exportStar(require("./strategy/schema.js"), exports);
|