@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [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)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* misc resource updates ([27a8278](https://github.com/go-mondo/identity-node-sdk/commit/27a8278744e3c73a088e64a0e83004f1817840b3))
|
|
9
|
+
|
|
10
|
+
## [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)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* module structure ([d7dad85](https://github.com/go-mondo/identity-node-sdk/commit/d7dad85c02c7d47346201d33ed73dcdc35f7ccc5))
|
|
16
|
+
|
|
3
17
|
## [0.0.2-beta.5](https://github.com/go-mondo/identity-node-sdk/compare/identity-sdk-v0.0.2-beta.4...identity-sdk-v0.0.2-beta.5) (2025-05-02)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export declare const ActionOperation: {
|
|
2
|
+
readonly SET_PASSWORD: "set-password";
|
|
3
|
+
readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
|
|
4
|
+
readonly SIGN_UP: "sign-up";
|
|
5
|
+
readonly SIGN_UP_VERIFICATION: "sign-up-verification";
|
|
6
|
+
};
|
|
7
|
+
export type AnyActionOperation = (typeof ActionOperation)[keyof typeof ActionOperation];
|
|
1
8
|
export declare const ActionIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
|
|
2
9
|
export type ActionId = typeof ActionIdSchema.inferOut;
|
|
3
10
|
export declare const ActionIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
@@ -8,13 +15,13 @@ export declare const OperationSchema: import("arktype/out/methods/string.js").St
|
|
|
8
15
|
export declare const BasePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
9
16
|
id: string;
|
|
10
17
|
attempt: number;
|
|
11
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
12
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
13
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
14
|
-
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;
|
|
15
22
|
metadata?: ((In: {
|
|
16
23
|
[x: string]: string | number | boolean;
|
|
17
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
24
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
18
25
|
[x: string]: string | number | boolean;
|
|
19
26
|
} | undefined>) | undefined;
|
|
20
27
|
}, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/base.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,gEAAc,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,eAAO,MAAM,sBAAsB;;MAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAEtE,eAAO,MAAM,eAAe,6IAK3B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;MAMO,CAAC"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BasePayloadSchema = exports.OperationSchema = exports.ActionIdPropertySchema = exports.ActionIdSchema = void 0;
|
|
3
|
+
exports.BasePayloadSchema = exports.OperationSchema = exports.ActionIdPropertySchema = exports.ActionIdSchema = exports.ActionOperation = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const dates_js_1 = require("../../common/schema/dates.js");
|
|
6
6
|
const metadata_js_1 = require("../../common/schema/metadata.js");
|
|
7
|
-
|
|
7
|
+
exports.ActionOperation = {
|
|
8
|
+
SET_PASSWORD: 'set-password',
|
|
9
|
+
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
10
|
+
SIGN_UP: 'sign-up',
|
|
11
|
+
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
12
|
+
};
|
|
8
13
|
exports.ActionIdSchema = arktype_1.type.string;
|
|
9
14
|
exports.ActionIdPropertySchema = (0, arktype_1.type)({
|
|
10
15
|
id: exports.ActionIdSchema,
|
|
11
16
|
});
|
|
12
|
-
exports.OperationSchema = arktype_1.type.enumerated(
|
|
17
|
+
exports.OperationSchema = arktype_1.type.enumerated(exports.ActionOperation.SIGN_UP, exports.ActionOperation.SIGN_UP_VERIFICATION, exports.ActionOperation.SET_PASSWORD, exports.ActionOperation.USER_ATTRIBUTE_VERIFICATION);
|
|
13
18
|
exports.BasePayloadSchema = exports.ActionIdPropertySchema.and({
|
|
14
19
|
attempt: (0, arktype_1.type)('number'),
|
|
15
20
|
expiresAt: dates_js_1.RequiredDatePayloadSchema,
|
|
@@ -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;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SetPasswordActionRequestSchema = exports.SetPasswordActionPayloadSchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
|
-
const schema_js_1 = require("../../../authentication/schema/schema.js");
|
|
5
|
+
const schema_js_1 = require("../../../authentication/strategies/schema/schema.js");
|
|
6
6
|
const schema_js_2 = require("../../../customer/users/schema.js");
|
|
7
|
-
const schema_js_3 = require("../../../identity/schema
|
|
7
|
+
const schema_js_3 = require("../../../identity/schema.js");
|
|
8
8
|
const base_js_1 = require("../base.js");
|
|
9
9
|
exports.SetPasswordActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
10
10
|
operation: (0, arktype_1.type)("'set-password'"),
|
|
@@ -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";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SignUpVerificationActionRequestSchema = exports.SignUpVerificationActionPayloadSchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
|
-
const schema_js_2 = require("../../../identity/schema
|
|
6
|
+
const schema_js_2 = require("../../../identity/schema.js");
|
|
7
7
|
const base_js_1 = require("../base.js");
|
|
8
8
|
exports.SignUpVerificationActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
9
9
|
operation: (0, arktype_1.type)("'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
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SignUpActionRequestSchema = exports.SignUpActionPayloadSchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const schema_js_1 = require("../../../app/schema.js");
|
|
6
|
+
const schema_js_2 = require("../../../customer/users/schema.js");
|
|
7
7
|
const base_js_1 = require("../base.js");
|
|
8
8
|
exports.SignUpActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
9
9
|
operation: (0, arktype_1.type)("'sign-up'"),
|
|
10
|
-
app:
|
|
11
|
-
user:
|
|
10
|
+
app: schema_js_1.AppIdSchema.optional(),
|
|
11
|
+
user: schema_js_2.UserNamePropertiesSchema,
|
|
12
12
|
}).onUndeclaredKey('delete');
|
|
13
|
-
const EmailSignUpActionRequestSchema =
|
|
14
|
-
email:
|
|
15
|
-
phoneNumber:
|
|
16
|
-
}).and(
|
|
17
|
-
const PhoneNumberSignUpActionRequestSchema =
|
|
18
|
-
phoneNumber:
|
|
19
|
-
email:
|
|
20
|
-
}).and(
|
|
13
|
+
const EmailSignUpActionRequestSchema = schema_js_2.UserNamePropertiesSchema.and({
|
|
14
|
+
email: schema_js_2.RequiredEmailSchema,
|
|
15
|
+
phoneNumber: schema_js_2.RequiredPhoneNumberSchema.optional(),
|
|
16
|
+
}).and(schema_js_2.InsertUserPayloadSchema.pick('id'));
|
|
17
|
+
const PhoneNumberSignUpActionRequestSchema = schema_js_2.UserNamePropertiesSchema.and({
|
|
18
|
+
phoneNumber: schema_js_2.RequiredPhoneNumberSchema,
|
|
19
|
+
email: schema_js_2.RequiredEmailSchema.optional(),
|
|
20
|
+
}).and(schema_js_2.InsertUserPayloadSchema.pick('id'));
|
|
21
21
|
exports.SignUpActionRequestSchema = EmailSignUpActionRequestSchema.or(PhoneNumberSignUpActionRequestSchema);
|
|
@@ -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";
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserAttributeVerificationActionRequestSchema = exports.UserAttributeVerificationActionPayloadSchema = void 0;
|
|
4
4
|
const arktype_1 = require("arktype");
|
|
5
5
|
const schema_js_1 = require("../../../customer/users/schema.js");
|
|
6
|
-
const schema_js_2 = require("../../../identity/schema
|
|
6
|
+
const schema_js_2 = require("../../../identity/schema.js");
|
|
7
7
|
const base_js_1 = require("../base.js");
|
|
8
8
|
exports.UserAttributeVerificationActionPayloadSchema = base_js_1.BasePayloadSchema.and({
|
|
9
9
|
operation: (0, arktype_1.type)("'user-attribute-verification'"),
|
|
@@ -1,46 +1,39 @@
|
|
|
1
|
-
export declare const ActionOperation: {
|
|
2
|
-
readonly SET_PASSWORD: "set-password";
|
|
3
|
-
readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
|
|
4
|
-
readonly SIGN_UP: "sign-up";
|
|
5
|
-
readonly SIGN_UP_VERIFICATION: "sign-up-verification";
|
|
6
|
-
};
|
|
7
|
-
export type AnyActionOperation = (typeof ActionOperation)[keyof typeof ActionOperation];
|
|
8
1
|
/**
|
|
9
2
|
* Union
|
|
10
3
|
*/
|
|
11
4
|
export declare const ActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
|
|
12
5
|
id: string;
|
|
13
6
|
attempt: number;
|
|
14
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
15
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
16
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
17
|
-
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;
|
|
18
11
|
metadata?: ((In: {
|
|
19
12
|
[x: string]: string | number | boolean;
|
|
20
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
13
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
21
14
|
[x: string]: string | number | boolean;
|
|
22
15
|
} | undefined>) | undefined;
|
|
23
16
|
operation: "set-password";
|
|
24
17
|
user: string;
|
|
25
18
|
identifier: "email" | "phoneNumber";
|
|
26
19
|
policy: {
|
|
27
|
-
minimumLength: import("arktype/out/attributes.js").Default<number,
|
|
28
|
-
maximumLength: import("arktype/out/attributes.js").Default<number,
|
|
29
|
-
minimumCapital: import("arktype/out/attributes.js").Default<number,
|
|
30
|
-
minimumLower: import("arktype/out/attributes.js").Default<number,
|
|
31
|
-
minimumNumber: import("arktype/out/attributes.js").Default<number,
|
|
32
|
-
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>;
|
|
33
26
|
};
|
|
34
27
|
} | {
|
|
35
28
|
id: string;
|
|
36
29
|
attempt: number;
|
|
37
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
38
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
39
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
40
|
-
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;
|
|
41
34
|
metadata?: ((In: {
|
|
42
35
|
[x: string]: string | number | boolean;
|
|
43
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
36
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
44
37
|
[x: string]: string | number | boolean;
|
|
45
38
|
} | undefined>) | undefined;
|
|
46
39
|
operation: "sign-up-verification";
|
|
@@ -49,13 +42,13 @@ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js"
|
|
|
49
42
|
} | {
|
|
50
43
|
id: string;
|
|
51
44
|
attempt: number;
|
|
52
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
53
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
54
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
55
|
-
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;
|
|
56
49
|
metadata?: ((In: {
|
|
57
50
|
[x: string]: string | number | boolean;
|
|
58
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
51
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
59
52
|
[x: string]: string | number | boolean;
|
|
60
53
|
} | undefined>) | undefined;
|
|
61
54
|
operation: "sign-up";
|
|
@@ -70,13 +63,13 @@ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js"
|
|
|
70
63
|
} | {
|
|
71
64
|
id: string;
|
|
72
65
|
attempt: number;
|
|
73
|
-
expiresAt: (In: string | Date) => import("arktype
|
|
74
|
-
updatedAt: (In: string | Date) => import("arktype
|
|
75
|
-
deletedAt?: ((In: string | Date | undefined) => import("arktype
|
|
76
|
-
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;
|
|
77
70
|
metadata?: ((In: {
|
|
78
71
|
[x: string]: string | number | boolean;
|
|
79
|
-
} | Map<string, string | number | boolean> | null | undefined) => import("arktype
|
|
72
|
+
} | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
|
|
80
73
|
[x: string]: string | number | boolean;
|
|
81
74
|
} | undefined>) | undefined;
|
|
82
75
|
operation: "user-attribute-verification";
|
|
@@ -84,7 +77,7 @@ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js"
|
|
|
84
77
|
attribute: "email" | "phoneNumber";
|
|
85
78
|
}, {}>;
|
|
86
79
|
export type ActionPayload = typeof ActionPayloadSchema.inferOut;
|
|
87
|
-
export { ActionIdPropertySchema, ActionIdSchema, type ActionId, type ActionIdProperty, } from './base.js';
|
|
80
|
+
export { ActionIdPropertySchema, ActionIdSchema, ActionOperation, type ActionId, type ActionIdProperty, type AnyActionOperation, } from './base.js';
|
|
88
81
|
export * from './operations/set-password.js';
|
|
89
82
|
export * from './operations/sign-up-verification.js';
|
|
90
83
|
export * from './operations/sign-up.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAImB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC"}
|
|
@@ -14,17 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ActionOperation = exports.ActionIdSchema = exports.ActionIdPropertySchema = exports.ActionPayloadSchema = void 0;
|
|
18
18
|
const set_password_js_1 = require("./operations/set-password.js");
|
|
19
19
|
const sign_up_verification_js_1 = require("./operations/sign-up-verification.js");
|
|
20
20
|
const sign_up_js_1 = require("./operations/sign-up.js");
|
|
21
21
|
const user_attribute_verification_js_1 = require("./operations/user-attribute-verification.js");
|
|
22
|
-
exports.ActionOperation = {
|
|
23
|
-
SET_PASSWORD: 'set-password',
|
|
24
|
-
USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
|
|
25
|
-
SIGN_UP: 'sign-up',
|
|
26
|
-
SIGN_UP_VERIFICATION: 'sign-up-verification',
|
|
27
|
-
};
|
|
28
22
|
/**
|
|
29
23
|
* Union
|
|
30
24
|
*/
|
|
@@ -34,6 +28,7 @@ exports.ActionPayloadSchema = set_password_js_1.SetPasswordActionPayloadSchema.o
|
|
|
34
28
|
var base_js_1 = require("./base.js");
|
|
35
29
|
Object.defineProperty(exports, "ActionIdPropertySchema", { enumerable: true, get: function () { return base_js_1.ActionIdPropertySchema; } });
|
|
36
30
|
Object.defineProperty(exports, "ActionIdSchema", { enumerable: true, get: function () { return base_js_1.ActionIdSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "ActionOperation", { enumerable: true, get: function () { return base_js_1.ActionOperation; } });
|
|
37
32
|
__exportStar(require("./operations/set-password.js"), exports);
|
|
38
33
|
__exportStar(require("./operations/sign-up-verification.js"), exports);
|
|
39
34
|
__exportStar(require("./operations/sign-up.js"), exports);
|
|
@@ -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,
|