@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
|
@@ -2,19 +2,13 @@ import { SetPasswordActionPayloadSchema } from './operations/set-password.js';
|
|
|
2
2
|
import { SignUpVerificationActionPayloadSchema } from './operations/sign-up-verification.js';
|
|
3
3
|
import { SignUpActionPayloadSchema } from './operations/sign-up.js';
|
|
4
4
|
import { UserAttributeVerificationActionPayloadSchema } from './operations/user-attribute-verification.js';
|
|
5
|
-
export const ActionOperation = {
|
|
6
|
-
SET_PASSWORD: 'set-password',
|
|
7
|
-
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
8
|
-
SIGN_UP: 'sign-up',
|
|
9
|
-
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
10
|
-
};
|
|
11
5
|
/**
|
|
12
6
|
* Union
|
|
13
7
|
*/
|
|
14
8
|
export const ActionPayloadSchema = SetPasswordActionPayloadSchema.or(SignUpVerificationActionPayloadSchema)
|
|
15
9
|
.or(SignUpActionPayloadSchema)
|
|
16
10
|
.or(UserAttributeVerificationActionPayloadSchema);
|
|
17
|
-
export { ActionIdPropertySchema, ActionIdSchema, } from './base.js';
|
|
11
|
+
export { ActionIdPropertySchema, ActionIdSchema, ActionOperation, } from './base.js';
|
|
18
12
|
export * from './operations/set-password.js';
|
|
19
13
|
export * from './operations/sign-up-verification.js';
|
|
20
14
|
export * from './operations/sign-up.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MondoIdentity } from '../common/resources/init.js';
|
|
2
|
+
import { type PaginationCollection } from '../common/schema/collection.js';
|
|
3
|
+
import type { Pagination } from '../common/schema/pagination.js';
|
|
4
|
+
import { type Activity } from './schema/schema.js';
|
|
5
|
+
export declare const PATH = "/v1/activities";
|
|
6
|
+
export declare class ActivityResources {
|
|
7
|
+
private readonly instance;
|
|
8
|
+
constructor(instance: MondoIdentity);
|
|
9
|
+
static buildPath(source: string): string;
|
|
10
|
+
listItems(source: string, pagination?: Pagination): Promise<PaginationCollection<Activity>>;
|
|
11
|
+
}
|
|
12
|
+
export declare function listActivities(instance: MondoIdentity, source: string, pagination?: Pagination): Promise<PaginationCollection<Activity>>;
|
|
13
|
+
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/activity/resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMjE,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAC;AAEnE,eAAO,MAAM,IAAI,mBAAmB,CAAC;AAErC,qBAAa,iBAAiB;IACT,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,aAAa;IAE3D,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAQjC,SAAS,CACd,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,UAAU,GACtB,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CAG3C;AAED,wBAAsB,cAAc,CAClC,QAAQ,EAAE,aAAa,EACvB,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,UAAU,GACtB,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAWzC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getItemWithAuthorization } from '../common/resources/operations.js';
|
|
2
|
+
import { addPaginationToURL, parseEgressSchema, } from '../common/resources/utils.js';
|
|
3
|
+
import { PaginationCollectionSchema, } from '../common/schema/collection.js';
|
|
4
|
+
import { ActivitySchema } from './schema/schema.js';
|
|
5
|
+
export const PATH = '/v1/activities';
|
|
6
|
+
export class ActivityResources {
|
|
7
|
+
instance;
|
|
8
|
+
constructor(instance) {
|
|
9
|
+
this.instance = instance;
|
|
10
|
+
}
|
|
11
|
+
static buildPath(source) {
|
|
12
|
+
if (source.startsWith(PATH)) {
|
|
13
|
+
return source;
|
|
14
|
+
}
|
|
15
|
+
return [PATH, source].filter(Boolean).join('/');
|
|
16
|
+
}
|
|
17
|
+
listItems(source, pagination) {
|
|
18
|
+
return listActivities(this.instance, source, pagination);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export async function listActivities(instance, source, pagination) {
|
|
22
|
+
const url = addPaginationToURL(new URL(ActivityResources.buildPath(source), instance.config.host), pagination);
|
|
23
|
+
return parseEgressSchema(PaginationCollectionSchema(ActivitySchema)(await getItemWithAuthorization(url, instance.authorizer)));
|
|
24
|
+
}
|
|
@@ -26,6 +26,21 @@ export declare const PerformedBySchema: import("arktype/internal/methods/object.
|
|
|
26
26
|
identifier: string;
|
|
27
27
|
}, {}>;
|
|
28
28
|
export type PerformedBy = typeof PerformedBySchema.inferOut;
|
|
29
|
+
export declare const BaseSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
30
|
+
id: string;
|
|
31
|
+
performedBy: {
|
|
32
|
+
type: "system" | "guest" | "identity" | "automation" | "integration";
|
|
33
|
+
identifier: string;
|
|
34
|
+
};
|
|
35
|
+
source: string;
|
|
36
|
+
isMutateable: boolean;
|
|
37
|
+
app?: string | undefined;
|
|
38
|
+
createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
39
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
40
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
41
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
42
|
+
metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
|
|
43
|
+
}, {}>;
|
|
29
44
|
export declare const BasePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
30
45
|
id: string;
|
|
31
46
|
performedBy: {
|
|
@@ -34,13 +49,14 @@ export declare const BasePayloadSchema: import("arktype/internal/methods/object.
|
|
|
34
49
|
};
|
|
35
50
|
source: string;
|
|
36
51
|
isMutateable: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
app?: string | undefined;
|
|
53
|
+
createdAt: (In: string | Date) => import("arktype").Out<string>;
|
|
54
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
55
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
56
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
41
57
|
metadata?: ((In: {
|
|
42
58
|
[x: string]: string | number | boolean;
|
|
43
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
59
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
44
60
|
[x: string]: string | number | boolean;
|
|
45
61
|
} | undefined>) | undefined;
|
|
46
62
|
}, {}>;
|
|
@@ -52,7 +68,7 @@ export declare const BaseInsertPayloadSchema: import("arktype/internal/methods/o
|
|
|
52
68
|
} | undefined;
|
|
53
69
|
metadata?: ((In: {
|
|
54
70
|
[x: string]: string | number | boolean;
|
|
55
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
71
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
56
72
|
[x: string]: string | number | boolean;
|
|
57
73
|
} | null>) | undefined;
|
|
58
74
|
}, {}>;
|
|
@@ -63,7 +79,7 @@ export declare const BaseUpdatePayloadSchema: import("arktype/internal/methods/o
|
|
|
63
79
|
} | undefined;
|
|
64
80
|
metadata?: ((In: {
|
|
65
81
|
[x: string]: string | number | boolean;
|
|
66
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
82
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
67
83
|
[x: string]: string | number | boolean;
|
|
68
84
|
} | null>) | undefined;
|
|
69
85
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAeA,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,gBAAgB,qEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY,qEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAU5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;MAKU,CAAC;AAElC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;MAKO,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;MAGO,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;;;;;MAEO,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type } from 'arktype';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AppIdSchema } from 'src/app/schema.js';
|
|
3
|
+
import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/index.js';
|
|
4
|
+
import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
|
|
4
5
|
import { generateActivityId } from './utils.js';
|
|
5
6
|
export const ActivityType = {
|
|
6
7
|
UNKNOWN: 'unknown',
|
|
@@ -25,11 +26,20 @@ export const PerformedBySchema = type({
|
|
|
25
26
|
type: type.enumerated(PerformerType.SYSTEM, PerformerType.GUEST, PerformerType.IDENTITY, PerformerType.AUTOMATION, PerformerType.INTEGRATION),
|
|
26
27
|
identifier: type('string'),
|
|
27
28
|
});
|
|
28
|
-
|
|
29
|
+
const CommonSchema = type({
|
|
29
30
|
id: ActivityIdSchema,
|
|
30
31
|
performedBy: PerformedBySchema,
|
|
31
32
|
source: SourceSchema,
|
|
33
|
+
app: AppIdSchema.optional(),
|
|
32
34
|
isMutateable: type('boolean'),
|
|
35
|
+
});
|
|
36
|
+
export const BaseSchema = CommonSchema.and({
|
|
37
|
+
createdAt: RequiredDateSchema,
|
|
38
|
+
updatedAt: RequiredDateSchema,
|
|
39
|
+
deletedAt: OptionalDateSchema.optional(),
|
|
40
|
+
deactivatedAt: OptionalDateSchema.optional(),
|
|
41
|
+
}).and(MetadataMapPropertySchema);
|
|
42
|
+
export const BasePayloadSchema = CommonSchema.and({
|
|
33
43
|
createdAt: RequiredDatePayloadSchema,
|
|
34
44
|
updatedAt: RequiredDatePayloadSchema,
|
|
35
45
|
'deletedAt?': OptionalDatePayloadSchema,
|
|
@@ -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/internal/methods/object.ts").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/internal/attributes.ts").To<Date>);
|
|
12
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
13
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
14
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
15
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/attributes.ts").To<Date>);
|
|
30
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
31
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
32
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
33
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/attributes.ts").To<Date>);
|
|
48
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
49
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
50
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
51
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/attributes.ts").To<Date>);
|
|
64
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
65
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
66
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
67
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/attributes.ts").To<Date>);
|
|
82
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
83
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
84
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
85
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/methods/object.ts").ObjectType<{
|
|
3
92
|
id: string;
|
|
4
93
|
performedBy: {
|
|
@@ -7,18 +96,20 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
|
|
|
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/internal/methods/obj
|
|
|
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/internal/methods/obj
|
|
|
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/internal/methods/obj
|
|
|
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/internal/methods/obj
|
|
|
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/internal/metho
|
|
|
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/internal/metho
|
|
|
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/internal/metho
|
|
|
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"}
|
|
@@ -1,9 +1,13 @@
|
|
|
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';
|
|
1
|
+
import { AuthenticationActivityPayloadSchema, AuthenticationActivitySchema, } from './types/authentication.js';
|
|
2
|
+
import { AuthorizationActivityPayloadSchema, AuthorizationActivitySchema, } from './types/authorization.js';
|
|
3
|
+
import { InsertNoteActivityPayloadSchema, NoteActivityPayloadSchema, NoteActivitySchema, UpdateNoteActivityPayloadSchema, } from './types/note.js';
|
|
4
|
+
import { OperationActivityPayloadSchema, OperationActivitySchema, } from './types/operation.js';
|
|
5
|
+
import { UnknownActivityPayloadSchema, UnknownActivitySchema, } from './types/unknown.js';
|
|
6
6
|
export { ActivityType, PerformerType, } from './base.js';
|
|
7
|
+
export const ActivitySchema = NoteActivitySchema.or(AuthenticationActivitySchema)
|
|
8
|
+
.or(AuthorizationActivitySchema)
|
|
9
|
+
.or(OperationActivitySchema)
|
|
10
|
+
.or(UnknownActivitySchema);
|
|
7
11
|
export const ActivityPayloadSchema = NoteActivityPayloadSchema.or(AuthenticationActivityPayloadSchema)
|
|
8
12
|
.or(AuthorizationActivityPayloadSchema)
|
|
9
13
|
.or(OperationActivityPayloadSchema)
|
|
@@ -11,7 +15,6 @@ export const ActivityPayloadSchema = NoteActivityPayloadSchema.or(Authentication
|
|
|
11
15
|
export const InsertActivityPayloadSchema = InsertNoteActivityPayloadSchema;
|
|
12
16
|
export const UpdateActivityPayloadSchema = UpdateNoteActivityPayloadSchema;
|
|
13
17
|
export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, } from './base.js';
|
|
14
|
-
export * from './schema.js';
|
|
15
18
|
export * from './types/authentication.js';
|
|
16
19
|
export * from './types/authorization.js';
|
|
17
20
|
export * from './types/note.js';
|
|
@@ -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/internal/methods/string.ts").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthenticationActivitySchema: 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
|
+
app?: string | undefined;
|
|
16
|
+
createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
17
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
18
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
19
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
20
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/methods/object.ts").ObjectType<{
|
|
8
29
|
id: string;
|
|
9
30
|
performedBy: {
|
|
@@ -12,18 +33,20 @@ export declare const AuthenticationActivityPayloadSchema: import("arktype/intern
|
|
|
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,iFAGtC,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,iFAGtC,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,13 +1,16 @@
|
|
|
1
1
|
import { type } from 'arktype';
|
|
2
2
|
import { UserIdSchema } from '../../../customer/users/schema.js';
|
|
3
|
-
import { BasePayloadSchema } from '../base.js';
|
|
3
|
+
import { BasePayloadSchema, BaseSchema } from '../base.js';
|
|
4
4
|
export const AuthenticationStatus = {
|
|
5
5
|
SUCESS: 'success',
|
|
6
6
|
FAIL: 'fail',
|
|
7
7
|
};
|
|
8
8
|
export const AuthenticationStatusSchema = type.enumerated(AuthenticationStatus.SUCESS, AuthenticationStatus.FAIL);
|
|
9
|
-
|
|
9
|
+
const BaseAuthenticationSchema = type({
|
|
10
10
|
type: type("'authentication'"),
|
|
11
11
|
status: AuthenticationStatusSchema,
|
|
12
12
|
identity: UserIdSchema,
|
|
13
|
+
message: type('string'),
|
|
13
14
|
});
|
|
15
|
+
export const AuthenticationActivitySchema = BaseSchema.and(BaseAuthenticationSchema);
|
|
16
|
+
export const AuthenticationActivityPayloadSchema = 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/internal/methods/string.ts").StringType<"success" | "fail", {}>;
|
|
7
|
+
export declare const AuthorizationActivitySchema: 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
|
+
app?: string | undefined;
|
|
16
|
+
createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
17
|
+
updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
18
|
+
deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
19
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
|
|
20
|
+
metadata: (In: import("arktype/internal/attributes.ts").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/internal/methods/object.ts").ObjectType<{
|
|
7
29
|
id: string;
|
|
8
30
|
performedBy: {
|
|
@@ -11,13 +33,14 @@ export declare const AuthorizationActivityPayloadSchema: import("arktype/interna
|
|
|
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,iFAGrC,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,14 +1,16 @@
|
|
|
1
1
|
import { type } from 'arktype';
|
|
2
2
|
import { UserIdSchema } from '../../../customer/users/schema.js';
|
|
3
|
-
import { BasePayloadSchema } from '../base.js';
|
|
3
|
+
import { BasePayloadSchema, BaseSchema } from '../base.js';
|
|
4
4
|
export const AuthorizationStatus = {
|
|
5
5
|
SUCESS: 'success',
|
|
6
6
|
FAIL: 'fail',
|
|
7
7
|
};
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
export const AuthorizationStatusSchema = type.enumerated(AuthorizationStatus.SUCESS, AuthorizationStatus.FAIL);
|
|
9
|
+
const BaseAuthorizationSchema = type({
|
|
10
10
|
type: type("'authorization'"),
|
|
11
|
-
status:
|
|
11
|
+
status: AuthorizationStatusSchema,
|
|
12
12
|
identity: UserIdSchema.optional(),
|
|
13
13
|
message: type('string'),
|
|
14
14
|
});
|
|
15
|
+
export const AuthorizationActivitySchema = BaseSchema.and(BaseAuthorizationSchema);
|
|
16
|
+
export const AuthorizationActivityPayloadSchema = BasePayloadSchema.and(BaseAuthorizationSchema);
|