@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,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/users/schema.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/users/schema.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
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const NoteActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
performedBy: {
|
|
4
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
5
|
+
identifier: string;
|
|
6
|
+
};
|
|
7
|
+
source: string;
|
|
8
|
+
isMutateable: boolean;
|
|
9
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
10
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
11
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
12
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
13
|
+
metadata?: ((In: {
|
|
14
|
+
[x: string]: string | number | boolean;
|
|
15
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
16
|
+
[x: string]: string | number | boolean;
|
|
17
|
+
} | undefined>) | undefined;
|
|
18
|
+
type: "note";
|
|
19
|
+
message: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export type NoteActivityPayload = typeof NoteActivityPayloadSchema.inferOut;
|
|
22
|
+
export declare const InsertNoteActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
23
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
24
|
+
performedBy?: {
|
|
25
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
26
|
+
identifier: string;
|
|
27
|
+
} | undefined;
|
|
28
|
+
metadata?: ((In: {
|
|
29
|
+
[x: string]: string | number | boolean;
|
|
30
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
31
|
+
[x: string]: string | number | boolean;
|
|
32
|
+
} | null>) | undefined;
|
|
33
|
+
type: "note";
|
|
34
|
+
message: string;
|
|
35
|
+
}, {}>;
|
|
36
|
+
export type InsertNoteActivityPayload = typeof InsertNoteActivityPayloadSchema.inferOut;
|
|
37
|
+
export declare const UpdateNoteActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
38
|
+
performedBy?: {
|
|
39
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
40
|
+
identifier: string;
|
|
41
|
+
} | undefined;
|
|
42
|
+
metadata?: ((In: {
|
|
43
|
+
[x: string]: string | number | boolean;
|
|
44
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
45
|
+
[x: string]: string | number | boolean;
|
|
46
|
+
} | null>) | undefined;
|
|
47
|
+
type: "note";
|
|
48
|
+
message?: string | undefined;
|
|
49
|
+
}, {}>;
|
|
50
|
+
export type UpdateNoteActivityPayload = typeof UpdateNoteActivityPayloadSchema.inferOut;
|
|
51
|
+
//# sourceMappingURL=note.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/note.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;MAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC;AAElD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { BaseInsertPayloadSchema, BasePayloadSchema, BaseUpdatePayloadSchema, } from '../base.js';
|
|
3
|
+
export const NoteActivityPayloadSchema = BasePayloadSchema.and({
|
|
4
|
+
type: type("'note'"),
|
|
5
|
+
message: type('string'),
|
|
6
|
+
});
|
|
7
|
+
export const InsertNoteActivityPayloadSchema = BaseInsertPayloadSchema.and({
|
|
8
|
+
type: type("'note'"),
|
|
9
|
+
message: type('string'),
|
|
10
|
+
});
|
|
11
|
+
export const UpdateNoteActivityPayloadSchema = BaseUpdatePayloadSchema.and({
|
|
12
|
+
type: type("'note'"),
|
|
13
|
+
message: type('string').optional(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const OperationType: {
|
|
2
|
+
readonly CREATE: "create";
|
|
3
|
+
readonly UPDATE: "update";
|
|
4
|
+
readonly DELETE: "delete";
|
|
5
|
+
readonly AUTOMATION: "automation";
|
|
6
|
+
};
|
|
7
|
+
export type AnyOperationType = (typeof OperationType)[keyof typeof OperationType];
|
|
8
|
+
export declare const OperationActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
9
|
+
id: string;
|
|
10
|
+
performedBy: {
|
|
11
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
12
|
+
identifier: string;
|
|
13
|
+
};
|
|
14
|
+
source: string;
|
|
15
|
+
isMutateable: boolean;
|
|
16
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
17
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
18
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
19
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
20
|
+
metadata?: ((In: {
|
|
21
|
+
[x: string]: string | number | boolean;
|
|
22
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
23
|
+
[x: string]: string | number | boolean;
|
|
24
|
+
} | undefined>) | undefined;
|
|
25
|
+
type: "operation";
|
|
26
|
+
operation: "delete" | "automation" | "create" | "update";
|
|
27
|
+
message: string;
|
|
28
|
+
target: string;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export type OperationActivityPayload = typeof OperationActivityPayloadSchema.inferOut;
|
|
31
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/operation.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AASrD,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;MAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { BasePayloadSchema } from '../base.js';
|
|
3
|
+
export const OperationType = {
|
|
4
|
+
CREATE: 'create',
|
|
5
|
+
UPDATE: 'update',
|
|
6
|
+
DELETE: 'delete',
|
|
7
|
+
AUTOMATION: 'automation',
|
|
8
|
+
};
|
|
9
|
+
const OperationSchema = type.enumerated(OperationType.CREATE, OperationType.UPDATE, OperationType.DELETE, OperationType.AUTOMATION);
|
|
10
|
+
export const OperationActivityPayloadSchema = BasePayloadSchema.and({
|
|
11
|
+
type: type("'operation'"),
|
|
12
|
+
operation: OperationSchema,
|
|
13
|
+
message: type('string'),
|
|
14
|
+
target: type('string'),
|
|
15
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const UnknownActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
performedBy: {
|
|
4
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
5
|
+
identifier: string;
|
|
6
|
+
};
|
|
7
|
+
source: string;
|
|
8
|
+
isMutateable: boolean;
|
|
9
|
+
createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
10
|
+
updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
|
|
11
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
12
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
13
|
+
metadata?: ((In: {
|
|
14
|
+
[x: string]: string | number | boolean;
|
|
15
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
16
|
+
[x: string]: string | number | boolean;
|
|
17
|
+
} | undefined>) | undefined;
|
|
18
|
+
type: "unknown";
|
|
19
|
+
message: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export type UnknownActivityPayload = typeof UnknownActivityPayloadSchema.inferOut;
|
|
22
|
+
//# sourceMappingURL=unknown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unknown.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/unknown.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;MAGvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAChC,OAAO,4BAA4B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;CAIR,CAAC;AAEX,wBAAgB,kBAAkB,WAEjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema/schema.js';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const AppStatus: {
|
|
2
|
+
readonly ENABLED: "enabled";
|
|
3
|
+
readonly DISABLED: "disabled";
|
|
4
|
+
};
|
|
5
|
+
export type AnyAppStatus = (typeof AppStatus)[keyof typeof AppStatus];
|
|
6
|
+
export declare const AppIdSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
|
|
7
|
+
export type AppId = typeof AppIdSchema.inferOut;
|
|
8
|
+
export declare const AppIdPropertySchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
9
|
+
id: string;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export type AppIdProperty = typeof AppIdPropertySchema.inferOut;
|
|
12
|
+
export declare const AppPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
13
|
+
status: "enabled" | "disabled";
|
|
14
|
+
label: string;
|
|
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
|
+
description?: string | undefined;
|
|
18
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
19
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
20
|
+
id: string;
|
|
21
|
+
metadata?: ((In: {
|
|
22
|
+
[x: string]: string | number | boolean;
|
|
23
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
24
|
+
[x: string]: string | number | boolean;
|
|
25
|
+
} | undefined>) | undefined;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export type AppPayload = typeof AppPayloadSchema.inferOut;
|
|
28
|
+
export declare const InsertAppPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
29
|
+
id: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
30
|
+
status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
|
|
31
|
+
label: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
metadata?: ((In: {
|
|
34
|
+
[x: string]: string | number | boolean;
|
|
35
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
36
|
+
[x: string]: string | number | boolean;
|
|
37
|
+
} | undefined>) | undefined;
|
|
38
|
+
}, {}>;
|
|
39
|
+
export type InsertAppPayload = typeof InsertAppPayloadSchema.inferOut;
|
|
40
|
+
export declare const UpdateAppPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
41
|
+
status?: "enabled" | "disabled" | undefined;
|
|
42
|
+
label?: string | null | undefined;
|
|
43
|
+
description?: string | null | undefined;
|
|
44
|
+
metadata?: ((In: {
|
|
45
|
+
[x: string]: string | number | boolean;
|
|
46
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
47
|
+
[x: string]: string | number | boolean;
|
|
48
|
+
} | undefined>) | undefined;
|
|
49
|
+
}, {}>;
|
|
50
|
+
export type UpdateAppPayload = typeof UpdateAppPayloadSchema.inferOut;
|
|
51
|
+
export declare const AppAssociationReferenceSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
52
|
+
id: string;
|
|
53
|
+
status: "enabled" | "disabled";
|
|
54
|
+
label: string;
|
|
55
|
+
model: "App";
|
|
56
|
+
}, {}>;
|
|
57
|
+
export type AppAssociationReference = typeof AppAssociationReferenceSchema.inferOut;
|
|
58
|
+
//# sourceMappingURL=app.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../src/app/schema/app.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEtE,eAAO,MAAM,WAAW,qEAAc,CAAC;AACvC,MAAM,MAAM,KAAK,GAAG,OAAO,WAAW,CAAC,QAAQ,CAAC;AAEhD,eAAO,MAAM,mBAAmB;;MAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAIhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;MAUQ,CAAC;AACtC,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,sBAAsB;;;;;;;;;;MAKE,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,sBAAsB;;;;;;;;;MAIE,CAAC;AACtC,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,6BAA6B;;;;;MAMzC,CAAC;AACF,MAAM,MAAM,uBAAuB,GACjC,OAAO,6BAA6B,CAAC,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type } from 'arktype';
|
|
2
|
+
import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/index.js';
|
|
3
|
+
import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
|
|
4
|
+
import { generateAppId } from './utils.js';
|
|
5
|
+
export const AppStatus = {
|
|
6
|
+
ENABLED: 'enabled',
|
|
7
|
+
DISABLED: 'disabled',
|
|
8
|
+
};
|
|
9
|
+
export const AppIdSchema = type.string;
|
|
10
|
+
export const AppIdPropertySchema = type({
|
|
11
|
+
id: AppIdSchema,
|
|
12
|
+
});
|
|
13
|
+
const StatusSchema = type.enumerated(AppStatus.ENABLED, AppStatus.DISABLED);
|
|
14
|
+
export const AppPayloadSchema = type({
|
|
15
|
+
status: StatusSchema,
|
|
16
|
+
label: type('string'),
|
|
17
|
+
description: type('string | undefined').optional(),
|
|
18
|
+
createdAt: RequiredDatePayloadSchema,
|
|
19
|
+
updatedAt: RequiredDatePayloadSchema,
|
|
20
|
+
'deletedAt?': OptionalDatePayloadSchema,
|
|
21
|
+
'deactivatedAt?': OptionalDatePayloadSchema,
|
|
22
|
+
})
|
|
23
|
+
.and(AppIdPropertySchema)
|
|
24
|
+
.and(MetadataPayloadPropertySchema);
|
|
25
|
+
export const InsertAppPayloadSchema = type({
|
|
26
|
+
id: AppIdSchema.default(() => generateAppId()),
|
|
27
|
+
status: StatusSchema.default(AppStatus.ENABLED),
|
|
28
|
+
label: type('string'),
|
|
29
|
+
description: type('string').optional(),
|
|
30
|
+
}).and(MetadataPayloadPropertySchema);
|
|
31
|
+
export const UpdateAppPayloadSchema = type({
|
|
32
|
+
status: StatusSchema.optional(),
|
|
33
|
+
label: type('string').or(type.null).optional(),
|
|
34
|
+
description: type('string').or(type.null).optional(),
|
|
35
|
+
}).and(MetadataPayloadPropertySchema);
|
|
36
|
+
export const AppAssociationReferenceSchema = AppIdPropertySchema.and(type({
|
|
37
|
+
status: StatusSchema,
|
|
38
|
+
label: type('string'),
|
|
39
|
+
model: "'App'",
|
|
40
|
+
}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type AnyGrantType } from '../../oauth/common/schema.js';
|
|
2
|
+
export declare const AuthorizationPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
3
|
+
refreshTokenDuration: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
4
|
+
accessTokenDuration: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
5
|
+
accessTokenSignatureAlgorithm: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
6
|
+
loginUri?: string | undefined;
|
|
7
|
+
callbackUrls?: ((In: Set<string> | string[] | undefined) => import("arktype/internal/attributes.ts").Out<string[] | undefined>) | undefined;
|
|
8
|
+
availableGrants?: ((In: Set<AnyGrantType> | ("client_credentials" | "authorization_code" | "implicit" | "refresh_token")[] | undefined) => import("arktype/internal/attributes.ts").Out<("client_credentials" | "authorization_code" | "implicit" | "refresh_token")[] | undefined>) | undefined;
|
|
9
|
+
availableAudiences?: ((In: Set<string> | string[] | undefined) => import("arktype/internal/attributes.ts").Out<string[] | undefined>) | undefined;
|
|
10
|
+
defaultAudience?: string | undefined;
|
|
11
|
+
updatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
12
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
13
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
|
|
14
|
+
metadata?: ((In: {
|
|
15
|
+
[x: string]: string | number | boolean;
|
|
16
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
17
|
+
[x: string]: string | number | boolean;
|
|
18
|
+
} | undefined>) | undefined;
|
|
19
|
+
}, {}>;
|
|
20
|
+
export type AuthorizationPayload = typeof AuthorizationPayloadSchema.inferOut;
|
|
21
|
+
export declare const UpsertAuthorizationPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
22
|
+
refreshTokenDuration: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
23
|
+
accessTokenDuration: import("arktype/internal/attributes.ts").Default<number, number>;
|
|
24
|
+
accessTokenSignatureAlgorithm: import("arktype/internal/attributes.ts").Default<string, string>;
|
|
25
|
+
loginUri?: string | undefined;
|
|
26
|
+
callbackUrls?: ((In: Set<string> | string[] | undefined) => import("arktype/internal/attributes.ts").Out<string[] | undefined>) | undefined;
|
|
27
|
+
availableGrants?: ("client_credentials" | "authorization_code" | "implicit" | "refresh_token")[] | undefined;
|
|
28
|
+
availableAudiences?: string[] | undefined;
|
|
29
|
+
defaultAudience?: string | undefined;
|
|
30
|
+
metadata?: ((In: {
|
|
31
|
+
[x: string]: string | number | boolean;
|
|
32
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
|
|
33
|
+
[x: string]: string | number | boolean;
|
|
34
|
+
} | null>) | undefined;
|
|
35
|
+
}, {}>;
|
|
36
|
+
export type UpsertAuthorizationPayload = typeof UpsertAuthorizationPayloadSchema.inferOut;
|
|
37
|
+
//# sourceMappingURL=authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../src/app/schema/authorization.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAa,MAAM,8BAA8B,CAAC;AAiC5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;MASF,CAAC;AACtC,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,QAAQ,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;MAcF,CAAC;AAC5C,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC"}
|