@logto/schemas 1.10.0 → 1.10.1
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.10.1-1695647183-update-private-key-type.ts +108 -0
- package/alterations/1.10.1-1696657546-organization-tables.ts +150 -0
- package/alterations/1.10.1-1697683802-add-sso-connectors-table.ts +66 -0
- package/alterations/1.10.1-1698646271-add-organization-created-flag.ts +75 -0
- package/alterations/1.10.1-1698820410-add-user-sso-identities-table.ts +61 -0
- package/alterations/1.10.1-1698910485-user-logto-data.ts +20 -0
- package/alterations-js/1.10.1-1695647183-update-private-key-type.d.ts +3 -0
- package/alterations-js/1.10.1-1695647183-update-private-key-type.js +50 -0
- package/alterations-js/1.10.1-1696657546-organization-tables.d.ts +3 -0
- package/alterations-js/1.10.1-1696657546-organization-tables.js +136 -0
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.d.ts +3 -0
- package/alterations-js/1.10.1-1697683802-add-sso-connectors-table.js +58 -0
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.d.ts +3 -0
- package/alterations-js/1.10.1-1698646271-add-organization-created-flag.js +26 -0
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.d.ts +4 -0
- package/alterations-js/1.10.1-1698820410-add-user-sso-identities-table.js +53 -0
- package/alterations-js/1.10.1-1698910485-user-logto-data.d.ts +3 -0
- package/alterations-js/1.10.1-1698910485-user-logto-data.js +16 -0
- package/lib/db-entries/application.d.ts +7 -1
- package/lib/db-entries/application.js +1 -0
- package/lib/db-entries/applications-role.d.ts +7 -1
- package/lib/db-entries/applications-role.js +1 -0
- package/lib/db-entries/connector.d.ts +7 -1
- package/lib/db-entries/connector.js +1 -0
- package/lib/db-entries/custom-phrase.d.ts +7 -1
- package/lib/db-entries/custom-phrase.js +1 -0
- package/lib/db-entries/daily-active-user.d.ts +7 -1
- package/lib/db-entries/daily-active-user.js +1 -0
- package/lib/db-entries/domain.d.ts +7 -1
- package/lib/db-entries/domain.js +1 -0
- package/lib/db-entries/hook.d.ts +7 -1
- package/lib/db-entries/hook.js +1 -0
- package/lib/db-entries/index.d.ts +8 -0
- package/lib/db-entries/index.js +8 -0
- package/lib/db-entries/log.d.ts +7 -1
- package/lib/db-entries/log.js +1 -0
- package/lib/db-entries/logto-config.d.ts +10 -4
- package/lib/db-entries/logto-config.js +4 -3
- package/lib/db-entries/oidc-model-instance.d.ts +7 -1
- package/lib/db-entries/oidc-model-instance.js +1 -0
- package/lib/db-entries/organization-role-scope-relation.d.ts +20 -0
- package/lib/db-entries/organization-role-scope-relation.js +29 -0
- package/lib/db-entries/organization-role-user-relation.d.ts +22 -0
- package/lib/db-entries/organization-role-user-relation.js +33 -0
- package/lib/db-entries/organization-role.d.ts +28 -0
- package/lib/db-entries/organization-role.js +33 -0
- package/lib/db-entries/organization-scope.d.ts +28 -0
- package/lib/db-entries/organization-scope.js +33 -0
- package/lib/db-entries/organization-user-relation.d.ts +20 -0
- package/lib/db-entries/organization-user-relation.js +29 -0
- package/lib/db-entries/organization.d.ts +32 -0
- package/lib/db-entries/organization.js +37 -0
- package/lib/db-entries/passcode.d.ts +7 -1
- package/lib/db-entries/passcode.js +1 -0
- package/lib/db-entries/resource.d.ts +7 -1
- package/lib/db-entries/resource.js +1 -0
- package/lib/db-entries/role.d.ts +7 -1
- package/lib/db-entries/role.js +1 -0
- package/lib/db-entries/roles-scope.d.ts +7 -1
- package/lib/db-entries/roles-scope.js +1 -0
- package/lib/db-entries/scope.d.ts +7 -1
- package/lib/db-entries/scope.js +1 -0
- package/lib/db-entries/sentinel-activity.d.ts +7 -1
- package/lib/db-entries/sentinel-activity.js +1 -0
- package/lib/db-entries/service-log.d.ts +7 -1
- package/lib/db-entries/service-log.js +1 -0
- package/lib/db-entries/sign-in-experience.d.ts +7 -1
- package/lib/db-entries/sign-in-experience.js +1 -0
- package/lib/db-entries/sso-connector.d.ts +50 -0
- package/lib/db-entries/sso-connector.js +58 -0
- package/lib/db-entries/system.d.ts +7 -1
- package/lib/db-entries/system.js +1 -0
- package/lib/db-entries/user-sso-identity.d.ts +30 -0
- package/lib/db-entries/user-sso-identity.js +46 -0
- package/lib/db-entries/user.d.ts +9 -1
- package/lib/db-entries/user.js +5 -0
- package/lib/db-entries/users-role.d.ts +7 -1
- package/lib/db-entries/users-role.js +1 -0
- package/lib/db-entries/verification-status.d.ts +7 -1
- package/lib/db-entries/verification-status.js +1 -0
- package/lib/foundations/index.d.ts +1 -1
- package/lib/foundations/index.js +1 -1
- package/lib/foundations/jsonb-types/custom-domain.d.ts +134 -0
- package/lib/foundations/jsonb-types/custom-domain.js +36 -0
- package/lib/foundations/jsonb-types/hooks.d.ts +32 -0
- package/lib/foundations/jsonb-types/hooks.js +24 -0
- package/lib/foundations/jsonb-types/index.d.ts +15 -0
- package/lib/foundations/jsonb-types/index.js +16 -0
- package/lib/foundations/jsonb-types/logs.d.ts +106 -0
- package/lib/foundations/jsonb-types/logs.js +20 -0
- package/lib/foundations/jsonb-types/oidc-module.d.ts +80 -0
- package/lib/foundations/jsonb-types/oidc-module.js +54 -0
- package/lib/foundations/jsonb-types/phrases.d.ts +5 -0
- package/lib/foundations/jsonb-types/phrases.js +2 -0
- package/lib/foundations/jsonb-types/sentinel.d.ts +27 -0
- package/lib/foundations/jsonb-types/sentinel.js +28 -0
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +118 -0
- package/lib/foundations/jsonb-types/sign-in-experience.js +56 -0
- package/lib/foundations/jsonb-types/sso-connector.d.ts +14 -0
- package/lib/foundations/jsonb-types/sso-connector.js +6 -0
- package/lib/foundations/jsonb-types/users.d.ts +285 -0
- package/lib/foundations/jsonb-types/users.js +47 -0
- package/lib/foundations/schemas.d.ts +11 -13
- package/lib/models/tenants.d.ts +7 -11
- package/lib/seeds/logto-config.js +1 -0
- package/lib/types/application.d.ts +51 -1
- package/lib/types/application.js +7 -1
- package/lib/types/connector.d.ts +516 -2360
- package/lib/types/domain.d.ts +65 -27
- package/lib/types/hook.d.ts +15 -16
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +3 -0
- package/lib/types/interactions.d.ts +502 -10
- package/lib/types/interactions.js +83 -5
- package/lib/types/log/interaction.d.ts +4 -3
- package/lib/types/log/interaction.js +1 -0
- package/lib/types/logto-config.d.ts +50 -2
- package/lib/types/logto-config.js +30 -3
- package/lib/types/mfa.d.ts +211 -0
- package/lib/types/mfa.js +62 -0
- package/lib/types/organization.d.ts +44 -0
- package/lib/types/organization.js +20 -0
- package/lib/types/role.d.ts +5 -3
- package/lib/types/scope.d.ts +12 -27
- package/lib/types/sso-connector.d.ts +21 -0
- package/lib/types/sso-connector.js +10 -0
- package/lib/types/system.d.ts +26 -7
- package/lib/types/system.js +8 -0
- package/lib/types/user-assets.d.ts +2 -2
- package/lib/types/user.d.ts +209 -66
- package/lib/types/user.js +8 -2
- package/package.json +6 -6
- package/tables/logto_configs.sql +1 -1
- package/tables/organization_role_scope_relations.sql +12 -0
- package/tables/organization_role_user_relations.sql +14 -0
- package/tables/organization_roles.sql +19 -0
- package/tables/organization_scopes.sql +19 -0
- package/tables/organization_user_relations.sql +12 -0
- package/tables/organizations.sql +19 -0
- package/tables/sso_connectors.sql +29 -0
- package/tables/user_sso_identities.sql +17 -0
- package/tables/users.sql +1 -0
- package/lib/foundations/jsonb-types.d.ts +0 -673
- package/lib/foundations/jsonb-types.js +0 -260
|
@@ -1,673 +0,0 @@
|
|
|
1
|
-
import { type PasswordPolicy } from '@logto/core-kit';
|
|
2
|
-
import { type DeepPartial } from '@silverhand/essentials';
|
|
3
|
-
import type { Json } from '@withtyped/server';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
export { configurableConnectorMetadataGuard, type ConfigurableConnectorMetadata, } from '@logto/connector-kit';
|
|
6
|
-
export type { Json, JsonObject } from '@withtyped/server';
|
|
7
|
-
export declare const jsonGuard: z.ZodType<Json>;
|
|
8
|
-
export declare const jsonObjectGuard: z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>;
|
|
9
|
-
export declare const oidcModelInstancePayloadGuard: z.ZodObject<{
|
|
10
|
-
userCode: z.ZodOptional<z.ZodString>;
|
|
11
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
12
|
-
grantId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, "strip", z.ZodUnknown, {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
userCode?: string | undefined;
|
|
16
|
-
uid?: string | undefined;
|
|
17
|
-
grantId?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
userCode?: string | undefined;
|
|
21
|
-
uid?: string | undefined;
|
|
22
|
-
grantId?: string | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export type OidcModelInstancePayload = z.infer<typeof oidcModelInstancePayloadGuard>;
|
|
25
|
-
export declare const oidcClientMetadataGuard: z.ZodObject<{
|
|
26
|
-
redirectUris: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>, "many">;
|
|
27
|
-
postLogoutRedirectUris: z.ZodArray<z.ZodString, "many">;
|
|
28
|
-
logoUri: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
logoUri?: string | undefined;
|
|
31
|
-
redirectUris: string[];
|
|
32
|
-
postLogoutRedirectUris: string[];
|
|
33
|
-
}, {
|
|
34
|
-
logoUri?: string | undefined;
|
|
35
|
-
redirectUris: string[];
|
|
36
|
-
postLogoutRedirectUris: string[];
|
|
37
|
-
}>;
|
|
38
|
-
export type OidcClientMetadata = z.infer<typeof oidcClientMetadataGuard>;
|
|
39
|
-
export declare enum CustomClientMetadataKey {
|
|
40
|
-
CorsAllowedOrigins = "corsAllowedOrigins",
|
|
41
|
-
IdTokenTtl = "idTokenTtl",
|
|
42
|
-
/** @deprecated Use {@link RefreshTokenTtlInDays} instead. */
|
|
43
|
-
RefreshTokenTtl = "refreshTokenTtl",
|
|
44
|
-
RefreshTokenTtlInDays = "refreshTokenTtlInDays",
|
|
45
|
-
TenantId = "tenantId",
|
|
46
|
-
/**
|
|
47
|
-
* Enabling this configuration will allow Logto to always issue Refresh Tokens, regardless of whether `prompt=consent` is presented in the authentication request.
|
|
48
|
-
*
|
|
49
|
-
* It only works for web applications when the client allowed grant types includes `refresh_token`.
|
|
50
|
-
*
|
|
51
|
-
* This config is for the third-party integrations that do not strictly follow OpenID Connect standards due to some reasons (e.g. they only know OAuth, but requires a Refresh Token to be returned anyway).
|
|
52
|
-
*/
|
|
53
|
-
AlwaysIssueRefreshToken = "alwaysIssueRefreshToken",
|
|
54
|
-
/**
|
|
55
|
-
* When enabled (default), Logto will issue a new Refresh Token for token requests when 70% of the original Time to Live (TTL) has passed.
|
|
56
|
-
*
|
|
57
|
-
* It can be turned off for only traditional web apps for enhanced security.
|
|
58
|
-
*/
|
|
59
|
-
RotateRefreshToken = "rotateRefreshToken"
|
|
60
|
-
}
|
|
61
|
-
export declare const customClientMetadataGuard: z.ZodObject<{
|
|
62
|
-
corsAllowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
63
|
-
idTokenTtl: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
refreshTokenTtl: z.ZodOptional<z.ZodNumber>;
|
|
65
|
-
refreshTokenTtlInDays: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
tenantId: z.ZodOptional<z.ZodString>;
|
|
67
|
-
alwaysIssueRefreshToken: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
rotateRefreshToken: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
corsAllowedOrigins?: string[] | undefined;
|
|
71
|
-
idTokenTtl?: number | undefined;
|
|
72
|
-
refreshTokenTtl?: number | undefined;
|
|
73
|
-
refreshTokenTtlInDays?: number | undefined;
|
|
74
|
-
tenantId?: string | undefined;
|
|
75
|
-
alwaysIssueRefreshToken?: boolean | undefined;
|
|
76
|
-
rotateRefreshToken?: boolean | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
corsAllowedOrigins?: string[] | undefined;
|
|
79
|
-
idTokenTtl?: number | undefined;
|
|
80
|
-
refreshTokenTtl?: number | undefined;
|
|
81
|
-
refreshTokenTtlInDays?: number | undefined;
|
|
82
|
-
tenantId?: string | undefined;
|
|
83
|
-
alwaysIssueRefreshToken?: boolean | undefined;
|
|
84
|
-
rotateRefreshToken?: boolean | undefined;
|
|
85
|
-
}>;
|
|
86
|
-
/**
|
|
87
|
-
* @see {@link CustomClientMetadataKey} for key descriptions.
|
|
88
|
-
*/
|
|
89
|
-
export type CustomClientMetadata = z.infer<typeof customClientMetadataGuard>;
|
|
90
|
-
export declare const colorGuard: z.ZodObject<{
|
|
91
|
-
primaryColor: z.ZodString;
|
|
92
|
-
isDarkModeEnabled: z.ZodBoolean;
|
|
93
|
-
darkPrimaryColor: z.ZodString;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
primaryColor: string;
|
|
96
|
-
isDarkModeEnabled: boolean;
|
|
97
|
-
darkPrimaryColor: string;
|
|
98
|
-
}, {
|
|
99
|
-
primaryColor: string;
|
|
100
|
-
isDarkModeEnabled: boolean;
|
|
101
|
-
darkPrimaryColor: string;
|
|
102
|
-
}>;
|
|
103
|
-
export type Color = z.infer<typeof colorGuard>;
|
|
104
|
-
export declare const brandingGuard: z.ZodObject<{
|
|
105
|
-
logoUrl: z.ZodOptional<z.ZodString>;
|
|
106
|
-
darkLogoUrl: z.ZodOptional<z.ZodString>;
|
|
107
|
-
favicon: z.ZodOptional<z.ZodString>;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
logoUrl?: string | undefined;
|
|
110
|
-
darkLogoUrl?: string | undefined;
|
|
111
|
-
favicon?: string | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
logoUrl?: string | undefined;
|
|
114
|
-
darkLogoUrl?: string | undefined;
|
|
115
|
-
favicon?: string | undefined;
|
|
116
|
-
}>;
|
|
117
|
-
export type Branding = z.infer<typeof brandingGuard>;
|
|
118
|
-
export declare const languageInfoGuard: z.ZodObject<{
|
|
119
|
-
autoDetect: z.ZodBoolean;
|
|
120
|
-
fallbackLanguage: z.ZodType<"af-ZA" | "am-ET" | "ar-AR" | "as-IN" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "br-FR" | "bs-BA" | "ca-ES" | "cb-IQ" | "co-FR" | "cs-CZ" | "cx-PH" | "cy-GB" | "da-DK" | "de" | "de-DE" | "el-GR" | "en" | "en-GB" | "en-US" | "eo-EO" | "es" | "es-ES" | "es-419" | "et-EE" | "eu-ES" | "fa-IR" | "ff-NG" | "fi-FI" | "fo-FO" | "fr" | "fr-CA" | "fr-FR" | "fy-NL" | "ga-IE" | "gl-ES" | "gn-PY" | "gu-IN" | "ha-NG" | "he-IL" | "hi-IN" | "hr-HR" | "ht-HT" | "hu-HU" | "hy-AM" | "id-ID" | "ik-US" | "is-IS" | "it" | "it-IT" | "iu-CA" | "ja" | "ja-JP" | "ja-KS" | "jv-ID" | "ka-GE" | "kk-KZ" | "km-KH" | "kn-IN" | "ko" | "ko-KR" | "ku-TR" | "ky-KG" | "lo-LA" | "lt-LT" | "lv-LV" | "mg-MG" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "mt-MT" | "my-MM" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "nn-NO" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "pt" | "pt-BR" | "pt-PT" | "ro-RO" | "ru" | "ru-RU" | "rw-RW" | "sc-IT" | "si-LK" | "sk-SK" | "sl-SI" | "sn-ZW" | "sq-AL" | "sr-RS" | "sv-SE" | "sw-KE" | "sy-SY" | "sz-PL" | "ta-IN" | "te-IN" | "tg-TJ" | "th-TH" | "tl-PH" | "tr" | "tr-TR" | "tt-RU" | "tz-MA" | "uk-UA" | "ur-PK" | "uz-UZ" | "vi-VN" | "zh" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-TW" | "zz-TR", z.ZodTypeDef, "af-ZA" | "am-ET" | "ar-AR" | "as-IN" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "br-FR" | "bs-BA" | "ca-ES" | "cb-IQ" | "co-FR" | "cs-CZ" | "cx-PH" | "cy-GB" | "da-DK" | "de" | "de-DE" | "el-GR" | "en" | "en-GB" | "en-US" | "eo-EO" | "es" | "es-ES" | "es-419" | "et-EE" | "eu-ES" | "fa-IR" | "ff-NG" | "fi-FI" | "fo-FO" | "fr" | "fr-CA" | "fr-FR" | "fy-NL" | "ga-IE" | "gl-ES" | "gn-PY" | "gu-IN" | "ha-NG" | "he-IL" | "hi-IN" | "hr-HR" | "ht-HT" | "hu-HU" | "hy-AM" | "id-ID" | "ik-US" | "is-IS" | "it" | "it-IT" | "iu-CA" | "ja" | "ja-JP" | "ja-KS" | "jv-ID" | "ka-GE" | "kk-KZ" | "km-KH" | "kn-IN" | "ko" | "ko-KR" | "ku-TR" | "ky-KG" | "lo-LA" | "lt-LT" | "lv-LV" | "mg-MG" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "mt-MT" | "my-MM" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "nn-NO" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "pt" | "pt-BR" | "pt-PT" | "ro-RO" | "ru" | "ru-RU" | "rw-RW" | "sc-IT" | "si-LK" | "sk-SK" | "sl-SI" | "sn-ZW" | "sq-AL" | "sr-RS" | "sv-SE" | "sw-KE" | "sy-SY" | "sz-PL" | "ta-IN" | "te-IN" | "tg-TJ" | "th-TH" | "tl-PH" | "tr" | "tr-TR" | "tt-RU" | "tz-MA" | "uk-UA" | "ur-PK" | "uz-UZ" | "vi-VN" | "zh" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-TW" | "zz-TR">;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
autoDetect: boolean;
|
|
123
|
-
fallbackLanguage: "af-ZA" | "am-ET" | "ar-AR" | "as-IN" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "br-FR" | "bs-BA" | "ca-ES" | "cb-IQ" | "co-FR" | "cs-CZ" | "cx-PH" | "cy-GB" | "da-DK" | "de" | "de-DE" | "el-GR" | "en" | "en-GB" | "en-US" | "eo-EO" | "es" | "es-ES" | "es-419" | "et-EE" | "eu-ES" | "fa-IR" | "ff-NG" | "fi-FI" | "fo-FO" | "fr" | "fr-CA" | "fr-FR" | "fy-NL" | "ga-IE" | "gl-ES" | "gn-PY" | "gu-IN" | "ha-NG" | "he-IL" | "hi-IN" | "hr-HR" | "ht-HT" | "hu-HU" | "hy-AM" | "id-ID" | "ik-US" | "is-IS" | "it" | "it-IT" | "iu-CA" | "ja" | "ja-JP" | "ja-KS" | "jv-ID" | "ka-GE" | "kk-KZ" | "km-KH" | "kn-IN" | "ko" | "ko-KR" | "ku-TR" | "ky-KG" | "lo-LA" | "lt-LT" | "lv-LV" | "mg-MG" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "mt-MT" | "my-MM" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "nn-NO" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "pt" | "pt-BR" | "pt-PT" | "ro-RO" | "ru" | "ru-RU" | "rw-RW" | "sc-IT" | "si-LK" | "sk-SK" | "sl-SI" | "sn-ZW" | "sq-AL" | "sr-RS" | "sv-SE" | "sw-KE" | "sy-SY" | "sz-PL" | "ta-IN" | "te-IN" | "tg-TJ" | "th-TH" | "tl-PH" | "tr" | "tr-TR" | "tt-RU" | "tz-MA" | "uk-UA" | "ur-PK" | "uz-UZ" | "vi-VN" | "zh" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-TW" | "zz-TR";
|
|
124
|
-
}, {
|
|
125
|
-
autoDetect: boolean;
|
|
126
|
-
fallbackLanguage: "af-ZA" | "am-ET" | "ar-AR" | "as-IN" | "az-AZ" | "be-BY" | "bg-BG" | "bn-IN" | "br-FR" | "bs-BA" | "ca-ES" | "cb-IQ" | "co-FR" | "cs-CZ" | "cx-PH" | "cy-GB" | "da-DK" | "de" | "de-DE" | "el-GR" | "en" | "en-GB" | "en-US" | "eo-EO" | "es" | "es-ES" | "es-419" | "et-EE" | "eu-ES" | "fa-IR" | "ff-NG" | "fi-FI" | "fo-FO" | "fr" | "fr-CA" | "fr-FR" | "fy-NL" | "ga-IE" | "gl-ES" | "gn-PY" | "gu-IN" | "ha-NG" | "he-IL" | "hi-IN" | "hr-HR" | "ht-HT" | "hu-HU" | "hy-AM" | "id-ID" | "ik-US" | "is-IS" | "it" | "it-IT" | "iu-CA" | "ja" | "ja-JP" | "ja-KS" | "jv-ID" | "ka-GE" | "kk-KZ" | "km-KH" | "kn-IN" | "ko" | "ko-KR" | "ku-TR" | "ky-KG" | "lo-LA" | "lt-LT" | "lv-LV" | "mg-MG" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "mt-MT" | "my-MM" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "nn-NO" | "or-IN" | "pa-IN" | "pl-PL" | "ps-AF" | "pt" | "pt-BR" | "pt-PT" | "ro-RO" | "ru" | "ru-RU" | "rw-RW" | "sc-IT" | "si-LK" | "sk-SK" | "sl-SI" | "sn-ZW" | "sq-AL" | "sr-RS" | "sv-SE" | "sw-KE" | "sy-SY" | "sz-PL" | "ta-IN" | "te-IN" | "tg-TJ" | "th-TH" | "tl-PH" | "tr" | "tr-TR" | "tt-RU" | "tz-MA" | "uk-UA" | "ur-PK" | "uz-UZ" | "vi-VN" | "zh" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-TW" | "zz-TR";
|
|
127
|
-
}>;
|
|
128
|
-
export type LanguageInfo = z.infer<typeof languageInfoGuard>;
|
|
129
|
-
export declare enum SignInIdentifier {
|
|
130
|
-
Username = "username",
|
|
131
|
-
Email = "email",
|
|
132
|
-
Phone = "phone"
|
|
133
|
-
}
|
|
134
|
-
export declare const signUpGuard: z.ZodObject<{
|
|
135
|
-
identifiers: z.ZodArray<z.ZodNativeEnum<typeof SignInIdentifier>, "many">;
|
|
136
|
-
password: z.ZodBoolean;
|
|
137
|
-
verify: z.ZodBoolean;
|
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
identifiers: SignInIdentifier[];
|
|
140
|
-
password: boolean;
|
|
141
|
-
verify: boolean;
|
|
142
|
-
}, {
|
|
143
|
-
identifiers: SignInIdentifier[];
|
|
144
|
-
password: boolean;
|
|
145
|
-
verify: boolean;
|
|
146
|
-
}>;
|
|
147
|
-
export type SignUp = z.infer<typeof signUpGuard>;
|
|
148
|
-
export declare const signInGuard: z.ZodObject<{
|
|
149
|
-
methods: z.ZodArray<z.ZodObject<{
|
|
150
|
-
identifier: z.ZodNativeEnum<typeof SignInIdentifier>;
|
|
151
|
-
password: z.ZodBoolean;
|
|
152
|
-
verificationCode: z.ZodBoolean;
|
|
153
|
-
isPasswordPrimary: z.ZodBoolean;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
password: boolean;
|
|
156
|
-
identifier: SignInIdentifier;
|
|
157
|
-
verificationCode: boolean;
|
|
158
|
-
isPasswordPrimary: boolean;
|
|
159
|
-
}, {
|
|
160
|
-
password: boolean;
|
|
161
|
-
identifier: SignInIdentifier;
|
|
162
|
-
verificationCode: boolean;
|
|
163
|
-
isPasswordPrimary: boolean;
|
|
164
|
-
}>, "many">;
|
|
165
|
-
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
methods: {
|
|
167
|
-
password: boolean;
|
|
168
|
-
identifier: SignInIdentifier;
|
|
169
|
-
verificationCode: boolean;
|
|
170
|
-
isPasswordPrimary: boolean;
|
|
171
|
-
}[];
|
|
172
|
-
}, {
|
|
173
|
-
methods: {
|
|
174
|
-
password: boolean;
|
|
175
|
-
identifier: SignInIdentifier;
|
|
176
|
-
verificationCode: boolean;
|
|
177
|
-
isPasswordPrimary: boolean;
|
|
178
|
-
}[];
|
|
179
|
-
}>;
|
|
180
|
-
export type SignIn = z.infer<typeof signInGuard>;
|
|
181
|
-
export declare const connectorTargetsGuard: z.ZodArray<z.ZodString, "many">;
|
|
182
|
-
export type ConnectorTargets = z.infer<typeof connectorTargetsGuard>;
|
|
183
|
-
export declare const customContentGuard: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
184
|
-
export type CustomContent = z.infer<typeof customContentGuard>;
|
|
185
|
-
export declare enum MfaFactor {
|
|
186
|
-
TOTP = "Totp",
|
|
187
|
-
WebAuthn = "WebAuthn",
|
|
188
|
-
BackupCode = "BackupCode"
|
|
189
|
-
}
|
|
190
|
-
export declare const mfaFactorsGuard: z.ZodArray<z.ZodNativeEnum<typeof MfaFactor>, "many">;
|
|
191
|
-
export type MfaFactors = z.infer<typeof mfaFactorsGuard>;
|
|
192
|
-
export declare enum MfaPolicy {
|
|
193
|
-
UserControlled = "UserControlled",
|
|
194
|
-
Mandatory = "Mandatory"
|
|
195
|
-
}
|
|
196
|
-
export declare const mfaGuard: z.ZodObject<{
|
|
197
|
-
factors: z.ZodArray<z.ZodNativeEnum<typeof MfaFactor>, "many">;
|
|
198
|
-
policy: z.ZodNativeEnum<typeof MfaPolicy>;
|
|
199
|
-
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
factors: MfaFactor[];
|
|
201
|
-
policy: MfaPolicy;
|
|
202
|
-
}, {
|
|
203
|
-
factors: MfaFactor[];
|
|
204
|
-
policy: MfaPolicy;
|
|
205
|
-
}>;
|
|
206
|
-
export type Mfa = z.infer<typeof mfaGuard>;
|
|
207
|
-
export declare const roleNamesGuard: z.ZodArray<z.ZodString, "many">;
|
|
208
|
-
declare const identityGuard: z.ZodObject<{
|
|
209
|
-
userId: z.ZodString;
|
|
210
|
-
details: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
211
|
-
}, "strip", z.ZodTypeAny, {
|
|
212
|
-
details?: {} | undefined;
|
|
213
|
-
userId: string;
|
|
214
|
-
}, {
|
|
215
|
-
details?: {} | undefined;
|
|
216
|
-
userId: string;
|
|
217
|
-
}>;
|
|
218
|
-
export declare const identitiesGuard: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
219
|
-
userId: z.ZodString;
|
|
220
|
-
details: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
221
|
-
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
details?: {} | undefined;
|
|
223
|
-
userId: string;
|
|
224
|
-
}, {
|
|
225
|
-
details?: {} | undefined;
|
|
226
|
-
userId: string;
|
|
227
|
-
}>>;
|
|
228
|
-
export type Identity = z.infer<typeof identityGuard>;
|
|
229
|
-
export type Identities = z.infer<typeof identitiesGuard>;
|
|
230
|
-
export declare const baseMfaVerification: {
|
|
231
|
-
id: z.ZodString;
|
|
232
|
-
createdAt: z.ZodString;
|
|
233
|
-
};
|
|
234
|
-
export declare const mfaVerificationTotp: z.ZodObject<{
|
|
235
|
-
key: z.ZodString;
|
|
236
|
-
id: z.ZodString;
|
|
237
|
-
createdAt: z.ZodString;
|
|
238
|
-
type: z.ZodLiteral<MfaFactor.TOTP>;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
type: MfaFactor.TOTP;
|
|
241
|
-
key: string;
|
|
242
|
-
id: string;
|
|
243
|
-
createdAt: string;
|
|
244
|
-
}, {
|
|
245
|
-
type: MfaFactor.TOTP;
|
|
246
|
-
key: string;
|
|
247
|
-
id: string;
|
|
248
|
-
createdAt: string;
|
|
249
|
-
}>;
|
|
250
|
-
export type MfaVerificationTotp = z.infer<typeof mfaVerificationTotp>;
|
|
251
|
-
export declare const mfaVerificationWebAuthn: z.ZodObject<{
|
|
252
|
-
credentialId: z.ZodString;
|
|
253
|
-
publicKey: z.ZodString;
|
|
254
|
-
counter: z.ZodNumber;
|
|
255
|
-
agent: z.ZodString;
|
|
256
|
-
id: z.ZodString;
|
|
257
|
-
createdAt: z.ZodString;
|
|
258
|
-
type: z.ZodLiteral<MfaFactor.WebAuthn>;
|
|
259
|
-
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
type: MfaFactor.WebAuthn;
|
|
261
|
-
id: string;
|
|
262
|
-
createdAt: string;
|
|
263
|
-
credentialId: string;
|
|
264
|
-
publicKey: string;
|
|
265
|
-
counter: number;
|
|
266
|
-
agent: string;
|
|
267
|
-
}, {
|
|
268
|
-
type: MfaFactor.WebAuthn;
|
|
269
|
-
id: string;
|
|
270
|
-
createdAt: string;
|
|
271
|
-
credentialId: string;
|
|
272
|
-
publicKey: string;
|
|
273
|
-
counter: number;
|
|
274
|
-
agent: string;
|
|
275
|
-
}>;
|
|
276
|
-
export type MfaVerificationWebAuthn = z.infer<typeof mfaVerificationWebAuthn>;
|
|
277
|
-
export declare const mfaVerificationBackupCode: z.ZodObject<{
|
|
278
|
-
code: z.ZodString;
|
|
279
|
-
usedAt: z.ZodOptional<z.ZodString>;
|
|
280
|
-
id: z.ZodString;
|
|
281
|
-
createdAt: z.ZodString;
|
|
282
|
-
type: z.ZodLiteral<MfaFactor.BackupCode>;
|
|
283
|
-
}, "strip", z.ZodTypeAny, {
|
|
284
|
-
usedAt?: string | undefined;
|
|
285
|
-
code: string;
|
|
286
|
-
type: MfaFactor.BackupCode;
|
|
287
|
-
id: string;
|
|
288
|
-
createdAt: string;
|
|
289
|
-
}, {
|
|
290
|
-
usedAt?: string | undefined;
|
|
291
|
-
code: string;
|
|
292
|
-
type: MfaFactor.BackupCode;
|
|
293
|
-
id: string;
|
|
294
|
-
createdAt: string;
|
|
295
|
-
}>;
|
|
296
|
-
export type MfaVerificationBackupCode = z.infer<typeof mfaVerificationBackupCode>;
|
|
297
|
-
export declare const mfaVerificationGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
298
|
-
key: z.ZodString;
|
|
299
|
-
id: z.ZodString;
|
|
300
|
-
createdAt: z.ZodString;
|
|
301
|
-
type: z.ZodLiteral<MfaFactor.TOTP>;
|
|
302
|
-
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
type: MfaFactor.TOTP;
|
|
304
|
-
key: string;
|
|
305
|
-
id: string;
|
|
306
|
-
createdAt: string;
|
|
307
|
-
}, {
|
|
308
|
-
type: MfaFactor.TOTP;
|
|
309
|
-
key: string;
|
|
310
|
-
id: string;
|
|
311
|
-
createdAt: string;
|
|
312
|
-
}>, z.ZodObject<{
|
|
313
|
-
credentialId: z.ZodString;
|
|
314
|
-
publicKey: z.ZodString;
|
|
315
|
-
counter: z.ZodNumber;
|
|
316
|
-
agent: z.ZodString;
|
|
317
|
-
id: z.ZodString;
|
|
318
|
-
createdAt: z.ZodString;
|
|
319
|
-
type: z.ZodLiteral<MfaFactor.WebAuthn>;
|
|
320
|
-
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
type: MfaFactor.WebAuthn;
|
|
322
|
-
id: string;
|
|
323
|
-
createdAt: string;
|
|
324
|
-
credentialId: string;
|
|
325
|
-
publicKey: string;
|
|
326
|
-
counter: number;
|
|
327
|
-
agent: string;
|
|
328
|
-
}, {
|
|
329
|
-
type: MfaFactor.WebAuthn;
|
|
330
|
-
id: string;
|
|
331
|
-
createdAt: string;
|
|
332
|
-
credentialId: string;
|
|
333
|
-
publicKey: string;
|
|
334
|
-
counter: number;
|
|
335
|
-
agent: string;
|
|
336
|
-
}>, z.ZodObject<{
|
|
337
|
-
code: z.ZodString;
|
|
338
|
-
usedAt: z.ZodOptional<z.ZodString>;
|
|
339
|
-
id: z.ZodString;
|
|
340
|
-
createdAt: z.ZodString;
|
|
341
|
-
type: z.ZodLiteral<MfaFactor.BackupCode>;
|
|
342
|
-
}, "strip", z.ZodTypeAny, {
|
|
343
|
-
usedAt?: string | undefined;
|
|
344
|
-
code: string;
|
|
345
|
-
type: MfaFactor.BackupCode;
|
|
346
|
-
id: string;
|
|
347
|
-
createdAt: string;
|
|
348
|
-
}, {
|
|
349
|
-
usedAt?: string | undefined;
|
|
350
|
-
code: string;
|
|
351
|
-
type: MfaFactor.BackupCode;
|
|
352
|
-
id: string;
|
|
353
|
-
createdAt: string;
|
|
354
|
-
}>]>;
|
|
355
|
-
export type MfaVerification = z.infer<typeof mfaVerificationGuard>;
|
|
356
|
-
export declare const mfaVerificationsGuard: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
357
|
-
key: z.ZodString;
|
|
358
|
-
id: z.ZodString;
|
|
359
|
-
createdAt: z.ZodString;
|
|
360
|
-
type: z.ZodLiteral<MfaFactor.TOTP>;
|
|
361
|
-
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
type: MfaFactor.TOTP;
|
|
363
|
-
key: string;
|
|
364
|
-
id: string;
|
|
365
|
-
createdAt: string;
|
|
366
|
-
}, {
|
|
367
|
-
type: MfaFactor.TOTP;
|
|
368
|
-
key: string;
|
|
369
|
-
id: string;
|
|
370
|
-
createdAt: string;
|
|
371
|
-
}>, z.ZodObject<{
|
|
372
|
-
credentialId: z.ZodString;
|
|
373
|
-
publicKey: z.ZodString;
|
|
374
|
-
counter: z.ZodNumber;
|
|
375
|
-
agent: z.ZodString;
|
|
376
|
-
id: z.ZodString;
|
|
377
|
-
createdAt: z.ZodString;
|
|
378
|
-
type: z.ZodLiteral<MfaFactor.WebAuthn>;
|
|
379
|
-
}, "strip", z.ZodTypeAny, {
|
|
380
|
-
type: MfaFactor.WebAuthn;
|
|
381
|
-
id: string;
|
|
382
|
-
createdAt: string;
|
|
383
|
-
credentialId: string;
|
|
384
|
-
publicKey: string;
|
|
385
|
-
counter: number;
|
|
386
|
-
agent: string;
|
|
387
|
-
}, {
|
|
388
|
-
type: MfaFactor.WebAuthn;
|
|
389
|
-
id: string;
|
|
390
|
-
createdAt: string;
|
|
391
|
-
credentialId: string;
|
|
392
|
-
publicKey: string;
|
|
393
|
-
counter: number;
|
|
394
|
-
agent: string;
|
|
395
|
-
}>, z.ZodObject<{
|
|
396
|
-
code: z.ZodString;
|
|
397
|
-
usedAt: z.ZodOptional<z.ZodString>;
|
|
398
|
-
id: z.ZodString;
|
|
399
|
-
createdAt: z.ZodString;
|
|
400
|
-
type: z.ZodLiteral<MfaFactor.BackupCode>;
|
|
401
|
-
}, "strip", z.ZodTypeAny, {
|
|
402
|
-
usedAt?: string | undefined;
|
|
403
|
-
code: string;
|
|
404
|
-
type: MfaFactor.BackupCode;
|
|
405
|
-
id: string;
|
|
406
|
-
createdAt: string;
|
|
407
|
-
}, {
|
|
408
|
-
usedAt?: string | undefined;
|
|
409
|
-
code: string;
|
|
410
|
-
type: MfaFactor.BackupCode;
|
|
411
|
-
id: string;
|
|
412
|
-
createdAt: string;
|
|
413
|
-
}>]>, "many">;
|
|
414
|
-
export type MfaVerifications = z.infer<typeof mfaVerificationsGuard>;
|
|
415
|
-
export type Translation = {
|
|
416
|
-
[key: string]: string | Translation;
|
|
417
|
-
};
|
|
418
|
-
export declare const translationGuard: z.ZodType<Translation>;
|
|
419
|
-
export declare enum LogResult {
|
|
420
|
-
Success = "Success",
|
|
421
|
-
Error = "Error"
|
|
422
|
-
}
|
|
423
|
-
export declare const logContextPayloadGuard: z.ZodObject<{
|
|
424
|
-
key: z.ZodString;
|
|
425
|
-
result: z.ZodNativeEnum<typeof LogResult>;
|
|
426
|
-
error: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>;
|
|
427
|
-
ip: z.ZodOptional<z.ZodString>;
|
|
428
|
-
userAgent: z.ZodOptional<z.ZodString>;
|
|
429
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
430
|
-
applicationId: z.ZodOptional<z.ZodString>;
|
|
431
|
-
sessionId: z.ZodOptional<z.ZodString>;
|
|
432
|
-
}, "strip", z.ZodUnknown, {
|
|
433
|
-
[x: string]: unknown;
|
|
434
|
-
error?: string | Record<string, unknown> | undefined;
|
|
435
|
-
userId?: string | undefined;
|
|
436
|
-
ip?: string | undefined;
|
|
437
|
-
userAgent?: string | undefined;
|
|
438
|
-
applicationId?: string | undefined;
|
|
439
|
-
sessionId?: string | undefined;
|
|
440
|
-
key: string;
|
|
441
|
-
result: LogResult;
|
|
442
|
-
}, {
|
|
443
|
-
[x: string]: unknown;
|
|
444
|
-
error?: string | Record<string, unknown> | undefined;
|
|
445
|
-
userId?: string | undefined;
|
|
446
|
-
ip?: string | undefined;
|
|
447
|
-
userAgent?: string | undefined;
|
|
448
|
-
applicationId?: string | undefined;
|
|
449
|
-
sessionId?: string | undefined;
|
|
450
|
-
key: string;
|
|
451
|
-
result: LogResult;
|
|
452
|
-
}>;
|
|
453
|
-
export type PartialPasswordPolicy = DeepPartial<PasswordPolicy>;
|
|
454
|
-
export declare const partialPasswordPolicyGuard: z.ZodObject<{
|
|
455
|
-
length: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
456
|
-
min: z.ZodDefault<z.ZodNumber>;
|
|
457
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
458
|
-
}, "strip", z.ZodTypeAny, {
|
|
459
|
-
min: number;
|
|
460
|
-
max: number;
|
|
461
|
-
}, {
|
|
462
|
-
min?: number | undefined;
|
|
463
|
-
max?: number | undefined;
|
|
464
|
-
}>>>;
|
|
465
|
-
characterTypes: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
466
|
-
min: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
467
|
-
}, "strip", z.ZodTypeAny, {
|
|
468
|
-
min: number;
|
|
469
|
-
}, {
|
|
470
|
-
min?: number | undefined;
|
|
471
|
-
}>>>;
|
|
472
|
-
rejects: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
473
|
-
pwned: z.ZodDefault<z.ZodBoolean>;
|
|
474
|
-
repetitionAndSequence: z.ZodDefault<z.ZodBoolean>;
|
|
475
|
-
userInfo: z.ZodDefault<z.ZodBoolean>;
|
|
476
|
-
words: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
477
|
-
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
pwned: boolean;
|
|
479
|
-
repetitionAndSequence: boolean;
|
|
480
|
-
userInfo: boolean;
|
|
481
|
-
words: string[];
|
|
482
|
-
}, {
|
|
483
|
-
pwned?: boolean | undefined;
|
|
484
|
-
repetitionAndSequence?: boolean | undefined;
|
|
485
|
-
userInfo?: boolean | undefined;
|
|
486
|
-
words?: string[] | undefined;
|
|
487
|
-
}>>>;
|
|
488
|
-
}, "strip", z.ZodTypeAny, {
|
|
489
|
-
length?: {
|
|
490
|
-
min: number;
|
|
491
|
-
max: number;
|
|
492
|
-
} | undefined;
|
|
493
|
-
characterTypes?: {
|
|
494
|
-
min: number;
|
|
495
|
-
} | undefined;
|
|
496
|
-
rejects?: {
|
|
497
|
-
pwned: boolean;
|
|
498
|
-
repetitionAndSequence: boolean;
|
|
499
|
-
userInfo: boolean;
|
|
500
|
-
words: string[];
|
|
501
|
-
} | undefined;
|
|
502
|
-
}, {
|
|
503
|
-
length?: {
|
|
504
|
-
min?: number | undefined;
|
|
505
|
-
max?: number | undefined;
|
|
506
|
-
} | undefined;
|
|
507
|
-
characterTypes?: {
|
|
508
|
-
min?: number | undefined;
|
|
509
|
-
} | undefined;
|
|
510
|
-
rejects?: {
|
|
511
|
-
pwned?: boolean | undefined;
|
|
512
|
-
repetitionAndSequence?: boolean | undefined;
|
|
513
|
-
userInfo?: boolean | undefined;
|
|
514
|
-
words?: string[] | undefined;
|
|
515
|
-
} | undefined;
|
|
516
|
-
}>;
|
|
517
|
-
/**
|
|
518
|
-
* The basic log context type. It's more about a type hint instead of forcing the log shape.
|
|
519
|
-
*
|
|
520
|
-
* Note when setting up a log function, the type of log key in function arguments should be `LogKey`.
|
|
521
|
-
* Here we use `string` to make it compatible with the Zod guard.
|
|
522
|
-
**/
|
|
523
|
-
export type LogContextPayload = z.infer<typeof logContextPayloadGuard>;
|
|
524
|
-
export declare enum HookEvent {
|
|
525
|
-
PostRegister = "PostRegister",
|
|
526
|
-
PostSignIn = "PostSignIn",
|
|
527
|
-
PostResetPassword = "PostResetPassword"
|
|
528
|
-
}
|
|
529
|
-
export declare const hookEventGuard: z.ZodType<HookEvent>;
|
|
530
|
-
export declare const hookEventsGuard: z.ZodArray<z.ZodType<HookEvent, z.ZodTypeDef, HookEvent>, "many">;
|
|
531
|
-
export type HookEvents = z.infer<typeof hookEventsGuard>;
|
|
532
|
-
export declare const hookConfigGuard: z.ZodObject<{
|
|
533
|
-
/** We don't need `type` since v1 only has web hook */
|
|
534
|
-
/** Method fixed to `POST` */
|
|
535
|
-
url: z.ZodString;
|
|
536
|
-
/** Additional headers that attach to the request */
|
|
537
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
538
|
-
/**
|
|
539
|
-
* @deprecated
|
|
540
|
-
* Retry times when hook response status >= 500.
|
|
541
|
-
* Now the retry times is fixed to 3.
|
|
542
|
-
* Keep for backward compatibility.
|
|
543
|
-
*/
|
|
544
|
-
retries: z.ZodOptional<z.ZodNumber>;
|
|
545
|
-
}, "strip", z.ZodTypeAny, {
|
|
546
|
-
headers?: Record<string, string> | undefined;
|
|
547
|
-
retries?: number | undefined;
|
|
548
|
-
url: string;
|
|
549
|
-
}, {
|
|
550
|
-
headers?: Record<string, string> | undefined;
|
|
551
|
-
retries?: number | undefined;
|
|
552
|
-
url: string;
|
|
553
|
-
}>;
|
|
554
|
-
export type HookConfig = z.infer<typeof hookConfigGuard>;
|
|
555
|
-
export declare const domainDnsRecordGuard: z.ZodObject<{
|
|
556
|
-
name: z.ZodString;
|
|
557
|
-
type: z.ZodString;
|
|
558
|
-
value: z.ZodString;
|
|
559
|
-
}, "strip", z.ZodTypeAny, {
|
|
560
|
-
type: string;
|
|
561
|
-
value: string;
|
|
562
|
-
name: string;
|
|
563
|
-
}, {
|
|
564
|
-
type: string;
|
|
565
|
-
value: string;
|
|
566
|
-
name: string;
|
|
567
|
-
}>;
|
|
568
|
-
export type DomainDnsRecord = z.infer<typeof domainDnsRecordGuard>;
|
|
569
|
-
export declare const domainDnsRecordsGuard: z.ZodArray<z.ZodObject<{
|
|
570
|
-
name: z.ZodString;
|
|
571
|
-
type: z.ZodString;
|
|
572
|
-
value: z.ZodString;
|
|
573
|
-
}, "strip", z.ZodTypeAny, {
|
|
574
|
-
type: string;
|
|
575
|
-
value: string;
|
|
576
|
-
name: string;
|
|
577
|
-
}, {
|
|
578
|
-
type: string;
|
|
579
|
-
value: string;
|
|
580
|
-
name: string;
|
|
581
|
-
}>, "many">;
|
|
582
|
-
export type DomainDnsRecords = z.infer<typeof domainDnsRecordsGuard>;
|
|
583
|
-
export declare const cloudflareDataGuard: z.ZodObject<{
|
|
584
|
-
id: z.ZodString;
|
|
585
|
-
status: z.ZodString;
|
|
586
|
-
ssl: z.ZodObject<{
|
|
587
|
-
status: z.ZodString;
|
|
588
|
-
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
589
|
-
message: z.ZodString;
|
|
590
|
-
}, "strip", z.ZodUnknown, {
|
|
591
|
-
[x: string]: unknown;
|
|
592
|
-
message: string;
|
|
593
|
-
}, {
|
|
594
|
-
[x: string]: unknown;
|
|
595
|
-
message: string;
|
|
596
|
-
}>, "many">>;
|
|
597
|
-
}, "strip", z.ZodUnknown, {
|
|
598
|
-
[x: string]: unknown;
|
|
599
|
-
validation_errors?: {
|
|
600
|
-
[x: string]: unknown;
|
|
601
|
-
message: string;
|
|
602
|
-
}[] | undefined;
|
|
603
|
-
status: string;
|
|
604
|
-
}, {
|
|
605
|
-
[x: string]: unknown;
|
|
606
|
-
validation_errors?: {
|
|
607
|
-
[x: string]: unknown;
|
|
608
|
-
message: string;
|
|
609
|
-
}[] | undefined;
|
|
610
|
-
status: string;
|
|
611
|
-
}>;
|
|
612
|
-
verification_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
613
|
-
}, "strip", z.ZodUnknown, {
|
|
614
|
-
[x: string]: unknown;
|
|
615
|
-
verification_errors?: string[] | undefined;
|
|
616
|
-
status: string;
|
|
617
|
-
id: string;
|
|
618
|
-
ssl: {
|
|
619
|
-
[x: string]: unknown;
|
|
620
|
-
validation_errors?: {
|
|
621
|
-
[x: string]: unknown;
|
|
622
|
-
message: string;
|
|
623
|
-
}[] | undefined;
|
|
624
|
-
status: string;
|
|
625
|
-
};
|
|
626
|
-
}, {
|
|
627
|
-
[x: string]: unknown;
|
|
628
|
-
verification_errors?: string[] | undefined;
|
|
629
|
-
status: string;
|
|
630
|
-
id: string;
|
|
631
|
-
ssl: {
|
|
632
|
-
[x: string]: unknown;
|
|
633
|
-
validation_errors?: {
|
|
634
|
-
[x: string]: unknown;
|
|
635
|
-
message: string;
|
|
636
|
-
}[] | undefined;
|
|
637
|
-
status: string;
|
|
638
|
-
};
|
|
639
|
-
}>;
|
|
640
|
-
export type CloudflareData = z.infer<typeof cloudflareDataGuard>;
|
|
641
|
-
export declare enum DomainStatus {
|
|
642
|
-
PendingVerification = "PendingVerification",
|
|
643
|
-
PendingSsl = "PendingSsl",
|
|
644
|
-
Active = "Active",
|
|
645
|
-
Error = "Error"
|
|
646
|
-
}
|
|
647
|
-
export declare const domainStatusGuard: z.ZodNativeEnum<typeof DomainStatus>;
|
|
648
|
-
/** The action target type of a sentinel activity. */
|
|
649
|
-
export declare enum SentinelActivityTargetType {
|
|
650
|
-
User = "User",
|
|
651
|
-
App = "App"
|
|
652
|
-
}
|
|
653
|
-
export declare const sentinelActivityTargetTypeGuard: z.ZodNativeEnum<typeof SentinelActivityTargetType>;
|
|
654
|
-
/** The action type of a sentinel activity. */
|
|
655
|
-
export declare enum SentinelActivityAction {
|
|
656
|
-
/**
|
|
657
|
-
* The subject tries to pass a verification by inputting a password.
|
|
658
|
-
*
|
|
659
|
-
* For example, a user (subject) who inputted a password (action) to authenticate themselves
|
|
660
|
-
* (target).
|
|
661
|
-
*/
|
|
662
|
-
Password = "Password",
|
|
663
|
-
/**
|
|
664
|
-
* The subject tries to pass a verification by inputting a verification code.
|
|
665
|
-
*
|
|
666
|
-
* For example, a user (subject) who inputted a verification code (action) to authenticate
|
|
667
|
-
* themselves (target).
|
|
668
|
-
*/
|
|
669
|
-
VerificationCode = "VerificationCode"
|
|
670
|
-
}
|
|
671
|
-
export declare const sentinelActivityActionGuard: z.ZodNativeEnum<typeof SentinelActivityAction>;
|
|
672
|
-
export type SentinelActivityPayload = Record<string, unknown>;
|
|
673
|
-
export declare const sentinelActivityPayloadGuard: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|