@go-mondo/identity-sdk 0.0.1 → 0.0.2-beta.3
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/.github/workflows/release.yaml +105 -0
- package/.release-please-manifest.json +3 -1
- package/.tsbuildinfo/cjs.json +1 -0
- package/.tsbuildinfo/esm.json +1 -0
- package/.vscode/settings.json +41 -0
- package/CHANGELOG.md +38 -0
- package/biome.json +1 -1
- package/dist/cjs/action/index.d.ts +2 -0
- package/dist/cjs/action/index.d.ts.map +1 -0
- package/dist/cjs/action/index.js +17 -0
- package/dist/cjs/action/schema/base.d.ts +21 -0
- package/dist/cjs/action/schema/base.d.ts.map +1 -0
- package/dist/cjs/action/schema/base.js +19 -0
- package/dist/cjs/action/schema/operations/set-password.d.ts +31 -0
- package/dist/cjs/action/schema/operations/set-password.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/set-password.js +18 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/sign-up-verification.js +15 -0
- package/dist/cjs/action/schema/operations/sign-up.d.ts +44 -0
- package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/sign-up.js +21 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/dist/cjs/action/schema/operations/user-attribute-verification.js +13 -0
- package/dist/cjs/action/schema/schema.d.ts +92 -0
- package/dist/cjs/action/schema/schema.d.ts.map +1 -0
- package/dist/cjs/action/schema/schema.js +40 -0
- package/dist/cjs/activity/index.d.ts +2 -0
- package/dist/cjs/activity/index.d.ts.map +1 -0
- package/dist/cjs/activity/index.js +17 -0
- package/dist/cjs/activity/schema/base.d.ts +54 -0
- package/dist/cjs/activity/schema/base.d.ts.map +1 -0
- package/dist/cjs/activity/schema/base.js +34 -0
- package/dist/cjs/activity/schema/schema.d.ts +156 -0
- package/dist/cjs/activity/schema/schema.d.ts.map +1 -0
- package/dist/cjs/activity/schema/schema.js +54 -0
- package/dist/cjs/activity/schema/types/authentication.d.ts +29 -0
- package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/authentication.js +16 -0
- package/dist/cjs/activity/schema/types/authorization.d.ts +29 -0
- package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/authorization.js +17 -0
- package/dist/cjs/activity/schema/types/note.d.ts +51 -0
- package/dist/cjs/activity/schema/types/note.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/note.js +17 -0
- package/dist/cjs/activity/schema/types/operation.d.ts +31 -0
- package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/operation.js +18 -0
- package/dist/cjs/activity/schema/types/unknown.d.ts +22 -0
- package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -0
- package/dist/cjs/activity/schema/types/unknown.js +9 -0
- package/dist/cjs/activity/schema/utils.d.ts +7 -0
- package/dist/cjs/activity/schema/utils.d.ts.map +1 -0
- package/dist/cjs/activity/schema/utils.js +16 -0
- package/dist/cjs/app/index.d.ts +2 -0
- package/dist/cjs/app/index.d.ts.map +1 -0
- package/dist/cjs/app/index.js +17 -0
- package/dist/cjs/app/schema/app.d.ts +58 -0
- package/dist/cjs/app/schema/app.d.ts.map +1 -0
- package/dist/cjs/app/schema/app.js +43 -0
- package/dist/cjs/app/schema/authorization.d.ts +37 -0
- package/dist/cjs/app/schema/authorization.d.ts.map +1 -0
- package/dist/cjs/app/schema/authorization.js +44 -0
- package/dist/cjs/app/schema/oauth.d.ts +30 -0
- package/dist/cjs/app/schema/oauth.d.ts.map +1 -0
- package/dist/cjs/app/schema/oauth.js +21 -0
- package/dist/cjs/app/schema/oidc.d.ts +28 -0
- package/dist/cjs/app/schema/oidc.d.ts.map +1 -0
- package/dist/cjs/app/schema/oidc.js +13 -0
- package/dist/cjs/app/schema/registration.d.ts +22 -0
- package/dist/cjs/app/schema/registration.d.ts.map +1 -0
- package/dist/cjs/app/schema/registration.js +16 -0
- package/dist/cjs/app/schema/saml.d.ts +28 -0
- package/dist/cjs/app/schema/saml.d.ts.map +1 -0
- package/dist/cjs/app/schema/saml.js +13 -0
- package/dist/cjs/app/schema/schema.d.ts +8 -0
- package/dist/cjs/app/schema/schema.d.ts.map +1 -0
- package/dist/cjs/app/schema/schema.js +23 -0
- package/dist/cjs/app/schema/utils.d.ts +11 -0
- package/dist/cjs/app/schema/utils.d.ts.map +1 -0
- package/dist/cjs/app/schema/utils.js +23 -0
- package/dist/cjs/association/index.d.ts +2 -0
- package/dist/cjs/association/index.d.ts.map +1 -0
- package/dist/cjs/association/index.js +17 -0
- package/dist/cjs/association/schema/association.d.ts +82 -0
- package/dist/cjs/association/schema/association.d.ts.map +1 -0
- package/dist/cjs/association/schema/association.js +26 -0
- package/dist/cjs/association/schema/schema.d.ts +2 -0
- package/dist/cjs/association/schema/schema.d.ts.map +1 -0
- package/dist/cjs/association/schema/schema.js +17 -0
- package/dist/cjs/authentication/index.d.ts +2 -0
- package/dist/cjs/authentication/index.d.ts.map +1 -0
- package/dist/cjs/authentication/index.js +17 -0
- package/dist/cjs/authentication/schema/factors.d.ts +48 -0
- package/dist/cjs/authentication/schema/factors.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/factors.js +28 -0
- package/dist/cjs/authentication/schema/factors.test.d.ts +2 -0
- package/dist/cjs/authentication/schema/factors.test.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/factors.test.js +123 -0
- package/dist/cjs/authentication/schema/provider.d.ts +27 -0
- package/dist/cjs/authentication/schema/provider.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/provider.js +24 -0
- package/dist/cjs/authentication/schema/schema.d.ts +6 -0
- package/dist/cjs/authentication/schema/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/schema.js +21 -0
- package/dist/cjs/authentication/schema/session.d.ts +59 -0
- package/dist/cjs/authentication/schema/session.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/session.js +46 -0
- package/dist/cjs/authentication/schema/settings.d.ts +46 -0
- package/dist/cjs/authentication/schema/settings.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/settings.js +16 -0
- package/dist/cjs/authentication/schema/strategy/base.d.ts +54 -0
- package/dist/cjs/authentication/schema/strategy/base.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/base.js +39 -0
- package/dist/cjs/authentication/schema/strategy/schema.d.ts +158 -0
- package/dist/cjs/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/schema.js +39 -0
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts +44 -0
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/email.js +20 -0
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts +99 -0
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/password.js +35 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/dist/cjs/authentication/schema/strategy/types/totp.js +48 -0
- package/dist/cjs/authorization/index.d.ts +6 -0
- package/dist/cjs/authorization/index.d.ts.map +1 -0
- package/dist/cjs/authorization/index.js +21 -0
- package/dist/cjs/authorization/permissions/resources.d.ts +20 -0
- package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -0
- package/dist/cjs/authorization/permissions/resources.js +57 -0
- package/dist/cjs/authorization/permissions/schema.d.ts +104 -0
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -0
- package/dist/cjs/authorization/permissions/schema.js +66 -0
- package/dist/cjs/authorization/roles/resources.d.ts +20 -0
- package/dist/cjs/authorization/roles/resources.d.ts.map +1 -0
- package/dist/cjs/authorization/roles/resources.js +57 -0
- package/dist/cjs/authorization/roles/schema.d.ts +113 -0
- package/dist/cjs/authorization/roles/schema.d.ts.map +1 -0
- package/dist/cjs/authorization/roles/schema.js +72 -0
- package/dist/cjs/authorization/utils.d.ts +11 -0
- package/dist/cjs/authorization/utils.d.ts.map +1 -0
- package/dist/cjs/authorization/utils.js +23 -0
- package/dist/cjs/common/errors/http.d.ts +17 -0
- package/dist/cjs/common/errors/http.d.ts.map +1 -0
- package/dist/cjs/common/errors/http.js +18 -0
- package/dist/cjs/common/errors/validation.d.ts +11 -0
- package/dist/cjs/common/errors/validation.d.ts.map +1 -0
- package/dist/cjs/common/errors/validation.js +12 -0
- package/dist/cjs/common/index.d.ts +6 -0
- package/dist/cjs/common/index.d.ts.map +1 -0
- package/dist/cjs/common/index.js +21 -0
- package/dist/cjs/common/resources/authorization.d.ts +2 -0
- package/dist/cjs/common/resources/authorization.d.ts.map +1 -0
- package/dist/cjs/common/resources/authorization.js +2 -0
- package/dist/cjs/common/resources/init.d.ts +16 -0
- package/dist/cjs/common/resources/init.d.ts.map +1 -0
- package/dist/cjs/common/resources/init.js +38 -0
- package/dist/cjs/common/resources/operations.d.ts +7 -0
- package/dist/cjs/common/resources/operations.d.ts.map +1 -0
- package/dist/cjs/common/resources/operations.js +90 -0
- package/dist/cjs/common/resources/utils.d.ts +18 -0
- package/dist/cjs/common/resources/utils.d.ts.map +1 -0
- package/dist/cjs/common/resources/utils.js +96 -0
- package/dist/cjs/common/schema/aggregate.d.ts +6 -0
- package/dist/cjs/common/schema/aggregate.d.ts.map +1 -0
- package/dist/cjs/common/schema/aggregate.js +8 -0
- package/dist/cjs/common/schema/collection.d.ts +18 -0
- package/dist/cjs/common/schema/collection.d.ts.map +1 -0
- package/dist/cjs/common/schema/collection.js +10 -0
- package/dist/cjs/common/schema/dates.d.ts +39 -0
- package/dist/cjs/common/schema/dates.d.ts.map +1 -0
- package/dist/cjs/common/schema/dates.js +34 -0
- package/dist/cjs/common/schema/dates.test.d.ts +2 -0
- package/dist/cjs/common/schema/dates.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/dates.test.js +33 -0
- package/dist/cjs/common/schema/jwt.d.ts +21 -0
- package/dist/cjs/common/schema/jwt.d.ts.map +1 -0
- package/dist/cjs/common/schema/jwt.js +24 -0
- package/dist/cjs/common/schema/metadata.d.ts +47 -0
- package/dist/cjs/common/schema/metadata.d.ts.map +1 -0
- package/dist/cjs/common/schema/metadata.js +88 -0
- package/dist/cjs/common/schema/metadata.test.d.ts +2 -0
- package/dist/cjs/common/schema/metadata.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/metadata.test.js +62 -0
- package/dist/cjs/common/schema/pagination.d.ts +6 -0
- package/dist/cjs/common/schema/pagination.d.ts.map +1 -0
- package/dist/cjs/common/schema/pagination.js +8 -0
- package/dist/cjs/common/schema/schema.d.ts +8 -0
- package/dist/cjs/common/schema/schema.d.ts.map +1 -0
- package/dist/cjs/common/schema/schema.js +23 -0
- package/dist/cjs/common/schema/sets.d.ts +3 -0
- package/dist/cjs/common/schema/sets.d.ts.map +1 -0
- package/dist/cjs/common/schema/sets.js +9 -0
- package/dist/cjs/customer/index.d.ts +4 -0
- package/dist/cjs/customer/index.d.ts.map +1 -0
- package/dist/cjs/customer/index.js +19 -0
- package/dist/cjs/customer/schema/organization.d.ts +54 -0
- package/dist/cjs/customer/schema/organization.d.ts.map +1 -0
- package/dist/cjs/customer/schema/organization.js +40 -0
- package/dist/cjs/customer/schema/schema.d.ts +4 -0
- package/dist/cjs/customer/schema/schema.d.ts.map +1 -0
- package/dist/cjs/customer/schema/schema.js +19 -0
- package/dist/cjs/customer/schema/utils.d.ts +11 -0
- package/dist/cjs/customer/schema/utils.d.ts.map +1 -0
- package/dist/cjs/customer/schema/utils.js +23 -0
- package/dist/cjs/customer/users/resources.d.ts +20 -0
- package/dist/cjs/customer/users/resources.d.ts.map +1 -0
- package/dist/cjs/customer/users/resources.js +57 -0
- package/dist/cjs/customer/users/schema.d.ts +151 -0
- package/dist/cjs/customer/users/schema.d.ts.map +1 -0
- package/dist/cjs/customer/users/schema.js +91 -0
- package/dist/cjs/customer/users/schema.test.d.ts +2 -0
- package/dist/cjs/customer/users/schema.test.d.ts.map +1 -0
- package/dist/cjs/customer/users/schema.test.js +57 -0
- package/dist/cjs/identity/index.d.ts +2 -0
- package/dist/cjs/identity/index.d.ts.map +1 -0
- package/dist/cjs/identity/index.js +17 -0
- package/dist/cjs/identity/schema/schema.d.ts +7 -0
- package/dist/cjs/identity/schema/schema.d.ts.map +1 -0
- package/dist/cjs/identity/schema/schema.js +9 -0
- package/dist/cjs/oauth/authorize/index.d.ts +2 -0
- package/dist/cjs/oauth/authorize/index.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/index.js +17 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +29 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +34 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +11 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/implicit.js +21 -0
- package/dist/cjs/oauth/authorize/schema/schema.d.ts +42 -0
- package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/schema.js +25 -0
- package/dist/cjs/oauth/common/schema.d.ts +62 -0
- package/dist/cjs/oauth/common/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/common/schema.js +54 -0
- package/dist/cjs/oauth/index.d.ts +4 -0
- package/dist/cjs/oauth/index.d.ts.map +1 -0
- package/dist/cjs/oauth/index.js +49 -0
- package/dist/cjs/oauth/token/index.d.ts +2 -0
- package/dist/cjs/oauth/token/index.d.ts.map +1 -0
- package/dist/cjs/oauth/token/index.js +17 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +10 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/authorization-code.js +20 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +21 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/client-credentials.js +25 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +9 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/grants/refresh-token.js +17 -0
- package/dist/cjs/oauth/token/schema/schema.d.ts +28 -0
- package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/token/schema/schema.js +27 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/workspace/index.d.ts +2 -0
- package/dist/cjs/workspace/index.d.ts.map +1 -0
- package/dist/cjs/workspace/index.js +17 -0
- package/dist/cjs/workspace/schema/authorization.d.ts +31 -0
- package/dist/cjs/workspace/schema/authorization.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/authorization.js +22 -0
- package/dist/cjs/workspace/schema/branding.d.ts +38 -0
- package/dist/cjs/workspace/schema/branding.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/branding.js +25 -0
- package/dist/cjs/workspace/schema/membership.d.ts +25 -0
- package/dist/cjs/workspace/schema/membership.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/membership.js +19 -0
- package/dist/cjs/workspace/schema/registration.d.ts +28 -0
- package/dist/cjs/workspace/schema/registration.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/registration.js +22 -0
- package/dist/cjs/workspace/schema/schema.d.ts +10 -0
- package/dist/cjs/workspace/schema/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/schema.js +25 -0
- package/dist/cjs/workspace/schema/settings.d.ts +23 -0
- package/dist/cjs/workspace/schema/settings.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/settings.js +15 -0
- package/dist/cjs/workspace/schema/tenant.d.ts +57 -0
- package/dist/cjs/workspace/schema/tenant.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/tenant.js +26 -0
- package/dist/cjs/workspace/schema/user-notification.d.ts +62 -0
- package/dist/cjs/workspace/schema/user-notification.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/user-notification.js +44 -0
- package/dist/cjs/workspace/schema/user-preferences.d.ts +26 -0
- package/dist/cjs/workspace/schema/user-preferences.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/user-preferences.js +19 -0
- package/dist/cjs/workspace/schema/utils.d.ts +15 -0
- package/dist/cjs/workspace/schema/utils.d.ts.map +1 -0
- package/dist/cjs/workspace/schema/utils.js +64 -0
- package/dist/esm/action/index.d.ts +2 -0
- package/dist/esm/action/index.d.ts.map +1 -0
- package/dist/esm/action/index.js +1 -0
- package/dist/esm/action/schema/base.d.ts +21 -0
- package/dist/esm/action/schema/base.d.ts.map +1 -0
- package/dist/esm/action/schema/base.js +16 -0
- package/dist/esm/action/schema/operations/set-password.d.ts +31 -0
- package/dist/esm/action/schema/operations/set-password.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/set-password.js +15 -0
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +22 -0
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/sign-up-verification.js +12 -0
- package/dist/esm/action/schema/operations/sign-up.d.ts +44 -0
- package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/sign-up.js +18 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +20 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
- package/dist/esm/action/schema/operations/user-attribute-verification.js +10 -0
- package/dist/esm/action/schema/schema.d.ts +92 -0
- package/dist/esm/action/schema/schema.d.ts.map +1 -0
- package/dist/esm/action/schema/schema.js +21 -0
- package/dist/esm/activity/index.d.ts +2 -0
- package/dist/esm/activity/index.d.ts.map +1 -0
- package/dist/esm/activity/index.js +1 -0
- package/dist/esm/activity/schema/base.d.ts +54 -0
- package/dist/esm/activity/schema/base.d.ts.map +1 -0
- package/dist/esm/activity/schema/base.js +31 -0
- package/dist/esm/activity/schema/schema.d.ts +156 -0
- package/dist/esm/activity/schema/schema.d.ts.map +1 -0
- package/dist/esm/activity/schema/schema.js +33 -0
- package/dist/esm/activity/schema/types/authentication.d.ts +29 -0
- package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/authentication.js +13 -0
- package/dist/esm/activity/schema/types/authorization.d.ts +29 -0
- package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/authorization.js +14 -0
- package/dist/esm/activity/schema/types/note.d.ts +51 -0
- package/dist/esm/activity/schema/types/note.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/note.js +14 -0
- package/dist/esm/activity/schema/types/operation.d.ts +31 -0
- package/dist/esm/activity/schema/types/operation.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/operation.js +15 -0
- package/dist/esm/activity/schema/types/unknown.d.ts +22 -0
- package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -0
- package/dist/esm/activity/schema/types/unknown.js +6 -0
- package/dist/esm/activity/schema/utils.d.ts +7 -0
- package/dist/esm/activity/schema/utils.d.ts.map +1 -0
- package/dist/esm/activity/schema/utils.js +9 -0
- package/dist/esm/app/index.d.ts +2 -0
- package/dist/esm/app/index.d.ts.map +1 -0
- package/dist/esm/app/index.js +1 -0
- package/dist/esm/app/schema/app.d.ts +58 -0
- package/dist/esm/app/schema/app.d.ts.map +1 -0
- package/dist/esm/app/schema/app.js +40 -0
- package/dist/esm/app/schema/authorization.d.ts +37 -0
- package/dist/esm/app/schema/authorization.d.ts.map +1 -0
- package/dist/esm/app/schema/authorization.js +41 -0
- package/dist/esm/app/schema/oauth.d.ts +30 -0
- package/dist/esm/app/schema/oauth.d.ts.map +1 -0
- package/dist/esm/app/schema/oauth.js +18 -0
- package/dist/esm/app/schema/oidc.d.ts +28 -0
- package/dist/esm/app/schema/oidc.d.ts.map +1 -0
- package/dist/esm/app/schema/oidc.js +10 -0
- package/dist/esm/app/schema/registration.d.ts +22 -0
- package/dist/esm/app/schema/registration.d.ts.map +1 -0
- package/dist/esm/app/schema/registration.js +13 -0
- package/dist/esm/app/schema/saml.d.ts +28 -0
- package/dist/esm/app/schema/saml.d.ts.map +1 -0
- package/dist/esm/app/schema/saml.js +10 -0
- package/dist/esm/app/schema/schema.d.ts +8 -0
- package/dist/esm/app/schema/schema.d.ts.map +1 -0
- package/dist/esm/app/schema/schema.js +7 -0
- package/dist/esm/app/schema/utils.d.ts +11 -0
- package/dist/esm/app/schema/utils.d.ts.map +1 -0
- package/dist/esm/app/schema/utils.js +15 -0
- package/dist/esm/association/index.d.ts +2 -0
- package/dist/esm/association/index.d.ts.map +1 -0
- package/dist/esm/association/index.js +1 -0
- package/dist/esm/association/schema/association.d.ts +82 -0
- package/dist/esm/association/schema/association.d.ts.map +1 -0
- package/dist/esm/association/schema/association.js +23 -0
- package/dist/esm/association/schema/schema.d.ts +2 -0
- package/dist/esm/association/schema/schema.d.ts.map +1 -0
- package/dist/esm/association/schema/schema.js +1 -0
- package/dist/esm/authentication/index.d.ts +2 -0
- package/dist/esm/authentication/index.d.ts.map +1 -0
- package/dist/esm/authentication/index.js +1 -0
- package/dist/esm/authentication/schema/factors.d.ts +48 -0
- package/dist/esm/authentication/schema/factors.d.ts.map +1 -0
- package/dist/esm/authentication/schema/factors.js +25 -0
- package/dist/esm/authentication/schema/factors.test.d.ts +2 -0
- package/dist/esm/authentication/schema/factors.test.d.ts.map +1 -0
- package/dist/esm/authentication/schema/factors.test.js +121 -0
- package/dist/esm/authentication/schema/provider.d.ts +27 -0
- package/dist/esm/authentication/schema/provider.d.ts.map +1 -0
- package/dist/esm/authentication/schema/provider.js +21 -0
- package/dist/esm/authentication/schema/schema.d.ts +6 -0
- package/dist/esm/authentication/schema/schema.d.ts.map +1 -0
- package/dist/esm/authentication/schema/schema.js +5 -0
- package/dist/esm/authentication/schema/session.d.ts +59 -0
- package/dist/esm/authentication/schema/session.d.ts.map +1 -0
- package/dist/esm/authentication/schema/session.js +43 -0
- package/dist/esm/authentication/schema/settings.d.ts +46 -0
- package/dist/esm/authentication/schema/settings.d.ts.map +1 -0
- package/dist/esm/authentication/schema/settings.js +13 -0
- package/dist/esm/authentication/schema/strategy/base.d.ts +54 -0
- package/dist/esm/authentication/schema/strategy/base.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/base.js +36 -0
- package/dist/esm/authentication/schema/strategy/schema.d.ts +158 -0
- package/dist/esm/authentication/schema/strategy/schema.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/schema.js +13 -0
- package/dist/esm/authentication/schema/strategy/types/email.d.ts +44 -0
- package/dist/esm/authentication/schema/strategy/types/email.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/email.js +17 -0
- package/dist/esm/authentication/schema/strategy/types/password.d.ts +99 -0
- package/dist/esm/authentication/schema/strategy/types/password.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/password.js +32 -0
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts +91 -0
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts.map +1 -0
- package/dist/esm/authentication/schema/strategy/types/totp.js +45 -0
- package/dist/esm/authorization/index.d.ts +6 -0
- package/dist/esm/authorization/index.d.ts.map +1 -0
- package/dist/esm/authorization/index.js +5 -0
- package/dist/esm/authorization/permissions/resources.d.ts +20 -0
- package/dist/esm/authorization/permissions/resources.d.ts.map +1 -0
- package/dist/esm/authorization/permissions/resources.js +48 -0
- package/dist/esm/authorization/permissions/schema.d.ts +104 -0
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -0
- package/dist/esm/authorization/permissions/schema.js +63 -0
- package/dist/esm/authorization/roles/resources.d.ts +20 -0
- package/dist/esm/authorization/roles/resources.d.ts.map +1 -0
- package/dist/esm/authorization/roles/resources.js +48 -0
- package/dist/esm/authorization/roles/schema.d.ts +113 -0
- package/dist/esm/authorization/roles/schema.d.ts.map +1 -0
- package/dist/esm/authorization/roles/schema.js +69 -0
- package/dist/esm/authorization/utils.d.ts +11 -0
- package/dist/esm/authorization/utils.d.ts.map +1 -0
- package/dist/esm/authorization/utils.js +15 -0
- package/dist/esm/common/errors/http.d.ts +17 -0
- package/dist/esm/common/errors/http.d.ts.map +1 -0
- package/dist/esm/common/errors/http.js +14 -0
- package/dist/esm/common/errors/validation.d.ts +11 -0
- package/dist/esm/common/errors/validation.d.ts.map +1 -0
- package/dist/esm/common/errors/validation.js +8 -0
- package/dist/esm/common/index.d.ts +6 -0
- package/dist/esm/common/index.d.ts.map +1 -0
- package/dist/esm/common/index.js +5 -0
- package/dist/esm/common/resources/authorization.d.ts +2 -0
- package/dist/esm/common/resources/authorization.d.ts.map +1 -0
- package/dist/esm/common/resources/authorization.js +1 -0
- package/dist/esm/common/resources/init.d.ts +16 -0
- package/dist/esm/common/resources/init.d.ts.map +1 -0
- package/dist/esm/common/resources/init.js +34 -0
- package/dist/esm/common/resources/operations.d.ts +7 -0
- package/dist/esm/common/resources/operations.d.ts.map +1 -0
- package/dist/esm/common/resources/operations.js +83 -0
- package/dist/esm/common/resources/utils.d.ts +18 -0
- package/dist/esm/common/resources/utils.d.ts.map +1 -0
- package/dist/esm/common/resources/utils.js +86 -0
- package/dist/esm/common/schema/aggregate.d.ts +6 -0
- package/dist/esm/common/schema/aggregate.d.ts.map +1 -0
- package/dist/esm/common/schema/aggregate.js +5 -0
- package/dist/esm/common/schema/collection.d.ts +18 -0
- package/dist/esm/common/schema/collection.d.ts.map +1 -0
- package/dist/esm/common/schema/collection.js +7 -0
- package/dist/esm/common/schema/dates.d.ts +39 -0
- package/dist/esm/common/schema/dates.d.ts.map +1 -0
- package/dist/esm/common/schema/dates.js +31 -0
- package/dist/esm/common/schema/dates.test.d.ts +2 -0
- package/dist/esm/common/schema/dates.test.d.ts.map +1 -0
- package/dist/esm/common/schema/dates.test.js +31 -0
- package/dist/esm/common/schema/jwt.d.ts +21 -0
- package/dist/esm/common/schema/jwt.d.ts.map +1 -0
- package/dist/esm/common/schema/jwt.js +21 -0
- package/dist/esm/common/schema/metadata.d.ts +47 -0
- package/dist/esm/common/schema/metadata.d.ts.map +1 -0
- package/dist/esm/common/schema/metadata.js +83 -0
- package/dist/esm/common/schema/metadata.test.d.ts +2 -0
- package/dist/esm/common/schema/metadata.test.d.ts.map +1 -0
- package/dist/esm/common/schema/metadata.test.js +60 -0
- package/dist/esm/common/schema/pagination.d.ts +6 -0
- package/dist/esm/common/schema/pagination.d.ts.map +1 -0
- package/dist/esm/common/schema/pagination.js +5 -0
- package/dist/esm/common/schema/schema.d.ts +8 -0
- package/dist/esm/common/schema/schema.d.ts.map +1 -0
- package/dist/esm/common/schema/schema.js +7 -0
- package/dist/esm/common/schema/sets.d.ts +3 -0
- package/dist/esm/common/schema/sets.d.ts.map +1 -0
- package/dist/esm/common/schema/sets.js +6 -0
- package/dist/esm/customer/index.d.ts +4 -0
- package/dist/esm/customer/index.d.ts.map +1 -0
- package/dist/esm/customer/index.js +3 -0
- package/dist/esm/customer/schema/organization.d.ts +54 -0
- package/dist/esm/customer/schema/organization.d.ts.map +1 -0
- package/dist/esm/customer/schema/organization.js +37 -0
- package/dist/esm/customer/schema/schema.d.ts +4 -0
- package/dist/esm/customer/schema/schema.d.ts.map +1 -0
- package/dist/esm/customer/schema/schema.js +3 -0
- package/dist/esm/customer/schema/utils.d.ts +11 -0
- package/dist/esm/customer/schema/utils.d.ts.map +1 -0
- package/dist/esm/customer/schema/utils.js +15 -0
- package/dist/esm/customer/users/resources.d.ts +20 -0
- package/dist/esm/customer/users/resources.d.ts.map +1 -0
- package/dist/esm/customer/users/resources.js +48 -0
- package/dist/esm/customer/users/schema.d.ts +151 -0
- package/dist/esm/customer/users/schema.d.ts.map +1 -0
- package/dist/esm/customer/users/schema.js +88 -0
- package/dist/esm/customer/users/schema.test.d.ts +2 -0
- package/dist/esm/customer/users/schema.test.d.ts.map +1 -0
- package/dist/esm/customer/users/schema.test.js +55 -0
- package/dist/esm/identity/index.d.ts +2 -0
- package/dist/esm/identity/index.d.ts.map +1 -0
- package/dist/esm/identity/index.js +1 -0
- package/dist/esm/identity/schema/schema.d.ts +7 -0
- package/dist/esm/identity/schema/schema.d.ts.map +1 -0
- package/dist/esm/identity/schema/schema.js +6 -0
- package/dist/esm/oauth/authorize/index.d.ts +2 -0
- package/dist/esm/oauth/authorize/index.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/index.js +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +29 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +31 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +11 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/implicit.js +18 -0
- package/dist/esm/oauth/authorize/schema/schema.d.ts +42 -0
- package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/schema.js +8 -0
- package/dist/esm/oauth/common/schema.d.ts +62 -0
- package/dist/esm/oauth/common/schema.d.ts.map +1 -0
- package/dist/esm/oauth/common/schema.js +51 -0
- package/dist/esm/oauth/index.d.ts +4 -0
- package/dist/esm/oauth/index.d.ts.map +1 -0
- package/dist/esm/oauth/index.js +3 -0
- package/dist/esm/oauth/token/index.d.ts +2 -0
- package/dist/esm/oauth/token/index.d.ts.map +1 -0
- package/dist/esm/oauth/token/index.js +1 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +10 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/authorization-code.js +17 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +21 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/client-credentials.js +22 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +9 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/grants/refresh-token.js +14 -0
- package/dist/esm/oauth/token/schema/schema.d.ts +28 -0
- package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -0
- package/dist/esm/oauth/token/schema/schema.js +10 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/workspace/index.d.ts +2 -0
- package/dist/esm/workspace/index.d.ts.map +1 -0
- package/dist/esm/workspace/index.js +1 -0
- package/dist/esm/workspace/schema/authorization.d.ts +31 -0
- package/dist/esm/workspace/schema/authorization.d.ts.map +1 -0
- package/dist/esm/workspace/schema/authorization.js +19 -0
- package/dist/esm/workspace/schema/branding.d.ts +38 -0
- package/dist/esm/workspace/schema/branding.d.ts.map +1 -0
- package/dist/esm/workspace/schema/branding.js +22 -0
- package/dist/esm/workspace/schema/membership.d.ts +25 -0
- package/dist/esm/workspace/schema/membership.d.ts.map +1 -0
- package/dist/esm/workspace/schema/membership.js +16 -0
- package/dist/esm/workspace/schema/registration.d.ts +28 -0
- package/dist/esm/workspace/schema/registration.d.ts.map +1 -0
- package/dist/esm/workspace/schema/registration.js +19 -0
- package/dist/esm/workspace/schema/schema.d.ts +10 -0
- package/dist/esm/workspace/schema/schema.d.ts.map +1 -0
- package/dist/esm/workspace/schema/schema.js +9 -0
- package/dist/esm/workspace/schema/settings.d.ts +23 -0
- package/dist/esm/workspace/schema/settings.d.ts.map +1 -0
- package/dist/esm/workspace/schema/settings.js +12 -0
- package/dist/esm/workspace/schema/tenant.d.ts +57 -0
- package/dist/esm/workspace/schema/tenant.d.ts.map +1 -0
- package/dist/esm/workspace/schema/tenant.js +23 -0
- package/dist/esm/workspace/schema/user-notification.d.ts +62 -0
- package/dist/esm/workspace/schema/user-notification.d.ts.map +1 -0
- package/dist/esm/workspace/schema/user-notification.js +41 -0
- package/dist/esm/workspace/schema/user-preferences.d.ts +26 -0
- package/dist/esm/workspace/schema/user-preferences.d.ts.map +1 -0
- package/dist/esm/workspace/schema/user-preferences.js +16 -0
- package/dist/esm/workspace/schema/utils.d.ts +15 -0
- package/dist/esm/workspace/schema/utils.d.ts.map +1 -0
- package/dist/esm/workspace/schema/utils.js +22 -0
- package/package.json +50 -55
- package/release-please-config.json +13 -3
- package/tsconfig.esm.json +1 -1
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const SignUpActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
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/out/methods/object.js").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/out/attributes.js").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/out/attributes.js").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,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignUpActionRequestSchema = exports.SignUpActionPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const app_js_1 = require("../../../app/schema/app.js");
|
|
6
|
+
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
7
|
+
const base_js_1 = require("../base.js");
|
|
8
|
+
exports.SignUpActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
9
|
+
operation: (0, arktype_1.type)("'sign-up'"),
|
|
10
|
+
app: app_js_1.AppIdSchema.optional(),
|
|
11
|
+
user: schema_js_1.UserNamePropertiesSchema,
|
|
12
|
+
}).onUndeclaredKey('delete');
|
|
13
|
+
const EmailSignUpActionRequestSchema = schema_js_1.UserNamePropertiesSchema.and({
|
|
14
|
+
email: schema_js_1.RequiredEmailSchema,
|
|
15
|
+
phoneNumber: schema_js_1.RequiredPhoneNumberSchema.optional(),
|
|
16
|
+
}).and(schema_js_1.InsertUserPayloadSchema.pick('id'));
|
|
17
|
+
const PhoneNumberSignUpActionRequestSchema = schema_js_1.UserNamePropertiesSchema.and({
|
|
18
|
+
phoneNumber: schema_js_1.RequiredPhoneNumberSchema,
|
|
19
|
+
email: schema_js_1.RequiredEmailSchema.optional(),
|
|
20
|
+
}).and(schema_js_1.InsertUserPayloadSchema.pick('id'));
|
|
21
|
+
exports.SignUpActionRequestSchema = EmailSignUpActionRequestSchema.or(PhoneNumberSignUpActionRequestSchema);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const UserAttributeVerificationActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
attempt: number;
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
8
|
+
metadata?: ((In: {
|
|
9
|
+
[x: string]: string | number | boolean;
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
11
|
+
[x: string]: string | number | boolean;
|
|
12
|
+
} | undefined>) | undefined;
|
|
13
|
+
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/out/methods/object.js").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,gEAE9B,CAAC;AAC5B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserAttributeVerificationActionRequestSchema = exports.UserAttributeVerificationActionPayloadSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
|
+
const schema_js_2 = require("../../../identity/schema/schema.js");
|
|
7
|
+
const base_js_1 = require("../base.js");
|
|
8
|
+
exports.UserAttributeVerificationActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
9
|
+
operation: (0, arktype_1.type)("'user-attribute-verification'"),
|
|
10
|
+
user: schema_js_1.UserIdSchema,
|
|
11
|
+
attribute: schema_js_2.IdentityIdentifierSchema,
|
|
12
|
+
}).onUndeclaredKey('delete');
|
|
13
|
+
exports.UserAttributeVerificationActionRequestSchema = (0, arktype_1.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/out/methods/object.js").ObjectType<{
|
|
12
|
+
id: string;
|
|
13
|
+
attempt: number;
|
|
14
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
15
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
16
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
17
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
18
|
+
metadata?: ((In: {
|
|
19
|
+
[x: string]: string | number | boolean;
|
|
20
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Default<number, 8>;
|
|
28
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, 36>;
|
|
29
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, 1>;
|
|
30
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, 1>;
|
|
31
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, 1>;
|
|
32
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, 1>;
|
|
33
|
+
};
|
|
34
|
+
} | {
|
|
35
|
+
id: string;
|
|
36
|
+
attempt: number;
|
|
37
|
+
expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
38
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
39
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
40
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
41
|
+
metadata?: ((In: {
|
|
42
|
+
[x: string]: string | number | boolean;
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
44
|
+
[x: string]: string | number | boolean;
|
|
45
|
+
} | undefined>) | undefined;
|
|
46
|
+
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/out/attributes.js").Out<string>;
|
|
53
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
54
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
55
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
56
|
+
metadata?: ((In: {
|
|
57
|
+
[x: string]: string | number | boolean;
|
|
58
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Out<string>;
|
|
74
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
75
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
76
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
77
|
+
metadata?: ((In: {
|
|
78
|
+
[x: string]: string | number | boolean;
|
|
79
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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,40 @@
|
|
|
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
|
+
exports.ActionIdSchema = exports.ActionIdPropertySchema = exports.ActionPayloadSchema = exports.ActionOperation = void 0;
|
|
18
|
+
const set_password_js_1 = require("./operations/set-password.js");
|
|
19
|
+
const sign_up_verification_js_1 = require("./operations/sign-up-verification.js");
|
|
20
|
+
const sign_up_js_1 = require("./operations/sign-up.js");
|
|
21
|
+
const user_attribute_verification_js_1 = require("./operations/user-attribute-verification.js");
|
|
22
|
+
exports.ActionOperation = {
|
|
23
|
+
SET_PASSWORD: 'set-password',
|
|
24
|
+
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
25
|
+
SIGN_UP: 'sign-up',
|
|
26
|
+
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Union
|
|
30
|
+
*/
|
|
31
|
+
exports.ActionPayloadSchema = set_password_js_1.SetPasswordActionPayloadSchema.or(sign_up_verification_js_1.SignUpVerificationActionPayloadSchema)
|
|
32
|
+
.or(sign_up_js_1.SignUpActionPayloadSchema)
|
|
33
|
+
.or(user_attribute_verification_js_1.UserAttributeVerificationActionPayloadSchema);
|
|
34
|
+
var base_js_1 = require("./base.js");
|
|
35
|
+
Object.defineProperty(exports, "ActionIdPropertySchema", { enumerable: true, get: function () { return base_js_1.ActionIdPropertySchema; } });
|
|
36
|
+
Object.defineProperty(exports, "ActionIdSchema", { enumerable: true, get: function () { return base_js_1.ActionIdSchema; } });
|
|
37
|
+
__exportStar(require("./operations/set-password.js"), exports);
|
|
38
|
+
__exportStar(require("./operations/sign-up-verification.js"), exports);
|
|
39
|
+
__exportStar(require("./operations/sign-up.js"), exports);
|
|
40
|
+
__exportStar(require("./operations/user-attribute-verification.js"), exports);
|
|
@@ -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,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,54 @@
|
|
|
1
|
+
export declare const ActivityIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
2
|
+
export type ActivityId = typeof ActivityIdSchema.inferOut;
|
|
3
|
+
export declare const ActivityIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
4
|
+
id: string;
|
|
5
|
+
}, {}>;
|
|
6
|
+
export type ActivityIdProperty = typeof ActivityIdPropertySchema.inferOut;
|
|
7
|
+
export declare const SourceSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
8
|
+
export declare const PerformedBySchema: import("arktype/out/methods/object.js").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/out/methods/object.js").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/out/attributes.js").Out<string>;
|
|
22
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
23
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
24
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
25
|
+
metadata?: ((In: {
|
|
26
|
+
[x: string]: string | number | boolean;
|
|
27
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
28
|
+
[x: string]: string | number | boolean;
|
|
29
|
+
} | undefined>) | undefined;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export declare const BaseInsertPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
32
|
+
id: import("arktype/out/attributes.js").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/out/attributes.js").Out<{
|
|
40
|
+
[x: string]: string | number | boolean;
|
|
41
|
+
} | null>) | undefined;
|
|
42
|
+
}, {}>;
|
|
43
|
+
export declare const BaseUpdatePayloadSchema: import("arktype/out/methods/object.js").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/out/attributes.js").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,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,YAAY,gEAAiB,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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseUpdatePayloadSchema = exports.BaseInsertPayloadSchema = exports.BasePayloadSchema = exports.PerformedBySchema = exports.SourceSchema = exports.ActivityIdPropertySchema = exports.ActivityIdSchema = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const index_js_1 = require("../../common/index.js");
|
|
6
|
+
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
+
const schema_js_1 = require("./schema.js");
|
|
8
|
+
const utils_js_1 = require("./utils.js");
|
|
9
|
+
exports.ActivityIdSchema = arktype_1.type.string;
|
|
10
|
+
exports.ActivityIdPropertySchema = (0, arktype_1.type)({
|
|
11
|
+
id: exports.ActivityIdSchema,
|
|
12
|
+
});
|
|
13
|
+
exports.SourceSchema = (0, arktype_1.type)('string');
|
|
14
|
+
exports.PerformedBySchema = (0, arktype_1.type)({
|
|
15
|
+
type: arktype_1.type.enumerated(schema_js_1.PerformerType.SYSTEM, schema_js_1.PerformerType.GUEST, schema_js_1.PerformerType.IDENTITY, schema_js_1.PerformerType.AUTOMATION, schema_js_1.PerformerType.INTEGRATION),
|
|
16
|
+
identifier: (0, arktype_1.type)('string'),
|
|
17
|
+
});
|
|
18
|
+
exports.BasePayloadSchema = (0, arktype_1.type)({
|
|
19
|
+
id: exports.ActivityIdSchema,
|
|
20
|
+
performedBy: exports.PerformedBySchema,
|
|
21
|
+
source: exports.SourceSchema,
|
|
22
|
+
isMutateable: (0, arktype_1.type)('boolean'),
|
|
23
|
+
createdAt: index_js_1.RequiredDatePayloadSchema,
|
|
24
|
+
updatedAt: index_js_1.RequiredDatePayloadSchema,
|
|
25
|
+
'deletedAt?': index_js_1.OptionalDatePayloadSchema,
|
|
26
|
+
'deactivatedAt?': index_js_1.OptionalDatePayloadSchema,
|
|
27
|
+
}).and(metadata_js_1.MetadataPayloadPropertySchema);
|
|
28
|
+
exports.BaseInsertPayloadSchema = (0, arktype_1.type)({
|
|
29
|
+
id: exports.ActivityIdSchema.default(() => (0, utils_js_1.generateActivityId)()),
|
|
30
|
+
performedBy: exports.PerformedBySchema.optional(),
|
|
31
|
+
}).and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
|
|
32
|
+
exports.BaseUpdatePayloadSchema = (0, arktype_1.type)({
|
|
33
|
+
performedBy: exports.PerformedBySchema.optional(),
|
|
34
|
+
}).and(metadata_js_1.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/out/methods/object.js").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/out/attributes.js").Out<string>;
|
|
26
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
27
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
28
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
29
|
+
metadata?: ((In: {
|
|
30
|
+
[x: string]: string | number | boolean;
|
|
31
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Out<string>;
|
|
46
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
47
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
48
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
49
|
+
metadata?: ((In: {
|
|
50
|
+
[x: string]: string | number | boolean;
|
|
51
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Out<string>;
|
|
67
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
68
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
69
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
70
|
+
metadata?: ((In: {
|
|
71
|
+
[x: string]: string | number | boolean;
|
|
72
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Out<string>;
|
|
86
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
87
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
88
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
89
|
+
metadata?: ((In: {
|
|
90
|
+
[x: string]: string | number | boolean;
|
|
91
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/attributes.js").Out<string>;
|
|
107
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
108
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
109
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
110
|
+
metadata?: ((In: {
|
|
111
|
+
[x: string]: string | number | boolean;
|
|
112
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").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/out/methods/object.js").ObjectType<{
|
|
120
|
+
id: import("arktype/out/attributes.js").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/out/attributes.js").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/out/methods/object.js").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/out/attributes.js").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,54 @@
|
|
|
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
|
+
exports.SourceSchema = exports.PerformedBySchema = exports.ActivityIdSchema = exports.ActivityIdPropertySchema = exports.UpdateActivityPayloadSchema = exports.InsertActivityPayloadSchema = exports.ActivityPayloadSchema = exports.PerformerType = exports.ActivityType = void 0;
|
|
18
|
+
const authentication_js_1 = require("./types/authentication.js");
|
|
19
|
+
const authorization_js_1 = require("./types/authorization.js");
|
|
20
|
+
const note_js_1 = require("./types/note.js");
|
|
21
|
+
const operation_js_1 = require("./types/operation.js");
|
|
22
|
+
const unknown_js_1 = require("./types/unknown.js");
|
|
23
|
+
exports.ActivityType = {
|
|
24
|
+
UNKNOWN: 'unknown',
|
|
25
|
+
NOTE: 'note',
|
|
26
|
+
OPERATION: 'operation',
|
|
27
|
+
AUTHORIZATION: 'authorization',
|
|
28
|
+
AUTHENTICATION: 'authentication',
|
|
29
|
+
};
|
|
30
|
+
exports.PerformerType = {
|
|
31
|
+
SYSTEM: 'system',
|
|
32
|
+
GUEST: 'guest',
|
|
33
|
+
IDENTITY: 'identity',
|
|
34
|
+
AUTOMATION: 'automation',
|
|
35
|
+
INTEGRATION: 'integration',
|
|
36
|
+
};
|
|
37
|
+
exports.ActivityPayloadSchema = note_js_1.NoteActivityPayloadSchema.or(authentication_js_1.AuthenticationActivityPayloadSchema)
|
|
38
|
+
.or(authorization_js_1.AuthorizationActivityPayloadSchema)
|
|
39
|
+
.or(operation_js_1.OperationActivityPayloadSchema)
|
|
40
|
+
.or(unknown_js_1.UnknownActivityPayloadSchema);
|
|
41
|
+
exports.InsertActivityPayloadSchema = note_js_1.InsertNoteActivityPayloadSchema;
|
|
42
|
+
exports.UpdateActivityPayloadSchema = note_js_1.UpdateNoteActivityPayloadSchema;
|
|
43
|
+
var base_js_1 = require("./base.js");
|
|
44
|
+
Object.defineProperty(exports, "ActivityIdPropertySchema", { enumerable: true, get: function () { return base_js_1.ActivityIdPropertySchema; } });
|
|
45
|
+
Object.defineProperty(exports, "ActivityIdSchema", { enumerable: true, get: function () { return base_js_1.ActivityIdSchema; } });
|
|
46
|
+
Object.defineProperty(exports, "PerformedBySchema", { enumerable: true, get: function () { return base_js_1.PerformedBySchema; } });
|
|
47
|
+
Object.defineProperty(exports, "SourceSchema", { enumerable: true, get: function () { return base_js_1.SourceSchema; } });
|
|
48
|
+
__exportStar(require("./schema.js"), exports);
|
|
49
|
+
__exportStar(require("./types/authentication.js"), exports);
|
|
50
|
+
__exportStar(require("./types/authorization.js"), exports);
|
|
51
|
+
__exportStar(require("./types/note.js"), exports);
|
|
52
|
+
__exportStar(require("./types/operation.js"), exports);
|
|
53
|
+
__exportStar(require("./types/unknown.js"), exports);
|
|
54
|
+
__exportStar(require("./utils.js"), exports);
|
|
@@ -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/out/methods/string.js").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthenticationActivityPayloadSchema: import("arktype/out/methods/object.js").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/out/attributes.js").Out<string>;
|
|
16
|
+
updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
|
|
17
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
18
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
|
|
19
|
+
metadata?: ((In: {
|
|
20
|
+
[x: string]: string | number | boolean;
|
|
21
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
|
|
22
|
+
[x: string]: string | number | boolean;
|
|
23
|
+
} | 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,4EAGtC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;MAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationActivityPayloadSchema = exports.AuthenticationStatusSchema = exports.AuthenticationStatus = void 0;
|
|
4
|
+
const arktype_1 = require("arktype");
|
|
5
|
+
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
|
+
const base_js_1 = require("../base.js");
|
|
7
|
+
exports.AuthenticationStatus = {
|
|
8
|
+
SUCESS: 'success',
|
|
9
|
+
FAIL: 'fail',
|
|
10
|
+
};
|
|
11
|
+
exports.AuthenticationStatusSchema = arktype_1.type.enumerated(exports.AuthenticationStatus.SUCESS, exports.AuthenticationStatus.FAIL);
|
|
12
|
+
exports.AuthenticationActivityPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
13
|
+
type: (0, arktype_1.type)("'authentication'"),
|
|
14
|
+
status: exports.AuthenticationStatusSchema,
|
|
15
|
+
identity: schema_js_1.UserIdSchema,
|
|
16
|
+
});
|