@go-mondo/identity-sdk 0.0.2-beta.6 → 0.0.2-beta.8
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 +5 -5
- package/dist/cjs/action/schema/operations/set-password.d.ts +11 -11
- package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/cjs/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/cjs/action/schema/schema.d.ts +26 -26
- 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 +28 -11
- package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
- package/dist/cjs/app/authorization/schema.js +30 -14
- package/dist/cjs/app/index.d.ts +6 -0
- package/dist/cjs/app/index.d.ts.map +1 -1
- package/dist/cjs/app/index.js +6 -0
- 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/oauth/schema.d.ts +17 -5
- package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
- package/dist/cjs/app/oauth/schema.js +9 -2
- 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/oidc/schema.d.ts +18 -8
- package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
- package/dist/cjs/app/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/registration/schema.d.ts +15 -5
- package/dist/cjs/app/registration/schema.d.ts.map +1 -1
- package/dist/cjs/app/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/saml/schema.d.ts +18 -8
- package/dist/cjs/app/saml/schema.d.ts.map +1 -1
- package/dist/cjs/app/saml/schema.js +7 -2
- package/dist/cjs/app/schema.d.ts +24 -9
- package/dist/cjs/app/schema.d.ts.map +1 -1
- package/dist/cjs/app/schema.js +11 -3
- package/dist/cjs/association/index.d.ts +1 -0
- package/dist/cjs/association/index.d.ts.map +1 -1
- package/dist/cjs/association/index.js +1 -0
- 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 +138 -19
- package/dist/cjs/association/schema.d.ts.map +1 -1
- package/dist/cjs/association/schema.js +30 -3
- package/dist/cjs/authentication/factors/schema.d.ts +11 -2
- package/dist/cjs/authentication/factors/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/factors/schema.js +5 -1
- package/dist/cjs/authentication/index.d.ts +3 -0
- package/dist/cjs/authentication/index.d.ts.map +1 -1
- package/dist/cjs/authentication/index.js +3 -0
- package/dist/cjs/authentication/providers/schema.d.ts +4 -4
- 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 +35 -13
- package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/sessions/schema.js +15 -6
- 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/settings/schema.d.ts +30 -7
- package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/settings/schema.js +8 -1
- 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/strategies/schema/base.d.ts +17 -7
- package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/base.js +10 -2
- package/dist/cjs/authentication/strategies/schema/schema.d.ts +102 -53
- package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/schema.js +2 -1
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts +27 -9
- package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/email.js +4 -3
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts +76 -43
- package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/password.js +26 -9
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +33 -13
- package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/cjs/authentication/strategies/schema/types/totp.js +12 -3
- 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 +9 -9
- package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/permissions/schema.js +3 -1
- 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 +9 -9
- package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
- package/dist/cjs/authorization/roles/schema.js +3 -1
- 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 +11 -12
- package/dist/cjs/customer/users/schema.d.ts.map +1 -1
- package/dist/cjs/customer/users/schema.js +2 -4
- 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/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/workspace/authorization/schema.d.ts +5 -5
- package/dist/cjs/workspace/branding/schema.d.ts +5 -5
- package/dist/cjs/workspace/membership/schema.d.ts +5 -5
- package/dist/cjs/workspace/registration/schema.d.ts +5 -5
- package/dist/cjs/workspace/settings/schema.d.ts +5 -5
- package/dist/cjs/workspace/tenant/schema.d.ts +10 -10
- package/dist/cjs/workspace/user/notifications/schema.d.ts +7 -7
- package/dist/cjs/workspace/user/preferences/schema.d.ts +5 -5
- package/dist/esm/action/schema/base.d.ts +5 -5
- package/dist/esm/action/schema/operations/set-password.d.ts +11 -11
- package/dist/esm/action/schema/operations/sign-up-verification.d.ts +5 -5
- package/dist/esm/action/schema/operations/sign-up.d.ts +7 -7
- package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +5 -5
- package/dist/esm/action/schema/schema.d.ts +26 -26
- 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 +28 -11
- package/dist/esm/app/authorization/schema.d.ts.map +1 -1
- package/dist/esm/app/authorization/schema.js +31 -15
- package/dist/esm/app/index.d.ts +6 -0
- package/dist/esm/app/index.d.ts.map +1 -1
- package/dist/esm/app/index.js +6 -0
- 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/oauth/schema.d.ts +17 -5
- package/dist/esm/app/oauth/schema.d.ts.map +1 -1
- package/dist/esm/app/oauth/schema.js +10 -3
- 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/oidc/schema.d.ts +18 -8
- package/dist/esm/app/oidc/schema.d.ts.map +1 -1
- package/dist/esm/app/oidc/schema.js +8 -3
- 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 +15 -5
- package/dist/esm/app/registration/schema.d.ts.map +1 -1
- package/dist/esm/app/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/saml/schema.d.ts +18 -8
- package/dist/esm/app/saml/schema.d.ts.map +1 -1
- package/dist/esm/app/saml/schema.js +8 -3
- package/dist/esm/app/schema.d.ts +24 -9
- package/dist/esm/app/schema.d.ts.map +1 -1
- package/dist/esm/app/schema.js +12 -4
- package/dist/esm/association/index.d.ts +1 -0
- package/dist/esm/association/index.d.ts.map +1 -1
- package/dist/esm/association/index.js +1 -0
- 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 +138 -19
- package/dist/esm/association/schema.d.ts.map +1 -1
- package/dist/esm/association/schema.js +30 -3
- package/dist/esm/authentication/factors/schema.d.ts +11 -2
- package/dist/esm/authentication/factors/schema.d.ts.map +1 -1
- package/dist/esm/authentication/factors/schema.js +4 -0
- package/dist/esm/authentication/index.d.ts +3 -0
- package/dist/esm/authentication/index.d.ts.map +1 -1
- package/dist/esm/authentication/index.js +3 -0
- package/dist/esm/authentication/providers/schema.d.ts +4 -4
- 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 +35 -13
- package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
- package/dist/esm/authentication/sessions/schema.js +16 -7
- 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/settings/schema.d.ts +30 -7
- package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
- package/dist/esm/authentication/settings/schema.js +9 -2
- 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/strategies/schema/base.d.ts +17 -7
- package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/base.js +11 -3
- package/dist/esm/authentication/strategies/schema/schema.d.ts +102 -53
- package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/schema.js +4 -3
- package/dist/esm/authentication/strategies/schema/types/email.d.ts +27 -9
- package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/email.js +4 -3
- package/dist/esm/authentication/strategies/schema/types/password.d.ts +76 -43
- package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/password.js +26 -9
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts +33 -13
- package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
- package/dist/esm/authentication/strategies/schema/types/totp.js +12 -3
- 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 +9 -9
- package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
- package/dist/esm/authorization/permissions/schema.js +3 -1
- 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 +9 -9
- package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
- package/dist/esm/authorization/roles/schema.js +3 -1
- 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 +11 -12
- package/dist/esm/customer/users/schema.d.ts.map +1 -1
- package/dist/esm/customer/users/schema.js +2 -4
- 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/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/workspace/authorization/schema.d.ts +5 -5
- package/dist/esm/workspace/branding/schema.d.ts +5 -5
- package/dist/esm/workspace/membership/schema.d.ts +5 -5
- package/dist/esm/workspace/registration/schema.d.ts +5 -5
- package/dist/esm/workspace/settings/schema.d.ts +5 -5
- package/dist/esm/workspace/tenant/schema.d.ts +10 -10
- package/dist/esm/workspace/user/notifications/schema.d.ts +7 -7
- package/dist/esm/workspace/user/preferences/schema.d.ts +5 -5
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-beta.8](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.7...identity-sdk-v0.0.2-beta.8) (2025-06-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* default association status ([fb37d00](https://github.com/go-mondo/identity-node-sdk/commit/fb37d00d6d3dd089adfb8dee393c96c49edf1fb3))
|
|
9
|
+
|
|
10
|
+
## [0.0.2-beta.7](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.6...identity-sdk-v0.0.2-beta.7) (2025-06-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* misc resource updates ([27a8278](https://github.com/go-mondo/identity-node-sdk/commit/27a8278744e3c73a088e64a0e83004f1817840b3))
|
|
16
|
+
|
|
3
17
|
## [0.0.2-beta.6](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.5...identity-sdk-v0.0.2-beta.6) (2025-05-02)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -15,13 +15,13 @@ export declare const OperationSchema: import("arktype/out/methods/string.js").St
|
|
|
15
15
|
export declare const BasePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
16
16
|
id: string;
|
|
17
17
|
attempt: number;
|
|
18
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
19
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
20
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
21
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
18
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
19
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
20
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
21
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
22
22
|
metadata?: ((In: {
|
|
23
23
|
[x: string]: string | number | boolean;
|
|
24
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
24
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
25
25
|
[x: string]: string | number | boolean;
|
|
26
26
|
} | undefined>) | undefined;
|
|
27
27
|
}, {}>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const SetPasswordActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
2
|
id: string;
|
|
3
3
|
attempt: number;
|
|
4
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
5
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
6
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
7
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
8
8
|
metadata?: ((In: {
|
|
9
9
|
[x: string]: string | number | boolean;
|
|
10
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
11
11
|
[x: string]: string | number | boolean;
|
|
12
12
|
} | undefined>) | undefined;
|
|
13
13
|
operation: "set-password";
|
|
14
14
|
user: string;
|
|
15
15
|
identifier: "email" | "phoneNumber";
|
|
16
16
|
policy: {
|
|
17
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
18
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
19
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
20
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
21
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
22
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
17
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
18
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
19
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
20
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
21
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
22
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
23
23
|
};
|
|
24
24
|
}, {}>;
|
|
25
25
|
export type SetPasswordActionPayload = typeof SetPasswordActionPayloadSchema.inferOut;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const SignUpVerificationActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
2
|
id: string;
|
|
3
3
|
attempt: number;
|
|
4
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
5
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
6
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
7
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
8
8
|
metadata?: ((In: {
|
|
9
9
|
[x: string]: string | number | boolean;
|
|
10
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
11
11
|
[x: string]: string | number | boolean;
|
|
12
12
|
} | undefined>) | undefined;
|
|
13
13
|
operation: "sign-up-verification";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const SignUpActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
2
|
id: string;
|
|
3
3
|
attempt: number;
|
|
4
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
5
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
6
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
7
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
8
8
|
metadata?: ((In: {
|
|
9
9
|
[x: string]: string | number | boolean;
|
|
10
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
11
11
|
[x: string]: string | number | boolean;
|
|
12
12
|
} | undefined>) | undefined;
|
|
13
13
|
operation: "sign-up";
|
|
@@ -29,7 +29,7 @@ export declare const SignUpActionRequestSchema: import("arktype/out/methods/obje
|
|
|
29
29
|
honorificSuffix?: string | undefined;
|
|
30
30
|
email: string;
|
|
31
31
|
phoneNumber?: string | undefined;
|
|
32
|
-
id
|
|
32
|
+
id?: string | undefined;
|
|
33
33
|
} | {
|
|
34
34
|
givenName?: string | undefined;
|
|
35
35
|
middleName?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const SignUpActionRequestSchema: import("arktype/out/methods/obje
|
|
|
38
38
|
honorificSuffix?: string | undefined;
|
|
39
39
|
phoneNumber: string;
|
|
40
40
|
email?: string | undefined;
|
|
41
|
-
id
|
|
41
|
+
id?: string | undefined;
|
|
42
42
|
}, {}>;
|
|
43
43
|
export type SignUpActionRequest = typeof SignUpActionRequestSchema.inferOut;
|
|
44
44
|
//# sourceMappingURL=sign-up.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const UserAttributeVerificationActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
2
2
|
id: string;
|
|
3
3
|
attempt: number;
|
|
4
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
5
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
6
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
7
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
4
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
5
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
6
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
7
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
8
8
|
metadata?: ((In: {
|
|
9
9
|
[x: string]: string | number | boolean;
|
|
10
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
10
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
11
11
|
[x: string]: string | number | boolean;
|
|
12
12
|
} | undefined>) | undefined;
|
|
13
13
|
operation: "user-attribute-verification";
|
|
@@ -4,36 +4,36 @@
|
|
|
4
4
|
export declare const ActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
5
5
|
id: string;
|
|
6
6
|
attempt: number;
|
|
7
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
8
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
9
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
10
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
7
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
8
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
9
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
10
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
11
11
|
metadata?: ((In: {
|
|
12
12
|
[x: string]: string | number | boolean;
|
|
13
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
13
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
14
14
|
[x: string]: string | number | boolean;
|
|
15
15
|
} | undefined>) | undefined;
|
|
16
16
|
operation: "set-password";
|
|
17
17
|
user: string;
|
|
18
18
|
identifier: "email" | "phoneNumber";
|
|
19
19
|
policy: {
|
|
20
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
21
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
22
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
23
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
24
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
25
|
-
minimumSpecial: import("arktype/out/attributes.js").Default<number,
|
|
20
|
+
minimumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
21
|
+
maximumLength: import("arktype/out/attributes.js").Default<number, number>;
|
|
22
|
+
minimumCapital: import("arktype/out/attributes.js").Default<number, number>;
|
|
23
|
+
minimumLower: import("arktype/out/attributes.js").Default<number, number>;
|
|
24
|
+
minimumNumber: import("arktype/out/attributes.js").Default<number, number>;
|
|
25
|
+
minimumSpecial: import("arktype/out/attributes.js").Default<number, number>;
|
|
26
26
|
};
|
|
27
27
|
} | {
|
|
28
28
|
id: string;
|
|
29
29
|
attempt: number;
|
|
30
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
31
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
32
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
33
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
30
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
31
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
32
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
33
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
34
34
|
metadata?: ((In: {
|
|
35
35
|
[x: string]: string | number | boolean;
|
|
36
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
36
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
37
37
|
[x: string]: string | number | boolean;
|
|
38
38
|
} | undefined>) | undefined;
|
|
39
39
|
operation: "sign-up-verification";
|
|
@@ -42,13 +42,13 @@ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js"
|
|
|
42
42
|
} | {
|
|
43
43
|
id: string;
|
|
44
44
|
attempt: number;
|
|
45
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
46
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
47
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
48
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
45
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
46
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
47
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
48
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
49
49
|
metadata?: ((In: {
|
|
50
50
|
[x: string]: string | number | boolean;
|
|
51
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
51
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
52
52
|
[x: string]: string | number | boolean;
|
|
53
53
|
} | undefined>) | undefined;
|
|
54
54
|
operation: "sign-up";
|
|
@@ -63,13 +63,13 @@ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js"
|
|
|
63
63
|
} | {
|
|
64
64
|
id: string;
|
|
65
65
|
attempt: number;
|
|
66
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
67
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
68
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
69
|
-
deactivatedAt?: ((In: string | Date | undefined) => import("arktype
|
|
66
|
+
expiresAt: (In: string | Date) => import("arktype").Out<string>;
|
|
67
|
+
updatedAt: (In: string | Date) => import("arktype").Out<string>;
|
|
68
|
+
deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
69
|
+
deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
|
|
70
70
|
metadata?: ((In: {
|
|
71
71
|
[x: string]: string | number | boolean;
|
|
72
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
72
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
73
73
|
[x: string]: string | number | boolean;
|
|
74
74
|
} | undefined>) | undefined;
|
|
75
75
|
operation: "user-attribute-verification";
|
|
@@ -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"}
|
|
@@ -14,4 +14,5 @@ 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
|
+
__exportStar(require("./resources.js"), exports);
|
|
17
18
|
__exportStar(require("./schema/schema.js"), exports);
|
|
@@ -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,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityResources = exports.PATH = void 0;
|
|
4
|
+
exports.listActivities = listActivities;
|
|
5
|
+
const operations_js_1 = require("../common/resources/operations.js");
|
|
6
|
+
const utils_js_1 = require("../common/resources/utils.js");
|
|
7
|
+
const collection_js_1 = require("../common/schema/collection.js");
|
|
8
|
+
const schema_js_1 = require("./schema/schema.js");
|
|
9
|
+
exports.PATH = '/v1/activities';
|
|
10
|
+
class ActivityResources {
|
|
11
|
+
instance;
|
|
12
|
+
constructor(instance) {
|
|
13
|
+
this.instance = instance;
|
|
14
|
+
}
|
|
15
|
+
static buildPath(source) {
|
|
16
|
+
if (source.startsWith(exports.PATH)) {
|
|
17
|
+
return source;
|
|
18
|
+
}
|
|
19
|
+
return [exports.PATH, source].filter(Boolean).join('/');
|
|
20
|
+
}
|
|
21
|
+
listItems(source, pagination) {
|
|
22
|
+
return listActivities(this.instance, source, pagination);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.ActivityResources = ActivityResources;
|
|
26
|
+
async function listActivities(instance, source, pagination) {
|
|
27
|
+
const url = (0, utils_js_1.addPaginationToURL)(new URL(ActivityResources.buildPath(source), instance.config.host), pagination);
|
|
28
|
+
return (0, utils_js_1.parseEgressSchema)((0, collection_js_1.PaginationCollectionSchema)(schema_js_1.ActivitySchema)(await (0, operations_js_1.getItemWithAuthorization)(url, instance.authorizer)));
|
|
29
|
+
}
|
|
@@ -26,6 +26,21 @@ export declare const PerformedBySchema: import("arktype/out/methods/object.js").
|
|
|
26
26
|
identifier: string;
|
|
27
27
|
}, {}>;
|
|
28
28
|
export type PerformedBy = typeof PerformedBySchema.inferOut;
|
|
29
|
+
export declare const BaseSchema: import("arktype/out/methods/object.js").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/out/attributes.js").To<Date>);
|
|
39
|
+
updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
|
|
40
|
+
deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
41
|
+
deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
|
|
42
|
+
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>>;
|
|
43
|
+
}, {}>;
|
|
29
44
|
export declare const BasePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
30
45
|
id: string;
|
|
31
46
|
performedBy: {
|
|
@@ -34,13 +49,14 @@ export declare const BasePayloadSchema: import("arktype/out/methods/object.js").
|
|
|
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/out/methods/object
|
|
|
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/out/methods/object
|
|
|
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,gEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY,gEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;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,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseUpdatePayloadSchema = exports.BaseInsertPayloadSchema = exports.BasePayloadSchema = exports.PerformedBySchema = exports.SourceSchema = exports.ActivityIdPropertySchema = exports.ActivityIdSchema = exports.PerformerType = exports.ActivityType = void 0;
|
|
3
|
+
exports.BaseUpdatePayloadSchema = exports.BaseInsertPayloadSchema = exports.BasePayloadSchema = exports.BaseSchema = exports.PerformedBySchema = exports.SourceSchema = exports.ActivityIdPropertySchema = exports.ActivityIdSchema = exports.PerformerType = exports.ActivityType = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
|
+
const schema_js_1 = require("src/app/schema.js");
|
|
5
6
|
const index_js_1 = require("../../common/index.js");
|
|
6
7
|
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
8
|
const utils_js_1 = require("./utils.js");
|
|
@@ -28,11 +29,20 @@ exports.PerformedBySchema = (0, arktype_1.type)({
|
|
|
28
29
|
type: arktype_1.type.enumerated(exports.PerformerType.SYSTEM, exports.PerformerType.GUEST, exports.PerformerType.IDENTITY, exports.PerformerType.AUTOMATION, exports.PerformerType.INTEGRATION),
|
|
29
30
|
identifier: (0, arktype_1.type)('string'),
|
|
30
31
|
});
|
|
31
|
-
|
|
32
|
+
const CommonSchema = (0, arktype_1.type)({
|
|
32
33
|
id: exports.ActivityIdSchema,
|
|
33
34
|
performedBy: exports.PerformedBySchema,
|
|
34
35
|
source: exports.SourceSchema,
|
|
36
|
+
app: schema_js_1.AppIdSchema.optional(),
|
|
35
37
|
isMutateable: (0, arktype_1.type)('boolean'),
|
|
38
|
+
});
|
|
39
|
+
exports.BaseSchema = CommonSchema.and({
|
|
40
|
+
createdAt: index_js_1.RequiredDateSchema,
|
|
41
|
+
updatedAt: index_js_1.RequiredDateSchema,
|
|
42
|
+
deletedAt: index_js_1.OptionalDateSchema.optional(),
|
|
43
|
+
deactivatedAt: index_js_1.OptionalDateSchema.optional(),
|
|
44
|
+
}).and(metadata_js_1.MetadataMapPropertySchema);
|
|
45
|
+
exports.BasePayloadSchema = CommonSchema.and({
|
|
36
46
|
createdAt: index_js_1.RequiredDatePayloadSchema,
|
|
37
47
|
updatedAt: index_js_1.RequiredDatePayloadSchema,
|
|
38
48
|
'deletedAt?': index_js_1.OptionalDatePayloadSchema,
|