@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,44 @@
|
|
|
1
|
+
export declare const SignUpActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "sign-up";
|
|
14
|
+
user: {
|
|
15
|
+
givenName?: string | undefined;
|
|
16
|
+
middleName?: string | undefined;
|
|
17
|
+
familyName?: string | undefined;
|
|
18
|
+
honorificPrefix?: string | undefined;
|
|
19
|
+
honorificSuffix?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
app?: string | undefined;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export type SignUpActionPayload = typeof SignUpActionPayloadSchema.inferOut;
|
|
24
|
+
export declare const SignUpActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
25
|
+
givenName?: string | undefined;
|
|
26
|
+
middleName?: string | undefined;
|
|
27
|
+
familyName?: string | undefined;
|
|
28
|
+
honorificPrefix?: string | undefined;
|
|
29
|
+
honorificSuffix?: string | undefined;
|
|
30
|
+
email: string;
|
|
31
|
+
phoneNumber?: string | undefined;
|
|
32
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
33
|
+
} | {
|
|
34
|
+
givenName?: string | undefined;
|
|
35
|
+
middleName?: string | undefined;
|
|
36
|
+
familyName?: string | undefined;
|
|
37
|
+
honorificPrefix?: string | undefined;
|
|
38
|
+
honorificSuffix?: string | undefined;
|
|
39
|
+
phoneNumber: string;
|
|
40
|
+
email?: string | undefined;
|
|
41
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export type SignUpActionRequest = typeof SignUpActionRequestSchema.inferOut;
|
|
44
|
+
//# sourceMappingURL=sign-up.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-up.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/sign-up.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;MAIV,CAAC;AAC7B,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAY5E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;MAErC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { AppIdSchema } from '../../../app/schema/app.js';
|
|
3
|
+
import { InsertUserPayloadSchema, RequiredEmailSchema, RequiredPhoneNumberSchema, UserNamePropertiesSchema, } from '../../../customer/schema/user.js';
|
|
4
|
+
import { BasePayloadSchema } from '../base.js';
|
|
5
|
+
export const SignUpActionPayloadSchema = BasePayloadSchema.and({
|
|
6
|
+
operation: type("'sign-up'"),
|
|
7
|
+
app: AppIdSchema.optional(),
|
|
8
|
+
user: UserNamePropertiesSchema,
|
|
9
|
+
}).onUndeclaredKey('delete');
|
|
10
|
+
const EmailSignUpActionRequestSchema = UserNamePropertiesSchema.and({
|
|
11
|
+
email: RequiredEmailSchema,
|
|
12
|
+
phoneNumber: RequiredPhoneNumberSchema.optional(),
|
|
13
|
+
}).and(InsertUserPayloadSchema.pick('id'));
|
|
14
|
+
const PhoneNumberSignUpActionRequestSchema = UserNamePropertiesSchema.and({
|
|
15
|
+
phoneNumber: RequiredPhoneNumberSchema,
|
|
16
|
+
email: RequiredEmailSchema.optional(),
|
|
17
|
+
}).and(InsertUserPayloadSchema.pick('id'));
|
|
18
|
+
export const SignUpActionRequestSchema = EmailSignUpActionRequestSchema.or(PhoneNumberSignUpActionRequestSchema);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const UserAttributeVerificationActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
operation: "user-attribute-verification";
|
|
14
|
+
user: string;
|
|
15
|
+
attribute: "email" | "phoneNumber";
|
|
16
|
+
}, {}>;
|
|
17
|
+
export type UserAttributeVerificationActionPayload = typeof UserAttributeVerificationActionPayloadSchema.inferOut;
|
|
18
|
+
export declare const UserAttributeVerificationActionRequestSchema: import("arktype/internal/methods/object.ts").ObjectType<object, {}>;
|
|
19
|
+
export type UserAttributeVerificationActionRequest = typeof UserAttributeVerificationActionRequestSchema.inferOut;
|
|
20
|
+
//# sourceMappingURL=user-attribute-verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-attribute-verification.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/user-attribute-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;MAK3B,CAAC;AAC/B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC;AAE/D,eAAO,MAAM,4CAA4C,qEAE9B,CAAC;AAC5B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { UserIdSchema } from '../../../customer/schema/user.js';
|
|
3
|
+
import { IdentityIdentifierSchema } from '../../../identity/schema/schema.js';
|
|
4
|
+
import { BasePayloadSchema } from '../base.js';
|
|
5
|
+
export const UserAttributeVerificationActionPayloadSchema = BasePayloadSchema.and({
|
|
6
|
+
operation: type("'user-attribute-verification'"),
|
|
7
|
+
user: UserIdSchema,
|
|
8
|
+
attribute: IdentityIdentifierSchema,
|
|
9
|
+
}).onUndeclaredKey('delete');
|
|
10
|
+
export const UserAttributeVerificationActionRequestSchema = type({}).onUndeclaredKey('delete');
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const ActionOperation: {
|
|
2
|
+
readonly SET_PASSWORD: "set-password";
|
|
3
|
+
readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
|
|
4
|
+
readonly SIGN_UP: "sign-up";
|
|
5
|
+
readonly SIGN_UP_VERIFICATION: "sign-up-verification";
|
|
6
|
+
};
|
|
7
|
+
export type AnyActionOperation = (typeof ActionOperation)[keyof typeof ActionOperation];
|
|
8
|
+
/**
|
|
9
|
+
* Union
|
|
10
|
+
*/
|
|
11
|
+
export declare const ActionPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
12
|
+
id: string;
|
|
13
|
+
attempt: number;
|
|
14
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
15
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
16
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
17
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
18
|
+
metadata?: ((In: {
|
|
19
|
+
[x: string]: string | number | boolean;
|
|
20
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
21
|
+
[x: string]: string | number | boolean;
|
|
22
|
+
} | undefined>) | undefined;
|
|
23
|
+
operation: "set-password";
|
|
24
|
+
user: string;
|
|
25
|
+
identifier: "email" | "phoneNumber";
|
|
26
|
+
policy: {
|
|
27
|
+
minimumLength: import("arktype/internal/attributes.ts").Default<number, 8>;
|
|
28
|
+
maximumLength: import("arktype/internal/attributes.ts").Default<number, 36>;
|
|
29
|
+
minimumCapital: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
30
|
+
minimumLower: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
31
|
+
minimumNumber: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
32
|
+
minimumSpecial: import("arktype/internal/attributes.ts").Default<number, 1>;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
id: string;
|
|
36
|
+
attempt: number;
|
|
37
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
38
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
39
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
40
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
41
|
+
metadata?: ((In: {
|
|
42
|
+
[x: string]: string | number | boolean;
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
44
|
+
[x: string]: string | number | boolean;
|
|
45
|
+
} | undefined>) | undefined;
|
|
46
|
+
operation: "sign-up-verification";
|
|
47
|
+
user: string;
|
|
48
|
+
identifier: "email" | "phoneNumber";
|
|
49
|
+
} | {
|
|
50
|
+
id: string;
|
|
51
|
+
attempt: number;
|
|
52
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
53
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
54
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
55
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
56
|
+
metadata?: ((In: {
|
|
57
|
+
[x: string]: string | number | boolean;
|
|
58
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
59
|
+
[x: string]: string | number | boolean;
|
|
60
|
+
} | undefined>) | undefined;
|
|
61
|
+
operation: "sign-up";
|
|
62
|
+
user: {
|
|
63
|
+
givenName?: string | undefined;
|
|
64
|
+
middleName?: string | undefined;
|
|
65
|
+
familyName?: string | undefined;
|
|
66
|
+
honorificPrefix?: string | undefined;
|
|
67
|
+
honorificSuffix?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
app?: string | undefined;
|
|
70
|
+
} | {
|
|
71
|
+
id: string;
|
|
72
|
+
attempt: number;
|
|
73
|
+
expiresAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
74
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
75
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
76
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
77
|
+
metadata?: ((In: {
|
|
78
|
+
[x: string]: string | number | boolean;
|
|
79
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
80
|
+
[x: string]: string | number | boolean;
|
|
81
|
+
} | undefined>) | undefined;
|
|
82
|
+
operation: "user-attribute-verification";
|
|
83
|
+
user: string;
|
|
84
|
+
attribute: "email" | "phoneNumber";
|
|
85
|
+
}, {}>;
|
|
86
|
+
export type ActionPayload = typeof ActionPayloadSchema.inferOut;
|
|
87
|
+
export { ActionIdPropertySchema, ActionIdSchema, type ActionId, type ActionIdProperty, } from './base.js';
|
|
88
|
+
export * from './operations/set-password.js';
|
|
89
|
+
export * from './operations/sign-up-verification.js';
|
|
90
|
+
export * from './operations/sign-up.js';
|
|
91
|
+
export * from './operations/user-attribute-verification.js';
|
|
92
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAImB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SetPasswordActionPayloadSchema } from './operations/set-password.js';
|
|
2
|
+
import { SignUpVerificationActionPayloadSchema } from './operations/sign-up-verification.js';
|
|
3
|
+
import { SignUpActionPayloadSchema } from './operations/sign-up.js';
|
|
4
|
+
import { UserAttributeVerificationActionPayloadSchema } from './operations/user-attribute-verification.js';
|
|
5
|
+
export const ActionOperation = {
|
|
6
|
+
SET_PASSWORD: 'set-password',
|
|
7
|
+
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
8
|
+
SIGN_UP: 'sign-up',
|
|
9
|
+
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Union
|
|
13
|
+
*/
|
|
14
|
+
export const ActionPayloadSchema = SetPasswordActionPayloadSchema.or(SignUpVerificationActionPayloadSchema)
|
|
15
|
+
.or(SignUpActionPayloadSchema)
|
|
16
|
+
.or(UserAttributeVerificationActionPayloadSchema);
|
|
17
|
+
export { ActionIdPropertySchema, ActionIdSchema, } from './base.js';
|
|
18
|
+
export * from './operations/set-password.js';
|
|
19
|
+
export * from './operations/sign-up-verification.js';
|
|
20
|
+
export * from './operations/sign-up.js';
|
|
21
|
+
export * from './operations/user-attribute-verification.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema/schema.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare const ActivityIdSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
2
|
+
export type ActivityId = typeof ActivityIdSchema.inferOut;
|
|
3
|
+
export declare const ActivityIdPropertySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export type ActivityIdProperty = typeof ActivityIdPropertySchema.inferOut;
|
|
7
|
+
export declare const SourceSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
8
|
+
export declare const PerformedBySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
9
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
10
|
+
identifier: string;
|
|
11
|
+
}, {}>;
|
|
12
|
+
export type PerformedBy = typeof PerformedBySchema.inferOut;
|
|
13
|
+
export declare const BasePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
14
|
+
id: string;
|
|
15
|
+
performedBy: {
|
|
16
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
17
|
+
identifier: string;
|
|
18
|
+
};
|
|
19
|
+
source: string;
|
|
20
|
+
isMutateable: boolean;
|
|
21
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
22
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
23
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
24
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
25
|
+
metadata?: ((In: {
|
|
26
|
+
[x: string]: string | number | boolean;
|
|
27
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
28
|
+
[x: string]: string | number | boolean;
|
|
29
|
+
} | undefined>) | undefined;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export declare const BaseInsertPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
32
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
33
|
+
performedBy?: {
|
|
34
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
35
|
+
identifier: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
metadata?: ((In: {
|
|
38
|
+
[x: string]: string | number | boolean;
|
|
39
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
40
|
+
[x: string]: string | number | boolean;
|
|
41
|
+
} | null>) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export declare const BaseUpdatePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
44
|
+
performedBy?: {
|
|
45
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
46
|
+
identifier: string;
|
|
47
|
+
} | undefined;
|
|
48
|
+
metadata?: ((In: {
|
|
49
|
+
[x: string]: string | number | boolean;
|
|
50
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
51
|
+
[x: string]: string | number | boolean;
|
|
52
|
+
} | null>) | undefined;
|
|
53
|
+
}, {}>;
|
|
54
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,qEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY,qEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;MASO,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;MAGO,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;;;;;MAEO,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/index.js';
|
|
3
|
+
import { MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
|
+
import { PerformerType } from './schema.js';
|
|
5
|
+
import { generateActivityId } from './utils.js';
|
|
6
|
+
export const ActivityIdSchema = type.string;
|
|
7
|
+
export const ActivityIdPropertySchema = type({
|
|
8
|
+
id: ActivityIdSchema,
|
|
9
|
+
});
|
|
10
|
+
export const SourceSchema = type('string');
|
|
11
|
+
export const PerformedBySchema = type({
|
|
12
|
+
type: type.enumerated(PerformerType.SYSTEM, PerformerType.GUEST, PerformerType.IDENTITY, PerformerType.AUTOMATION, PerformerType.INTEGRATION),
|
|
13
|
+
identifier: type('string'),
|
|
14
|
+
});
|
|
15
|
+
export const BasePayloadSchema = type({
|
|
16
|
+
id: ActivityIdSchema,
|
|
17
|
+
performedBy: PerformedBySchema,
|
|
18
|
+
source: SourceSchema,
|
|
19
|
+
isMutateable: type('boolean'),
|
|
20
|
+
createdAt: RequiredDatePayloadSchema,
|
|
21
|
+
updatedAt: RequiredDatePayloadSchema,
|
|
22
|
+
'deletedAt?': OptionalDatePayloadSchema,
|
|
23
|
+
'deactivatedAt?': OptionalDatePayloadSchema,
|
|
24
|
+
}).and(MetadataPayloadPropertySchema);
|
|
25
|
+
export const BaseInsertPayloadSchema = type({
|
|
26
|
+
id: ActivityIdSchema.default(() => generateActivityId()),
|
|
27
|
+
performedBy: PerformedBySchema.optional(),
|
|
28
|
+
}).and(UpsertMetadataPayloadPropertySchema);
|
|
29
|
+
export const BaseUpdatePayloadSchema = type({
|
|
30
|
+
performedBy: PerformedBySchema.optional(),
|
|
31
|
+
}).and(UpsertMetadataPayloadPropertySchema);
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export declare const ActivityType: {
|
|
2
|
+
readonly UNKNOWN: "unknown";
|
|
3
|
+
readonly NOTE: "note";
|
|
4
|
+
readonly OPERATION: "operation";
|
|
5
|
+
readonly AUTHORIZATION: "authorization";
|
|
6
|
+
readonly AUTHENTICATION: "authentication";
|
|
7
|
+
};
|
|
8
|
+
export type AnyActivityType = (typeof ActivityType)[keyof typeof ActivityType];
|
|
9
|
+
export declare const PerformerType: {
|
|
10
|
+
readonly SYSTEM: "system";
|
|
11
|
+
readonly GUEST: "guest";
|
|
12
|
+
readonly IDENTITY: "identity";
|
|
13
|
+
readonly AUTOMATION: "automation";
|
|
14
|
+
readonly INTEGRATION: "integration";
|
|
15
|
+
};
|
|
16
|
+
export type AnyPerformerType = (typeof PerformerType)[keyof typeof PerformerType];
|
|
17
|
+
export declare const ActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
18
|
+
id: string;
|
|
19
|
+
performedBy: {
|
|
20
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
21
|
+
identifier: string;
|
|
22
|
+
};
|
|
23
|
+
source: string;
|
|
24
|
+
isMutateable: boolean;
|
|
25
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
26
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
27
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
28
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
29
|
+
metadata?: ((In: {
|
|
30
|
+
[x: string]: string | number | boolean;
|
|
31
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
32
|
+
[x: string]: string | number | boolean;
|
|
33
|
+
} | undefined>) | undefined;
|
|
34
|
+
type: "authentication";
|
|
35
|
+
status: "success" | "fail";
|
|
36
|
+
identity: string;
|
|
37
|
+
} | {
|
|
38
|
+
id: string;
|
|
39
|
+
performedBy: {
|
|
40
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
41
|
+
identifier: string;
|
|
42
|
+
};
|
|
43
|
+
source: string;
|
|
44
|
+
isMutateable: boolean;
|
|
45
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
46
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
47
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
48
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
49
|
+
metadata?: ((In: {
|
|
50
|
+
[x: string]: string | number | boolean;
|
|
51
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
52
|
+
[x: string]: string | number | boolean;
|
|
53
|
+
} | undefined>) | undefined;
|
|
54
|
+
type: "authorization";
|
|
55
|
+
status: "success" | "fail";
|
|
56
|
+
message: string;
|
|
57
|
+
identity?: string | undefined;
|
|
58
|
+
} | {
|
|
59
|
+
id: string;
|
|
60
|
+
performedBy: {
|
|
61
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
62
|
+
identifier: string;
|
|
63
|
+
};
|
|
64
|
+
source: string;
|
|
65
|
+
isMutateable: boolean;
|
|
66
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
67
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
68
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
69
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
70
|
+
metadata?: ((In: {
|
|
71
|
+
[x: string]: string | number | boolean;
|
|
72
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
73
|
+
[x: string]: string | number | boolean;
|
|
74
|
+
} | undefined>) | undefined;
|
|
75
|
+
type: "note";
|
|
76
|
+
message: string;
|
|
77
|
+
} | {
|
|
78
|
+
id: string;
|
|
79
|
+
performedBy: {
|
|
80
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
81
|
+
identifier: string;
|
|
82
|
+
};
|
|
83
|
+
source: string;
|
|
84
|
+
isMutateable: boolean;
|
|
85
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
86
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
87
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
88
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
89
|
+
metadata?: ((In: {
|
|
90
|
+
[x: string]: string | number | boolean;
|
|
91
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
92
|
+
[x: string]: string | number | boolean;
|
|
93
|
+
} | undefined>) | undefined;
|
|
94
|
+
type: "operation";
|
|
95
|
+
operation: "delete" | "automation" | "create" | "update";
|
|
96
|
+
message: string;
|
|
97
|
+
target: string;
|
|
98
|
+
} | {
|
|
99
|
+
id: string;
|
|
100
|
+
performedBy: {
|
|
101
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
102
|
+
identifier: string;
|
|
103
|
+
};
|
|
104
|
+
source: string;
|
|
105
|
+
isMutateable: boolean;
|
|
106
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
107
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
108
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
109
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
110
|
+
metadata?: ((In: {
|
|
111
|
+
[x: string]: string | number | boolean;
|
|
112
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
113
|
+
[x: string]: string | number | boolean;
|
|
114
|
+
} | undefined>) | undefined;
|
|
115
|
+
type: "unknown";
|
|
116
|
+
message: string;
|
|
117
|
+
}, {}>;
|
|
118
|
+
export type ActivityPayload = typeof ActivityPayloadSchema.inferOut;
|
|
119
|
+
export declare const InsertActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
120
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
121
|
+
performedBy?: {
|
|
122
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
123
|
+
identifier: string;
|
|
124
|
+
} | undefined;
|
|
125
|
+
metadata?: ((In: {
|
|
126
|
+
[x: string]: string | number | boolean;
|
|
127
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
128
|
+
[x: string]: string | number | boolean;
|
|
129
|
+
} | null>) | undefined;
|
|
130
|
+
type: "note";
|
|
131
|
+
message: string;
|
|
132
|
+
}, {}>;
|
|
133
|
+
export type InsertActivityPayload = typeof InsertActivityPayloadSchema.inferOut;
|
|
134
|
+
export declare const UpdateActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
135
|
+
performedBy?: {
|
|
136
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
137
|
+
identifier: string;
|
|
138
|
+
} | undefined;
|
|
139
|
+
metadata?: ((In: {
|
|
140
|
+
[x: string]: string | number | boolean;
|
|
141
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
142
|
+
[x: string]: string | number | boolean;
|
|
143
|
+
} | null>) | undefined;
|
|
144
|
+
type: "note";
|
|
145
|
+
message?: string | undefined;
|
|
146
|
+
}, {}>;
|
|
147
|
+
export type UpdateActivityPayload = typeof UpdateActivityPayloadSchema.inferOut;
|
|
148
|
+
export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, type ActivityId, type ActivityIdProperty, type PerformedBy, } from './base.js';
|
|
149
|
+
export * from './schema.js';
|
|
150
|
+
export * from './types/authentication.js';
|
|
151
|
+
export * from './types/authorization.js';
|
|
152
|
+
export * from './types/note.js';
|
|
153
|
+
export * from './types/operation.js';
|
|
154
|
+
export * from './types/unknown.js';
|
|
155
|
+
export * from './utils.js';
|
|
156
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKC,CAAC;AACpC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;MAAkC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;MAAkC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AACnB,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AuthenticationActivityPayloadSchema } from './types/authentication.js';
|
|
2
|
+
import { AuthorizationActivityPayloadSchema } from './types/authorization.js';
|
|
3
|
+
import { InsertNoteActivityPayloadSchema, NoteActivityPayloadSchema, UpdateNoteActivityPayloadSchema, } from './types/note.js';
|
|
4
|
+
import { OperationActivityPayloadSchema } from './types/operation.js';
|
|
5
|
+
import { UnknownActivityPayloadSchema } from './types/unknown.js';
|
|
6
|
+
export const ActivityType = {
|
|
7
|
+
UNKNOWN: 'unknown',
|
|
8
|
+
NOTE: 'note',
|
|
9
|
+
OPERATION: 'operation',
|
|
10
|
+
AUTHORIZATION: 'authorization',
|
|
11
|
+
AUTHENTICATION: 'authentication',
|
|
12
|
+
};
|
|
13
|
+
export const PerformerType = {
|
|
14
|
+
SYSTEM: 'system',
|
|
15
|
+
GUEST: 'guest',
|
|
16
|
+
IDENTITY: 'identity',
|
|
17
|
+
AUTOMATION: 'automation',
|
|
18
|
+
INTEGRATION: 'integration',
|
|
19
|
+
};
|
|
20
|
+
export const ActivityPayloadSchema = NoteActivityPayloadSchema.or(AuthenticationActivityPayloadSchema)
|
|
21
|
+
.or(AuthorizationActivityPayloadSchema)
|
|
22
|
+
.or(OperationActivityPayloadSchema)
|
|
23
|
+
.or(UnknownActivityPayloadSchema);
|
|
24
|
+
export const InsertActivityPayloadSchema = InsertNoteActivityPayloadSchema;
|
|
25
|
+
export const UpdateActivityPayloadSchema = UpdateNoteActivityPayloadSchema;
|
|
26
|
+
export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, } from './base.js';
|
|
27
|
+
export * from './schema.js';
|
|
28
|
+
export * from './types/authentication.js';
|
|
29
|
+
export * from './types/authorization.js';
|
|
30
|
+
export * from './types/note.js';
|
|
31
|
+
export * from './types/operation.js';
|
|
32
|
+
export * from './types/unknown.js';
|
|
33
|
+
export * from './utils.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const AuthenticationStatus: {
|
|
2
|
+
readonly SUCESS: "success";
|
|
3
|
+
readonly FAIL: "fail";
|
|
4
|
+
};
|
|
5
|
+
export type AnyAuthenticationStatus = (typeof AuthenticationStatus)[keyof typeof AuthenticationStatus];
|
|
6
|
+
export declare const AuthenticationStatusSchema: import("arktype/internal/methods/string.ts").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthenticationActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
8
|
+
id: string;
|
|
9
|
+
performedBy: {
|
|
10
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
11
|
+
identifier: string;
|
|
12
|
+
};
|
|
13
|
+
source: string;
|
|
14
|
+
isMutateable: boolean;
|
|
15
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
16
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
17
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
18
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
19
|
+
metadata?: ((In: {
|
|
20
|
+
[x: string]: string | number | boolean;
|
|
21
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
22
|
+
[x: string]: string | number | boolean;
|
|
23
|
+
} | undefined>) | undefined;
|
|
24
|
+
type: "authentication";
|
|
25
|
+
status: "success" | "fail";
|
|
26
|
+
identity: string;
|
|
27
|
+
}, {}>;
|
|
28
|
+
export type AuthenticationActivityPayload = typeof AuthenticationActivityPayloadSchema.inferOut;
|
|
29
|
+
//# sourceMappingURL=authentication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/authentication.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,0BAA0B,iFAGtC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;MAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { UserIdSchema } from '../../../customer/schema/user.js';
|
|
3
|
+
import { BasePayloadSchema } from '../base.js';
|
|
4
|
+
export const AuthenticationStatus = {
|
|
5
|
+
SUCESS: 'success',
|
|
6
|
+
FAIL: 'fail',
|
|
7
|
+
};
|
|
8
|
+
export const AuthenticationStatusSchema = type.enumerated(AuthenticationStatus.SUCESS, AuthenticationStatus.FAIL);
|
|
9
|
+
export const AuthenticationActivityPayloadSchema = BasePayloadSchema.and({
|
|
10
|
+
type: type("'authentication'"),
|
|
11
|
+
status: AuthenticationStatusSchema,
|
|
12
|
+
identity: UserIdSchema,
|
|
13
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const AuthorizationStatus: {
|
|
2
|
+
readonly SUCESS: "success";
|
|
3
|
+
readonly FAIL: "fail";
|
|
4
|
+
};
|
|
5
|
+
export type AnyAuthorizationStatus = (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
|
|
6
|
+
export declare const AuthorizationActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
7
|
+
id: string;
|
|
8
|
+
performedBy: {
|
|
9
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
10
|
+
identifier: string;
|
|
11
|
+
};
|
|
12
|
+
source: string;
|
|
13
|
+
isMutateable: boolean;
|
|
14
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
15
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
16
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
17
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
18
|
+
metadata?: ((In: {
|
|
19
|
+
[x: string]: string | number | boolean;
|
|
20
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
21
|
+
[x: string]: string | number | boolean;
|
|
22
|
+
} | undefined>) | undefined;
|
|
23
|
+
type: "authorization";
|
|
24
|
+
status: "success" | "fail";
|
|
25
|
+
message: string;
|
|
26
|
+
identity?: string | undefined;
|
|
27
|
+
}, {}>;
|
|
28
|
+
export type AuthorizationActivityPayload = typeof AuthorizationActivityPayloadSchema.inferOut;
|
|
29
|
+
//# sourceMappingURL=authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/authorization.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAOjE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;MAK7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { UserIdSchema } from '../../../customer/schema/user.js';
|
|
3
|
+
import { BasePayloadSchema } from '../base.js';
|
|
4
|
+
export const AuthorizationStatus = {
|
|
5
|
+
SUCESS: 'success',
|
|
6
|
+
FAIL: 'fail',
|
|
7
|
+
};
|
|
8
|
+
const StatusSchema = type.enumerated(AuthorizationStatus.SUCESS, AuthorizationStatus.FAIL);
|
|
9
|
+
export const AuthorizationActivityPayloadSchema = BasePayloadSchema.and({
|
|
10
|
+
type: type("'authorization'"),
|
|
11
|
+
status: StatusSchema,
|
|
12
|
+
identity: UserIdSchema.optional(),
|
|
13
|
+
message: type('string'),
|
|
14
|
+
});
|