@go-mondo/identity-sdk 0.0.2-beta.5 → 0.0.2-beta.7
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/.release-please-manifest.json +1 -1
- package/.tsbuildinfo/cjs.json +1 -1
- package/.tsbuildinfo/esm.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/cjs/action/schema/base.d.ts +12 -5
- package/dist/cjs/action/schema/base.d.ts.map +1 -1
- package/dist/cjs/action/schema/base.js +8 -3
- package/dist/cjs/action/schema/operations/set-password.d.ts +11 -11
- package/dist/cjs/action/schema/operations/set-password.js +2 -2
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/cjs/action/schema/operations/sign-up-verification.js +1 -1
- package/dist/cjs/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/cjs/action/schema/operations/sign-up.js +12 -12
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/cjs/action/schema/operations/user-attribute-verification.js +1 -1
- package/dist/cjs/action/schema/schema.d.ts +27 -34
- package/dist/cjs/action/schema/schema.d.ts.map +1 -1
- package/dist/cjs/action/schema/schema.js +2 -7
- package/dist/cjs/activity/index.d.ts +1 -0
- package/dist/cjs/activity/index.d.ts.map +1 -1
- package/dist/cjs/activity/index.js +1 -0
- package/dist/cjs/activity/resources.d.ts +13 -0
- package/dist/cjs/activity/resources.d.ts.map +1 -0
- package/dist/cjs/activity/resources.js +29 -0
- package/dist/cjs/activity/schema/base.d.ts +23 -7
- package/dist/cjs/activity/schema/base.d.ts.map +1 -1
- package/dist/cjs/activity/schema/base.js +12 -2
- package/dist/cjs/activity/schema/schema.d.ts +123 -29
- package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
- package/dist/cjs/activity/schema/schema.js +5 -2
- package/dist/cjs/activity/schema/types/authentication.d.ts +28 -5
- package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/authentication.js +5 -2
- package/dist/cjs/activity/schema/types/authorization.d.ts +28 -5
- package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/authorization.js +6 -4
- package/dist/cjs/activity/schema/types/note.d.ts +27 -7
- package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/note.js +4 -2
- package/dist/cjs/activity/schema/types/operation.d.ts +27 -5
- package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/operation.js +4 -2
- package/dist/cjs/activity/schema/types/unknown.d.ts +25 -5
- package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
- package/dist/cjs/activity/schema/types/unknown.js +4 -2
- package/dist/cjs/app/authorization/resources.d.ts +12 -0
- package/dist/cjs/app/authorization/resources.d.ts.map +1 -0
- package/dist/cjs/app/authorization/resources.js +35 -0
- package/dist/cjs/app/authorization/schema.d.ts +54 -0
- package/dist/cjs/app/authorization/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/authorization.js → authorization/schema.js} +31 -15
- package/dist/cjs/app/index.d.ts +13 -1
- package/dist/cjs/app/index.d.ts.map +1 -1
- package/dist/cjs/app/index.js +20 -1
- package/dist/cjs/app/oauth/resources.d.ts +12 -0
- package/dist/cjs/app/oauth/resources.d.ts.map +1 -0
- package/dist/cjs/app/oauth/resources.js +35 -0
- package/dist/cjs/app/{schema/oauth.d.ts → oauth/schema.d.ts} +18 -6
- package/dist/cjs/app/oauth/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/oauth.js → oauth/schema.js} +10 -3
- package/dist/cjs/app/oidc/resources.d.ts +16 -0
- package/dist/cjs/app/oidc/resources.d.ts.map +1 -0
- package/dist/cjs/app/oidc/resources.js +49 -0
- package/dist/cjs/app/{schema/oidc.d.ts → oidc/schema.d.ts} +19 -9
- package/dist/cjs/app/oidc/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/oidc.js → oidc/schema.js} +7 -2
- package/dist/cjs/app/registration/resources.d.ts +12 -0
- package/dist/cjs/app/registration/resources.d.ts.map +1 -0
- package/dist/cjs/app/registration/resources.js +35 -0
- package/dist/cjs/app/{schema/registration.d.ts → registration/schema.d.ts} +16 -6
- package/dist/cjs/app/registration/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/registration.js → registration/schema.js} +9 -2
- package/dist/cjs/app/resources.d.ts +21 -0
- package/dist/cjs/app/resources.d.ts.map +1 -0
- package/dist/cjs/app/resources.js +57 -0
- package/dist/cjs/app/saml/resources.d.ts +16 -0
- package/dist/cjs/app/saml/resources.d.ts.map +1 -0
- package/dist/cjs/app/saml/resources.js +49 -0
- package/dist/cjs/app/{schema/saml.d.ts → saml/schema.d.ts} +19 -9
- package/dist/cjs/app/saml/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/saml.js → saml/schema.js} +7 -2
- package/dist/cjs/app/{schema/app.d.ts → schema.d.ts} +24 -9
- package/dist/cjs/app/schema.d.ts.map +1 -0
- package/dist/cjs/app/{schema/app.js → schema.js} +12 -4
- package/dist/cjs/app/utils.d.ts.map +1 -0
- package/dist/cjs/association/index.d.ts +2 -1
- package/dist/cjs/association/index.d.ts.map +1 -1
- package/dist/cjs/association/index.js +2 -1
- package/dist/cjs/association/resources.d.ts +23 -0
- package/dist/cjs/association/resources.d.ts.map +1 -0
- package/dist/cjs/association/resources.js +51 -0
- package/dist/cjs/association/schema.d.ts +147 -0
- package/dist/cjs/association/schema.d.ts.map +1 -0
- package/dist/cjs/association/{schema/association.js → schema.js} +21 -5
- package/dist/cjs/authentication/{schema/factors.d.ts → factors/schema.d.ts} +12 -3
- package/dist/cjs/authentication/factors/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/factors.js → factors/schema.js} +6 -2
- package/dist/cjs/authentication/factors/schema.test.d.ts +2 -0
- package/dist/cjs/authentication/factors/schema.test.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/factors.test.js → factors/schema.test.js} +17 -17
- package/dist/cjs/authentication/index.d.ts +8 -1
- package/dist/cjs/authentication/index.d.ts.map +1 -1
- package/dist/cjs/authentication/index.js +13 -1
- package/dist/cjs/authentication/{schema/provider.d.ts → providers/schema.d.ts} +5 -5
- package/dist/cjs/authentication/providers/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/provider.js → providers/schema.js} +1 -1
- package/dist/cjs/authentication/resources.d.ts +2 -0
- package/dist/cjs/authentication/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/resources.js +4 -0
- package/dist/cjs/authentication/sessions/resources.d.ts +21 -0
- package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/sessions/resources.js +43 -0
- package/dist/cjs/authentication/sessions/schema.d.ts +81 -0
- package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/session.js → sessions/schema.js} +16 -7
- package/dist/cjs/authentication/settings/resources.d.ts +12 -0
- package/dist/cjs/authentication/settings/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/settings/resources.js +32 -0
- package/dist/cjs/authentication/{schema/settings.d.ts → settings/schema.d.ts} +31 -8
- package/dist/cjs/authentication/settings/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/settings.js → settings/schema.js} +11 -4
- package/dist/cjs/authentication/strategies/resources.d.ts +20 -0
- package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -0
- package/dist/cjs/authentication/strategies/resources.js +58 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/base.d.ts +17 -7
- package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/base.js +10 -2
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/schema.d.ts +102 -53
- package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/schema.js +2 -1
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/email.d.ts +27 -9
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/email.js +4 -3
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/password.d.ts +76 -43
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -0
- package/dist/cjs/authentication/strategies/schema/types/password.js +52 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/totp.d.ts +33 -13
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -0
- package/dist/cjs/authentication/{schema/strategy → strategies/schema}/types/totp.js +12 -3
- package/dist/cjs/authorization/index.d.ts.map +1 -1
- package/dist/cjs/authorization/index.js +2 -0
- package/dist/cjs/authorization/permissions/resources.d.ts +2 -2
- package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/resources.js +1 -1
- package/dist/cjs/authorization/permissions/schema.d.ts +8 -8
- package/dist/cjs/authorization/roles/resources.d.ts +2 -2
- package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
- package/dist/cjs/authorization/roles/resources.js +1 -1
- package/dist/cjs/authorization/roles/schema.d.ts +8 -8
- package/dist/cjs/common/index.d.ts +1 -0
- package/dist/cjs/common/index.d.ts.map +1 -1
- package/dist/cjs/common/index.js +6 -0
- package/dist/cjs/common/schema/dates.d.ts +7 -7
- package/dist/cjs/common/schema/dates.d.ts.map +1 -1
- package/dist/cjs/common/schema/metadata.d.ts +8 -6
- package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
- package/dist/cjs/common/schema/schema.d.ts +2 -1
- package/dist/cjs/common/schema/schema.d.ts.map +1 -1
- package/dist/cjs/common/schema/schema.js +2 -1
- package/dist/cjs/common/schema/schema.test.d.ts +2 -0
- package/dist/cjs/common/schema/schema.test.d.ts.map +1 -0
- package/dist/cjs/common/schema/schema.test.js +35 -0
- package/dist/cjs/common/schema/sets.d.ts +2 -2
- package/dist/cjs/common/schema/sets.d.ts.map +1 -1
- package/dist/cjs/common/schema/url.d.ts +2 -0
- package/dist/cjs/common/schema/url.d.ts.map +1 -0
- package/dist/cjs/common/schema/url.js +12 -0
- package/dist/cjs/customer/index.d.ts +1 -0
- package/dist/cjs/customer/index.d.ts.map +1 -1
- package/dist/cjs/customer/index.js +1 -0
- package/dist/cjs/customer/schema/organization.d.ts +7 -7
- package/dist/cjs/customer/users/resources.d.ts +2 -2
- package/dist/cjs/customer/users/resources.d.ts.map +1 -1
- package/dist/cjs/customer/users/resources.js +2 -2
- package/dist/cjs/customer/users/schema.d.ts +10 -11
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +1 -3
- package/dist/cjs/customer/users/schema.test.js +2 -0
- package/dist/cjs/customer/users/utils.d.ts +10 -0
- package/dist/cjs/customer/users/utils.d.ts.map +1 -0
- package/dist/cjs/customer/users/utils.js +33 -0
- package/dist/cjs/identity/index.d.ts +1 -1
- package/dist/cjs/identity/index.d.ts.map +1 -1
- package/dist/cjs/identity/index.js +1 -1
- package/dist/cjs/identity/schema.d.ts.map +1 -0
- package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +9 -9
- package/dist/cjs/oauth/common/schema.d.ts +6 -0
- package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
- package/dist/cjs/oauth/common/schema.js +7 -1
- package/dist/cjs/oauth/index.d.ts +1 -1
- package/dist/cjs/oauth/index.d.ts.map +1 -1
- package/dist/cjs/oauth/index.js +2 -1
- package/dist/cjs/oauth/token/schema/grants/client-credentials.js +6 -6
- package/dist/cjs/oauth/token/schema/grants/refresh-token.js +4 -4
- package/dist/cjs/workspace/{schema/authorization.d.ts → authorization/schema.d.ts} +6 -6
- package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/branding.d.ts → branding/schema.d.ts} +6 -6
- package/dist/cjs/workspace/branding/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/index.d.ts +8 -1
- package/dist/cjs/workspace/index.d.ts.map +1 -1
- package/dist/cjs/workspace/index.js +8 -1
- package/dist/cjs/workspace/{schema/membership.d.ts → membership/schema.d.ts} +6 -6
- package/dist/cjs/workspace/membership/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/registration.d.ts → registration/schema.d.ts} +6 -6
- package/dist/cjs/workspace/registration/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/registration.js → registration/schema.js} +1 -1
- package/dist/cjs/workspace/{schema/settings.d.ts → settings/schema.d.ts} +6 -6
- package/dist/cjs/workspace/settings/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/tenant.d.ts → tenant/schema.d.ts} +11 -11
- package/dist/cjs/workspace/{schema/tenant.d.ts.map → tenant/schema.d.ts.map} +1 -1
- package/dist/cjs/workspace/{schema/tenant.js → tenant/schema.js} +3 -3
- package/dist/cjs/workspace/{schema/user-notification.d.ts → user/notifications/schema.d.ts} +8 -8
- package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/user-notification.js → user/notifications/schema.js} +4 -4
- package/dist/cjs/workspace/{schema/user-preferences.d.ts → user/preferences/schema.d.ts} +6 -6
- package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -0
- package/dist/cjs/workspace/{schema/user-preferences.js → user/preferences/schema.js} +2 -2
- package/dist/cjs/workspace/user/schema.d.ts +3 -0
- package/dist/cjs/workspace/user/schema.d.ts.map +1 -0
- package/dist/cjs/{association/schema → workspace/user}/schema.js +2 -1
- package/dist/cjs/workspace/utils.d.ts.map +1 -0
- package/dist/esm/action/schema/base.d.ts +12 -5
- package/dist/esm/action/schema/base.d.ts.map +1 -1
- package/dist/esm/action/schema/base.js +6 -1
- package/dist/esm/action/schema/operations/set-password.d.ts +11 -11
- package/dist/esm/action/schema/operations/set-password.js +2 -2
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/esm/action/schema/operations/sign-up-verification.js +1 -1
- package/dist/esm/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/esm/action/schema/operations/sign-up.js +1 -1
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/esm/action/schema/operations/user-attribute-verification.js +1 -1
- package/dist/esm/action/schema/schema.d.ts +27 -34
- package/dist/esm/action/schema/schema.d.ts.map +1 -1
- package/dist/esm/action/schema/schema.js +1 -7
- package/dist/esm/activity/index.d.ts +1 -0
- package/dist/esm/activity/index.d.ts.map +1 -1
- package/dist/esm/activity/index.js +1 -0
- package/dist/esm/activity/resources.d.ts +13 -0
- package/dist/esm/activity/resources.d.ts.map +1 -0
- package/dist/esm/activity/resources.js +24 -0
- package/dist/esm/activity/schema/base.d.ts +23 -7
- package/dist/esm/activity/schema/base.d.ts.map +1 -1
- package/dist/esm/activity/schema/base.js +13 -3
- package/dist/esm/activity/schema/schema.d.ts +123 -29
- package/dist/esm/activity/schema/schema.d.ts.map +1 -1
- package/dist/esm/activity/schema/schema.js +9 -6
- package/dist/esm/activity/schema/types/authentication.d.ts +28 -5
- package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/authentication.js +5 -2
- package/dist/esm/activity/schema/types/authorization.d.ts +28 -5
- package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/authorization.js +6 -4
- package/dist/esm/activity/schema/types/note.d.ts +27 -7
- package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/note.js +4 -2
- package/dist/esm/activity/schema/types/operation.d.ts +27 -5
- package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/operation.js +4 -2
- package/dist/esm/activity/schema/types/unknown.d.ts +25 -5
- package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
- package/dist/esm/activity/schema/types/unknown.js +4 -2
- package/dist/esm/app/authorization/resources.d.ts +12 -0
- package/dist/esm/app/authorization/resources.d.ts.map +1 -0
- package/dist/esm/app/authorization/resources.js +29 -0
- package/dist/esm/app/authorization/schema.d.ts +54 -0
- package/dist/esm/app/authorization/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/authorization.js → authorization/schema.js} +32 -16
- package/dist/esm/app/index.d.ts +13 -1
- package/dist/esm/app/index.d.ts.map +1 -1
- package/dist/esm/app/index.js +20 -1
- package/dist/esm/app/oauth/resources.d.ts +12 -0
- package/dist/esm/app/oauth/resources.d.ts.map +1 -0
- package/dist/esm/app/oauth/resources.js +29 -0
- package/dist/esm/app/{schema/oauth.d.ts → oauth/schema.d.ts} +18 -6
- package/dist/esm/app/oauth/schema.d.ts.map +1 -0
- package/dist/esm/app/oauth/schema.js +25 -0
- package/dist/esm/app/oidc/resources.d.ts +16 -0
- package/dist/esm/app/oidc/resources.d.ts.map +1 -0
- package/dist/esm/app/oidc/resources.js +41 -0
- package/dist/esm/app/{schema/oidc.d.ts → oidc/schema.d.ts} +19 -9
- package/dist/esm/app/oidc/schema.d.ts.map +1 -0
- package/dist/esm/app/oidc/schema.js +15 -0
- package/dist/esm/app/registration/resources.d.ts +12 -0
- package/dist/esm/app/registration/resources.d.ts.map +1 -0
- package/dist/esm/app/registration/resources.js +29 -0
- package/dist/esm/app/registration/schema.d.ts +32 -0
- package/dist/esm/app/registration/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/registration.js → registration/schema.js} +10 -3
- package/dist/esm/app/resources.d.ts +21 -0
- package/dist/esm/app/resources.d.ts.map +1 -0
- package/dist/esm/app/resources.js +48 -0
- package/dist/esm/app/saml/resources.d.ts +16 -0
- package/dist/esm/app/saml/resources.d.ts.map +1 -0
- package/dist/esm/app/saml/resources.js +41 -0
- package/dist/esm/app/{schema/saml.d.ts → saml/schema.d.ts} +19 -9
- package/dist/esm/app/saml/schema.d.ts.map +1 -0
- package/dist/esm/app/saml/schema.js +15 -0
- package/dist/esm/app/{schema/app.d.ts → schema.d.ts} +24 -9
- package/dist/esm/app/schema.d.ts.map +1 -0
- package/dist/esm/app/{schema/app.js → schema.js} +11 -3
- package/dist/esm/app/utils.d.ts.map +1 -0
- package/dist/esm/association/index.d.ts +2 -1
- package/dist/esm/association/index.d.ts.map +1 -1
- package/dist/esm/association/index.js +2 -1
- package/dist/esm/association/resources.d.ts +23 -0
- package/dist/esm/association/resources.d.ts.map +1 -0
- package/dist/esm/association/resources.js +44 -0
- package/dist/esm/association/schema.d.ts +147 -0
- package/dist/esm/association/schema.d.ts.map +1 -0
- package/dist/esm/association/schema.js +39 -0
- package/dist/esm/authentication/{schema/factors.d.ts → factors/schema.d.ts} +12 -3
- package/dist/esm/authentication/factors/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/factors.js → factors/schema.js} +5 -1
- package/dist/esm/authentication/factors/schema.test.d.ts +2 -0
- package/dist/esm/authentication/factors/schema.test.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/factors.test.js → factors/schema.test.js} +1 -1
- package/dist/esm/authentication/index.d.ts +8 -1
- package/dist/esm/authentication/index.d.ts.map +1 -1
- package/dist/esm/authentication/index.js +13 -1
- package/dist/esm/authentication/{schema/provider.d.ts → providers/schema.d.ts} +5 -5
- package/dist/esm/authentication/providers/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/provider.js → providers/schema.js} +1 -1
- package/dist/esm/authentication/resources.d.ts +2 -0
- package/dist/esm/authentication/resources.d.ts.map +1 -0
- package/dist/esm/authentication/resources.js +1 -0
- package/dist/esm/authentication/sessions/resources.d.ts +21 -0
- package/dist/esm/authentication/sessions/resources.d.ts.map +1 -0
- package/dist/esm/authentication/sessions/resources.js +37 -0
- package/dist/esm/authentication/sessions/schema.d.ts +81 -0
- package/dist/esm/authentication/sessions/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/session.js → sessions/schema.js} +17 -8
- package/dist/esm/authentication/settings/resources.d.ts +12 -0
- package/dist/esm/authentication/settings/resources.d.ts.map +1 -0
- package/dist/esm/authentication/settings/resources.js +26 -0
- package/dist/esm/authentication/{schema/settings.d.ts → settings/schema.d.ts} +31 -8
- package/dist/esm/authentication/settings/schema.d.ts.map +1 -0
- package/dist/esm/authentication/settings/schema.js +20 -0
- package/dist/esm/authentication/strategies/resources.d.ts +20 -0
- package/dist/esm/authentication/strategies/resources.d.ts.map +1 -0
- package/dist/esm/authentication/strategies/resources.js +49 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/base.d.ts +17 -7
- package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/base.js +11 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/schema.d.ts +102 -53
- package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/schema.js +4 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/email.d.ts +27 -9
- package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/email.js +4 -3
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/password.d.ts +76 -43
- package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -0
- package/dist/esm/authentication/strategies/schema/types/password.js +49 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/totp.d.ts +33 -13
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -0
- package/dist/esm/authentication/{schema/strategy → strategies/schema}/types/totp.js +12 -3
- package/dist/esm/authorization/index.d.ts.map +1 -1
- package/dist/esm/authorization/index.js +2 -0
- package/dist/esm/authorization/permissions/resources.d.ts +2 -2
- package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/resources.js +1 -1
- package/dist/esm/authorization/permissions/schema.d.ts +8 -8
- package/dist/esm/authorization/roles/resources.d.ts +2 -2
- package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
- package/dist/esm/authorization/roles/resources.js +1 -1
- package/dist/esm/authorization/roles/schema.d.ts +8 -8
- package/dist/esm/common/index.d.ts +1 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +1 -0
- package/dist/esm/common/schema/dates.d.ts +7 -7
- package/dist/esm/common/schema/dates.d.ts.map +1 -1
- package/dist/esm/common/schema/metadata.d.ts +8 -6
- package/dist/esm/common/schema/metadata.d.ts.map +1 -1
- package/dist/esm/common/schema/schema.d.ts +2 -1
- package/dist/esm/common/schema/schema.d.ts.map +1 -1
- package/dist/esm/common/schema/schema.js +2 -1
- package/dist/esm/common/schema/schema.test.d.ts +2 -0
- package/dist/esm/common/schema/schema.test.d.ts.map +1 -0
- package/dist/esm/common/schema/schema.test.js +33 -0
- package/dist/esm/common/schema/sets.d.ts +2 -2
- package/dist/esm/common/schema/sets.d.ts.map +1 -1
- package/dist/esm/common/schema/url.d.ts +2 -0
- package/dist/esm/common/schema/url.d.ts.map +1 -0
- package/dist/esm/common/schema/url.js +9 -0
- package/dist/esm/customer/index.d.ts +1 -0
- package/dist/esm/customer/index.d.ts.map +1 -1
- package/dist/esm/customer/index.js +1 -0
- package/dist/esm/customer/schema/organization.d.ts +7 -7
- package/dist/esm/customer/users/resources.d.ts +2 -2
- package/dist/esm/customer/users/resources.d.ts.map +1 -1
- package/dist/esm/customer/users/resources.js +3 -3
- package/dist/esm/customer/users/schema.d.ts +10 -11
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +1 -3
- package/dist/esm/customer/users/schema.test.js +2 -0
- package/dist/esm/customer/users/utils.d.ts +10 -0
- package/dist/esm/customer/users/utils.d.ts.map +1 -0
- package/dist/esm/customer/users/utils.js +27 -0
- package/dist/esm/identity/index.d.ts +1 -1
- package/dist/esm/identity/index.d.ts.map +1 -1
- package/dist/esm/identity/index.js +1 -1
- package/dist/esm/identity/schema.d.ts.map +1 -0
- package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +1 -1
- package/dist/esm/oauth/common/schema.d.ts +6 -0
- package/dist/esm/oauth/common/schema.d.ts.map +1 -1
- package/dist/esm/oauth/common/schema.js +6 -0
- package/dist/esm/oauth/index.d.ts +1 -1
- package/dist/esm/oauth/index.d.ts.map +1 -1
- package/dist/esm/oauth/index.js +1 -1
- package/dist/esm/oauth/token/schema/grants/client-credentials.js +1 -1
- package/dist/esm/oauth/token/schema/grants/refresh-token.js +1 -1
- package/dist/esm/workspace/{schema/authorization.d.ts → authorization/schema.d.ts} +6 -6
- package/dist/esm/workspace/authorization/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/branding.d.ts → branding/schema.d.ts} +6 -6
- package/dist/esm/workspace/branding/schema.d.ts.map +1 -0
- package/dist/esm/workspace/index.d.ts +8 -1
- package/dist/esm/workspace/index.d.ts.map +1 -1
- package/dist/esm/workspace/index.js +8 -1
- package/dist/esm/workspace/{schema/membership.d.ts → membership/schema.d.ts} +6 -6
- package/dist/esm/workspace/membership/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/registration.d.ts → registration/schema.d.ts} +6 -6
- package/dist/esm/workspace/registration/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/registration.js → registration/schema.js} +1 -1
- package/dist/esm/workspace/{schema/settings.d.ts → settings/schema.d.ts} +6 -6
- package/dist/esm/workspace/settings/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/tenant.d.ts → tenant/schema.d.ts} +11 -11
- package/dist/esm/workspace/{schema/tenant.d.ts.map → tenant/schema.d.ts.map} +1 -1
- package/dist/esm/workspace/{schema/tenant.js → tenant/schema.js} +2 -2
- package/dist/esm/workspace/{schema/user-notification.d.ts → user/notifications/schema.d.ts} +8 -8
- package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/user-notification.js → user/notifications/schema.js} +4 -4
- package/dist/esm/workspace/{schema/user-preferences.d.ts → user/preferences/schema.d.ts} +6 -6
- package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -0
- package/dist/esm/workspace/{schema/user-preferences.js → user/preferences/schema.js} +2 -2
- package/dist/esm/workspace/user/schema.d.ts +3 -0
- package/dist/esm/workspace/user/schema.d.ts.map +1 -0
- package/dist/esm/workspace/user/schema.js +2 -0
- package/dist/esm/workspace/utils.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/cjs/app/schema/app.d.ts.map +0 -1
- package/dist/cjs/app/schema/authorization.d.ts +0 -37
- package/dist/cjs/app/schema/authorization.d.ts.map +0 -1
- package/dist/cjs/app/schema/oauth.d.ts.map +0 -1
- package/dist/cjs/app/schema/oidc.d.ts.map +0 -1
- package/dist/cjs/app/schema/registration.d.ts.map +0 -1
- package/dist/cjs/app/schema/saml.d.ts.map +0 -1
- package/dist/cjs/app/schema/schema.d.ts +0 -8
- package/dist/cjs/app/schema/schema.d.ts.map +0 -1
- package/dist/cjs/app/schema/schema.js +0 -23
- package/dist/cjs/app/schema/utils.d.ts.map +0 -1
- package/dist/cjs/association/schema/association.d.ts +0 -82
- package/dist/cjs/association/schema/association.d.ts.map +0 -1
- package/dist/cjs/association/schema/schema.d.ts +0 -2
- package/dist/cjs/association/schema/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/factors.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/factors.test.d.ts +0 -2
- package/dist/cjs/authentication/schema/factors.test.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/provider.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/schema.d.ts +0 -6
- package/dist/cjs/authentication/schema/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/schema.js +0 -21
- package/dist/cjs/authentication/schema/session.d.ts +0 -59
- package/dist/cjs/authentication/schema/session.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/settings.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/base.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/schema.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/email.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/password.d.ts.map +0 -1
- package/dist/cjs/authentication/schema/strategy/types/password.js +0 -35
- package/dist/cjs/authentication/schema/strategy/types/totp.d.ts.map +0 -1
- package/dist/cjs/identity/schema/schema.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/authorization.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/branding.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/membership.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/registration.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/schema.d.ts +0 -10
- package/dist/cjs/workspace/schema/schema.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/schema.js +0 -25
- package/dist/cjs/workspace/schema/settings.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/user-notification.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/user-preferences.d.ts.map +0 -1
- package/dist/cjs/workspace/schema/utils.d.ts.map +0 -1
- package/dist/esm/app/schema/app.d.ts.map +0 -1
- package/dist/esm/app/schema/authorization.d.ts +0 -37
- package/dist/esm/app/schema/authorization.d.ts.map +0 -1
- package/dist/esm/app/schema/oauth.d.ts.map +0 -1
- package/dist/esm/app/schema/oauth.js +0 -18
- package/dist/esm/app/schema/oidc.d.ts.map +0 -1
- package/dist/esm/app/schema/oidc.js +0 -10
- package/dist/esm/app/schema/registration.d.ts +0 -22
- package/dist/esm/app/schema/registration.d.ts.map +0 -1
- package/dist/esm/app/schema/saml.d.ts.map +0 -1
- package/dist/esm/app/schema/saml.js +0 -10
- package/dist/esm/app/schema/schema.d.ts +0 -8
- package/dist/esm/app/schema/schema.d.ts.map +0 -1
- package/dist/esm/app/schema/schema.js +0 -7
- package/dist/esm/app/schema/utils.d.ts.map +0 -1
- package/dist/esm/association/schema/association.d.ts +0 -82
- package/dist/esm/association/schema/association.d.ts.map +0 -1
- package/dist/esm/association/schema/association.js +0 -23
- package/dist/esm/association/schema/schema.d.ts +0 -2
- package/dist/esm/association/schema/schema.d.ts.map +0 -1
- package/dist/esm/association/schema/schema.js +0 -1
- package/dist/esm/authentication/schema/factors.d.ts.map +0 -1
- package/dist/esm/authentication/schema/factors.test.d.ts +0 -2
- package/dist/esm/authentication/schema/factors.test.d.ts.map +0 -1
- package/dist/esm/authentication/schema/provider.d.ts.map +0 -1
- package/dist/esm/authentication/schema/schema.d.ts +0 -6
- package/dist/esm/authentication/schema/schema.d.ts.map +0 -1
- package/dist/esm/authentication/schema/schema.js +0 -5
- package/dist/esm/authentication/schema/session.d.ts +0 -59
- package/dist/esm/authentication/schema/session.d.ts.map +0 -1
- package/dist/esm/authentication/schema/settings.d.ts.map +0 -1
- package/dist/esm/authentication/schema/settings.js +0 -13
- package/dist/esm/authentication/schema/strategy/base.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/schema.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/email.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/password.d.ts.map +0 -1
- package/dist/esm/authentication/schema/strategy/types/password.js +0 -32
- package/dist/esm/authentication/schema/strategy/types/totp.d.ts.map +0 -1
- package/dist/esm/identity/schema/schema.d.ts.map +0 -1
- package/dist/esm/workspace/schema/authorization.d.ts.map +0 -1
- package/dist/esm/workspace/schema/branding.d.ts.map +0 -1
- package/dist/esm/workspace/schema/membership.d.ts.map +0 -1
- package/dist/esm/workspace/schema/registration.d.ts.map +0 -1
- package/dist/esm/workspace/schema/schema.d.ts +0 -10
- package/dist/esm/workspace/schema/schema.d.ts.map +0 -1
- package/dist/esm/workspace/schema/schema.js +0 -9
- package/dist/esm/workspace/schema/settings.d.ts.map +0 -1
- package/dist/esm/workspace/schema/user-notification.d.ts.map +0 -1
- package/dist/esm/workspace/schema/user-preferences.d.ts.map +0 -1
- package/dist/esm/workspace/schema/utils.d.ts.map +0 -1
- package/dist/cjs/app/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cjs/app/{schema/utils.js → utils.js} +0 -0
- package/dist/cjs/identity/{schema/schema.d.ts → schema.d.ts} +0 -0
- package/dist/cjs/identity/{schema/schema.js → schema.js} +0 -0
- package/dist/cjs/workspace/{schema/authorization.js → authorization/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/branding.js → branding/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/membership.js → membership/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/settings.js → settings/schema.js} +0 -0
- package/dist/cjs/workspace/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/cjs/workspace/{schema/utils.js → utils.js} +1 -1
- package/dist/esm/app/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/esm/app/{schema/utils.js → utils.js} +0 -0
- package/dist/esm/identity/{schema/schema.d.ts → schema.d.ts} +0 -0
- package/dist/esm/identity/{schema/schema.js → schema.js} +0 -0
- package/dist/esm/workspace/{schema/authorization.js → authorization/schema.js} +0 -0
- package/dist/esm/workspace/{schema/branding.js → branding/schema.js} +0 -0
- package/dist/esm/workspace/{schema/membership.js → membership/schema.js} +0 -0
- package/dist/esm/workspace/{schema/settings.js → settings/schema.js} +0 -0
- package/dist/esm/workspace/{schema/utils.d.ts → utils.d.ts} +0 -0
- package/dist/esm/workspace/{schema/utils.js → utils.js} +1 -1
|
@@ -1,4 +1,93 @@
|
|
|
1
|
-
export { ActivityType, type AnyActivityType,
|
|
1
|
+
export { ActivityType, PerformerType, type AnyActivityType, type AnyPerformerType, } from './base.js';
|
|
2
|
+
export declare const ActivitySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
3
|
+
id: string;
|
|
4
|
+
performedBy: {
|
|
5
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
6
|
+
identifier: string;
|
|
7
|
+
};
|
|
8
|
+
source: string;
|
|
9
|
+
isMutateable: boolean;
|
|
10
|
+
app?: string | undefined;
|
|
11
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
12
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
13
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
14
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
15
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
16
|
+
type: "authentication";
|
|
17
|
+
status: "success" | "fail";
|
|
18
|
+
identity: string;
|
|
19
|
+
message: string;
|
|
20
|
+
} | {
|
|
21
|
+
id: string;
|
|
22
|
+
performedBy: {
|
|
23
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
24
|
+
identifier: string;
|
|
25
|
+
};
|
|
26
|
+
source: string;
|
|
27
|
+
isMutateable: boolean;
|
|
28
|
+
app?: string | undefined;
|
|
29
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
30
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
31
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
32
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
33
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
34
|
+
type: "authorization";
|
|
35
|
+
status: "success" | "fail";
|
|
36
|
+
message: string;
|
|
37
|
+
identity?: string | undefined;
|
|
38
|
+
} | {
|
|
39
|
+
id: string;
|
|
40
|
+
performedBy: {
|
|
41
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
42
|
+
identifier: string;
|
|
43
|
+
};
|
|
44
|
+
source: string;
|
|
45
|
+
isMutateable: boolean;
|
|
46
|
+
app?: string | undefined;
|
|
47
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
48
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
49
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
50
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
51
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
52
|
+
type: "note";
|
|
53
|
+
message: string;
|
|
54
|
+
} | {
|
|
55
|
+
id: string;
|
|
56
|
+
performedBy: {
|
|
57
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
58
|
+
identifier: string;
|
|
59
|
+
};
|
|
60
|
+
source: string;
|
|
61
|
+
isMutateable: boolean;
|
|
62
|
+
app?: string | undefined;
|
|
63
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
64
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
65
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
66
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
67
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
68
|
+
type: "operation";
|
|
69
|
+
operation: "delete" | "automation" | "create" | "update";
|
|
70
|
+
message: string;
|
|
71
|
+
target: string;
|
|
72
|
+
} | {
|
|
73
|
+
id: string;
|
|
74
|
+
performedBy: {
|
|
75
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
76
|
+
identifier: string;
|
|
77
|
+
};
|
|
78
|
+
source: string;
|
|
79
|
+
isMutateable: boolean;
|
|
80
|
+
app?: string | undefined;
|
|
81
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
82
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
83
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
84
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
85
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
86
|
+
type: "unknown";
|
|
87
|
+
message: string;
|
|
88
|
+
}, {}>;
|
|
89
|
+
export type ActivityProperties = typeof ActivitySchema.inferIn;
|
|
90
|
+
export type Activity = typeof ActivitySchema.inferOut;
|
|
2
91
|
export declare const ActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
3
92
|
id: string;
|
|
4
93
|
performedBy: {
|
|
@@ -7,18 +96,20 @@ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.j
|
|
|
7
96
|
};
|
|
8
97
|
source: string;
|
|
9
98
|
isMutateable: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
99
|
+
app?: string | undefined;
|
|
100
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
101
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
102
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
103
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
14
104
|
metadata?: ((In: {
|
|
15
105
|
[x: string]: string | number | boolean;
|
|
16
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
106
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
17
107
|
[x: string]: string | number | boolean;
|
|
18
108
|
} | undefined>) | undefined;
|
|
19
109
|
type: "authentication";
|
|
20
110
|
status: "success" | "fail";
|
|
21
111
|
identity: string;
|
|
112
|
+
message: string;
|
|
22
113
|
} | {
|
|
23
114
|
id: string;
|
|
24
115
|
performedBy: {
|
|
@@ -27,13 +118,14 @@ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.j
|
|
|
27
118
|
};
|
|
28
119
|
source: string;
|
|
29
120
|
isMutateable: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
121
|
+
app?: string | undefined;
|
|
122
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
123
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
124
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
125
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
34
126
|
metadata?: ((In: {
|
|
35
127
|
[x: string]: string | number | boolean;
|
|
36
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
128
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
37
129
|
[x: string]: string | number | boolean;
|
|
38
130
|
} | undefined>) | undefined;
|
|
39
131
|
type: "authorization";
|
|
@@ -48,13 +140,14 @@ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.j
|
|
|
48
140
|
};
|
|
49
141
|
source: string;
|
|
50
142
|
isMutateable: boolean;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
143
|
+
app?: string | undefined;
|
|
144
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
145
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
146
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
147
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
55
148
|
metadata?: ((In: {
|
|
56
149
|
[x: string]: string | number | boolean;
|
|
57
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
150
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
58
151
|
[x: string]: string | number | boolean;
|
|
59
152
|
} | undefined>) | undefined;
|
|
60
153
|
type: "note";
|
|
@@ -67,13 +160,14 @@ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.j
|
|
|
67
160
|
};
|
|
68
161
|
source: string;
|
|
69
162
|
isMutateable: boolean;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
163
|
+
app?: string | undefined;
|
|
164
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
165
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
166
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
167
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
74
168
|
metadata?: ((In: {
|
|
75
169
|
[x: string]: string | number | boolean;
|
|
76
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
170
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
77
171
|
[x: string]: string | number | boolean;
|
|
78
172
|
} | undefined>) | undefined;
|
|
79
173
|
type: "operation";
|
|
@@ -88,13 +182,14 @@ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.j
|
|
|
88
182
|
};
|
|
89
183
|
source: string;
|
|
90
184
|
isMutateable: boolean;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
185
|
+
app?: string | undefined;
|
|
186
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
187
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
188
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
189
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
95
190
|
metadata?: ((In: {
|
|
96
191
|
[x: string]: string | number | boolean;
|
|
97
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
192
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
98
193
|
[x: string]: string | number | boolean;
|
|
99
194
|
} | undefined>) | undefined;
|
|
100
195
|
type: "unknown";
|
|
@@ -109,7 +204,7 @@ export declare const InsertActivityPayloadSchema: import("arktype/out/methods/ob
|
|
|
109
204
|
} | undefined;
|
|
110
205
|
metadata?: ((In: {
|
|
111
206
|
[x: string]: string | number | boolean;
|
|
112
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
207
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
113
208
|
[x: string]: string | number | boolean;
|
|
114
209
|
} | null>) | undefined;
|
|
115
210
|
type: "note";
|
|
@@ -123,7 +218,7 @@ export declare const UpdateActivityPayloadSchema: import("arktype/out/methods/ob
|
|
|
123
218
|
} | undefined;
|
|
124
219
|
metadata?: ((In: {
|
|
125
220
|
[x: string]: string | number | boolean;
|
|
126
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
221
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
127
222
|
[x: string]: string | number | boolean;
|
|
128
223
|
} | null>) | undefined;
|
|
129
224
|
type: "note";
|
|
@@ -131,7 +226,6 @@ export declare const UpdateActivityPayloadSchema: import("arktype/out/methods/ob
|
|
|
131
226
|
}, {}>;
|
|
132
227
|
export type UpdateActivityPayload = typeof UpdateActivityPayloadSchema.inferOut;
|
|
133
228
|
export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, type ActivityId, type ActivityIdProperty, type PerformedBy, } from './base.js';
|
|
134
|
-
export * from './schema.js';
|
|
135
229
|
export * from './types/authentication.js';
|
|
136
230
|
export * from './types/authorization.js';
|
|
137
231
|
export * from './types/note.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKC,CAAC;AAC7B,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC,OAAO,CAAC;AAC/D,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,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,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,YAAY,CAAC"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
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;
|
|
17
|
+
exports.SourceSchema = exports.PerformedBySchema = exports.ActivityIdSchema = exports.ActivityIdPropertySchema = exports.UpdateActivityPayloadSchema = exports.InsertActivityPayloadSchema = exports.ActivityPayloadSchema = exports.ActivitySchema = exports.PerformerType = exports.ActivityType = void 0;
|
|
18
18
|
const authentication_js_1 = require("./types/authentication.js");
|
|
19
19
|
const authorization_js_1 = require("./types/authorization.js");
|
|
20
20
|
const note_js_1 = require("./types/note.js");
|
|
@@ -23,6 +23,10 @@ const unknown_js_1 = require("./types/unknown.js");
|
|
|
23
23
|
var base_js_1 = require("./base.js");
|
|
24
24
|
Object.defineProperty(exports, "ActivityType", { enumerable: true, get: function () { return base_js_1.ActivityType; } });
|
|
25
25
|
Object.defineProperty(exports, "PerformerType", { enumerable: true, get: function () { return base_js_1.PerformerType; } });
|
|
26
|
+
exports.ActivitySchema = note_js_1.NoteActivitySchema.or(authentication_js_1.AuthenticationActivitySchema)
|
|
27
|
+
.or(authorization_js_1.AuthorizationActivitySchema)
|
|
28
|
+
.or(operation_js_1.OperationActivitySchema)
|
|
29
|
+
.or(unknown_js_1.UnknownActivitySchema);
|
|
26
30
|
exports.ActivityPayloadSchema = note_js_1.NoteActivityPayloadSchema.or(authentication_js_1.AuthenticationActivityPayloadSchema)
|
|
27
31
|
.or(authorization_js_1.AuthorizationActivityPayloadSchema)
|
|
28
32
|
.or(operation_js_1.OperationActivityPayloadSchema)
|
|
@@ -34,7 +38,6 @@ Object.defineProperty(exports, "ActivityIdPropertySchema", { enumerable: true, g
|
|
|
34
38
|
Object.defineProperty(exports, "ActivityIdSchema", { enumerable: true, get: function () { return base_js_2.ActivityIdSchema; } });
|
|
35
39
|
Object.defineProperty(exports, "PerformedBySchema", { enumerable: true, get: function () { return base_js_2.PerformedBySchema; } });
|
|
36
40
|
Object.defineProperty(exports, "SourceSchema", { enumerable: true, get: function () { return base_js_2.SourceSchema; } });
|
|
37
|
-
__exportStar(require("./schema.js"), exports);
|
|
38
41
|
__exportStar(require("./types/authentication.js"), exports);
|
|
39
42
|
__exportStar(require("./types/authorization.js"), exports);
|
|
40
43
|
__exportStar(require("./types/note.js"), exports);
|
|
@@ -4,6 +4,27 @@ export declare const AuthenticationStatus: {
|
|
|
4
4
|
};
|
|
5
5
|
export type AnyAuthenticationStatus = (typeof AuthenticationStatus)[keyof typeof AuthenticationStatus];
|
|
6
6
|
export declare const AuthenticationStatusSchema: import("arktype/out/methods/string.js").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthenticationActivitySchema: 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
|
+
app?: string | undefined;
|
|
16
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
17
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
18
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
19
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
20
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
21
|
+
type: "authentication";
|
|
22
|
+
status: "success" | "fail";
|
|
23
|
+
identity: string;
|
|
24
|
+
message: string;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export type AuthenticationActivityProperties = typeof AuthenticationActivitySchema.inferIn;
|
|
27
|
+
export type AuthenticationActivity = typeof AuthenticationActivitySchema.inferOut;
|
|
7
28
|
export declare const AuthenticationActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
8
29
|
id: string;
|
|
9
30
|
performedBy: {
|
|
@@ -12,18 +33,20 @@ export declare const AuthenticationActivityPayloadSchema: import("arktype/out/me
|
|
|
12
33
|
};
|
|
13
34
|
source: string;
|
|
14
35
|
isMutateable: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
36
|
+
app?: string | undefined;
|
|
37
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
38
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
39
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
40
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
19
41
|
metadata?: ((In: {
|
|
20
42
|
[x: string]: string | number | boolean;
|
|
21
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
22
44
|
[x: string]: string | number | boolean;
|
|
23
45
|
} | undefined>) | undefined;
|
|
24
46
|
type: "authentication";
|
|
25
47
|
status: "success" | "fail";
|
|
26
48
|
identity: string;
|
|
49
|
+
message: string;
|
|
27
50
|
}, {}>;
|
|
28
51
|
export type AuthenticationActivityPayload = typeof AuthenticationActivityPayloadSchema.inferOut;
|
|
29
52
|
//# sourceMappingURL=authentication.d.ts.map
|
|
@@ -1 +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;
|
|
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;AASF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;MAExC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAC1C,OAAO,4BAA4B,CAAC,OAAO,CAAC;AAC9C,MAAM,MAAM,sBAAsB,GAChC,OAAO,4BAA4B,CAAC,QAAQ,CAAC;AAE/C,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;MAE/C,CAAC;AACF,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthenticationActivityPayloadSchema = exports.AuthenticationStatusSchema = exports.AuthenticationStatus = void 0;
|
|
3
|
+
exports.AuthenticationActivityPayloadSchema = exports.AuthenticationActivitySchema = exports.AuthenticationStatusSchema = exports.AuthenticationStatus = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
6
|
const base_js_1 = require("../base.js");
|
|
@@ -9,8 +9,11 @@ exports.AuthenticationStatus = {
|
|
|
9
9
|
FAIL: 'fail',
|
|
10
10
|
};
|
|
11
11
|
exports.AuthenticationStatusSchema = arktype_1.type.enumerated(exports.AuthenticationStatus.SUCESS, exports.AuthenticationStatus.FAIL);
|
|
12
|
-
|
|
12
|
+
const BaseAuthenticationSchema = (0, arktype_1.type)({
|
|
13
13
|
type: (0, arktype_1.type)("'authentication'"),
|
|
14
14
|
status: exports.AuthenticationStatusSchema,
|
|
15
15
|
identity: schema_js_1.UserIdSchema,
|
|
16
|
+
message: (0, arktype_1.type)('string'),
|
|
16
17
|
});
|
|
18
|
+
exports.AuthenticationActivitySchema = base_js_1.BaseSchema.and(BaseAuthenticationSchema);
|
|
19
|
+
exports.AuthenticationActivityPayloadSchema = base_js_1.BasePayloadSchema.and(BaseAuthenticationSchema);
|
|
@@ -3,6 +3,28 @@ export declare const AuthorizationStatus: {
|
|
|
3
3
|
readonly FAIL: "fail";
|
|
4
4
|
};
|
|
5
5
|
export type AnyAuthorizationStatus = (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
|
|
6
|
+
export declare const AuthorizationStatusSchema: import("arktype/out/methods/string.js").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthorizationActivitySchema: 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
|
+
app?: string | undefined;
|
|
16
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
17
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
18
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
19
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
20
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
21
|
+
type: "authorization";
|
|
22
|
+
status: "success" | "fail";
|
|
23
|
+
message: string;
|
|
24
|
+
identity?: string | undefined;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export type AuthorizationActivityProperties = typeof AuthorizationActivitySchema.inferIn;
|
|
27
|
+
export type AuthorizationActivity = typeof AuthorizationActivitySchema.inferOut;
|
|
6
28
|
export declare const AuthorizationActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
7
29
|
id: string;
|
|
8
30
|
performedBy: {
|
|
@@ -11,13 +33,14 @@ export declare const AuthorizationActivityPayloadSchema: import("arktype/out/met
|
|
|
11
33
|
};
|
|
12
34
|
source: string;
|
|
13
35
|
isMutateable: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
36
|
+
app?: string | undefined;
|
|
37
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
38
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
39
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
40
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
18
41
|
metadata?: ((In: {
|
|
19
42
|
[x: string]: string | number | boolean;
|
|
20
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
43
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
21
44
|
[x: string]: string | number | boolean;
|
|
22
45
|
} | undefined>) | undefined;
|
|
23
46
|
type: "authorization";
|
|
@@ -1 +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;
|
|
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;AAEjE,eAAO,MAAM,yBAAyB,4EAGrC,CAAC;AASF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;MAEvC,CAAC;AACF,MAAM,MAAM,+BAA+B,GACzC,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7C,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;MAE9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthorizationActivityPayloadSchema = exports.AuthorizationStatus = void 0;
|
|
3
|
+
exports.AuthorizationActivityPayloadSchema = exports.AuthorizationActivitySchema = exports.AuthorizationStatusSchema = exports.AuthorizationStatus = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
6
|
const base_js_1 = require("../base.js");
|
|
@@ -8,10 +8,12 @@ exports.AuthorizationStatus = {
|
|
|
8
8
|
SUCESS: 'success',
|
|
9
9
|
FAIL: 'fail',
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
exports.AuthorizationStatusSchema = arktype_1.type.enumerated(exports.AuthorizationStatus.SUCESS, exports.AuthorizationStatus.FAIL);
|
|
12
|
+
const BaseAuthorizationSchema = (0, arktype_1.type)({
|
|
13
13
|
type: (0, arktype_1.type)("'authorization'"),
|
|
14
|
-
status:
|
|
14
|
+
status: exports.AuthorizationStatusSchema,
|
|
15
15
|
identity: schema_js_1.UserIdSchema.optional(),
|
|
16
16
|
message: (0, arktype_1.type)('string'),
|
|
17
17
|
});
|
|
18
|
+
exports.AuthorizationActivitySchema = base_js_1.BaseSchema.and(BaseAuthorizationSchema);
|
|
19
|
+
exports.AuthorizationActivityPayloadSchema = base_js_1.BasePayloadSchema.and(BaseAuthorizationSchema);
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
export declare const NoteActivitySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
|
+
id: string;
|
|
3
|
+
performedBy: {
|
|
4
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
5
|
+
identifier: string;
|
|
6
|
+
};
|
|
7
|
+
source: string;
|
|
8
|
+
isMutateable: boolean;
|
|
9
|
+
app?: string | undefined;
|
|
10
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
11
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
12
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
13
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
14
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
15
|
+
type: "note";
|
|
16
|
+
message: string;
|
|
17
|
+
}, {}>;
|
|
18
|
+
export type NoteActivityProperties = typeof NoteActivitySchema.inferIn;
|
|
19
|
+
export type NoteActivity = typeof NoteActivitySchema.inferOut;
|
|
1
20
|
export declare const NoteActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
21
|
id: string;
|
|
3
22
|
performedBy: {
|
|
@@ -6,13 +25,14 @@ export declare const NoteActivityPayloadSchema: import("arktype/out/methods/obje
|
|
|
6
25
|
};
|
|
7
26
|
source: string;
|
|
8
27
|
isMutateable: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
28
|
+
app?: string | undefined;
|
|
29
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
30
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
31
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
32
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
13
33
|
metadata?: ((In: {
|
|
14
34
|
[x: string]: string | number | boolean;
|
|
15
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
35
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
16
36
|
[x: string]: string | number | boolean;
|
|
17
37
|
} | undefined>) | undefined;
|
|
18
38
|
type: "note";
|
|
@@ -27,7 +47,7 @@ export declare const InsertNoteActivityPayloadSchema: import("arktype/out/method
|
|
|
27
47
|
} | undefined;
|
|
28
48
|
metadata?: ((In: {
|
|
29
49
|
[x: string]: string | number | boolean;
|
|
30
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
50
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
31
51
|
[x: string]: string | number | boolean;
|
|
32
52
|
} | null>) | undefined;
|
|
33
53
|
type: "note";
|
|
@@ -41,7 +61,7 @@ export declare const UpdateNoteActivityPayloadSchema: import("arktype/out/method
|
|
|
41
61
|
} | undefined;
|
|
42
62
|
metadata?: ((In: {
|
|
43
63
|
[x: string]: string | number | boolean;
|
|
44
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
64
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
45
65
|
[x: string]: string | number | boolean;
|
|
46
66
|
} | null>) | undefined;
|
|
47
67
|
type: "note";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/note.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/note.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;MAAiC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,QAAQ,CAAC;AAE9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;MAAwC,CAAC;AAC/E,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"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateNoteActivityPayloadSchema = exports.InsertNoteActivityPayloadSchema = exports.NoteActivityPayloadSchema = void 0;
|
|
3
|
+
exports.UpdateNoteActivityPayloadSchema = exports.InsertNoteActivityPayloadSchema = exports.NoteActivityPayloadSchema = exports.NoteActivitySchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const base_js_1 = require("../base.js");
|
|
6
|
-
|
|
6
|
+
const BaseNoteSchema = (0, arktype_1.type)({
|
|
7
7
|
type: (0, arktype_1.type)("'note'"),
|
|
8
8
|
message: (0, arktype_1.type)('string'),
|
|
9
9
|
});
|
|
10
|
+
exports.NoteActivitySchema = base_js_1.BaseSchema.and(BaseNoteSchema);
|
|
11
|
+
exports.NoteActivityPayloadSchema = base_js_1.BasePayloadSchema.and(BaseNoteSchema);
|
|
10
12
|
exports.InsertNoteActivityPayloadSchema = base_js_1.BaseInsertPayloadSchema.and({
|
|
11
13
|
type: (0, arktype_1.type)("'note'"),
|
|
12
14
|
message: (0, arktype_1.type)('string'),
|
|
@@ -5,6 +5,27 @@ export declare const OperationType: {
|
|
|
5
5
|
readonly AUTOMATION: "automation";
|
|
6
6
|
};
|
|
7
7
|
export type AnyOperationType = (typeof OperationType)[keyof typeof OperationType];
|
|
8
|
+
export declare const OperationActivitySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
9
|
+
id: string;
|
|
10
|
+
performedBy: {
|
|
11
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
12
|
+
identifier: string;
|
|
13
|
+
};
|
|
14
|
+
source: string;
|
|
15
|
+
isMutateable: boolean;
|
|
16
|
+
app?: string | undefined;
|
|
17
|
+
createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
18
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
19
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
20
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
21
|
+
metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
22
|
+
type: "operation";
|
|
23
|
+
operation: "delete" | "automation" | "create" | "update";
|
|
24
|
+
message: string;
|
|
25
|
+
target: string;
|
|
26
|
+
}, {}>;
|
|
27
|
+
export type OperationActivityProperties = typeof OperationActivitySchema.inferIn;
|
|
28
|
+
export type OperationActivity = typeof OperationActivitySchema.inferOut;
|
|
8
29
|
export declare const OperationActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
9
30
|
id: string;
|
|
10
31
|
performedBy: {
|
|
@@ -13,13 +34,14 @@ export declare const OperationActivityPayloadSchema: import("arktype/out/methods
|
|
|
13
34
|
};
|
|
14
35
|
source: string;
|
|
15
36
|
isMutateable: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
37
|
+
app?: string | undefined;
|
|
38
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
39
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
40
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
41
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
20
42
|
metadata?: ((In: {
|
|
21
43
|
[x: string]: string | number | boolean;
|
|
22
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
44
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
23
45
|
[x: string]: string | number | boolean;
|
|
24
46
|
} | undefined>) | undefined;
|
|
25
47
|
type: "operation";
|
|
@@ -1 +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;
|
|
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;AAgBrD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;MAAsC,CAAC;AAC3E,MAAM,MAAM,2BAA2B,GACrC,OAAO,uBAAuB,CAAC,OAAO,CAAC;AACzC,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAExE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;MACC,CAAC;AAC7C,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperationActivityPayloadSchema = exports.OperationType = void 0;
|
|
3
|
+
exports.OperationActivityPayloadSchema = exports.OperationActivitySchema = exports.OperationType = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const base_js_1 = require("../base.js");
|
|
6
6
|
exports.OperationType = {
|
|
@@ -10,9 +10,11 @@ exports.OperationType = {
|
|
|
10
10
|
AUTOMATION: 'automation',
|
|
11
11
|
};
|
|
12
12
|
const OperationSchema = arktype_1.type.enumerated(exports.OperationType.CREATE, exports.OperationType.UPDATE, exports.OperationType.DELETE, exports.OperationType.AUTOMATION);
|
|
13
|
-
|
|
13
|
+
const BaseOperationSchema = (0, arktype_1.type)({
|
|
14
14
|
type: (0, arktype_1.type)("'operation'"),
|
|
15
15
|
operation: OperationSchema,
|
|
16
16
|
message: (0, arktype_1.type)('string'),
|
|
17
17
|
target: (0, arktype_1.type)('string'),
|
|
18
18
|
});
|
|
19
|
+
exports.OperationActivitySchema = base_js_1.BaseSchema.and(BaseOperationSchema);
|
|
20
|
+
exports.OperationActivityPayloadSchema = base_js_1.BasePayloadSchema.and(BaseOperationSchema);
|