@logto/schemas 1.13.1 → 1.15.0
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/alterations/1.0.0-1677208902-update-admin-console-config.ts +2 -2
- package/alterations/1.0.0-1677765137-seed-for-admin-tenant.ts +2 -2
- package/alterations/1.0.0-1677907982-allow-admin-create-multiple-tenants.ts +1 -1
- package/alterations/1.0.0-1678157950-privacy-policy-url.ts +1 -1
- package/alterations/1.0.0-1678199795-add-verification-status-table.ts +2 -2
- package/alterations/1.0.0-1678259693-remove-branding-style-config.ts +2 -2
- package/alterations/1.0.0-1678269972-use-restrictive-policies.ts +2 -2
- package/alterations/1.0.0-1678284778-restrict-internal-roles.ts +1 -1
- package/alterations/1.0.0-1678425761-m2m-app-for-tenants.ts +1 -1
- package/alterations/1.0.0-1678450233-support-custom-content.ts +1 -1
- package/alterations/1.0.0-1678716747-service-logs.ts +2 -2
- package/alterations/1.0.0-1678928481-remove-deprecated-logto-config-item.ts +2 -2
- package/alterations/1.0.0-1678953179-update-get-started-task-config.ts +2 -2
- package/alterations/1.0.0-1679209413-drop-connector-database-storage.ts +1 -1
- package/alterations/1.0.0_beta.10-1-logto-config.ts +1 -1
- package/alterations/1.0.0_beta.10-1663923211-machine-to-machine-app.ts +1 -1
- package/alterations/1.0.0_beta.10-1664265197-custom-phrases.ts +1 -1
- package/alterations/1.0.0_beta.11-1664347703-rename-language-key-to-tag.ts +1 -1
- package/alterations/1.0.0_beta.11-1664356000-add-created-at-column-to-users.ts +1 -1
- package/alterations/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.ts +1 -1
- package/alterations/1.0.0_beta.14-1665300135-sign-in-sign-up.ts +1 -1
- package/alterations/1.0.0_beta.14-1667283640-remove-forgot-password.ts +1 -1
- package/alterations/1.0.0_beta.14-1667292082-remove-sign-in-method.ts +1 -1
- package/alterations/1.0.0_beta.14-1667374974-user-suspend.ts +1 -1
- package/alterations/1.0.0_beta.14-1667900481-add-passcode-type-continue.ts +1 -1
- package/alterations/1.0.0_beta.18-1668666590-support-multiple-connector-instances.ts +1 -1
- package/alterations/1.0.0_beta.18-1668666600-remove-connector-enabled.ts +1 -1
- package/alterations/1.0.0_beta.18-1669091623-roles-and-scopes.ts +1 -1
- package/alterations/1.0.0_beta.18-1669702299-sign-up.ts +2 -2
- package/alterations/1.0.0_beta.18-1671039448-add-user-name-index.ts +1 -1
- package/alterations/1.0.0_beta.18-1671080370-terms-of-use.ts +2 -2
- package/alterations/1.0.0_beta.18-1671336831-refactor-log-types.ts +1 -1
- package/alterations/1.0.0_beta.18-1671509870-hooks.ts +1 -1
- package/alterations/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.ts +1 -1
- package/alterations/1.0.0_rc.0-1672815959-user-roles.ts +1 -1
- package/alterations/1.0.0_rc.0-1672820345-scope-resource-id.ts +1 -1
- package/alterations/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.ts +1 -1
- package/alterations/1.0.0_rc.0-1673001922-support-generic-passcode.ts +1 -1
- package/alterations/1.0.0_rc.0-1673165463-scope-name-index.ts +1 -1
- package/alterations/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.ts +1 -1
- package/alterations/1.0.0_rc.0-1673465463-ac-scope-name.ts +1 -1
- package/alterations/1.0.0_rc.0-1673853579-ac-default-scope.ts +1 -1
- package/alterations/1.0.0_rc.0-1673863835-ac-scope-role.ts +1 -1
- package/alterations/1.0.0_rc.0-1673882867-fix-alteration-issues.ts +1 -1
- package/alterations/1.0.0_rc.0-1673940577-scope-description-not-null.ts +1 -1
- package/alterations/1.0.0_rc.0-1673941897-application-roles.ts +1 -1
- package/alterations/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.ts +1 -1
- package/alterations/1.0.0_rc.0-1674032095.2-oidc-model-pkey.ts +1 -1
- package/alterations/1.0.0_rc.0-1674032095.3-tenant-table.ts +1 -1
- package/alterations/1.0.0_rc.0-1674032095.4-add-id-column.ts +1 -1
- package/alterations/1.0.0_rc.0-1674032095.5-multi-tenancy.ts +6 -7
- package/alterations/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.ts +1 -1
- package/alterations/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.ts +1 -1
- package/alterations/1.0.0_rc.0-1675316731-update-seed-data.ts +1 -1
- package/alterations/1.0.0_rc.1-1675788753-multi-tenancy-rls.ts +3 -4
- package/alterations/1.0.0_rc.1-1676115897-add-admin-tenant.ts +3 -4
- package/alterations/1.0.0_rc.1-1676185899-fix-logs-index.ts +1 -1
- package/alterations/1.0.0_rc.1-1676190092-migrate-admin-data.ts +2 -2
- package/alterations/1.0.0_rc.1-1676823841-update-sie-primary-key.ts +1 -1
- package/alterations/1.0.0_rc.1-1676874936-support-custom-css.ts +1 -1
- package/alterations/1.0.0_rc.1-1676886855-connector-database-read-write.ts +1 -1
- package/alterations/1.0.0_rc.1-1676906977-remove-demo-app.ts +1 -1
- package/alterations/1.0.0_rc.1-1676956206-move-console-sie-to-database.ts +1 -1
- package/alterations/1.0.0_rc.1-1677059985-move-console-application-to-database.ts +1 -1
- package/alterations/1.10.1-1695647183-update-private-key-type.ts +2 -2
- package/alterations/1.10.1-1696657546-organization-tables.ts +1 -1
- package/alterations/1.10.1-1697683802-add-sso-connectors-table.ts +1 -1
- package/alterations/1.10.1-1698646271-add-organization-created-flag.ts +2 -2
- package/alterations/1.10.1-1698820410-add-user-sso-identities-table.ts +1 -1
- package/alterations/1.10.1-1698910485-user-logto-data.ts +1 -1
- package/alterations/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.ts +1 -1
- package/alterations/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.ts +1 -1
- package/alterations/1.12.0-1700031616-update-org-role-foreign-keys.ts +1 -1
- package/alterations/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.ts +1 -1
- package/alterations/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.ts +1 -1
- package/alterations/1.13.0-1702274830-add-new-third-party-column-to-applications-table.ts +1 -1
- package/alterations/1.13.0-1702372401-add-application-permissions-tables.ts +1 -1
- package/alterations/1.13.0-1702544178-sync-tenant-orgs.ts +1 -1
- package/alterations/1.13.0-1702871078-protected-application-type.ts +1 -1
- package/alterations/1.13.0-1702877515-protected-app-configs.ts +1 -1
- package/alterations/1.13.0-1702978120-application-sign-in-experience-table.ts +1 -1
- package/alterations/1.13.0-1703229996-daily-token-usage.ts +1 -1
- package/alterations/1.13.0-1703230000-update-tenant-roles.ts +1 -1
- package/alterations/1.13.0-1704692973-remove-legacy-resources.ts +1 -1
- package/alterations/1.13.0-1704934999-add-magic-links-table.ts +1 -1
- package/alterations/1.13.0-1704935001-add-organization-invitation-tables.ts +1 -1
- package/alterations/1.13.0-1705288654-add-application-user-consent-organizations-table.ts +1 -1
- package/alterations/1.13.0-1705991158-update-invitation-indices.ts +1 -1
- package/alterations/1.13.0-1706449174-update-organization-invitation-column.ts +1 -1
- package/alterations/1.13.0-1706510290-protected-app-host-index.ts +1 -1
- package/alterations/1.13.0-1706512952-restore-get-started-page.ts +1 -1
- package/alterations/1.13.0-1706528755-remove-magic-links.ts +1 -1
- package/alterations/1.13.0-1706585206-protected-app-custom-domain-unique.ts +1 -1
- package/alterations/1.13.1-1707360939-grant-is-suspended-read-permission.ts +1 -1
- package/alterations/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.ts +47 -0
- package/alterations/1.14.0-1709190131-enhance-dau-data-accuracy.ts +18 -0
- package/alterations/1.15.0-1709521416-user-password-encrypt-method.ts +36 -0
- package/alterations/1.15.0-1709528944-regenerate-dau-data.ts +49 -0
- package/alterations/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.ts +92 -0
- package/alterations/1.15.0-1710408335-make-resource-scopes-description-nullable.ts +22 -0
- package/alterations/1.15.0-1710859622-add-oidc-standard-claim-properties.ts +38 -0
- package/alterations/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.ts +20 -0
- package/alterations/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.ts +25 -0
- package/alterations/1.15.0-1711955211-organization-resource-scope.ts +39 -0
- package/alterations/1.15.0-1712041436-rename-organization-member-role-to-collaborator.ts +28 -0
- package/alterations/1.15.0-1712545011-fix-organization-resource-scope.ts +43 -0
- package/alterations/1.15.0-1712559358-fix-down-organization-resource-scope.ts +46 -0
- package/alterations/1.2.0-1681267285-fix-get-started-passwordless-status.ts +1 -1
- package/alterations/1.3.0-1683292832-update-hooks.ts +1 -1
- package/alterations/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.ts +1 -1
- package/alterations/1.5.0-1684739802-create-hook-id-index-for-logs.ts +1 -1
- package/alterations/1.5.0-1684822341-init-domains.ts +2 -2
- package/alterations/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.ts +1 -1
- package/alterations/1.5.0-1685285719-support-default-resource.ts +1 -1
- package/alterations/1.6.0-1685691718-domain-unique.ts +1 -1
- package/alterations/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.ts +1 -1
- package/alterations/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.ts +1 -1
- package/alterations/1.7.0-1688627407-daily-active-users.ts +1 -1
- package/alterations/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.ts +1 -1
- package/alterations/1.8.0-1692194751-add-affiliate-scopes.ts +1 -1
- package/alterations/1.9.0-1693554904-add-possword-policy.ts +1 -1
- package/alterations/1.9.0-1694399696-add-type-col-to-roles-table.ts +1 -1
- package/alterations/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.ts +1 -1
- package/alterations/1.9.0-1694484927-remove-deprecated-challenge-flag.ts +2 -2
- package/alterations/1.9.0-1694487524-sie-mfa.ts +1 -1
- package/alterations/1.9.0-1694509714-keep-existing-password-policy.ts +1 -1
- package/alterations/1.9.0-1694746763-user-verifications.ts +1 -1
- package/alterations/1.9.2-1694854226-init-sentinel.ts +1 -1
- package/alterations/1.9.2-1695198741-remove-m2m-app-admin-access-switch.ts +1 -1
- package/alterations/utils/1704934999-tables.ts +1 -1
- package/alterations-js/1.0.0-1677208902-update-admin-console-config.js +1 -1
- package/alterations-js/1.0.0-1677765137-seed-for-admin-tenant.js +1 -1
- package/alterations-js/1.0.0-1677907982-allow-admin-create-multiple-tenants.js +1 -1
- package/alterations-js/1.0.0-1678157950-privacy-policy-url.js +1 -1
- package/alterations-js/1.0.0-1678199795-add-verification-status-table.js +1 -1
- package/alterations-js/1.0.0-1678259693-remove-branding-style-config.js +1 -1
- package/alterations-js/1.0.0-1678269972-use-restrictive-policies.js +1 -1
- package/alterations-js/1.0.0-1678284778-restrict-internal-roles.js +1 -1
- package/alterations-js/1.0.0-1678425761-m2m-app-for-tenants.js +1 -1
- package/alterations-js/1.0.0-1678450233-support-custom-content.js +1 -1
- package/alterations-js/1.0.0-1678716747-service-logs.js +1 -1
- package/alterations-js/1.0.0-1678928481-remove-deprecated-logto-config-item.js +1 -1
- package/alterations-js/1.0.0-1678953179-update-get-started-task-config.js +1 -1
- package/alterations-js/1.0.0-1679209413-drop-connector-database-storage.js +1 -1
- package/alterations-js/1.0.0_beta.10-1-logto-config.js +1 -1
- package/alterations-js/1.0.0_beta.10-1663923211-machine-to-machine-app.js +1 -1
- package/alterations-js/1.0.0_beta.10-1664265197-custom-phrases.js +1 -1
- package/alterations-js/1.0.0_beta.11-1664347703-rename-language-key-to-tag.js +1 -1
- package/alterations-js/1.0.0_beta.11-1664356000-add-created-at-column-to-users.js +1 -1
- package/alterations-js/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.js +1 -1
- package/alterations-js/1.0.0_beta.14-1665300135-sign-in-sign-up.js +1 -1
- package/alterations-js/1.0.0_beta.14-1667283640-remove-forgot-password.js +1 -1
- package/alterations-js/1.0.0_beta.14-1667292082-remove-sign-in-method.js +1 -1
- package/alterations-js/1.0.0_beta.14-1667374974-user-suspend.js +1 -1
- package/alterations-js/1.0.0_beta.14-1667900481-add-passcode-type-continue.js +1 -1
- package/alterations-js/1.0.0_beta.18-1668666590-support-multiple-connector-instances.js +1 -1
- package/alterations-js/1.0.0_beta.18-1668666600-remove-connector-enabled.js +1 -1
- package/alterations-js/1.0.0_beta.18-1669091623-roles-and-scopes.js +1 -1
- package/alterations-js/1.0.0_beta.18-1669702299-sign-up.js +1 -1
- package/alterations-js/1.0.0_beta.18-1671039448-add-user-name-index.js +1 -1
- package/alterations-js/1.0.0_beta.18-1671080370-terms-of-use.js +1 -1
- package/alterations-js/1.0.0_beta.18-1671336831-refactor-log-types.js +1 -1
- package/alterations-js/1.0.0_beta.18-1671509870-hooks.js +1 -1
- package/alterations-js/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.js +1 -1
- package/alterations-js/1.0.0_rc.0-1672815959-user-roles.js +1 -1
- package/alterations-js/1.0.0_rc.0-1672820345-scope-resource-id.js +1 -1
- package/alterations-js/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673001922-support-generic-passcode.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673165463-scope-name-index.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673465463-ac-scope-name.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673853579-ac-default-scope.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673863835-ac-scope-role.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673882867-fix-alteration-issues.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673940577-scope-description-not-null.js +1 -1
- package/alterations-js/1.0.0_rc.0-1673941897-application-roles.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674032095.2-oidc-model-pkey.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674032095.3-tenant-table.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674032095.4-add-id-column.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674032095.5-multi-tenancy.js +6 -7
- package/alterations-js/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.js +1 -1
- package/alterations-js/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.js +1 -1
- package/alterations-js/1.0.0_rc.0-1675316731-update-seed-data.js +1 -1
- package/alterations-js/1.0.0_rc.1-1675788753-multi-tenancy-rls.js +2 -3
- package/alterations-js/1.0.0_rc.1-1676115897-add-admin-tenant.js +2 -3
- package/alterations-js/1.0.0_rc.1-1676185899-fix-logs-index.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676190092-migrate-admin-data.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676823841-update-sie-primary-key.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676874936-support-custom-css.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676886855-connector-database-read-write.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676906977-remove-demo-app.js +1 -1
- package/alterations-js/1.0.0_rc.1-1676956206-move-console-sie-to-database.js +1 -1
- package/alterations-js/1.0.0_rc.1-1677059985-move-console-application-to-database.js +1 -1
- package/alterations-js/1.10.1-1695647183-update-private-key-type.js +1 -1
- package/alterations-js/1.10.1-1696657546-organization-tables.js +1 -1
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.js +1 -1
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.js +1 -1
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.js +1 -1
- package/alterations-js/1.10.1-1698910485-user-logto-data.js +1 -1
- package/alterations-js/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.js +1 -1
- package/alterations-js/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.js +1 -1
- package/alterations-js/1.12.0-1700031616-update-org-role-foreign-keys.js +1 -1
- package/alterations-js/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.js +1 -1
- package/alterations-js/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.js +1 -1
- package/alterations-js/1.13.0-1702274830-add-new-third-party-column-to-applications-table.js +1 -1
- package/alterations-js/1.13.0-1702372401-add-application-permissions-tables.js +1 -1
- package/alterations-js/1.13.0-1702544178-sync-tenant-orgs.js +1 -1
- package/alterations-js/1.13.0-1702871078-protected-application-type.js +1 -1
- package/alterations-js/1.13.0-1702877515-protected-app-configs.js +1 -1
- package/alterations-js/1.13.0-1702978120-application-sign-in-experience-table.js +1 -1
- package/alterations-js/1.13.0-1703229996-daily-token-usage.js +1 -1
- package/alterations-js/1.13.0-1703230000-update-tenant-roles.js +1 -1
- package/alterations-js/1.13.0-1704692973-remove-legacy-resources.js +1 -1
- package/alterations-js/1.13.0-1704934999-add-magic-links-table.js +1 -1
- package/alterations-js/1.13.0-1704935001-add-organization-invitation-tables.js +1 -1
- package/alterations-js/1.13.0-1705288654-add-application-user-consent-organizations-table.js +1 -1
- package/alterations-js/1.13.0-1705991158-update-invitation-indices.js +1 -1
- package/alterations-js/1.13.0-1706449174-update-organization-invitation-column.js +1 -1
- package/alterations-js/1.13.0-1706510290-protected-app-host-index.js +1 -1
- package/alterations-js/1.13.0-1706512952-restore-get-started-page.js +1 -1
- package/alterations-js/1.13.0-1706528755-remove-magic-links.js +1 -1
- package/alterations-js/1.13.0-1706585206-protected-app-custom-domain-unique.js +1 -1
- package/alterations-js/1.13.1-1707360939-grant-is-suspended-read-permission.js +1 -1
- package/alterations-js/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.d.ts +3 -0
- package/alterations-js/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.js +36 -0
- package/alterations-js/1.14.0-1709190131-enhance-dau-data-accuracy.d.ts +3 -0
- package/alterations-js/1.14.0-1709190131-enhance-dau-data-accuracy.js +14 -0
- package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.d.ts +3 -0
- package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.js +31 -0
- package/alterations-js/1.15.0-1709528944-regenerate-dau-data.d.ts +3 -0
- package/alterations-js/1.15.0-1709528944-regenerate-dau-data.js +34 -0
- package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.d.ts +3 -0
- package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.js +52 -0
- package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.d.ts +3 -0
- package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.js +18 -0
- package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.d.ts +3 -0
- package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.js +34 -0
- package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.d.ts +3 -0
- package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.js +16 -0
- package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.d.ts +3 -0
- package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.js +21 -0
- package/alterations-js/1.15.0-1711955211-organization-resource-scope.d.ts +3 -0
- package/alterations-js/1.15.0-1711955211-organization-resource-scope.js +32 -0
- package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.d.ts +3 -0
- package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.js +24 -0
- package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.d.ts +8 -0
- package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.js +35 -0
- package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.d.ts +8 -0
- package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.js +38 -0
- package/alterations-js/1.2.0-1681267285-fix-get-started-passwordless-status.js +1 -1
- package/alterations-js/1.3.0-1683292832-update-hooks.js +1 -1
- package/alterations-js/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.js +1 -1
- package/alterations-js/1.5.0-1684739802-create-hook-id-index-for-logs.js +1 -1
- package/alterations-js/1.5.0-1684822341-init-domains.js +1 -1
- package/alterations-js/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.js +1 -1
- package/alterations-js/1.5.0-1685285719-support-default-resource.js +1 -1
- package/alterations-js/1.6.0-1685691718-domain-unique.js +1 -1
- package/alterations-js/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.js +1 -1
- package/alterations-js/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.js +1 -1
- package/alterations-js/1.7.0-1688627407-daily-active-users.js +1 -1
- package/alterations-js/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.js +1 -1
- package/alterations-js/1.8.0-1692194751-add-affiliate-scopes.js +1 -1
- package/alterations-js/1.9.0-1693554904-add-possword-policy.js +1 -1
- package/alterations-js/1.9.0-1694399696-add-type-col-to-roles-table.js +1 -1
- package/alterations-js/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.js +1 -1
- package/alterations-js/1.9.0-1694484927-remove-deprecated-challenge-flag.js +1 -1
- package/alterations-js/1.9.0-1694487524-sie-mfa.js +1 -1
- package/alterations-js/1.9.0-1694509714-keep-existing-password-policy.js +1 -1
- package/alterations-js/1.9.0-1694746763-user-verifications.js +1 -1
- package/alterations-js/1.9.2-1694854226-init-sentinel.js +1 -1
- package/alterations-js/1.9.2-1695198741-remove-m2m-app-admin-access-switch.js +1 -1
- package/alterations-js/utils/1704934999-tables.d.ts +1 -1
- package/alterations-js/utils/1704934999-tables.js +1 -1
- package/lib/consts/experience.d.ts +8 -0
- package/lib/consts/experience.js +9 -0
- package/lib/consts/index.d.ts +1 -0
- package/lib/consts/index.js +1 -0
- package/lib/consts/oidc.d.ts +48 -0
- package/lib/consts/oidc.js +44 -0
- package/lib/consts/subscriptions.d.ts +23 -0
- package/lib/consts/subscriptions.js +23 -0
- package/lib/db-entries/custom-types.d.ts +5 -1
- package/lib/db-entries/custom-types.js +4 -0
- package/lib/db-entries/daily-active-user.d.ts +1 -1
- package/lib/db-entries/daily-active-user.js +1 -1
- package/lib/db-entries/index.d.ts +1 -0
- package/lib/db-entries/index.js +1 -0
- package/lib/db-entries/organization-role-resource-scope-relation.d.ts +20 -0
- package/lib/db-entries/organization-role-resource-scope-relation.js +29 -0
- package/lib/db-entries/scope.d.ts +2 -2
- package/lib/db-entries/scope.js +2 -2
- package/lib/db-entries/user.d.ts +10 -2
- package/lib/db-entries/user.js +9 -1
- package/lib/foundations/jsonb-types/index.d.ts +1 -5
- package/lib/foundations/jsonb-types/index.js +1 -7
- package/lib/foundations/jsonb-types/users.d.ts +103 -6
- package/lib/foundations/jsonb-types/users.js +26 -1
- package/lib/seeds/cloud-api.d.ts +6 -3
- package/lib/seeds/cloud-api.js +6 -2
- package/lib/types/alteration.d.ts +1 -1
- package/lib/types/application.d.ts +7 -7
- package/lib/types/consent.d.ts +100 -16
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +2 -1
- package/lib/types/log/index.d.ts +4 -1
- package/lib/types/log/index.js +1 -0
- package/lib/types/log/jwt-customizer.d.ts +8 -0
- package/lib/types/log/jwt-customizer.js +7 -0
- package/lib/types/logto-config/index.d.ts +1097 -0
- package/lib/types/{logto-config.js → logto-config/index.js} +25 -0
- package/lib/types/logto-config/jwt-customizer.d.ts +1719 -0
- package/lib/types/logto-config/jwt-customizer.js +97 -0
- package/lib/types/logto-config/jwt-customizer.test.d.ts +1 -0
- package/lib/types/logto-config/jwt-customizer.test.js +70 -0
- package/lib/types/logto-config/oidc-provider.d.ts +67 -0
- package/lib/types/logto-config/oidc-provider.js +33 -0
- package/lib/types/onboarding.d.ts +144 -0
- package/lib/types/onboarding.js +75 -0
- package/lib/types/organization.d.ts +18 -5
- package/lib/types/organization.js +19 -0
- package/lib/types/scope.d.ts +3 -3
- package/lib/types/service-log.d.ts +2 -1
- package/lib/types/service-log.js +1 -0
- package/lib/types/sso-connector.d.ts +16 -2
- package/lib/types/sso-connector.js +17 -4
- package/lib/types/system.d.ts +2 -2
- package/lib/types/tenant-organization.d.ts +10 -6
- package/lib/types/tenant-organization.js +19 -9
- package/lib/types/user.d.ts +226 -187
- package/lib/types/user.js +5 -1
- package/lib/utils/domain.test.js +1 -0
- package/lib/utils/zod.d.ts +4 -0
- package/lib/utils/zod.js +1 -0
- package/package.json +13 -15
- package/tables/_before_all.sql +1 -1
- package/tables/_functions.sql +8 -0
- package/tables/daily_active_users.sql +1 -1
- package/tables/organization_role_resource_scope_relations.sql +12 -0
- package/tables/scopes.sql +1 -1
- package/tables/users.sql +10 -1
- package/lib/types/logto-config.d.ts +0 -154
|
@@ -0,0 +1,1097 @@
|
|
|
1
|
+
import type { ZodType } from 'zod';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { type AccessTokenJwtCustomizer, type ClientCredentialsJwtCustomizer } from './jwt-customizer.js';
|
|
4
|
+
export * from './oidc-provider.js';
|
|
5
|
+
export * from './jwt-customizer.js';
|
|
6
|
+
/**
|
|
7
|
+
* Logto OIDC signing key types, used mainly in REST API routes.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum LogtoOidcConfigKeyType {
|
|
10
|
+
PrivateKeys = "private-keys",
|
|
11
|
+
CookieKeys = "cookie-keys"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum LogtoOidcConfigKey {
|
|
17
|
+
PrivateKeys = "oidc.privateKeys",
|
|
18
|
+
CookieKeys = "oidc.cookieKeys"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Logto supported signing key algorithms for OIDC private keys that sign JWT tokens.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum SupportedSigningKeyAlgorithm {
|
|
24
|
+
RSA = "RSA",
|
|
25
|
+
EC = "EC"
|
|
26
|
+
}
|
|
27
|
+
export declare const oidcConfigKeyGuard: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
createdAt: z.ZodNumber;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
value: string;
|
|
33
|
+
id: string;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
}, {
|
|
36
|
+
value: string;
|
|
37
|
+
id: string;
|
|
38
|
+
createdAt: number;
|
|
39
|
+
}>;
|
|
40
|
+
export type OidcConfigKey = z.infer<typeof oidcConfigKeyGuard>;
|
|
41
|
+
export type LogtoOidcConfigType = {
|
|
42
|
+
[LogtoOidcConfigKey.PrivateKeys]: OidcConfigKey[];
|
|
43
|
+
[LogtoOidcConfigKey.CookieKeys]: OidcConfigKey[];
|
|
44
|
+
};
|
|
45
|
+
export declare const logtoOidcConfigGuard: Readonly<{
|
|
46
|
+
[key in LogtoOidcConfigKey]: ZodType<LogtoOidcConfigType[key]>;
|
|
47
|
+
}>;
|
|
48
|
+
export declare enum LogtoJwtTokenKey {
|
|
49
|
+
AccessToken = "jwt.accessToken",
|
|
50
|
+
ClientCredentials = "jwt.clientCredentials"
|
|
51
|
+
}
|
|
52
|
+
export type JwtCustomizerType = {
|
|
53
|
+
[LogtoJwtTokenKey.AccessToken]: AccessTokenJwtCustomizer;
|
|
54
|
+
[LogtoJwtTokenKey.ClientCredentials]: ClientCredentialsJwtCustomizer;
|
|
55
|
+
};
|
|
56
|
+
export declare const jwtCustomizerConfigGuard: Readonly<{
|
|
57
|
+
[key in LogtoJwtTokenKey]: ZodType<JwtCustomizerType[key]>;
|
|
58
|
+
}>;
|
|
59
|
+
export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [z.ZodObject<{
|
|
60
|
+
key: z.ZodLiteral<LogtoJwtTokenKey.AccessToken>;
|
|
61
|
+
value: z.ZodObject<{
|
|
62
|
+
script: z.ZodOptional<z.ZodString>;
|
|
63
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
|
+
tokenSample: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
expiresWithSession: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
gty: z.ZodOptional<z.ZodString>;
|
|
69
|
+
sessionUid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
70
|
+
sid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
71
|
+
kind: z.ZodOptional<z.ZodLiteral<"AccessToken">>;
|
|
72
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
73
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
74
|
+
scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
accountId?: string | undefined;
|
|
78
|
+
expiresWithSession?: boolean | undefined;
|
|
79
|
+
grantId?: string | undefined;
|
|
80
|
+
gty?: string | undefined;
|
|
81
|
+
sessionUid?: string | undefined;
|
|
82
|
+
sid?: string | undefined;
|
|
83
|
+
kind?: "AccessToken" | undefined;
|
|
84
|
+
jti?: string | undefined;
|
|
85
|
+
aud?: string | string[] | undefined;
|
|
86
|
+
scope?: string | undefined;
|
|
87
|
+
clientId?: string | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
accountId?: string | undefined;
|
|
90
|
+
expiresWithSession?: boolean | undefined;
|
|
91
|
+
grantId?: string | undefined;
|
|
92
|
+
gty?: string | undefined;
|
|
93
|
+
sessionUid?: string | undefined;
|
|
94
|
+
sid?: string | undefined;
|
|
95
|
+
kind?: "AccessToken" | undefined;
|
|
96
|
+
jti?: string | undefined;
|
|
97
|
+
aud?: string | string[] | undefined;
|
|
98
|
+
scope?: string | undefined;
|
|
99
|
+
clientId?: string | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
contextSample: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
user: z.ZodObject<{
|
|
103
|
+
name: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
104
|
+
id: z.ZodOptional<ZodType<string, z.ZodTypeDef, string>>;
|
|
105
|
+
applicationId: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
106
|
+
username: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
107
|
+
profile: z.ZodOptional<ZodType<Partial<{
|
|
108
|
+
familyName: string;
|
|
109
|
+
givenName: string;
|
|
110
|
+
middleName: string;
|
|
111
|
+
nickname: string;
|
|
112
|
+
preferredUsername: string;
|
|
113
|
+
profile: string;
|
|
114
|
+
website: string;
|
|
115
|
+
gender: string;
|
|
116
|
+
birthdate: string;
|
|
117
|
+
zoneinfo: string;
|
|
118
|
+
locale: string;
|
|
119
|
+
address: Partial<{
|
|
120
|
+
formatted: string;
|
|
121
|
+
streetAddress: string;
|
|
122
|
+
locality: string;
|
|
123
|
+
/**
|
|
124
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
125
|
+
*/
|
|
126
|
+
region: string;
|
|
127
|
+
postalCode: string;
|
|
128
|
+
country: string;
|
|
129
|
+
}>;
|
|
130
|
+
}>, z.ZodTypeDef, Partial<{
|
|
131
|
+
familyName: string;
|
|
132
|
+
givenName: string;
|
|
133
|
+
middleName: string;
|
|
134
|
+
nickname: string;
|
|
135
|
+
preferredUsername: string;
|
|
136
|
+
profile: string;
|
|
137
|
+
website: string;
|
|
138
|
+
gender: string;
|
|
139
|
+
birthdate: string;
|
|
140
|
+
zoneinfo: string;
|
|
141
|
+
locale: string;
|
|
142
|
+
address: Partial<{
|
|
143
|
+
formatted: string;
|
|
144
|
+
streetAddress: string;
|
|
145
|
+
locality: string;
|
|
146
|
+
/**
|
|
147
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
148
|
+
*/
|
|
149
|
+
region: string;
|
|
150
|
+
postalCode: string;
|
|
151
|
+
country: string;
|
|
152
|
+
}>;
|
|
153
|
+
}>>>;
|
|
154
|
+
createdAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
|
|
155
|
+
updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
|
|
156
|
+
primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
157
|
+
primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
158
|
+
avatar: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
159
|
+
identities: z.ZodOptional<ZodType<Record<string, {
|
|
160
|
+
userId: string;
|
|
161
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
162
|
+
}>, z.ZodTypeDef, Record<string, {
|
|
163
|
+
userId: string;
|
|
164
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
165
|
+
}>>>;
|
|
166
|
+
customData: z.ZodOptional<ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>;
|
|
167
|
+
isSuspended: z.ZodOptional<ZodType<boolean, z.ZodTypeDef, boolean>>;
|
|
168
|
+
lastSignInAt: z.ZodOptional<ZodType<number | null, z.ZodTypeDef, number | null>>;
|
|
169
|
+
ssoIdentities: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
|
170
|
+
tenantId: ZodType<string, z.ZodTypeDef, string>;
|
|
171
|
+
id: ZodType<string, z.ZodTypeDef, string>;
|
|
172
|
+
userId: ZodType<string, z.ZodTypeDef, string>;
|
|
173
|
+
issuer: ZodType<string, z.ZodTypeDef, string>;
|
|
174
|
+
identityId: ZodType<string, z.ZodTypeDef, string>;
|
|
175
|
+
detail: ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
176
|
+
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
177
|
+
ssoConnectorId: ZodType<string, z.ZodTypeDef, string>;
|
|
178
|
+
}, "issuer" | "identityId" | "detail">, "strip", z.ZodTypeAny, {
|
|
179
|
+
issuer: string;
|
|
180
|
+
identityId: string;
|
|
181
|
+
detail: import("@withtyped/server").JsonObject;
|
|
182
|
+
}, {
|
|
183
|
+
issuer: string;
|
|
184
|
+
identityId: string;
|
|
185
|
+
detail: import("@withtyped/server").JsonObject;
|
|
186
|
+
}>, "many">>;
|
|
187
|
+
mfaVerificationFactors: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../index.js").MfaFactor>, "many">>;
|
|
188
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
name: ZodType<string, z.ZodTypeDef, string>;
|
|
190
|
+
id: ZodType<string, z.ZodTypeDef, string>;
|
|
191
|
+
description: ZodType<string, z.ZodTypeDef, string>;
|
|
192
|
+
scopes: z.ZodArray<z.ZodObject<Pick<{
|
|
193
|
+
name: ZodType<string, z.ZodTypeDef, string>;
|
|
194
|
+
id: ZodType<string, z.ZodTypeDef, string>;
|
|
195
|
+
tenantId: ZodType<string, z.ZodTypeDef, string>;
|
|
196
|
+
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
197
|
+
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
198
|
+
resourceId: ZodType<string, z.ZodTypeDef, string>;
|
|
199
|
+
resource: import("../../index.js").Guard<import("../../index.js").Resource>;
|
|
200
|
+
}, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
|
|
201
|
+
name: string;
|
|
202
|
+
id: string;
|
|
203
|
+
description: string | null;
|
|
204
|
+
resource: import("../../index.js").Resource;
|
|
205
|
+
resourceId: string;
|
|
206
|
+
}, {
|
|
207
|
+
name: string;
|
|
208
|
+
id: string;
|
|
209
|
+
description: string | null;
|
|
210
|
+
resource: import("../../index.js").Resource;
|
|
211
|
+
resourceId: string;
|
|
212
|
+
}>, "many">;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
name: string;
|
|
215
|
+
id: string;
|
|
216
|
+
description: string;
|
|
217
|
+
scopes: {
|
|
218
|
+
name: string;
|
|
219
|
+
id: string;
|
|
220
|
+
description: string | null;
|
|
221
|
+
resource: import("../../index.js").Resource;
|
|
222
|
+
resourceId: string;
|
|
223
|
+
}[];
|
|
224
|
+
}, {
|
|
225
|
+
name: string;
|
|
226
|
+
id: string;
|
|
227
|
+
description: string;
|
|
228
|
+
scopes: {
|
|
229
|
+
name: string;
|
|
230
|
+
id: string;
|
|
231
|
+
description: string | null;
|
|
232
|
+
resource: import("../../index.js").Resource;
|
|
233
|
+
resourceId: string;
|
|
234
|
+
}[];
|
|
235
|
+
}>, "many">>;
|
|
236
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
|
237
|
+
tenantId: ZodType<string, z.ZodTypeDef, string>;
|
|
238
|
+
id: ZodType<string, z.ZodTypeDef, string>;
|
|
239
|
+
name: ZodType<string, z.ZodTypeDef, string>;
|
|
240
|
+
description: ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
241
|
+
createdAt: ZodType<number, z.ZodTypeDef, number>;
|
|
242
|
+
}, "name" | "id" | "description">, "strip", z.ZodTypeAny, {
|
|
243
|
+
name: string;
|
|
244
|
+
id: string;
|
|
245
|
+
description: string | null;
|
|
246
|
+
}, {
|
|
247
|
+
name: string;
|
|
248
|
+
id: string;
|
|
249
|
+
description: string | null;
|
|
250
|
+
}>, "many">>;
|
|
251
|
+
organizationRoles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
252
|
+
organizationId: z.ZodString;
|
|
253
|
+
roleId: z.ZodString;
|
|
254
|
+
roleName: z.ZodString;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
organizationId: string;
|
|
257
|
+
roleId: string;
|
|
258
|
+
roleName: string;
|
|
259
|
+
}, {
|
|
260
|
+
organizationId: string;
|
|
261
|
+
roleId: string;
|
|
262
|
+
roleName: string;
|
|
263
|
+
}>, "many">>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
name?: string | null | undefined;
|
|
266
|
+
id?: string | undefined;
|
|
267
|
+
applicationId?: string | null | undefined;
|
|
268
|
+
username?: string | null | undefined;
|
|
269
|
+
profile?: Partial<{
|
|
270
|
+
familyName: string;
|
|
271
|
+
givenName: string;
|
|
272
|
+
middleName: string;
|
|
273
|
+
nickname: string;
|
|
274
|
+
preferredUsername: string;
|
|
275
|
+
profile: string;
|
|
276
|
+
website: string;
|
|
277
|
+
gender: string;
|
|
278
|
+
birthdate: string;
|
|
279
|
+
zoneinfo: string;
|
|
280
|
+
locale: string;
|
|
281
|
+
address: Partial<{
|
|
282
|
+
formatted: string;
|
|
283
|
+
streetAddress: string;
|
|
284
|
+
locality: string;
|
|
285
|
+
/**
|
|
286
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
287
|
+
*/
|
|
288
|
+
region: string;
|
|
289
|
+
postalCode: string;
|
|
290
|
+
country: string;
|
|
291
|
+
}>;
|
|
292
|
+
}> | undefined;
|
|
293
|
+
createdAt?: number | undefined;
|
|
294
|
+
updatedAt?: number | undefined;
|
|
295
|
+
primaryEmail?: string | null | undefined;
|
|
296
|
+
primaryPhone?: string | null | undefined;
|
|
297
|
+
avatar?: string | null | undefined;
|
|
298
|
+
identities?: Record<string, {
|
|
299
|
+
userId: string;
|
|
300
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
301
|
+
}> | undefined;
|
|
302
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
303
|
+
isSuspended?: boolean | undefined;
|
|
304
|
+
lastSignInAt?: number | null | undefined;
|
|
305
|
+
ssoIdentities?: {
|
|
306
|
+
issuer: string;
|
|
307
|
+
identityId: string;
|
|
308
|
+
detail: import("@withtyped/server").JsonObject;
|
|
309
|
+
}[] | undefined;
|
|
310
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
311
|
+
roles?: {
|
|
312
|
+
name: string;
|
|
313
|
+
id: string;
|
|
314
|
+
description: string;
|
|
315
|
+
scopes: {
|
|
316
|
+
name: string;
|
|
317
|
+
id: string;
|
|
318
|
+
description: string | null;
|
|
319
|
+
resource: import("../../index.js").Resource;
|
|
320
|
+
resourceId: string;
|
|
321
|
+
}[];
|
|
322
|
+
}[] | undefined;
|
|
323
|
+
organizations?: {
|
|
324
|
+
name: string;
|
|
325
|
+
id: string;
|
|
326
|
+
description: string | null;
|
|
327
|
+
}[] | undefined;
|
|
328
|
+
organizationRoles?: {
|
|
329
|
+
organizationId: string;
|
|
330
|
+
roleId: string;
|
|
331
|
+
roleName: string;
|
|
332
|
+
}[] | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
name?: string | null | undefined;
|
|
335
|
+
id?: string | undefined;
|
|
336
|
+
applicationId?: string | null | undefined;
|
|
337
|
+
username?: string | null | undefined;
|
|
338
|
+
profile?: Partial<{
|
|
339
|
+
familyName: string;
|
|
340
|
+
givenName: string;
|
|
341
|
+
middleName: string;
|
|
342
|
+
nickname: string;
|
|
343
|
+
preferredUsername: string;
|
|
344
|
+
profile: string;
|
|
345
|
+
website: string;
|
|
346
|
+
gender: string;
|
|
347
|
+
birthdate: string;
|
|
348
|
+
zoneinfo: string;
|
|
349
|
+
locale: string;
|
|
350
|
+
address: Partial<{
|
|
351
|
+
formatted: string;
|
|
352
|
+
streetAddress: string;
|
|
353
|
+
locality: string;
|
|
354
|
+
/**
|
|
355
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
356
|
+
*/
|
|
357
|
+
region: string;
|
|
358
|
+
postalCode: string;
|
|
359
|
+
country: string;
|
|
360
|
+
}>;
|
|
361
|
+
}> | undefined;
|
|
362
|
+
createdAt?: number | undefined;
|
|
363
|
+
updatedAt?: number | undefined;
|
|
364
|
+
primaryEmail?: string | null | undefined;
|
|
365
|
+
primaryPhone?: string | null | undefined;
|
|
366
|
+
avatar?: string | null | undefined;
|
|
367
|
+
identities?: Record<string, {
|
|
368
|
+
userId: string;
|
|
369
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
370
|
+
}> | undefined;
|
|
371
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
372
|
+
isSuspended?: boolean | undefined;
|
|
373
|
+
lastSignInAt?: number | null | undefined;
|
|
374
|
+
ssoIdentities?: {
|
|
375
|
+
issuer: string;
|
|
376
|
+
identityId: string;
|
|
377
|
+
detail: import("@withtyped/server").JsonObject;
|
|
378
|
+
}[] | undefined;
|
|
379
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
380
|
+
roles?: {
|
|
381
|
+
name: string;
|
|
382
|
+
id: string;
|
|
383
|
+
description: string;
|
|
384
|
+
scopes: {
|
|
385
|
+
name: string;
|
|
386
|
+
id: string;
|
|
387
|
+
description: string | null;
|
|
388
|
+
resource: import("../../index.js").Resource;
|
|
389
|
+
resourceId: string;
|
|
390
|
+
}[];
|
|
391
|
+
}[] | undefined;
|
|
392
|
+
organizations?: {
|
|
393
|
+
name: string;
|
|
394
|
+
id: string;
|
|
395
|
+
description: string | null;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
organizationRoles?: {
|
|
398
|
+
organizationId: string;
|
|
399
|
+
roleId: string;
|
|
400
|
+
roleName: string;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
}>;
|
|
403
|
+
}, "strip", z.ZodTypeAny, {
|
|
404
|
+
user: {
|
|
405
|
+
name?: string | null | undefined;
|
|
406
|
+
id?: string | undefined;
|
|
407
|
+
applicationId?: string | null | undefined;
|
|
408
|
+
username?: string | null | undefined;
|
|
409
|
+
profile?: Partial<{
|
|
410
|
+
familyName: string;
|
|
411
|
+
givenName: string;
|
|
412
|
+
middleName: string;
|
|
413
|
+
nickname: string;
|
|
414
|
+
preferredUsername: string;
|
|
415
|
+
profile: string;
|
|
416
|
+
website: string;
|
|
417
|
+
gender: string;
|
|
418
|
+
birthdate: string;
|
|
419
|
+
zoneinfo: string;
|
|
420
|
+
locale: string;
|
|
421
|
+
address: Partial<{
|
|
422
|
+
formatted: string;
|
|
423
|
+
streetAddress: string;
|
|
424
|
+
locality: string;
|
|
425
|
+
/**
|
|
426
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
427
|
+
*/
|
|
428
|
+
region: string;
|
|
429
|
+
postalCode: string;
|
|
430
|
+
country: string;
|
|
431
|
+
}>;
|
|
432
|
+
}> | undefined;
|
|
433
|
+
createdAt?: number | undefined;
|
|
434
|
+
updatedAt?: number | undefined;
|
|
435
|
+
primaryEmail?: string | null | undefined;
|
|
436
|
+
primaryPhone?: string | null | undefined;
|
|
437
|
+
avatar?: string | null | undefined;
|
|
438
|
+
identities?: Record<string, {
|
|
439
|
+
userId: string;
|
|
440
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
441
|
+
}> | undefined;
|
|
442
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
443
|
+
isSuspended?: boolean | undefined;
|
|
444
|
+
lastSignInAt?: number | null | undefined;
|
|
445
|
+
ssoIdentities?: {
|
|
446
|
+
issuer: string;
|
|
447
|
+
identityId: string;
|
|
448
|
+
detail: import("@withtyped/server").JsonObject;
|
|
449
|
+
}[] | undefined;
|
|
450
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
451
|
+
roles?: {
|
|
452
|
+
name: string;
|
|
453
|
+
id: string;
|
|
454
|
+
description: string;
|
|
455
|
+
scopes: {
|
|
456
|
+
name: string;
|
|
457
|
+
id: string;
|
|
458
|
+
description: string | null;
|
|
459
|
+
resource: import("../../index.js").Resource;
|
|
460
|
+
resourceId: string;
|
|
461
|
+
}[];
|
|
462
|
+
}[] | undefined;
|
|
463
|
+
organizations?: {
|
|
464
|
+
name: string;
|
|
465
|
+
id: string;
|
|
466
|
+
description: string | null;
|
|
467
|
+
}[] | undefined;
|
|
468
|
+
organizationRoles?: {
|
|
469
|
+
organizationId: string;
|
|
470
|
+
roleId: string;
|
|
471
|
+
roleName: string;
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
};
|
|
474
|
+
}, {
|
|
475
|
+
user: {
|
|
476
|
+
name?: string | null | undefined;
|
|
477
|
+
id?: string | undefined;
|
|
478
|
+
applicationId?: string | null | undefined;
|
|
479
|
+
username?: string | null | undefined;
|
|
480
|
+
profile?: Partial<{
|
|
481
|
+
familyName: string;
|
|
482
|
+
givenName: string;
|
|
483
|
+
middleName: string;
|
|
484
|
+
nickname: string;
|
|
485
|
+
preferredUsername: string;
|
|
486
|
+
profile: string;
|
|
487
|
+
website: string;
|
|
488
|
+
gender: string;
|
|
489
|
+
birthdate: string;
|
|
490
|
+
zoneinfo: string;
|
|
491
|
+
locale: string;
|
|
492
|
+
address: Partial<{
|
|
493
|
+
formatted: string;
|
|
494
|
+
streetAddress: string;
|
|
495
|
+
locality: string;
|
|
496
|
+
/**
|
|
497
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
498
|
+
*/
|
|
499
|
+
region: string;
|
|
500
|
+
postalCode: string;
|
|
501
|
+
country: string;
|
|
502
|
+
}>;
|
|
503
|
+
}> | undefined;
|
|
504
|
+
createdAt?: number | undefined;
|
|
505
|
+
updatedAt?: number | undefined;
|
|
506
|
+
primaryEmail?: string | null | undefined;
|
|
507
|
+
primaryPhone?: string | null | undefined;
|
|
508
|
+
avatar?: string | null | undefined;
|
|
509
|
+
identities?: Record<string, {
|
|
510
|
+
userId: string;
|
|
511
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
512
|
+
}> | undefined;
|
|
513
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
514
|
+
isSuspended?: boolean | undefined;
|
|
515
|
+
lastSignInAt?: number | null | undefined;
|
|
516
|
+
ssoIdentities?: {
|
|
517
|
+
issuer: string;
|
|
518
|
+
identityId: string;
|
|
519
|
+
detail: import("@withtyped/server").JsonObject;
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
522
|
+
roles?: {
|
|
523
|
+
name: string;
|
|
524
|
+
id: string;
|
|
525
|
+
description: string;
|
|
526
|
+
scopes: {
|
|
527
|
+
name: string;
|
|
528
|
+
id: string;
|
|
529
|
+
description: string | null;
|
|
530
|
+
resource: import("../../index.js").Resource;
|
|
531
|
+
resourceId: string;
|
|
532
|
+
}[];
|
|
533
|
+
}[] | undefined;
|
|
534
|
+
organizations?: {
|
|
535
|
+
name: string;
|
|
536
|
+
id: string;
|
|
537
|
+
description: string | null;
|
|
538
|
+
}[] | undefined;
|
|
539
|
+
organizationRoles?: {
|
|
540
|
+
organizationId: string;
|
|
541
|
+
roleId: string;
|
|
542
|
+
roleName: string;
|
|
543
|
+
}[] | undefined;
|
|
544
|
+
};
|
|
545
|
+
}>>;
|
|
546
|
+
}, "strict", z.ZodTypeAny, {
|
|
547
|
+
script?: string | undefined;
|
|
548
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
549
|
+
tokenSample?: {
|
|
550
|
+
accountId?: string | undefined;
|
|
551
|
+
expiresWithSession?: boolean | undefined;
|
|
552
|
+
grantId?: string | undefined;
|
|
553
|
+
gty?: string | undefined;
|
|
554
|
+
sessionUid?: string | undefined;
|
|
555
|
+
sid?: string | undefined;
|
|
556
|
+
kind?: "AccessToken" | undefined;
|
|
557
|
+
jti?: string | undefined;
|
|
558
|
+
aud?: string | string[] | undefined;
|
|
559
|
+
scope?: string | undefined;
|
|
560
|
+
clientId?: string | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
contextSample?: {
|
|
563
|
+
user: {
|
|
564
|
+
name?: string | null | undefined;
|
|
565
|
+
id?: string | undefined;
|
|
566
|
+
applicationId?: string | null | undefined;
|
|
567
|
+
username?: string | null | undefined;
|
|
568
|
+
profile?: Partial<{
|
|
569
|
+
familyName: string;
|
|
570
|
+
givenName: string;
|
|
571
|
+
middleName: string;
|
|
572
|
+
nickname: string;
|
|
573
|
+
preferredUsername: string;
|
|
574
|
+
profile: string;
|
|
575
|
+
website: string;
|
|
576
|
+
gender: string;
|
|
577
|
+
birthdate: string;
|
|
578
|
+
zoneinfo: string;
|
|
579
|
+
locale: string;
|
|
580
|
+
address: Partial<{
|
|
581
|
+
formatted: string;
|
|
582
|
+
streetAddress: string;
|
|
583
|
+
locality: string;
|
|
584
|
+
/**
|
|
585
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
586
|
+
*/
|
|
587
|
+
region: string;
|
|
588
|
+
postalCode: string;
|
|
589
|
+
country: string;
|
|
590
|
+
}>;
|
|
591
|
+
}> | undefined;
|
|
592
|
+
createdAt?: number | undefined;
|
|
593
|
+
updatedAt?: number | undefined;
|
|
594
|
+
primaryEmail?: string | null | undefined;
|
|
595
|
+
primaryPhone?: string | null | undefined;
|
|
596
|
+
avatar?: string | null | undefined;
|
|
597
|
+
identities?: Record<string, {
|
|
598
|
+
userId: string;
|
|
599
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
600
|
+
}> | undefined;
|
|
601
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
602
|
+
isSuspended?: boolean | undefined;
|
|
603
|
+
lastSignInAt?: number | null | undefined;
|
|
604
|
+
ssoIdentities?: {
|
|
605
|
+
issuer: string;
|
|
606
|
+
identityId: string;
|
|
607
|
+
detail: import("@withtyped/server").JsonObject;
|
|
608
|
+
}[] | undefined;
|
|
609
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
610
|
+
roles?: {
|
|
611
|
+
name: string;
|
|
612
|
+
id: string;
|
|
613
|
+
description: string;
|
|
614
|
+
scopes: {
|
|
615
|
+
name: string;
|
|
616
|
+
id: string;
|
|
617
|
+
description: string | null;
|
|
618
|
+
resource: import("../../index.js").Resource;
|
|
619
|
+
resourceId: string;
|
|
620
|
+
}[];
|
|
621
|
+
}[] | undefined;
|
|
622
|
+
organizations?: {
|
|
623
|
+
name: string;
|
|
624
|
+
id: string;
|
|
625
|
+
description: string | null;
|
|
626
|
+
}[] | undefined;
|
|
627
|
+
organizationRoles?: {
|
|
628
|
+
organizationId: string;
|
|
629
|
+
roleId: string;
|
|
630
|
+
roleName: string;
|
|
631
|
+
}[] | undefined;
|
|
632
|
+
};
|
|
633
|
+
} | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
script?: string | undefined;
|
|
636
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
637
|
+
tokenSample?: {
|
|
638
|
+
accountId?: string | undefined;
|
|
639
|
+
expiresWithSession?: boolean | undefined;
|
|
640
|
+
grantId?: string | undefined;
|
|
641
|
+
gty?: string | undefined;
|
|
642
|
+
sessionUid?: string | undefined;
|
|
643
|
+
sid?: string | undefined;
|
|
644
|
+
kind?: "AccessToken" | undefined;
|
|
645
|
+
jti?: string | undefined;
|
|
646
|
+
aud?: string | string[] | undefined;
|
|
647
|
+
scope?: string | undefined;
|
|
648
|
+
clientId?: string | undefined;
|
|
649
|
+
} | undefined;
|
|
650
|
+
contextSample?: {
|
|
651
|
+
user: {
|
|
652
|
+
name?: string | null | undefined;
|
|
653
|
+
id?: string | undefined;
|
|
654
|
+
applicationId?: string | null | undefined;
|
|
655
|
+
username?: string | null | undefined;
|
|
656
|
+
profile?: Partial<{
|
|
657
|
+
familyName: string;
|
|
658
|
+
givenName: string;
|
|
659
|
+
middleName: string;
|
|
660
|
+
nickname: string;
|
|
661
|
+
preferredUsername: string;
|
|
662
|
+
profile: string;
|
|
663
|
+
website: string;
|
|
664
|
+
gender: string;
|
|
665
|
+
birthdate: string;
|
|
666
|
+
zoneinfo: string;
|
|
667
|
+
locale: string;
|
|
668
|
+
address: Partial<{
|
|
669
|
+
formatted: string;
|
|
670
|
+
streetAddress: string;
|
|
671
|
+
locality: string;
|
|
672
|
+
/**
|
|
673
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
674
|
+
*/
|
|
675
|
+
region: string;
|
|
676
|
+
postalCode: string;
|
|
677
|
+
country: string;
|
|
678
|
+
}>;
|
|
679
|
+
}> | undefined;
|
|
680
|
+
createdAt?: number | undefined;
|
|
681
|
+
updatedAt?: number | undefined;
|
|
682
|
+
primaryEmail?: string | null | undefined;
|
|
683
|
+
primaryPhone?: string | null | undefined;
|
|
684
|
+
avatar?: string | null | undefined;
|
|
685
|
+
identities?: Record<string, {
|
|
686
|
+
userId: string;
|
|
687
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
688
|
+
}> | undefined;
|
|
689
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
690
|
+
isSuspended?: boolean | undefined;
|
|
691
|
+
lastSignInAt?: number | null | undefined;
|
|
692
|
+
ssoIdentities?: {
|
|
693
|
+
issuer: string;
|
|
694
|
+
identityId: string;
|
|
695
|
+
detail: import("@withtyped/server").JsonObject;
|
|
696
|
+
}[] | undefined;
|
|
697
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
698
|
+
roles?: {
|
|
699
|
+
name: string;
|
|
700
|
+
id: string;
|
|
701
|
+
description: string;
|
|
702
|
+
scopes: {
|
|
703
|
+
name: string;
|
|
704
|
+
id: string;
|
|
705
|
+
description: string | null;
|
|
706
|
+
resource: import("../../index.js").Resource;
|
|
707
|
+
resourceId: string;
|
|
708
|
+
}[];
|
|
709
|
+
}[] | undefined;
|
|
710
|
+
organizations?: {
|
|
711
|
+
name: string;
|
|
712
|
+
id: string;
|
|
713
|
+
description: string | null;
|
|
714
|
+
}[] | undefined;
|
|
715
|
+
organizationRoles?: {
|
|
716
|
+
organizationId: string;
|
|
717
|
+
roleId: string;
|
|
718
|
+
roleName: string;
|
|
719
|
+
}[] | undefined;
|
|
720
|
+
};
|
|
721
|
+
} | undefined;
|
|
722
|
+
}>;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
value: {
|
|
725
|
+
script?: string | undefined;
|
|
726
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
727
|
+
tokenSample?: {
|
|
728
|
+
accountId?: string | undefined;
|
|
729
|
+
expiresWithSession?: boolean | undefined;
|
|
730
|
+
grantId?: string | undefined;
|
|
731
|
+
gty?: string | undefined;
|
|
732
|
+
sessionUid?: string | undefined;
|
|
733
|
+
sid?: string | undefined;
|
|
734
|
+
kind?: "AccessToken" | undefined;
|
|
735
|
+
jti?: string | undefined;
|
|
736
|
+
aud?: string | string[] | undefined;
|
|
737
|
+
scope?: string | undefined;
|
|
738
|
+
clientId?: string | undefined;
|
|
739
|
+
} | undefined;
|
|
740
|
+
contextSample?: {
|
|
741
|
+
user: {
|
|
742
|
+
name?: string | null | undefined;
|
|
743
|
+
id?: string | undefined;
|
|
744
|
+
applicationId?: string | null | undefined;
|
|
745
|
+
username?: string | null | undefined;
|
|
746
|
+
profile?: Partial<{
|
|
747
|
+
familyName: string;
|
|
748
|
+
givenName: string;
|
|
749
|
+
middleName: string;
|
|
750
|
+
nickname: string;
|
|
751
|
+
preferredUsername: string;
|
|
752
|
+
profile: string;
|
|
753
|
+
website: string;
|
|
754
|
+
gender: string;
|
|
755
|
+
birthdate: string;
|
|
756
|
+
zoneinfo: string;
|
|
757
|
+
locale: string;
|
|
758
|
+
address: Partial<{
|
|
759
|
+
formatted: string;
|
|
760
|
+
streetAddress: string;
|
|
761
|
+
locality: string;
|
|
762
|
+
/**
|
|
763
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
764
|
+
*/
|
|
765
|
+
region: string;
|
|
766
|
+
postalCode: string;
|
|
767
|
+
country: string;
|
|
768
|
+
}>;
|
|
769
|
+
}> | undefined;
|
|
770
|
+
createdAt?: number | undefined;
|
|
771
|
+
updatedAt?: number | undefined;
|
|
772
|
+
primaryEmail?: string | null | undefined;
|
|
773
|
+
primaryPhone?: string | null | undefined;
|
|
774
|
+
avatar?: string | null | undefined;
|
|
775
|
+
identities?: Record<string, {
|
|
776
|
+
userId: string;
|
|
777
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
778
|
+
}> | undefined;
|
|
779
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
780
|
+
isSuspended?: boolean | undefined;
|
|
781
|
+
lastSignInAt?: number | null | undefined;
|
|
782
|
+
ssoIdentities?: {
|
|
783
|
+
issuer: string;
|
|
784
|
+
identityId: string;
|
|
785
|
+
detail: import("@withtyped/server").JsonObject;
|
|
786
|
+
}[] | undefined;
|
|
787
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
788
|
+
roles?: {
|
|
789
|
+
name: string;
|
|
790
|
+
id: string;
|
|
791
|
+
description: string;
|
|
792
|
+
scopes: {
|
|
793
|
+
name: string;
|
|
794
|
+
id: string;
|
|
795
|
+
description: string | null;
|
|
796
|
+
resource: import("../../index.js").Resource;
|
|
797
|
+
resourceId: string;
|
|
798
|
+
}[];
|
|
799
|
+
}[] | undefined;
|
|
800
|
+
organizations?: {
|
|
801
|
+
name: string;
|
|
802
|
+
id: string;
|
|
803
|
+
description: string | null;
|
|
804
|
+
}[] | undefined;
|
|
805
|
+
organizationRoles?: {
|
|
806
|
+
organizationId: string;
|
|
807
|
+
roleId: string;
|
|
808
|
+
roleName: string;
|
|
809
|
+
}[] | undefined;
|
|
810
|
+
};
|
|
811
|
+
} | undefined;
|
|
812
|
+
};
|
|
813
|
+
key: LogtoJwtTokenKey.AccessToken;
|
|
814
|
+
}, {
|
|
815
|
+
value: {
|
|
816
|
+
script?: string | undefined;
|
|
817
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
818
|
+
tokenSample?: {
|
|
819
|
+
accountId?: string | undefined;
|
|
820
|
+
expiresWithSession?: boolean | undefined;
|
|
821
|
+
grantId?: string | undefined;
|
|
822
|
+
gty?: string | undefined;
|
|
823
|
+
sessionUid?: string | undefined;
|
|
824
|
+
sid?: string | undefined;
|
|
825
|
+
kind?: "AccessToken" | undefined;
|
|
826
|
+
jti?: string | undefined;
|
|
827
|
+
aud?: string | string[] | undefined;
|
|
828
|
+
scope?: string | undefined;
|
|
829
|
+
clientId?: string | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
contextSample?: {
|
|
832
|
+
user: {
|
|
833
|
+
name?: string | null | undefined;
|
|
834
|
+
id?: string | undefined;
|
|
835
|
+
applicationId?: string | null | undefined;
|
|
836
|
+
username?: string | null | undefined;
|
|
837
|
+
profile?: Partial<{
|
|
838
|
+
familyName: string;
|
|
839
|
+
givenName: string;
|
|
840
|
+
middleName: string;
|
|
841
|
+
nickname: string;
|
|
842
|
+
preferredUsername: string;
|
|
843
|
+
profile: string;
|
|
844
|
+
website: string;
|
|
845
|
+
gender: string;
|
|
846
|
+
birthdate: string;
|
|
847
|
+
zoneinfo: string;
|
|
848
|
+
locale: string;
|
|
849
|
+
address: Partial<{
|
|
850
|
+
formatted: string;
|
|
851
|
+
streetAddress: string;
|
|
852
|
+
locality: string;
|
|
853
|
+
/**
|
|
854
|
+
* Value maps to config key names in `logto_configs` table. Used mainly in DB SQL related scenarios.
|
|
855
|
+
*/
|
|
856
|
+
region: string;
|
|
857
|
+
postalCode: string;
|
|
858
|
+
country: string;
|
|
859
|
+
}>;
|
|
860
|
+
}> | undefined;
|
|
861
|
+
createdAt?: number | undefined;
|
|
862
|
+
updatedAt?: number | undefined;
|
|
863
|
+
primaryEmail?: string | null | undefined;
|
|
864
|
+
primaryPhone?: string | null | undefined;
|
|
865
|
+
avatar?: string | null | undefined;
|
|
866
|
+
identities?: Record<string, {
|
|
867
|
+
userId: string;
|
|
868
|
+
details?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
869
|
+
}> | undefined;
|
|
870
|
+
customData?: import("@withtyped/server").JsonObject | undefined;
|
|
871
|
+
isSuspended?: boolean | undefined;
|
|
872
|
+
lastSignInAt?: number | null | undefined;
|
|
873
|
+
ssoIdentities?: {
|
|
874
|
+
issuer: string;
|
|
875
|
+
identityId: string;
|
|
876
|
+
detail: import("@withtyped/server").JsonObject;
|
|
877
|
+
}[] | undefined;
|
|
878
|
+
mfaVerificationFactors?: import("../../index.js").MfaFactor[] | undefined;
|
|
879
|
+
roles?: {
|
|
880
|
+
name: string;
|
|
881
|
+
id: string;
|
|
882
|
+
description: string;
|
|
883
|
+
scopes: {
|
|
884
|
+
name: string;
|
|
885
|
+
id: string;
|
|
886
|
+
description: string | null;
|
|
887
|
+
resource: import("../../index.js").Resource;
|
|
888
|
+
resourceId: string;
|
|
889
|
+
}[];
|
|
890
|
+
}[] | undefined;
|
|
891
|
+
organizations?: {
|
|
892
|
+
name: string;
|
|
893
|
+
id: string;
|
|
894
|
+
description: string | null;
|
|
895
|
+
}[] | undefined;
|
|
896
|
+
organizationRoles?: {
|
|
897
|
+
organizationId: string;
|
|
898
|
+
roleId: string;
|
|
899
|
+
roleName: string;
|
|
900
|
+
}[] | undefined;
|
|
901
|
+
};
|
|
902
|
+
} | undefined;
|
|
903
|
+
};
|
|
904
|
+
key: LogtoJwtTokenKey.AccessToken;
|
|
905
|
+
}>, z.ZodObject<{
|
|
906
|
+
key: z.ZodLiteral<LogtoJwtTokenKey.ClientCredentials>;
|
|
907
|
+
value: z.ZodObject<{
|
|
908
|
+
script: z.ZodOptional<z.ZodString>;
|
|
909
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
910
|
+
contextSample: z.ZodOptional<z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server").Json, z.ZodTypeDef, import("@withtyped/server").Json>>>;
|
|
911
|
+
tokenSample: z.ZodOptional<z.ZodObject<{
|
|
912
|
+
kind: z.ZodOptional<z.ZodLiteral<"ClientCredentials">>;
|
|
913
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
914
|
+
aud: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
915
|
+
scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
916
|
+
clientId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
917
|
+
}, "strict", z.ZodTypeAny, {
|
|
918
|
+
kind?: "ClientCredentials" | undefined;
|
|
919
|
+
jti?: string | undefined;
|
|
920
|
+
aud?: string | string[] | undefined;
|
|
921
|
+
scope?: string | undefined;
|
|
922
|
+
clientId?: string | undefined;
|
|
923
|
+
}, {
|
|
924
|
+
kind?: "ClientCredentials" | undefined;
|
|
925
|
+
jti?: string | undefined;
|
|
926
|
+
aud?: string | string[] | undefined;
|
|
927
|
+
scope?: string | undefined;
|
|
928
|
+
clientId?: string | undefined;
|
|
929
|
+
}>>;
|
|
930
|
+
}, "strict", z.ZodTypeAny, {
|
|
931
|
+
script?: string | undefined;
|
|
932
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
933
|
+
contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
934
|
+
tokenSample?: {
|
|
935
|
+
kind?: "ClientCredentials" | undefined;
|
|
936
|
+
jti?: string | undefined;
|
|
937
|
+
aud?: string | string[] | undefined;
|
|
938
|
+
scope?: string | undefined;
|
|
939
|
+
clientId?: string | undefined;
|
|
940
|
+
} | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
script?: string | undefined;
|
|
943
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
944
|
+
contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
945
|
+
tokenSample?: {
|
|
946
|
+
kind?: "ClientCredentials" | undefined;
|
|
947
|
+
jti?: string | undefined;
|
|
948
|
+
aud?: string | string[] | undefined;
|
|
949
|
+
scope?: string | undefined;
|
|
950
|
+
clientId?: string | undefined;
|
|
951
|
+
} | undefined;
|
|
952
|
+
}>;
|
|
953
|
+
}, "strip", z.ZodTypeAny, {
|
|
954
|
+
value: {
|
|
955
|
+
script?: string | undefined;
|
|
956
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
957
|
+
contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
958
|
+
tokenSample?: {
|
|
959
|
+
kind?: "ClientCredentials" | undefined;
|
|
960
|
+
jti?: string | undefined;
|
|
961
|
+
aud?: string | string[] | undefined;
|
|
962
|
+
scope?: string | undefined;
|
|
963
|
+
clientId?: string | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
};
|
|
966
|
+
key: LogtoJwtTokenKey.ClientCredentials;
|
|
967
|
+
}, {
|
|
968
|
+
value: {
|
|
969
|
+
script?: string | undefined;
|
|
970
|
+
environmentVariables?: Record<string, string> | undefined;
|
|
971
|
+
contextSample?: Record<string, import("@withtyped/server").Json> | undefined;
|
|
972
|
+
tokenSample?: {
|
|
973
|
+
kind?: "ClientCredentials" | undefined;
|
|
974
|
+
jti?: string | undefined;
|
|
975
|
+
aud?: string | string[] | undefined;
|
|
976
|
+
scope?: string | undefined;
|
|
977
|
+
clientId?: string | undefined;
|
|
978
|
+
} | undefined;
|
|
979
|
+
};
|
|
980
|
+
key: LogtoJwtTokenKey.ClientCredentials;
|
|
981
|
+
}>]>;
|
|
982
|
+
export type JwtCustomizerConfigs = z.infer<typeof jwtCustomizerConfigsGuard>;
|
|
983
|
+
export declare const adminConsoleDataGuard: z.ZodObject<{
|
|
984
|
+
signInExperienceCustomized: z.ZodBoolean;
|
|
985
|
+
organizationCreated: z.ZodBoolean;
|
|
986
|
+
developmentTenantMigrationNotification: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
isPaidTenant: z.ZodBoolean;
|
|
988
|
+
/**
|
|
989
|
+
* Tag is used to store the original tenant tag before dev tenant migration.
|
|
990
|
+
* This field is only used for DB rollback and because the `TenantTag` may change, so we don't guard it as the `TenantTag` type.
|
|
991
|
+
*/
|
|
992
|
+
tag: z.ZodString;
|
|
993
|
+
readAt: z.ZodOptional<z.ZodNumber>;
|
|
994
|
+
}, "strip", z.ZodTypeAny, {
|
|
995
|
+
isPaidTenant: boolean;
|
|
996
|
+
tag: string;
|
|
997
|
+
readAt?: number | undefined;
|
|
998
|
+
}, {
|
|
999
|
+
isPaidTenant: boolean;
|
|
1000
|
+
tag: string;
|
|
1001
|
+
readAt?: number | undefined;
|
|
1002
|
+
}>>;
|
|
1003
|
+
checkedChargeNotification: z.ZodOptional<z.ZodObject<{
|
|
1004
|
+
token: z.ZodOptional<z.ZodBoolean>;
|
|
1005
|
+
apiResource: z.ZodOptional<z.ZodBoolean>;
|
|
1006
|
+
machineToMachineApp: z.ZodOptional<z.ZodBoolean>;
|
|
1007
|
+
tenantMember: z.ZodOptional<z.ZodBoolean>;
|
|
1008
|
+
}, "strip", z.ZodTypeAny, {
|
|
1009
|
+
token?: boolean | undefined;
|
|
1010
|
+
apiResource?: boolean | undefined;
|
|
1011
|
+
machineToMachineApp?: boolean | undefined;
|
|
1012
|
+
tenantMember?: boolean | undefined;
|
|
1013
|
+
}, {
|
|
1014
|
+
token?: boolean | undefined;
|
|
1015
|
+
apiResource?: boolean | undefined;
|
|
1016
|
+
machineToMachineApp?: boolean | undefined;
|
|
1017
|
+
tenantMember?: boolean | undefined;
|
|
1018
|
+
}>>;
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
signInExperienceCustomized: boolean;
|
|
1021
|
+
organizationCreated: boolean;
|
|
1022
|
+
developmentTenantMigrationNotification?: {
|
|
1023
|
+
isPaidTenant: boolean;
|
|
1024
|
+
tag: string;
|
|
1025
|
+
readAt?: number | undefined;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
checkedChargeNotification?: {
|
|
1028
|
+
token?: boolean | undefined;
|
|
1029
|
+
apiResource?: boolean | undefined;
|
|
1030
|
+
machineToMachineApp?: boolean | undefined;
|
|
1031
|
+
tenantMember?: boolean | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
}, {
|
|
1034
|
+
signInExperienceCustomized: boolean;
|
|
1035
|
+
organizationCreated: boolean;
|
|
1036
|
+
developmentTenantMigrationNotification?: {
|
|
1037
|
+
isPaidTenant: boolean;
|
|
1038
|
+
tag: string;
|
|
1039
|
+
readAt?: number | undefined;
|
|
1040
|
+
} | undefined;
|
|
1041
|
+
checkedChargeNotification?: {
|
|
1042
|
+
token?: boolean | undefined;
|
|
1043
|
+
apiResource?: boolean | undefined;
|
|
1044
|
+
machineToMachineApp?: boolean | undefined;
|
|
1045
|
+
tenantMember?: boolean | undefined;
|
|
1046
|
+
} | undefined;
|
|
1047
|
+
}>;
|
|
1048
|
+
export type AdminConsoleData = z.infer<typeof adminConsoleDataGuard>;
|
|
1049
|
+
export declare const cloudConnectionDataGuard: z.ZodObject<{
|
|
1050
|
+
appId: z.ZodString;
|
|
1051
|
+
appSecret: z.ZodString;
|
|
1052
|
+
resource: z.ZodString;
|
|
1053
|
+
}, "strip", z.ZodTypeAny, {
|
|
1054
|
+
resource: string;
|
|
1055
|
+
appId: string;
|
|
1056
|
+
appSecret: string;
|
|
1057
|
+
}, {
|
|
1058
|
+
resource: string;
|
|
1059
|
+
appId: string;
|
|
1060
|
+
appSecret: string;
|
|
1061
|
+
}>;
|
|
1062
|
+
export type CloudConnectionData = z.infer<typeof cloudConnectionDataGuard>;
|
|
1063
|
+
export declare enum LogtoTenantConfigKey {
|
|
1064
|
+
AdminConsole = "adminConsole",
|
|
1065
|
+
CloudConnection = "cloudConnection",
|
|
1066
|
+
/** The URL to redirect when session not found in Sign-in Experience. */
|
|
1067
|
+
SessionNotFoundRedirectUrl = "sessionNotFoundRedirectUrl"
|
|
1068
|
+
}
|
|
1069
|
+
export type LogtoTenantConfigType = {
|
|
1070
|
+
[LogtoTenantConfigKey.AdminConsole]: AdminConsoleData;
|
|
1071
|
+
[LogtoTenantConfigKey.CloudConnection]: CloudConnectionData;
|
|
1072
|
+
[LogtoTenantConfigKey.SessionNotFoundRedirectUrl]: {
|
|
1073
|
+
url: string;
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
export declare const logtoTenantConfigGuard: Readonly<{
|
|
1077
|
+
[key in LogtoTenantConfigKey]: ZodType<LogtoTenantConfigType[key]>;
|
|
1078
|
+
}>;
|
|
1079
|
+
export type LogtoConfigKey = LogtoOidcConfigKey | LogtoJwtTokenKey | LogtoTenantConfigKey;
|
|
1080
|
+
export type LogtoConfigType = LogtoOidcConfigType | JwtCustomizerType | LogtoTenantConfigType;
|
|
1081
|
+
export type LogtoConfigGuard = typeof logtoOidcConfigGuard & typeof jwtCustomizerConfigGuard & typeof logtoTenantConfigGuard;
|
|
1082
|
+
export declare const logtoConfigKeys: readonly LogtoConfigKey[];
|
|
1083
|
+
export declare const logtoConfigGuards: LogtoConfigGuard;
|
|
1084
|
+
export declare const oidcConfigKeysResponseGuard: z.ZodObject<{
|
|
1085
|
+
id: z.ZodString;
|
|
1086
|
+
createdAt: z.ZodNumber;
|
|
1087
|
+
signingKeyAlgorithm: z.ZodOptional<z.ZodNativeEnum<typeof SupportedSigningKeyAlgorithm>>;
|
|
1088
|
+
}, "strip", z.ZodTypeAny, {
|
|
1089
|
+
id: string;
|
|
1090
|
+
createdAt: number;
|
|
1091
|
+
signingKeyAlgorithm?: SupportedSigningKeyAlgorithm | undefined;
|
|
1092
|
+
}, {
|
|
1093
|
+
id: string;
|
|
1094
|
+
createdAt: number;
|
|
1095
|
+
signingKeyAlgorithm?: SupportedSigningKeyAlgorithm | undefined;
|
|
1096
|
+
}>;
|
|
1097
|
+
export type OidcConfigKeysResponse = z.infer<typeof oidcConfigKeysResponseGuard>;
|