@logto/schemas 1.19.0 → 1.21.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.
Files changed (62) hide show
  1. package/alterations/1.20.0-1723448981-personal-access-tokens.ts +35 -0
  2. package/alterations/1.20.0-1724229102-add-report-sub-updates-cloud-scope.ts +102 -0
  3. package/alterations/1.20.0-1724316971-add-verified-identifier-to-verification-statuses.ts +18 -0
  4. package/alterations/1.20.0-1725971571-add-verification-record.ts +35 -0
  5. package/alterations/1.21.0-1728357690-add-sso-connector-idp-initated-auth-configs-table.ts +40 -0
  6. package/alterations/1.21.0-1728526649-add-idp-initiated-saml-sso-sessions-table.ts +36 -0
  7. package/alterations/1.21.0-1728887713-add-client-idp-initiated-auth-callback-uri-columns.ts +40 -0
  8. package/alterations-js/1.20.0-1723448981-personal-access-tokens.js +30 -0
  9. package/alterations-js/1.20.0-1724229102-add-report-sub-updates-cloud-scope.js +59 -0
  10. package/alterations-js/1.20.0-1724316971-add-verified-identifier-to-verification-statuses.js +14 -0
  11. package/alterations-js/1.20.0-1725971571-add-verification-record.js +30 -0
  12. package/alterations-js/1.21.0-1728357690-add-sso-connector-idp-initated-auth-configs-table.js +35 -0
  13. package/alterations-js/1.21.0-1728526649-add-idp-initiated-saml-sso-sessions-table.js +31 -0
  14. package/alterations-js/1.21.0-1728887713-add-client-idp-initiated-auth-callback-uri-columns.js +36 -0
  15. package/lib/consts/experience.d.ts +8 -5
  16. package/lib/consts/experience.js +3 -0
  17. package/lib/consts/oidc.d.ts +34 -3
  18. package/lib/consts/oidc.js +26 -1
  19. package/lib/consts/subscriptions.d.ts +1 -0
  20. package/lib/consts/subscriptions.js +1 -0
  21. package/lib/db-entries/idp-initiated-saml-sso-session.d.ts +32 -0
  22. package/lib/db-entries/idp-initiated-saml-sso-session.js +42 -0
  23. package/lib/db-entries/index.d.ts +4 -0
  24. package/lib/db-entries/index.js +4 -0
  25. package/lib/db-entries/personal-access-token.d.ts +26 -0
  26. package/lib/db-entries/personal-access-token.js +41 -0
  27. package/lib/db-entries/sso-connector-idp-initiated-auth-config.d.ts +42 -0
  28. package/lib/db-entries/sso-connector-idp-initiated-auth-config.js +50 -0
  29. package/lib/db-entries/verification-record.d.ts +26 -0
  30. package/lib/db-entries/verification-record.js +42 -0
  31. package/lib/db-entries/verification-status.d.ts +3 -1
  32. package/lib/db-entries/verification-status.js +4 -0
  33. package/lib/foundations/jsonb-types/index.d.ts +1 -0
  34. package/lib/foundations/jsonb-types/index.js +1 -0
  35. package/lib/foundations/jsonb-types/logs.d.ts +3 -0
  36. package/lib/foundations/jsonb-types/logs.js +1 -0
  37. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +7 -3
  38. package/lib/foundations/jsonb-types/sign-in-experience.js +5 -0
  39. package/lib/foundations/jsonb-types/sso-connector.d.ts +49 -0
  40. package/lib/foundations/jsonb-types/sso-connector.js +17 -0
  41. package/lib/foundations/jsonb-types/verification-records.d.ts +13 -0
  42. package/lib/foundations/jsonb-types/verification-records.js +14 -0
  43. package/lib/seeds/cloud-api.d.ts +4 -0
  44. package/lib/seeds/cloud-api.js +5 -0
  45. package/lib/types/connector.d.ts +8 -0
  46. package/lib/types/consent.d.ts +2 -2
  47. package/lib/types/interactions.d.ts +17 -15
  48. package/lib/types/interactions.js +5 -14
  49. package/lib/types/log/interaction.d.ts +3 -3
  50. package/lib/types/logto-config/jwt-customizer.d.ts +48 -0
  51. package/lib/types/logto-config/jwt-customizer.js +17 -0
  52. package/lib/types/sign-in-experience.d.ts +6 -2
  53. package/lib/types/sso-connector.d.ts +3 -0
  54. package/lib/types/sso-connector.js +4 -0
  55. package/lib/types/system.d.ts +20 -3
  56. package/lib/types/system.js +13 -0
  57. package/package.json +5 -5
  58. package/tables/idp_initiated_saml_sso_sessions.sql +16 -0
  59. package/tables/personal_access_tokens.sql +16 -0
  60. package/tables/sso_connector_idp_initiated_auth_configs.sql +24 -0
  61. package/tables/verification_records.sql +15 -0
  62. package/tables/verification_statuses.sql +1 -0
@@ -35,6 +35,23 @@ export var ExtraParamsKey;
35
35
  * organization ID.
36
36
  */
37
37
  ExtraParamsKey["OrganizationId"] = "organization_id";
38
+ /**
39
+ * Provides a hint about the login identifier the user might use.
40
+ * This can be used to pre-fill the identifier field **only on the first screen** of the sign-in/sign-up flow.
41
+ */
42
+ ExtraParamsKey["LoginHint"] = "login_hint";
43
+ /**
44
+ * Specifies the identifier used in the identifier sign-in or identifier register page.
45
+ *
46
+ * This parameter is applicable only when first_screen is set to either `FirstScreen.IdentifierSignIn` or `FirstScreen.IdentifierRegister`.
47
+ * Multiple identifiers can be provided in the identifier parameter, separated by spaces.
48
+ *
49
+ * If the provided identifier is not supported in the Logto sign-in experience configuration, it will be ignored,
50
+ * and if no one of them is supported, it will fallback to the sign-in / sign-up method value set in the sign-in experience configuration.
51
+ *
52
+ * @see {@link SignInIdentifier} for available values.
53
+ */
54
+ ExtraParamsKey["Identifier"] = "identifier";
38
55
  })(ExtraParamsKey || (ExtraParamsKey = {}));
39
56
  /** @deprecated Use {@link FirstScreen} instead. */
40
57
  export var InteractionMode;
@@ -44,8 +61,14 @@ export var InteractionMode;
44
61
  })(InteractionMode || (InteractionMode = {}));
45
62
  export var FirstScreen;
46
63
  (function (FirstScreen) {
47
- FirstScreen["SignIn"] = "signIn";
64
+ FirstScreen["SignIn"] = "sign_in";
48
65
  FirstScreen["Register"] = "register";
66
+ FirstScreen["ResetPassword"] = "reset_password";
67
+ FirstScreen["IdentifierSignIn"] = "identifier:sign_in";
68
+ FirstScreen["IdentifierRegister"] = "identifier:register";
69
+ FirstScreen["SingleSignOn"] = "single_sign_on";
70
+ /** @deprecated Use snake_case 'sign_in' instead. */
71
+ FirstScreen["SignInDeprecated"] = "signIn";
49
72
  })(FirstScreen || (FirstScreen = {}));
50
73
  export const extraParamsObjectGuard = z
51
74
  .object({
@@ -53,5 +76,7 @@ export const extraParamsObjectGuard = z
53
76
  [ExtraParamsKey.FirstScreen]: z.nativeEnum(FirstScreen),
54
77
  [ExtraParamsKey.DirectSignIn]: z.string(),
55
78
  [ExtraParamsKey.OrganizationId]: z.string(),
79
+ [ExtraParamsKey.LoginHint]: z.string(),
80
+ [ExtraParamsKey.Identifier]: z.string(),
56
81
  })
57
82
  .partial();
@@ -18,6 +18,7 @@ export declare enum ReservedPlanId {
18
18
  */
19
19
  Hobby = "hobby",
20
20
  Pro = "pro",
21
+ Enterprise = "enterprise",
21
22
  /**
22
23
  * @deprecated
23
24
  * Should not use this plan ID, we only use this tag as a record for the legacy `pro` plan since we will rename the `hobby` plan to be `pro`.
@@ -19,6 +19,7 @@ export var ReservedPlanId;
19
19
  */
20
20
  ReservedPlanId["Hobby"] = "hobby";
21
21
  ReservedPlanId["Pro"] = "pro";
22
+ ReservedPlanId["Enterprise"] = "enterprise";
22
23
  /**
23
24
  * @deprecated
24
25
  * Should not use this plan ID, we only use this tag as a record for the legacy `pro` plan since we will rename the `hobby` plan to be `pro`.
@@ -0,0 +1,32 @@
1
+ import { SsoSamlAssertionContent, GeneratedSchema } from './../foundations/index.js';
2
+ /**
3
+ *
4
+ * @remarks This is a type for database creation.
5
+ * @see {@link IdpInitiatedSamlSsoSession} for the original type.
6
+ */
7
+ export type CreateIdpInitiatedSamlSsoSession = {
8
+ tenantId?: string;
9
+ /** The globally unique identifier of the assertion record. */
10
+ id: string;
11
+ /** The identifier of the SAML SSO connector. */
12
+ connectorId: string;
13
+ /** The SAML assertion. */
14
+ assertionContent?: SsoSamlAssertionContent;
15
+ createdAt?: number;
16
+ /** The expiration time of the assertion. */
17
+ expiresAt: number;
18
+ };
19
+ export type IdpInitiatedSamlSsoSession = {
20
+ tenantId: string;
21
+ /** The globally unique identifier of the assertion record. */
22
+ id: string;
23
+ /** The identifier of the SAML SSO connector. */
24
+ connectorId: string;
25
+ /** The SAML assertion. */
26
+ assertionContent: SsoSamlAssertionContent;
27
+ createdAt: number;
28
+ /** The expiration time of the assertion. */
29
+ expiresAt: number;
30
+ };
31
+ export type IdpInitiatedSamlSsoSessionKeys = 'tenantId' | 'id' | 'connectorId' | 'assertionContent' | 'createdAt' | 'expiresAt';
32
+ export declare const IdpInitiatedSamlSsoSessions: GeneratedSchema<IdpInitiatedSamlSsoSessionKeys, CreateIdpInitiatedSamlSsoSession, IdpInitiatedSamlSsoSession, 'idp_initiated_saml_sso_sessions', 'idp_initiated_saml_sso_session'>;
@@ -0,0 +1,42 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ import { ssoSamlAssertionContentGuard } from './../foundations/index.js';
4
+ const createGuard = z.object({
5
+ tenantId: z.string().max(21).optional(),
6
+ id: z.string().min(1).max(21),
7
+ connectorId: z.string().min(1).max(128),
8
+ assertionContent: ssoSamlAssertionContentGuard.optional(),
9
+ createdAt: z.number().optional(),
10
+ expiresAt: z.number(),
11
+ });
12
+ const guard = z.object({
13
+ tenantId: z.string().max(21),
14
+ id: z.string().min(1).max(21),
15
+ connectorId: z.string().min(1).max(128),
16
+ assertionContent: ssoSamlAssertionContentGuard,
17
+ createdAt: z.number(),
18
+ expiresAt: z.number(),
19
+ });
20
+ export const IdpInitiatedSamlSsoSessions = Object.freeze({
21
+ table: 'idp_initiated_saml_sso_sessions',
22
+ tableSingular: 'idp_initiated_saml_sso_session',
23
+ fields: {
24
+ tenantId: 'tenant_id',
25
+ id: 'id',
26
+ connectorId: 'connector_id',
27
+ assertionContent: 'assertion_content',
28
+ createdAt: 'created_at',
29
+ expiresAt: 'expires_at',
30
+ },
31
+ fieldKeys: [
32
+ 'tenantId',
33
+ 'id',
34
+ 'connectorId',
35
+ 'assertionContent',
36
+ 'createdAt',
37
+ 'expiresAt',
38
+ ],
39
+ createGuard,
40
+ guard,
41
+ updateGuard: guard.partial(),
42
+ });
@@ -18,6 +18,7 @@ export * from './daily-active-user.js';
18
18
  export * from './daily-token-usage.js';
19
19
  export * from './domain.js';
20
20
  export * from './hook.js';
21
+ export * from './idp-initiated-saml-sso-session.js';
21
22
  export * from './log.js';
22
23
  export * from './logto-config.js';
23
24
  export * from './oidc-model-instance.js';
@@ -36,6 +37,7 @@ export * from './organization-scope.js';
36
37
  export * from './organization-user-relation.js';
37
38
  export * from './organization.js';
38
39
  export * from './passcode.js';
40
+ export * from './personal-access-token.js';
39
41
  export * from './resource.js';
40
42
  export * from './role.js';
41
43
  export * from './roles-scope.js';
@@ -43,10 +45,12 @@ export * from './scope.js';
43
45
  export * from './sentinel-activity.js';
44
46
  export * from './service-log.js';
45
47
  export * from './sign-in-experience.js';
48
+ export * from './sso-connector-idp-initiated-auth-config.js';
46
49
  export * from './sso-connector.js';
47
50
  export * from './subject-token.js';
48
51
  export * from './system.js';
49
52
  export * from './user-sso-identity.js';
50
53
  export * from './user.js';
51
54
  export * from './users-role.js';
55
+ export * from './verification-record.js';
52
56
  export * from './verification-status.js';
@@ -19,6 +19,7 @@ export * from './daily-active-user.js';
19
19
  export * from './daily-token-usage.js';
20
20
  export * from './domain.js';
21
21
  export * from './hook.js';
22
+ export * from './idp-initiated-saml-sso-session.js';
22
23
  export * from './log.js';
23
24
  export * from './logto-config.js';
24
25
  export * from './oidc-model-instance.js';
@@ -37,6 +38,7 @@ export * from './organization-scope.js';
37
38
  export * from './organization-user-relation.js';
38
39
  export * from './organization.js';
39
40
  export * from './passcode.js';
41
+ export * from './personal-access-token.js';
40
42
  export * from './resource.js';
41
43
  export * from './role.js';
42
44
  export * from './roles-scope.js';
@@ -44,10 +46,12 @@ export * from './scope.js';
44
46
  export * from './sentinel-activity.js';
45
47
  export * from './service-log.js';
46
48
  export * from './sign-in-experience.js';
49
+ export * from './sso-connector-idp-initiated-auth-config.js';
47
50
  export * from './sso-connector.js';
48
51
  export * from './subject-token.js';
49
52
  export * from './system.js';
50
53
  export * from './user-sso-identity.js';
51
54
  export * from './user.js';
52
55
  export * from './users-role.js';
56
+ export * from './verification-record.js';
53
57
  export * from './verification-status.js';
@@ -0,0 +1,26 @@
1
+ import { GeneratedSchema } from './../foundations/index.js';
2
+ /**
3
+ *
4
+ * @remarks This is a type for database creation.
5
+ * @see {@link PersonalAccessToken} for the original type.
6
+ */
7
+ export type CreatePersonalAccessToken = {
8
+ tenantId?: string;
9
+ userId: string;
10
+ /** The name of the secret. Should be unique within the user. */
11
+ name: string;
12
+ value: string;
13
+ createdAt?: number;
14
+ expiresAt?: number | null;
15
+ };
16
+ export type PersonalAccessToken = {
17
+ tenantId: string;
18
+ userId: string;
19
+ /** The name of the secret. Should be unique within the user. */
20
+ name: string;
21
+ value: string;
22
+ createdAt: number;
23
+ expiresAt: number | null;
24
+ };
25
+ export type PersonalAccessTokenKeys = 'tenantId' | 'userId' | 'name' | 'value' | 'createdAt' | 'expiresAt';
26
+ export declare const PersonalAccessTokens: GeneratedSchema<PersonalAccessTokenKeys, CreatePersonalAccessToken, PersonalAccessToken, 'personal_access_tokens', 'personal_access_token'>;
@@ -0,0 +1,41 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ const createGuard = z.object({
4
+ tenantId: z.string().max(21).optional(),
5
+ userId: z.string().min(1).max(21),
6
+ name: z.string().min(1).max(256),
7
+ value: z.string().min(1).max(64),
8
+ createdAt: z.number().optional(),
9
+ expiresAt: z.number().nullable().optional(),
10
+ });
11
+ const guard = z.object({
12
+ tenantId: z.string().max(21),
13
+ userId: z.string().min(1).max(21),
14
+ name: z.string().min(1).max(256),
15
+ value: z.string().min(1).max(64),
16
+ createdAt: z.number(),
17
+ expiresAt: z.number().nullable(),
18
+ });
19
+ export const PersonalAccessTokens = Object.freeze({
20
+ table: 'personal_access_tokens',
21
+ tableSingular: 'personal_access_token',
22
+ fields: {
23
+ tenantId: 'tenant_id',
24
+ userId: 'user_id',
25
+ name: 'name',
26
+ value: 'value',
27
+ createdAt: 'created_at',
28
+ expiresAt: 'expires_at',
29
+ },
30
+ fieldKeys: [
31
+ 'tenantId',
32
+ 'userId',
33
+ 'name',
34
+ 'value',
35
+ 'createdAt',
36
+ 'expiresAt',
37
+ ],
38
+ createGuard,
39
+ guard,
40
+ updateGuard: guard.partial(),
41
+ });
@@ -0,0 +1,42 @@
1
+ import { IdpInitiatedAuthParams, GeneratedSchema } from './../foundations/index.js';
2
+ /**
3
+ * init_order = 2
4
+ *
5
+ * @remarks This is a type for database creation.
6
+ * @see {@link SsoConnectorIdpInitiatedAuthConfig} for the original type.
7
+ */
8
+ export type CreateSsoConnectorIdpInitiatedAuthConfig = {
9
+ tenantId?: string;
10
+ /** The globally unique identifier of the SSO connector. */
11
+ connectorId: string;
12
+ /** The default Logto application id. */
13
+ defaultApplicationId: string;
14
+ /** OIDC sign-in redirect URI. */
15
+ redirectUri?: string | null;
16
+ /** Additional OIDC auth parameters. */
17
+ authParameters?: IdpInitiatedAuthParams;
18
+ /** Whether to auto-trigger the auth flow on an IdP-initiated auth request. */
19
+ autoSendAuthorizationRequest?: boolean;
20
+ /** The client side callback URI for handling IdP-initiated auth request. */
21
+ clientIdpInitiatedAuthCallbackUri?: string | null;
22
+ createdAt?: number;
23
+ };
24
+ /** init_order = 2 */
25
+ export type SsoConnectorIdpInitiatedAuthConfig = {
26
+ tenantId: string;
27
+ /** The globally unique identifier of the SSO connector. */
28
+ connectorId: string;
29
+ /** The default Logto application id. */
30
+ defaultApplicationId: string;
31
+ /** OIDC sign-in redirect URI. */
32
+ redirectUri: string | null;
33
+ /** Additional OIDC auth parameters. */
34
+ authParameters: IdpInitiatedAuthParams;
35
+ /** Whether to auto-trigger the auth flow on an IdP-initiated auth request. */
36
+ autoSendAuthorizationRequest: boolean;
37
+ /** The client side callback URI for handling IdP-initiated auth request. */
38
+ clientIdpInitiatedAuthCallbackUri: string | null;
39
+ createdAt: number;
40
+ };
41
+ export type SsoConnectorIdpInitiatedAuthConfigKeys = 'tenantId' | 'connectorId' | 'defaultApplicationId' | 'redirectUri' | 'authParameters' | 'autoSendAuthorizationRequest' | 'clientIdpInitiatedAuthCallbackUri' | 'createdAt';
42
+ export declare const SsoConnectorIdpInitiatedAuthConfigs: GeneratedSchema<SsoConnectorIdpInitiatedAuthConfigKeys, CreateSsoConnectorIdpInitiatedAuthConfig, SsoConnectorIdpInitiatedAuthConfig, 'sso_connector_idp_initiated_auth_configs', 'sso_connector_idp_initiated_auth_config'>;
@@ -0,0 +1,50 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ import { idpInitiatedAuthParamsGuard } from './../foundations/index.js';
4
+ const createGuard = z.object({
5
+ tenantId: z.string().max(21).optional(),
6
+ connectorId: z.string().min(1).max(128),
7
+ defaultApplicationId: z.string().min(1).max(21),
8
+ redirectUri: z.string().nullable().optional(),
9
+ authParameters: idpInitiatedAuthParamsGuard.optional(),
10
+ autoSendAuthorizationRequest: z.boolean().optional(),
11
+ clientIdpInitiatedAuthCallbackUri: z.string().nullable().optional(),
12
+ createdAt: z.number().optional(),
13
+ });
14
+ const guard = z.object({
15
+ tenantId: z.string().max(21),
16
+ connectorId: z.string().min(1).max(128),
17
+ defaultApplicationId: z.string().min(1).max(21),
18
+ redirectUri: z.string().nullable(),
19
+ authParameters: idpInitiatedAuthParamsGuard,
20
+ autoSendAuthorizationRequest: z.boolean(),
21
+ clientIdpInitiatedAuthCallbackUri: z.string().nullable(),
22
+ createdAt: z.number(),
23
+ });
24
+ export const SsoConnectorIdpInitiatedAuthConfigs = Object.freeze({
25
+ table: 'sso_connector_idp_initiated_auth_configs',
26
+ tableSingular: 'sso_connector_idp_initiated_auth_config',
27
+ fields: {
28
+ tenantId: 'tenant_id',
29
+ connectorId: 'connector_id',
30
+ defaultApplicationId: 'default_application_id',
31
+ redirectUri: 'redirect_uri',
32
+ authParameters: 'auth_parameters',
33
+ autoSendAuthorizationRequest: 'auto_send_authorization_request',
34
+ clientIdpInitiatedAuthCallbackUri: 'client_idp_initiated_auth_callback_uri',
35
+ createdAt: 'created_at',
36
+ },
37
+ fieldKeys: [
38
+ 'tenantId',
39
+ 'connectorId',
40
+ 'defaultApplicationId',
41
+ 'redirectUri',
42
+ 'authParameters',
43
+ 'autoSendAuthorizationRequest',
44
+ 'clientIdpInitiatedAuthCallbackUri',
45
+ 'createdAt',
46
+ ],
47
+ createGuard,
48
+ guard,
49
+ updateGuard: guard.partial(),
50
+ });
@@ -0,0 +1,26 @@
1
+ import { JsonObject, GeneratedSchema } from './../foundations/index.js';
2
+ /**
3
+ *
4
+ * @remarks This is a type for database creation.
5
+ * @see {@link VerificationRecord} for the original type.
6
+ */
7
+ export type CreateVerificationRecord = {
8
+ tenantId?: string;
9
+ id: string;
10
+ userId?: string | null;
11
+ createdAt?: number;
12
+ expiresAt: number;
13
+ /** Use JsonObject here to avoid complex typing, the type will be validated in verification classes. */
14
+ data?: JsonObject;
15
+ };
16
+ export type VerificationRecord = {
17
+ tenantId: string;
18
+ id: string;
19
+ userId: string | null;
20
+ createdAt: number;
21
+ expiresAt: number;
22
+ /** Use JsonObject here to avoid complex typing, the type will be validated in verification classes. */
23
+ data: JsonObject;
24
+ };
25
+ export type VerificationRecordKeys = 'tenantId' | 'id' | 'userId' | 'createdAt' | 'expiresAt' | 'data';
26
+ export declare const VerificationRecords: GeneratedSchema<VerificationRecordKeys, CreateVerificationRecord, VerificationRecord, 'verification_records', 'verification_record'>;
@@ -0,0 +1,42 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ import { jsonObjectGuard } from './../foundations/index.js';
4
+ const createGuard = z.object({
5
+ tenantId: z.string().max(21).optional(),
6
+ id: z.string().min(1).max(21),
7
+ userId: z.string().max(21).nullable().optional(),
8
+ createdAt: z.number().optional(),
9
+ expiresAt: z.number(),
10
+ data: jsonObjectGuard.optional(),
11
+ });
12
+ const guard = z.object({
13
+ tenantId: z.string().max(21),
14
+ id: z.string().min(1).max(21),
15
+ userId: z.string().max(21).nullable(),
16
+ createdAt: z.number(),
17
+ expiresAt: z.number(),
18
+ data: jsonObjectGuard,
19
+ });
20
+ export const VerificationRecords = Object.freeze({
21
+ table: 'verification_records',
22
+ tableSingular: 'verification_record',
23
+ fields: {
24
+ tenantId: 'tenant_id',
25
+ id: 'id',
26
+ userId: 'user_id',
27
+ createdAt: 'created_at',
28
+ expiresAt: 'expires_at',
29
+ data: 'data',
30
+ },
31
+ fieldKeys: [
32
+ 'tenantId',
33
+ 'id',
34
+ 'userId',
35
+ 'createdAt',
36
+ 'expiresAt',
37
+ 'data',
38
+ ],
39
+ createGuard,
40
+ guard,
41
+ updateGuard: guard.partial(),
42
+ });
@@ -9,12 +9,14 @@ export type CreateVerificationStatus = {
9
9
  id: string;
10
10
  userId: string;
11
11
  createdAt?: number;
12
+ verifiedIdentifier?: string | null;
12
13
  };
13
14
  export type VerificationStatus = {
14
15
  tenantId: string;
15
16
  id: string;
16
17
  userId: string;
17
18
  createdAt: number;
19
+ verifiedIdentifier: string | null;
18
20
  };
19
- export type VerificationStatusKeys = 'tenantId' | 'id' | 'userId' | 'createdAt';
21
+ export type VerificationStatusKeys = 'tenantId' | 'id' | 'userId' | 'createdAt' | 'verifiedIdentifier';
20
22
  export declare const VerificationStatuses: GeneratedSchema<VerificationStatusKeys, CreateVerificationStatus, VerificationStatus, 'verification_statuses', 'verification_status'>;
@@ -5,12 +5,14 @@ const createGuard = z.object({
5
5
  id: z.string().min(1).max(21),
6
6
  userId: z.string().min(1).max(21),
7
7
  createdAt: z.number().optional(),
8
+ verifiedIdentifier: z.string().max(255).nullable().optional(),
8
9
  });
9
10
  const guard = z.object({
10
11
  tenantId: z.string().max(21),
11
12
  id: z.string().min(1).max(21),
12
13
  userId: z.string().min(1).max(21),
13
14
  createdAt: z.number(),
15
+ verifiedIdentifier: z.string().max(255).nullable(),
14
16
  });
15
17
  export const VerificationStatuses = Object.freeze({
16
18
  table: 'verification_statuses',
@@ -20,12 +22,14 @@ export const VerificationStatuses = Object.freeze({
20
22
  id: 'id',
21
23
  userId: 'user_id',
22
24
  createdAt: 'created_at',
25
+ verifiedIdentifier: 'verified_identifier',
23
26
  },
24
27
  fieldKeys: [
25
28
  'tenantId',
26
29
  'id',
27
30
  'userId',
28
31
  'createdAt',
32
+ 'verifiedIdentifier',
29
33
  ],
30
34
  createGuard,
31
35
  guard,
@@ -8,5 +8,6 @@ export * from './sentinel.js';
8
8
  export * from './users.js';
9
9
  export * from './sso-connector.js';
10
10
  export * from './applications.js';
11
+ export * from './verification-records.js';
11
12
  export { configurableConnectorMetadataGuard, type ConfigurableConnectorMetadata, jsonGuard, jsonObjectGuard, } from '@logto/connector-kit';
12
13
  export type { Json, JsonObject } from '@withtyped/server';
@@ -8,4 +8,5 @@ export * from './sentinel.js';
8
8
  export * from './users.js';
9
9
  export * from './sso-connector.js';
10
10
  export * from './applications.js';
11
+ export * from './verification-records.js';
11
12
  export { configurableConnectorMetadataGuard, jsonGuard, jsonObjectGuard, } from '@logto/connector-kit';
@@ -14,6 +14,7 @@ export declare const logContextPayloadGuard: z.ZodObject<{
14
14
  userId: z.ZodOptional<z.ZodString>;
15
15
  applicationId: z.ZodOptional<z.ZodString>;
16
16
  sessionId: z.ZodOptional<z.ZodString>;
17
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
18
  }, "strip", z.ZodUnknown, z.objectOutputType<{
18
19
  key: z.ZodString;
19
20
  result: z.ZodNativeEnum<typeof LogResult>;
@@ -23,6 +24,7 @@ export declare const logContextPayloadGuard: z.ZodObject<{
23
24
  userId: z.ZodOptional<z.ZodString>;
24
25
  applicationId: z.ZodOptional<z.ZodString>;
25
26
  sessionId: z.ZodOptional<z.ZodString>;
27
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
26
28
  }, z.ZodUnknown, "strip">, z.objectInputType<{
27
29
  key: z.ZodString;
28
30
  result: z.ZodNativeEnum<typeof LogResult>;
@@ -32,6 +34,7 @@ export declare const logContextPayloadGuard: z.ZodObject<{
32
34
  userId: z.ZodOptional<z.ZodString>;
33
35
  applicationId: z.ZodOptional<z.ZodString>;
34
36
  sessionId: z.ZodOptional<z.ZodString>;
37
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
35
38
  }, z.ZodUnknown, "strip">>;
36
39
  export type PartialPasswordPolicy = DeepPartial<PasswordPolicy>;
37
40
  export declare const partialPasswordPolicyGuard: z.ZodObject<{
@@ -15,6 +15,7 @@ export const logContextPayloadGuard = z
15
15
  userId: z.string().optional(),
16
16
  applicationId: z.string().optional(),
17
17
  sessionId: z.string().optional(),
18
+ params: z.record(z.string(), z.unknown()).optional(),
18
19
  })
19
20
  .catchall(z.unknown());
20
21
  export const partialPasswordPolicyGuard = passwordPolicyGuard.deepPartial();
@@ -51,13 +51,13 @@ export declare const brandingGuard: z.ZodObject<{
51
51
  export type Branding = z.infer<typeof brandingGuard>;
52
52
  export declare const languageInfoGuard: z.ZodObject<{
53
53
  autoDetect: z.ZodBoolean;
54
- 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">;
54
+ fallbackLanguage: z.ZodType<"af-ZA" | "am-ET" | "ar" | "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-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">;
55
55
  }, "strip", z.ZodTypeAny, {
56
56
  autoDetect: boolean;
57
- 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";
57
+ fallbackLanguage: "af-ZA" | "am-ET" | "ar" | "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";
58
58
  }, {
59
59
  autoDetect: boolean;
60
- 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";
60
+ fallbackLanguage: "af-ZA" | "am-ET" | "ar" | "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";
61
61
  }>;
62
62
  export type LanguageInfo = z.infer<typeof languageInfoGuard>;
63
63
  export declare enum SignInIdentifier {
@@ -65,6 +65,10 @@ export declare enum SignInIdentifier {
65
65
  Email = "email",
66
66
  Phone = "phone"
67
67
  }
68
+ export declare const signInIdentifierGuard: z.ZodNativeEnum<typeof SignInIdentifier>;
69
+ export declare enum AdditionalIdentifier {
70
+ UserId = "userId"
71
+ }
68
72
  export declare const signUpGuard: z.ZodObject<{
69
73
  identifiers: z.ZodArray<z.ZodNativeEnum<typeof SignInIdentifier>, "many">;
70
74
  password: z.ZodBoolean;
@@ -31,6 +31,11 @@ export var SignInIdentifier;
31
31
  SignInIdentifier["Email"] = "email";
32
32
  SignInIdentifier["Phone"] = "phone";
33
33
  })(SignInIdentifier || (SignInIdentifier = {}));
34
+ export const signInIdentifierGuard = z.nativeEnum(SignInIdentifier);
35
+ export var AdditionalIdentifier;
36
+ (function (AdditionalIdentifier) {
37
+ AdditionalIdentifier["UserId"] = "userId";
38
+ })(AdditionalIdentifier || (AdditionalIdentifier = {}));
34
39
  export const signUpGuard = z.object({
35
40
  identifiers: z.nativeEnum(SignInIdentifier).array(),
36
41
  password: z.boolean(),