@logto/schemas 1.18.0 → 1.19.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.19.0-1720253939-add-organization-branding.ts +18 -0
- package/alterations/1.19.0-1720345784-add-color-to-app-sie.ts +18 -0
- package/alterations/1.19.0-1720505152-update-custom-ui-assets.ts +20 -0
- package/alterations/1.19.0-1721483240-multiple-app-secrets.ts +77 -0
- package/alterations/1.19.0-1721645392-add-application-custom-data-column.ts +18 -0
- package/alterations/1.19.0-1722926389-argon2d-argon2id.ts +35 -0
- package/alterations-js/1.19.0-1720253939-add-organization-branding.js +14 -0
- package/alterations-js/1.19.0-1720345784-add-color-to-app-sie.js +14 -0
- package/alterations-js/1.19.0-1720505152-update-custom-ui-assets.js +16 -0
- package/alterations-js/1.19.0-1721483240-multiple-app-secrets.js +72 -0
- package/alterations-js/1.19.0-1721645392-add-application-custom-data-column.js +14 -0
- package/alterations-js/1.19.0-1722926389-argon2d-argon2id.js +30 -0
- package/lib/consts/oidc.d.ts +15 -2
- package/lib/consts/oidc.js +6 -0
- package/lib/consts/system.d.ts +2 -0
- package/lib/consts/system.js +2 -0
- package/lib/db-entries/application-secret.d.ts +28 -0
- package/lib/db-entries/application-secret.js +41 -0
- package/lib/db-entries/application-sign-in-experience.d.ts +4 -2
- package/lib/db-entries/application-sign-in-experience.js +5 -1
- package/lib/db-entries/application.d.ts +6 -2
- package/lib/db-entries/application.js +5 -1
- package/lib/db-entries/custom-types.d.ts +2 -0
- package/lib/db-entries/custom-types.js +2 -0
- package/lib/db-entries/index.d.ts +1 -0
- package/lib/db-entries/index.js +1 -0
- package/lib/db-entries/organization.d.ts +6 -2
- package/lib/db-entries/organization.js +5 -1
- package/lib/db-entries/sign-in-experience.d.ts +4 -4
- package/lib/db-entries/sign-in-experience.js +5 -5
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +33 -0
- package/lib/foundations/jsonb-types/sign-in-experience.js +18 -4
- package/lib/foundations/jsonb-types/users.d.ts +6 -6
- package/lib/foundations/jsonb-types/users.js +2 -2
- package/lib/seeds/application.js +1 -0
- package/lib/seeds/cloud-api.d.ts +1 -1
- package/lib/seeds/sign-in-experience.d.ts +1 -0
- package/lib/seeds/sign-in-experience.js +2 -2
- package/lib/types/application.d.ts +80 -122
- package/lib/types/connector.d.ts +26 -28
- package/lib/types/consent.d.ts +180 -33
- package/lib/types/cookie.d.ts +7 -1
- package/lib/types/cookie.js +3 -1
- package/lib/types/domain.d.ts +2 -10
- package/lib/types/hook.d.ts +14 -21
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/interactions.d.ts +206 -57
- package/lib/types/interactions.js +42 -13
- package/lib/types/log/interaction.d.ts +4 -3
- package/lib/types/log/interaction.js +1 -0
- package/lib/types/logto-config/index.d.ts +267 -242
- package/lib/types/logto-config/jwt-customizer.d.ts +500 -371
- package/lib/types/logto-config/jwt-customizer.js +11 -1
- package/lib/types/logto-config/oidc-provider.d.ts +6 -6
- package/lib/types/mfa.d.ts +16 -16
- package/lib/types/scope.d.ts +7 -6
- package/lib/types/sign-in-experience.d.ts +51 -118
- package/lib/types/sign-in-experience.js +1 -1
- package/lib/types/sso-connector.d.ts +14 -19
- package/lib/types/ssr.d.ts +25 -0
- package/lib/types/ssr.js +9 -0
- package/lib/types/system.d.ts +7 -3
- package/lib/types/system.js +4 -0
- package/lib/types/user-assets.d.ts +25 -5
- package/lib/types/user-assets.js +20 -1
- package/lib/types/user.d.ts +84 -120
- package/lib/utils/application.d.ts +3 -0
- package/lib/utils/application.js +7 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +1 -0
- package/package.json +7 -7
- package/tables/application_secrets.sql +17 -0
- package/tables/application_sign_in_experiences.sql +1 -1
- package/tables/applications.sql +7 -2
- package/tables/organizations.sql +2 -0
- package/tables/sign_in_experiences.sql +1 -1
- package/tables/users.sql +1 -1
- package/alterations-js/1.0.0-1677208902-update-admin-console-config.d.ts +0 -3
- package/alterations-js/1.0.0-1677765137-seed-for-admin-tenant.d.ts +0 -3
- package/alterations-js/1.0.0-1677907982-allow-admin-create-multiple-tenants.d.ts +0 -3
- package/alterations-js/1.0.0-1678157950-privacy-policy-url.d.ts +0 -3
- package/alterations-js/1.0.0-1678199795-add-verification-status-table.d.ts +0 -3
- package/alterations-js/1.0.0-1678259693-remove-branding-style-config.d.ts +0 -3
- package/alterations-js/1.0.0-1678269972-use-restrictive-policies.d.ts +0 -3
- package/alterations-js/1.0.0-1678284778-restrict-internal-roles.d.ts +0 -3
- package/alterations-js/1.0.0-1678425761-m2m-app-for-tenants.d.ts +0 -3
- package/alterations-js/1.0.0-1678450233-support-custom-content.d.ts +0 -3
- package/alterations-js/1.0.0-1678716747-service-logs.d.ts +0 -3
- package/alterations-js/1.0.0-1678928481-remove-deprecated-logto-config-item.d.ts +0 -3
- package/alterations-js/1.0.0-1678953179-update-get-started-task-config.d.ts +0 -3
- package/alterations-js/1.0.0-1679209413-drop-connector-database-storage.d.ts +0 -3
- package/alterations-js/1.0.0_beta.10-1-logto-config.d.ts +0 -3
- package/alterations-js/1.0.0_beta.10-1663923211-machine-to-machine-app.d.ts +0 -3
- package/alterations-js/1.0.0_beta.10-1664265197-custom-phrases.d.ts +0 -3
- package/alterations-js/1.0.0_beta.11-1664347703-rename-language-key-to-tag.d.ts +0 -3
- package/alterations-js/1.0.0_beta.11-1664356000-add-created-at-column-to-users.d.ts +0 -3
- package/alterations-js/1.0.0_beta.11-1664462389-correct-user-created-at-column-by-user-logs.d.ts +0 -3
- package/alterations-js/1.0.0_beta.14-1665300135-sign-in-sign-up.d.ts +0 -3
- package/alterations-js/1.0.0_beta.14-1667283640-remove-forgot-password.d.ts +0 -3
- package/alterations-js/1.0.0_beta.14-1667292082-remove-sign-in-method.d.ts +0 -3
- package/alterations-js/1.0.0_beta.14-1667374974-user-suspend.d.ts +0 -3
- package/alterations-js/1.0.0_beta.14-1667900481-add-passcode-type-continue.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1668666590-support-multiple-connector-instances.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1668666600-remove-connector-enabled.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1669091623-roles-and-scopes.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1669702299-sign-up.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1671039448-add-user-name-index.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1671080370-terms-of-use.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1671336831-refactor-log-types.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1671509870-hooks.d.ts +0 -3
- package/alterations-js/1.0.0_beta.18-1672119200-align-passcode-type-with-message-type.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1672815959-user-roles.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1672820345-scope-resource-id.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1672901841-roles-and-scopes-not-null.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673001922-support-generic-passcode.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673165463-scope-name-index.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673349501-sms-sign-in-identifier-to-phone.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673465463-ac-scope-name.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673853579-ac-default-scope.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673863835-ac-scope-role.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673882867-fix-alteration-issues.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673940577-scope-description-not-null.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1673941897-application-roles.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674032095.1-dedup-resources-constraint.d.ts +0 -4
- package/alterations-js/1.0.0_rc.0-1674032095.2-oidc-model-pkey.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674032095.3-tenant-table.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674032095.4-add-id-column.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674032095.5-multi-tenancy.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674032095.6-add-tenant-id-trigger.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1674987042-drop-settings-and-create-systems.d.ts +0 -3
- package/alterations-js/1.0.0_rc.0-1675316731-update-seed-data.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1675788753-multi-tenancy-rls.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676115897-add-admin-tenant.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676185899-fix-logs-index.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676190092-migrate-admin-data.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676823841-update-sie-primary-key.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676874936-support-custom-css.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676886855-connector-database-read-write.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676906977-remove-demo-app.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1676956206-move-console-sie-to-database.d.ts +0 -3
- package/alterations-js/1.0.0_rc.1-1677059985-move-console-application-to-database.d.ts +0 -3
- package/alterations-js/1.10.1-1695647183-update-private-key-type.d.ts +0 -3
- package/alterations-js/1.10.1-1696657546-organization-tables.d.ts +0 -3
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.d.ts +0 -3
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.d.ts +0 -3
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.d.ts +0 -4
- package/alterations-js/1.10.1-1698910485-user-logto-data.d.ts +0 -3
- package/alterations-js/1.11.0-1699422979-add-sso-connector-id-col-to-user-sso-identities-table.d.ts +0 -3
- package/alterations-js/1.11.0-1699598903-remove-sso-only-column-in-sso-connectors-table.d.ts +0 -3
- package/alterations-js/1.12.0-1700031616-update-org-role-foreign-keys.d.ts +0 -3
- package/alterations-js/1.12.0-1701054133-add-unique-constraint-to-the-sso-connector-name.d.ts +0 -3
- package/alterations-js/1.12.0-1701245520-add-single-sign-on-enabled-flag-to-sie.d.ts +0 -3
- package/alterations-js/1.13.0-1702274830-add-new-third-party-column-to-applications-table.d.ts +0 -3
- package/alterations-js/1.13.0-1702372401-add-application-permissions-tables.d.ts +0 -3
- package/alterations-js/1.13.0-1702544178-sync-tenant-orgs.d.ts +0 -18
- package/alterations-js/1.13.0-1702871078-protected-application-type.d.ts +0 -3
- package/alterations-js/1.13.0-1702877515-protected-app-configs.d.ts +0 -3
- package/alterations-js/1.13.0-1702978120-application-sign-in-experience-table.d.ts +0 -3
- package/alterations-js/1.13.0-1703229996-daily-token-usage.d.ts +0 -3
- package/alterations-js/1.13.0-1703230000-update-tenant-roles.d.ts +0 -11
- package/alterations-js/1.13.0-1704692973-remove-legacy-resources.d.ts +0 -3
- package/alterations-js/1.13.0-1704934999-add-magic-links-table.d.ts +0 -3
- package/alterations-js/1.13.0-1704935001-add-organization-invitation-tables.d.ts +0 -3
- package/alterations-js/1.13.0-1705288654-add-application-user-consent-organizations-table.d.ts +0 -3
- package/alterations-js/1.13.0-1705991158-update-invitation-indices.d.ts +0 -7
- package/alterations-js/1.13.0-1706449174-update-organization-invitation-column.d.ts +0 -3
- package/alterations-js/1.13.0-1706510290-protected-app-host-index.d.ts +0 -3
- package/alterations-js/1.13.0-1706512952-restore-get-started-page.d.ts +0 -3
- package/alterations-js/1.13.0-1706528755-remove-magic-links.d.ts +0 -3
- package/alterations-js/1.13.0-1706585206-protected-app-custom-domain-unique.d.ts +0 -3
- package/alterations-js/1.13.1-1707360939-grant-is-suspended-read-permission.d.ts +0 -6
- package/alterations-js/1.14.0-1708916601-remove-management-api-scopes-assigned-to-user-role.d.ts +0 -3
- package/alterations-js/1.14.0-1709190131-enhance-dau-data-accuracy.d.ts +0 -3
- package/alterations-js/1.15.0-1709521416-user-password-encrypt-method.d.ts +0 -3
- package/alterations-js/1.15.0-1709528944-regenerate-dau-data.d.ts +0 -3
- package/alterations-js/1.15.0-1710223946-add-fetch-custom-jwt-cloud-scope.d.ts +0 -3
- package/alterations-js/1.15.0-1710408335-make-resource-scopes-description-nullable.d.ts +0 -3
- package/alterations-js/1.15.0-1710859622-add-oidc-standard-claim-properties.d.ts +0 -3
- package/alterations-js/1.15.0-1711607772-remove-invite-member-scope-from-tenant-member-role.d.ts +0 -3
- package/alterations-js/1.15.0-1711624564-add-read-member-scope-to-tenant-roles.d.ts +0 -3
- package/alterations-js/1.15.0-1711955211-organization-resource-scope.d.ts +0 -3
- package/alterations-js/1.15.0-1712041436-rename-organization-member-role-to-collaborator.d.ts +0 -3
- package/alterations-js/1.15.0-1712545011-fix-organization-resource-scope.d.ts +0 -8
- package/alterations-js/1.15.0-1712559358-fix-down-organization-resource-scope.d.ts +0 -8
- package/alterations-js/1.16.0-1712912361-delete-jwt-customier-with-empty-script.d.ts +0 -3
- package/alterations-js/1.16.0-1713942039-add-organization-custom-data.d.ts +0 -4
- package/alterations-js/1.16.0-1714270244-application-org-resource-scope.d.ts +0 -3
- package/alterations-js/1.17.0-1715826336-add-default-user-role-config.d.ts +0 -3
- package/alterations-js/1.17.0-1715829731-rename-data-hook-schema-update-event.d.ts +0 -3
- package/alterations-js/1.17.0-1716278409-remove-internal-role-database-policies.d.ts +0 -3
- package/alterations-js/1.17.0-1716291265-create-pre-configured-m-api-role.d.ts +0 -7
- package/alterations-js/1.17.0-1717148078-remove-service-log-reference.d.ts +0 -3
- package/alterations-js/1.18.0-1717567857-social-sign-in-linking.d.ts +0 -3
- package/alterations-js/1.18.0-1717597875-add-organization-email-domains-table.d.ts +0 -3
- package/alterations-js/1.18.0-1717818597-organization-mfa-requirement.d.ts +0 -3
- package/alterations-js/1.18.0-1718340884-rename-org-email-domains-and-add-jit-roles-table.d.ts +0 -3
- package/alterations-js/1.18.0-1718594164-add-agree-to-terms-policy.d.ts +0 -3
- package/alterations-js/1.18.0-1718785576-organization-application-relations.d.ts +0 -3
- package/alterations-js/1.18.0-1718786576-organization-jit-sso-connectors.d.ts +0 -3
- package/alterations-js/1.18.0-1718807616-organization-role-application-relations.d.ts +0 -3
- package/alterations-js/1.18.0-1718865814-add-subject-tokens.d.ts +0 -3
- package/alterations-js/1.18.0-1719014832-organization-role-types.d.ts +0 -3
- package/alterations-js/1.18.0-1719221205-fix-functions.d.ts +0 -7
- package/alterations-js/1.18.0-1719312694-custom-ui-assets.d.ts +0 -3
- package/alterations-js/1.2.0-1681267285-fix-get-started-passwordless-status.d.ts +0 -3
- package/alterations-js/1.3.0-1683292832-update-hooks.d.ts +0 -3
- package/alterations-js/1.5.0-1684382842-add-name-tag-created-at-for-tenants-table.d.ts +0 -3
- package/alterations-js/1.5.0-1684739802-create-hook-id-index-for-logs.d.ts +0 -3
- package/alterations-js/1.5.0-1684822341-init-domains.d.ts +0 -3
- package/alterations-js/1.5.0-1684837981-add-manage-tenant-self-scope-to-user-role.d.ts +0 -3
- package/alterations-js/1.5.0-1685285719-support-default-resource.d.ts +0 -3
- package/alterations-js/1.6.0-1685691718-domain-unique.d.ts +0 -3
- package/alterations-js/1.7.0-1688375200-sync-cloud-m2m-to-logto-config.d.ts +0 -3
- package/alterations-js/1.7.0-1688613459-remove-m2m-credentials-from-existing-logto-email-connector-config.d.ts +0 -3
- package/alterations-js/1.7.0-1688627407-daily-active-users.d.ts +0 -3
- package/alterations-js/1.8.0-1692088012-add-is-suspend-column-to-tenants-table.d.ts +0 -3
- package/alterations-js/1.8.0-1692194751-add-affiliate-scopes.d.ts +0 -3
- package/alterations-js/1.9.0-1693554904-add-possword-policy.d.ts +0 -4
- package/alterations-js/1.9.0-1694399696-add-type-col-to-roles-table.d.ts +0 -3
- package/alterations-js/1.9.0-1694418765-specify-check-role-type-function-to-be-public-schema.d.ts +0 -9
- package/alterations-js/1.9.0-1694484927-remove-deprecated-challenge-flag.d.ts +0 -3
- package/alterations-js/1.9.0-1694487524-sie-mfa.d.ts +0 -3
- package/alterations-js/1.9.0-1694509714-keep-existing-password-policy.d.ts +0 -3
- package/alterations-js/1.9.0-1694746763-user-verifications.d.ts +0 -3
- package/alterations-js/1.9.2-1694854226-init-sentinel.d.ts +0 -3
- package/alterations-js/1.9.2-1695198741-remove-m2m-app-admin-access-switch.d.ts +0 -3
- package/alterations-js/utils/1704934999-tables.d.ts +0 -11
- package/alterations-js/utils/1716643968-id-generation.d.ts +0 -19
package/lib/types/connector.d.ts
CHANGED
|
@@ -2,11 +2,9 @@ import { ConnectorType } from '@logto/connector-kit';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export type { ConnectorMetadata } from '@logto/connector-kit';
|
|
4
4
|
export { ConnectorType, ConnectorPlatform } from '@logto/connector-kit';
|
|
5
|
-
export declare const connectorResponseGuard: z.ZodObject<{
|
|
6
|
-
|
|
7
|
-
id: z.
|
|
8
|
-
logo: z.ZodString;
|
|
9
|
-
description: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
5
|
+
export declare const connectorResponseGuard: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Pick<{
|
|
6
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
10
8
|
syncProfile: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
11
9
|
connectorId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
12
10
|
config: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
@@ -21,9 +19,14 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
21
19
|
logo?: string | undefined;
|
|
22
20
|
logoDark?: string | null | undefined;
|
|
23
21
|
}>;
|
|
22
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
23
|
+
}, "id" | "syncProfile" | "connectorId" | "config" | "metadata">, z.objectUtil.extendShape<{
|
|
24
|
+
id: z.ZodString;
|
|
24
25
|
target: z.ZodString;
|
|
26
|
+
name: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
27
|
+
description: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
28
|
+
logo: z.ZodString;
|
|
25
29
|
logoDark: z.ZodNullable<z.ZodString>;
|
|
26
|
-
customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
30
|
readme: z.ZodString;
|
|
28
31
|
configTemplate: z.ZodOptional<z.ZodString>;
|
|
29
32
|
formItems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -202,14 +205,17 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
202
205
|
tooltip?: string | undefined;
|
|
203
206
|
isConfidential?: boolean | undefined;
|
|
204
207
|
}>]>, "many">>;
|
|
208
|
+
customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
205
209
|
fromEmail: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, {
|
|
206
211
|
platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
|
|
207
212
|
isStandard: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
}>>, {
|
|
208
214
|
type: z.ZodNativeEnum<typeof ConnectorType>;
|
|
209
215
|
isDemo: z.ZodOptional<z.ZodBoolean>;
|
|
210
216
|
extraInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
217
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
212
|
-
}
|
|
218
|
+
}>, "strip", z.ZodTypeAny, {
|
|
213
219
|
type: ConnectorType;
|
|
214
220
|
name: {
|
|
215
221
|
en: string;
|
|
@@ -468,17 +474,13 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
468
474
|
syncProfile: boolean;
|
|
469
475
|
connectorId: string;
|
|
470
476
|
config: import("@withtyped/server").JsonObject;
|
|
471
|
-
metadata:
|
|
472
|
-
target?: string | undefined;
|
|
473
|
-
name?: import("@logto/connector-kit").I18nPhrases | undefined;
|
|
474
|
-
logo?: string | undefined;
|
|
475
|
-
logoDark?: string | null | undefined;
|
|
476
|
-
};
|
|
477
|
+
metadata: import("@logto/connector-kit").ConfigurableConnectorMetadata;
|
|
477
478
|
target: string;
|
|
478
479
|
logoDark: string | null;
|
|
479
480
|
readme: string;
|
|
480
481
|
platform: import("@logto/connector-kit").ConnectorPlatform | null;
|
|
481
482
|
customData?: Record<string, unknown> | undefined;
|
|
483
|
+
usage?: number | undefined;
|
|
482
484
|
configTemplate?: string | undefined;
|
|
483
485
|
formItems?: ({
|
|
484
486
|
type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
|
|
@@ -534,7 +536,6 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
534
536
|
isStandard?: boolean | undefined;
|
|
535
537
|
isDemo?: boolean | undefined;
|
|
536
538
|
extraInfo?: Record<string, unknown> | undefined;
|
|
537
|
-
usage?: number | undefined;
|
|
538
539
|
}, {
|
|
539
540
|
type: ConnectorType;
|
|
540
541
|
name: {
|
|
@@ -794,17 +795,13 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
794
795
|
syncProfile: boolean;
|
|
795
796
|
connectorId: string;
|
|
796
797
|
config: import("@withtyped/server").JsonObject;
|
|
797
|
-
metadata:
|
|
798
|
-
target?: string | undefined;
|
|
799
|
-
name?: import("@logto/connector-kit").I18nPhrases | undefined;
|
|
800
|
-
logo?: string | undefined;
|
|
801
|
-
logoDark?: string | null | undefined;
|
|
802
|
-
};
|
|
798
|
+
metadata: import("@logto/connector-kit").ConfigurableConnectorMetadata;
|
|
803
799
|
target: string;
|
|
804
800
|
logoDark: string | null;
|
|
805
801
|
readme: string;
|
|
806
802
|
platform: import("@logto/connector-kit").ConnectorPlatform | null;
|
|
807
803
|
customData?: Record<string, unknown> | undefined;
|
|
804
|
+
usage?: number | undefined;
|
|
808
805
|
configTemplate?: string | undefined;
|
|
809
806
|
formItems?: ({
|
|
810
807
|
type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
|
|
@@ -860,16 +857,16 @@ export declare const connectorResponseGuard: z.ZodObject<{
|
|
|
860
857
|
isStandard?: boolean | undefined;
|
|
861
858
|
isDemo?: boolean | undefined;
|
|
862
859
|
extraInfo?: Record<string, unknown> | undefined;
|
|
863
|
-
usage?: number | undefined;
|
|
864
860
|
}>;
|
|
865
861
|
export type ConnectorResponse = z.infer<typeof connectorResponseGuard>;
|
|
866
|
-
export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
862
|
+
export declare const connectorFactoryResponseGuard: z.ZodObject<z.objectUtil.extendShape<{
|
|
867
863
|
type: z.ZodNativeEnum<typeof ConnectorType>;
|
|
868
864
|
isDemo: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
-
|
|
865
|
+
}, z.objectUtil.extendShape<{
|
|
870
866
|
id: z.ZodString;
|
|
871
867
|
target: z.ZodString;
|
|
872
868
|
name: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
869
|
+
description: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
873
870
|
logo: z.ZodString;
|
|
874
871
|
logoDark: z.ZodNullable<z.ZodString>;
|
|
875
872
|
readme: z.ZodString;
|
|
@@ -1052,9 +1049,10 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
|
1052
1049
|
}>]>, "many">>;
|
|
1053
1050
|
customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1054
1051
|
fromEmail: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
}, {
|
|
1055
1053
|
platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
|
|
1056
1054
|
isStandard: z.ZodOptional<z.ZodBoolean>;
|
|
1057
|
-
}
|
|
1055
|
+
}>>, "strip", z.ZodTypeAny, {
|
|
1058
1056
|
type: ConnectorType;
|
|
1059
1057
|
name: {
|
|
1060
1058
|
en: string;
|
|
@@ -1314,7 +1312,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
|
1314
1312
|
logoDark: string | null;
|
|
1315
1313
|
readme: string;
|
|
1316
1314
|
platform: import("@logto/connector-kit").ConnectorPlatform | null;
|
|
1317
|
-
|
|
1315
|
+
customData?: Record<string, unknown> | undefined;
|
|
1318
1316
|
configTemplate?: string | undefined;
|
|
1319
1317
|
formItems?: ({
|
|
1320
1318
|
type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
|
|
@@ -1366,9 +1364,9 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
|
1366
1364
|
tooltip?: string | undefined;
|
|
1367
1365
|
isConfidential?: boolean | undefined;
|
|
1368
1366
|
})[] | undefined;
|
|
1369
|
-
customData?: Record<string, unknown> | undefined;
|
|
1370
1367
|
fromEmail?: string | undefined;
|
|
1371
1368
|
isStandard?: boolean | undefined;
|
|
1369
|
+
isDemo?: boolean | undefined;
|
|
1372
1370
|
}, {
|
|
1373
1371
|
type: ConnectorType;
|
|
1374
1372
|
name: {
|
|
@@ -1629,7 +1627,7 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
|
1629
1627
|
logoDark: string | null;
|
|
1630
1628
|
readme: string;
|
|
1631
1629
|
platform: import("@logto/connector-kit").ConnectorPlatform | null;
|
|
1632
|
-
|
|
1630
|
+
customData?: Record<string, unknown> | undefined;
|
|
1633
1631
|
configTemplate?: string | undefined;
|
|
1634
1632
|
formItems?: ({
|
|
1635
1633
|
type: import("@logto/connector-kit").ConnectorConfigFormItemType.Select;
|
|
@@ -1681,8 +1679,8 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
|
1681
1679
|
tooltip?: string | undefined;
|
|
1682
1680
|
isConfidential?: boolean | undefined;
|
|
1683
1681
|
})[] | undefined;
|
|
1684
|
-
customData?: Record<string, unknown> | undefined;
|
|
1685
1682
|
fromEmail?: string | undefined;
|
|
1686
1683
|
isStandard?: boolean | undefined;
|
|
1684
|
+
isDemo?: boolean | undefined;
|
|
1687
1685
|
}>;
|
|
1688
1686
|
export type ConnectorFactoryResponse = z.infer<typeof connectorFactoryResponseGuard>;
|
package/lib/types/consent.d.ts
CHANGED
|
@@ -77,8 +77,8 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
77
77
|
publicKey: string;
|
|
78
78
|
counter: number;
|
|
79
79
|
agent: string;
|
|
80
|
-
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
81
80
|
lastUsedAt?: string | undefined;
|
|
81
|
+
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
82
82
|
} | {
|
|
83
83
|
type: import("../index.js").MfaFactor.BackupCode;
|
|
84
84
|
id: string;
|
|
@@ -102,8 +102,8 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
|
|
|
102
102
|
publicKey: string;
|
|
103
103
|
counter: number;
|
|
104
104
|
agent: string;
|
|
105
|
-
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
106
105
|
lastUsedAt?: string | undefined;
|
|
106
|
+
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
107
107
|
} | {
|
|
108
108
|
type: import("../index.js").MfaFactor.BackupCode;
|
|
109
109
|
id: string;
|
|
@@ -219,6 +219,7 @@ export declare const publicApplicationGuard: z.ZodObject<Pick<{
|
|
|
219
219
|
} | null;
|
|
220
220
|
}[] | undefined;
|
|
221
221
|
} | null>;
|
|
222
|
+
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
222
223
|
isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
223
224
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
224
225
|
}, "name" | "id">, "strip", z.ZodTypeAny, {
|
|
@@ -232,43 +233,51 @@ export type PublicApplication = z.infer<typeof publicApplicationGuard>;
|
|
|
232
233
|
export declare const applicationSignInExperienceGuard: z.ZodObject<Pick<{
|
|
233
234
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
234
235
|
applicationId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
236
|
+
color: z.ZodType<Partial<{
|
|
237
|
+
primaryColor: string;
|
|
238
|
+
isDarkModeEnabled: boolean;
|
|
239
|
+
darkPrimaryColor: string;
|
|
240
|
+
}>, z.ZodTypeDef, Partial<{
|
|
241
|
+
primaryColor: string;
|
|
242
|
+
isDarkModeEnabled: boolean;
|
|
243
|
+
darkPrimaryColor: string;
|
|
244
|
+
}>>;
|
|
235
245
|
branding: z.ZodType<{
|
|
236
246
|
logoUrl?: string | undefined;
|
|
237
247
|
darkLogoUrl?: string | undefined;
|
|
238
248
|
favicon?: string | undefined;
|
|
249
|
+
darkFavicon?: string | undefined;
|
|
239
250
|
}, z.ZodTypeDef, {
|
|
240
251
|
logoUrl?: string | undefined;
|
|
241
252
|
darkLogoUrl?: string | undefined;
|
|
242
253
|
favicon?: string | undefined;
|
|
254
|
+
darkFavicon?: string | undefined;
|
|
243
255
|
}>;
|
|
244
256
|
termsOfUseUrl: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
245
257
|
privacyPolicyUrl: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
246
258
|
displayName: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
247
259
|
}, "displayName" | "branding" | "termsOfUseUrl" | "privacyPolicyUrl">, "strip", z.ZodTypeAny, {
|
|
248
260
|
displayName: string | null;
|
|
249
|
-
branding:
|
|
250
|
-
logoUrl?: string | undefined;
|
|
251
|
-
darkLogoUrl?: string | undefined;
|
|
252
|
-
favicon?: string | undefined;
|
|
253
|
-
};
|
|
261
|
+
branding: import("../index.js").Branding;
|
|
254
262
|
termsOfUseUrl: string | null;
|
|
255
263
|
privacyPolicyUrl: string | null;
|
|
256
264
|
}, {
|
|
257
265
|
displayName: string | null;
|
|
258
|
-
branding:
|
|
259
|
-
logoUrl?: string | undefined;
|
|
260
|
-
darkLogoUrl?: string | undefined;
|
|
261
|
-
favicon?: string | undefined;
|
|
262
|
-
};
|
|
266
|
+
branding: import("../index.js").Branding;
|
|
263
267
|
termsOfUseUrl: string | null;
|
|
264
268
|
privacyPolicyUrl: string | null;
|
|
265
269
|
}>;
|
|
266
270
|
export declare const missingResourceScopesGuard: z.ZodObject<{
|
|
267
|
-
resource: z.ZodObject<{
|
|
271
|
+
resource: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
272
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
273
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
268
274
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
269
275
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
276
|
+
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
277
|
+
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
278
|
+
}, "name" | "indicator">, {
|
|
270
279
|
id: z.ZodString;
|
|
271
|
-
}
|
|
280
|
+
}>, "strip", z.ZodTypeAny, {
|
|
272
281
|
name: string;
|
|
273
282
|
id: string;
|
|
274
283
|
indicator: string;
|
|
@@ -323,15 +332,37 @@ export type MissingResourceScopes = z.infer<typeof missingResourceScopesGuard>;
|
|
|
323
332
|
/**
|
|
324
333
|
* Define the public organization info that can be exposed to the public. e.g. on the user consent page.
|
|
325
334
|
*/
|
|
326
|
-
export declare const publicOrganizationGuard: z.ZodObject<{
|
|
327
|
-
|
|
335
|
+
export declare const publicOrganizationGuard: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
336
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
328
337
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
338
|
+
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
339
|
+
description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
340
|
+
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
341
|
+
isMfaRequired: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
342
|
+
branding: z.ZodType<{
|
|
343
|
+
logoUrl?: string | undefined;
|
|
344
|
+
darkLogoUrl?: string | undefined;
|
|
345
|
+
favicon?: string | undefined;
|
|
346
|
+
darkFavicon?: string | undefined;
|
|
347
|
+
}, z.ZodTypeDef, {
|
|
348
|
+
logoUrl?: string | undefined;
|
|
349
|
+
darkLogoUrl?: string | undefined;
|
|
350
|
+
favicon?: string | undefined;
|
|
351
|
+
darkFavicon?: string | undefined;
|
|
352
|
+
}>;
|
|
353
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
354
|
+
}, "name" | "id">, {
|
|
329
355
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
|
-
resource: z.ZodObject<{
|
|
356
|
+
resource: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
357
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
358
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
331
359
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
332
360
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
361
|
+
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
362
|
+
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
363
|
+
}, "name" | "indicator">, {
|
|
333
364
|
id: z.ZodString;
|
|
334
|
-
}
|
|
365
|
+
}>, "strip", z.ZodTypeAny, {
|
|
335
366
|
name: string;
|
|
336
367
|
id: string;
|
|
337
368
|
indicator: string;
|
|
@@ -379,7 +410,7 @@ export declare const publicOrganizationGuard: z.ZodObject<{
|
|
|
379
410
|
description: string | null;
|
|
380
411
|
}[];
|
|
381
412
|
}>, "many">>;
|
|
382
|
-
}
|
|
413
|
+
}>, "strip", z.ZodTypeAny, {
|
|
383
414
|
name: string;
|
|
384
415
|
id: string;
|
|
385
416
|
missingResourceScopes?: {
|
|
@@ -412,22 +443,107 @@ export declare const publicOrganizationGuard: z.ZodObject<{
|
|
|
412
443
|
}>;
|
|
413
444
|
export type PublicOrganization = z.infer<typeof publicOrganizationGuard>;
|
|
414
445
|
export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
415
|
-
application: z.ZodObject<{
|
|
416
|
-
|
|
446
|
+
application: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
447
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
417
448
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
449
|
+
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
450
|
+
secret: z.ZodType<string, z.ZodTypeDef, string>;
|
|
451
|
+
description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
452
|
+
type: z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>;
|
|
453
|
+
oidcClientMetadata: z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>;
|
|
454
|
+
customClientMetadata: z.ZodType<{
|
|
455
|
+
corsAllowedOrigins?: string[] | undefined;
|
|
456
|
+
idTokenTtl?: number | undefined;
|
|
457
|
+
refreshTokenTtl?: number | undefined;
|
|
458
|
+
refreshTokenTtlInDays?: number | undefined;
|
|
459
|
+
tenantId?: string | undefined;
|
|
460
|
+
alwaysIssueRefreshToken?: boolean | undefined;
|
|
461
|
+
rotateRefreshToken?: boolean | undefined;
|
|
462
|
+
}, z.ZodTypeDef, {
|
|
463
|
+
corsAllowedOrigins?: string[] | undefined;
|
|
464
|
+
idTokenTtl?: number | undefined;
|
|
465
|
+
refreshTokenTtl?: number | undefined;
|
|
466
|
+
refreshTokenTtlInDays?: number | undefined;
|
|
467
|
+
tenantId?: string | undefined;
|
|
468
|
+
alwaysIssueRefreshToken?: boolean | undefined;
|
|
469
|
+
rotateRefreshToken?: boolean | undefined;
|
|
470
|
+
}>;
|
|
471
|
+
protectedAppMetadata: z.ZodType<{
|
|
472
|
+
host: string;
|
|
473
|
+
origin: string;
|
|
474
|
+
sessionDuration: number;
|
|
475
|
+
pageRules: {
|
|
476
|
+
path: string;
|
|
477
|
+
}[];
|
|
478
|
+
customDomains?: {
|
|
479
|
+
status: import("../index.js").DomainStatus;
|
|
480
|
+
domain: string;
|
|
481
|
+
errorMessage: string | null;
|
|
482
|
+
dnsRecords: {
|
|
483
|
+
type: string;
|
|
484
|
+
value: string;
|
|
485
|
+
name: string;
|
|
486
|
+
}[];
|
|
487
|
+
cloudflareData: {
|
|
488
|
+
status: string;
|
|
489
|
+
id: string;
|
|
490
|
+
ssl: {
|
|
491
|
+
status: string;
|
|
492
|
+
validation_errors?: {
|
|
493
|
+
message: string;
|
|
494
|
+
}[] | undefined;
|
|
495
|
+
};
|
|
496
|
+
verification_errors?: string[] | undefined;
|
|
497
|
+
} | null;
|
|
498
|
+
}[] | undefined;
|
|
499
|
+
} | null, z.ZodTypeDef, {
|
|
500
|
+
host: string;
|
|
501
|
+
origin: string;
|
|
502
|
+
sessionDuration: number;
|
|
503
|
+
pageRules: {
|
|
504
|
+
path: string;
|
|
505
|
+
}[];
|
|
506
|
+
customDomains?: {
|
|
507
|
+
status: import("../index.js").DomainStatus;
|
|
508
|
+
domain: string;
|
|
509
|
+
errorMessage: string | null;
|
|
510
|
+
dnsRecords: {
|
|
511
|
+
type: string;
|
|
512
|
+
value: string;
|
|
513
|
+
name: string;
|
|
514
|
+
}[];
|
|
515
|
+
cloudflareData: {
|
|
516
|
+
status: string;
|
|
517
|
+
id: string;
|
|
518
|
+
ssl: {
|
|
519
|
+
status: string;
|
|
520
|
+
validation_errors?: {
|
|
521
|
+
message: string;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
};
|
|
524
|
+
verification_errors?: string[] | undefined;
|
|
525
|
+
} | null;
|
|
526
|
+
}[] | undefined;
|
|
527
|
+
} | null>;
|
|
528
|
+
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
529
|
+
isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
530
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
531
|
+
}, "name" | "id">, {
|
|
418
532
|
displayName: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
419
533
|
branding: z.ZodOptional<z.ZodType<{
|
|
420
534
|
logoUrl?: string | undefined;
|
|
421
535
|
darkLogoUrl?: string | undefined;
|
|
422
536
|
favicon?: string | undefined;
|
|
537
|
+
darkFavicon?: string | undefined;
|
|
423
538
|
}, z.ZodTypeDef, {
|
|
424
539
|
logoUrl?: string | undefined;
|
|
425
540
|
darkLogoUrl?: string | undefined;
|
|
426
541
|
favicon?: string | undefined;
|
|
542
|
+
darkFavicon?: string | undefined;
|
|
427
543
|
}>>;
|
|
428
544
|
termsOfUseUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
429
545
|
privacyPolicyUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
430
|
-
}
|
|
546
|
+
}>, "strip", z.ZodTypeAny, {
|
|
431
547
|
name: string;
|
|
432
548
|
id: string;
|
|
433
549
|
displayName?: string | null | undefined;
|
|
@@ -435,6 +551,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
435
551
|
logoUrl?: string | undefined;
|
|
436
552
|
darkLogoUrl?: string | undefined;
|
|
437
553
|
favicon?: string | undefined;
|
|
554
|
+
darkFavicon?: string | undefined;
|
|
438
555
|
} | undefined;
|
|
439
556
|
termsOfUseUrl?: string | null | undefined;
|
|
440
557
|
privacyPolicyUrl?: string | null | undefined;
|
|
@@ -446,6 +563,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
446
563
|
logoUrl?: string | undefined;
|
|
447
564
|
darkLogoUrl?: string | undefined;
|
|
448
565
|
favicon?: string | undefined;
|
|
566
|
+
darkFavicon?: string | undefined;
|
|
449
567
|
} | undefined;
|
|
450
568
|
termsOfUseUrl?: string | null | undefined;
|
|
451
569
|
privacyPolicyUrl?: string | null | undefined;
|
|
@@ -525,8 +643,8 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
525
643
|
publicKey: string;
|
|
526
644
|
counter: number;
|
|
527
645
|
agent: string;
|
|
528
|
-
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
529
646
|
lastUsedAt?: string | undefined;
|
|
647
|
+
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
530
648
|
} | {
|
|
531
649
|
type: import("../index.js").MfaFactor.BackupCode;
|
|
532
650
|
id: string;
|
|
@@ -550,8 +668,8 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
550
668
|
publicKey: string;
|
|
551
669
|
counter: number;
|
|
552
670
|
agent: string;
|
|
553
|
-
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
554
671
|
lastUsedAt?: string | undefined;
|
|
672
|
+
transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined;
|
|
555
673
|
} | {
|
|
556
674
|
type: import("../index.js").MfaFactor.BackupCode;
|
|
557
675
|
id: string;
|
|
@@ -581,15 +699,37 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
581
699
|
primaryPhone: string | null;
|
|
582
700
|
avatar: string | null;
|
|
583
701
|
}>;
|
|
584
|
-
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
585
|
-
|
|
702
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
703
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
586
704
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
705
|
+
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
706
|
+
description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
|
|
707
|
+
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
708
|
+
isMfaRequired: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
709
|
+
branding: z.ZodType<{
|
|
710
|
+
logoUrl?: string | undefined;
|
|
711
|
+
darkLogoUrl?: string | undefined;
|
|
712
|
+
favicon?: string | undefined;
|
|
713
|
+
darkFavicon?: string | undefined;
|
|
714
|
+
}, z.ZodTypeDef, {
|
|
715
|
+
logoUrl?: string | undefined;
|
|
716
|
+
darkLogoUrl?: string | undefined;
|
|
717
|
+
favicon?: string | undefined;
|
|
718
|
+
darkFavicon?: string | undefined;
|
|
719
|
+
}>;
|
|
720
|
+
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
721
|
+
}, "name" | "id">, {
|
|
587
722
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
588
|
-
resource: z.ZodObject<{
|
|
723
|
+
resource: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
724
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
725
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
589
726
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
590
727
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
728
|
+
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
729
|
+
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
730
|
+
}, "name" | "indicator">, {
|
|
591
731
|
id: z.ZodString;
|
|
592
|
-
}
|
|
732
|
+
}>, "strip", z.ZodTypeAny, {
|
|
593
733
|
name: string;
|
|
594
734
|
id: string;
|
|
595
735
|
indicator: string;
|
|
@@ -637,7 +777,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
637
777
|
description: string | null;
|
|
638
778
|
}[];
|
|
639
779
|
}>, "many">>;
|
|
640
|
-
}
|
|
780
|
+
}>, "strip", z.ZodTypeAny, {
|
|
641
781
|
name: string;
|
|
642
782
|
id: string;
|
|
643
783
|
missingResourceScopes?: {
|
|
@@ -670,11 +810,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
670
810
|
}>, "many">>;
|
|
671
811
|
missingOIDCScope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
672
812
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
673
|
-
resource: z.ZodObject<{
|
|
813
|
+
resource: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
|
814
|
+
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
815
|
+
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
674
816
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
675
817
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
818
|
+
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
819
|
+
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
820
|
+
}, "name" | "indicator">, {
|
|
676
821
|
id: z.ZodString;
|
|
677
|
-
}
|
|
822
|
+
}>, "strip", z.ZodTypeAny, {
|
|
678
823
|
name: string;
|
|
679
824
|
id: string;
|
|
680
825
|
indicator: string;
|
|
@@ -732,6 +877,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
732
877
|
logoUrl?: string | undefined;
|
|
733
878
|
darkLogoUrl?: string | undefined;
|
|
734
879
|
favicon?: string | undefined;
|
|
880
|
+
darkFavicon?: string | undefined;
|
|
735
881
|
} | undefined;
|
|
736
882
|
termsOfUseUrl?: string | null | undefined;
|
|
737
883
|
privacyPolicyUrl?: string | null | undefined;
|
|
@@ -761,7 +907,6 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
761
907
|
}[];
|
|
762
908
|
}[] | undefined;
|
|
763
909
|
}[] | undefined;
|
|
764
|
-
missingOIDCScope?: string[] | undefined;
|
|
765
910
|
missingResourceScopes?: {
|
|
766
911
|
resource: {
|
|
767
912
|
name: string;
|
|
@@ -774,6 +919,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
774
919
|
description: string | null;
|
|
775
920
|
}[];
|
|
776
921
|
}[] | undefined;
|
|
922
|
+
missingOIDCScope?: string[] | undefined;
|
|
777
923
|
}, {
|
|
778
924
|
application: {
|
|
779
925
|
name: string;
|
|
@@ -783,6 +929,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
783
929
|
logoUrl?: string | undefined;
|
|
784
930
|
darkLogoUrl?: string | undefined;
|
|
785
931
|
favicon?: string | undefined;
|
|
932
|
+
darkFavicon?: string | undefined;
|
|
786
933
|
} | undefined;
|
|
787
934
|
termsOfUseUrl?: string | null | undefined;
|
|
788
935
|
privacyPolicyUrl?: string | null | undefined;
|
|
@@ -812,7 +959,6 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
812
959
|
}[];
|
|
813
960
|
}[] | undefined;
|
|
814
961
|
}[] | undefined;
|
|
815
|
-
missingOIDCScope?: string[] | undefined;
|
|
816
962
|
missingResourceScopes?: {
|
|
817
963
|
resource: {
|
|
818
964
|
name: string;
|
|
@@ -825,5 +971,6 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
825
971
|
description: string | null;
|
|
826
972
|
}[];
|
|
827
973
|
}[] | undefined;
|
|
974
|
+
missingOIDCScope?: string[] | undefined;
|
|
828
975
|
}>;
|
|
829
976
|
export type ConsentInfoResponse = z.infer<typeof consentInfoResponseGuard>;
|
package/lib/types/cookie.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export type LogtoUiCookie = Partial<{
|
|
3
|
+
appId: string;
|
|
4
|
+
organizationId: string;
|
|
5
|
+
}>;
|
|
2
6
|
export declare const logtoUiCookieGuard: z.ZodObject<{
|
|
3
7
|
appId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
4
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
organizationId?: string | undefined;
|
|
5
11
|
appId?: string | undefined;
|
|
6
12
|
}, {
|
|
13
|
+
organizationId?: string | undefined;
|
|
7
14
|
appId?: string | undefined;
|
|
8
15
|
}>;
|
|
9
|
-
export type LogtoUiCookie = z.infer<typeof logtoUiCookieGuard>;
|
package/lib/types/cookie.js
CHANGED
package/lib/types/domain.d.ts
CHANGED
|
@@ -43,20 +43,12 @@ export declare const domainResponseGuard: z.ZodObject<Pick<{
|
|
|
43
43
|
id: string;
|
|
44
44
|
domain: string;
|
|
45
45
|
errorMessage: string | null;
|
|
46
|
-
dnsRecords:
|
|
47
|
-
type: string;
|
|
48
|
-
value: string;
|
|
49
|
-
name: string;
|
|
50
|
-
}[];
|
|
46
|
+
dnsRecords: import("../index.js").DomainDnsRecords;
|
|
51
47
|
}, {
|
|
52
48
|
status: import("../index.js").DomainStatus;
|
|
53
49
|
id: string;
|
|
54
50
|
domain: string;
|
|
55
51
|
errorMessage: string | null;
|
|
56
|
-
dnsRecords:
|
|
57
|
-
type: string;
|
|
58
|
-
value: string;
|
|
59
|
-
name: string;
|
|
60
|
-
}[];
|
|
52
|
+
dnsRecords: import("../index.js").DomainDnsRecords;
|
|
61
53
|
}>;
|
|
62
54
|
export type DomainResponse = z.infer<typeof domainResponseGuard>;
|