@logto/schemas 1.21.0 → 1.22.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 (52) hide show
  1. package/alterations/1.22.0-1730689363-add-account-center.ts +31 -0
  2. package/alterations/1.22.0-1731054001-init-account-center.ts +43 -0
  3. package/alterations/1.22.0-1731304920-add-support-email-and-website-to-sie-table.ts +22 -0
  4. package/alterations/1.22.0-1731377260-add-unknown-session-redirect-url-to-sie.ts +20 -0
  5. package/alterations/1.22.0-1731900596-add-saml-application-type.ts +50 -0
  6. package/alterations/1.22.0-1731900631-add-saml-app-third-party-consistency-check.ts +20 -0
  7. package/alterations/1.22.0-1731901231-add-saml-application-secrets-table.ts +40 -0
  8. package/alterations/1.22.0-1731904029-add-saml-application-configs-table.ts +33 -0
  9. package/alterations-js/1.22.0-1730689363-add-account-center.js +26 -0
  10. package/alterations-js/1.22.0-1731054001-init-account-center.js +35 -0
  11. package/alterations-js/1.22.0-1731304920-add-support-email-and-website-to-sie-table.js +18 -0
  12. package/alterations-js/1.22.0-1731377260-add-unknown-session-redirect-url-to-sie.js +16 -0
  13. package/alterations-js/1.22.0-1731900596-add-saml-application-type.js +46 -0
  14. package/alterations-js/1.22.0-1731900631-add-saml-app-third-party-consistency-check.js +16 -0
  15. package/alterations-js/1.22.0-1731901231-add-saml-application-secrets-table.js +35 -0
  16. package/alterations-js/1.22.0-1731904029-add-saml-application-configs-table.js +28 -0
  17. package/lib/db-entries/account-center.d.ts +24 -0
  18. package/lib/db-entries/account-center.js +34 -0
  19. package/lib/db-entries/custom-types.d.ts +2 -1
  20. package/lib/db-entries/custom-types.js +1 -0
  21. package/lib/db-entries/index.d.ts +3 -0
  22. package/lib/db-entries/index.js +3 -0
  23. package/lib/db-entries/saml-application-config.d.ts +1 -0
  24. package/lib/db-entries/saml-application-config.js +2 -0
  25. package/lib/db-entries/saml-application-secret.d.ts +28 -0
  26. package/lib/db-entries/saml-application-secret.js +49 -0
  27. package/lib/db-entries/sign-in-experience.d.ts +7 -1
  28. package/lib/db-entries/sign-in-experience.js +12 -0
  29. package/lib/foundations/jsonb-types/account-centers.d.ts +43 -0
  30. package/lib/foundations/jsonb-types/account-centers.js +25 -0
  31. package/lib/foundations/jsonb-types/index.d.ts +2 -0
  32. package/lib/foundations/jsonb-types/index.js +2 -0
  33. package/lib/foundations/jsonb-types/saml-application-configs.d.ts +21 -0
  34. package/lib/foundations/jsonb-types/saml-application-configs.js +11 -0
  35. package/lib/seeds/account-center.d.ts +2 -0
  36. package/lib/seeds/account-center.js +6 -0
  37. package/lib/seeds/index.d.ts +1 -0
  38. package/lib/seeds/index.js +1 -0
  39. package/lib/types/application.d.ts +6 -6
  40. package/lib/types/consent.d.ts +8 -8
  41. package/lib/types/hook.d.ts +2 -2
  42. package/lib/types/logto-config/index.d.ts +9 -9
  43. package/lib/types/logto-config/jwt-customizer.d.ts +17 -17
  44. package/lib/types/sign-in-experience.d.ts +10 -1
  45. package/lib/types/user.d.ts +7 -7
  46. package/lib/utils/application.js +2 -0
  47. package/package.json +4 -4
  48. package/tables/account_centers.sql +10 -0
  49. package/tables/applications.sql +5 -2
  50. package/tables/saml_application_configs.sql +19 -0
  51. package/tables/saml_application_secrets.sql +22 -0
  52. package/tables/sign_in_experiences.sql +3 -0
@@ -0,0 +1,49 @@
1
+ // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ import { z } from 'zod';
3
+ const createGuard = z.object({
4
+ id: z.string().min(1).max(21),
5
+ tenantId: z.string().max(21).optional(),
6
+ applicationId: z.string().min(1).max(21),
7
+ privateKey: z.string().min(1),
8
+ certificate: z.string().min(1),
9
+ createdAt: z.number().optional(),
10
+ expiresAt: z.number(),
11
+ active: z.boolean(),
12
+ });
13
+ const guard = z.object({
14
+ id: z.string().min(1).max(21),
15
+ tenantId: z.string().max(21),
16
+ applicationId: z.string().min(1).max(21),
17
+ privateKey: z.string().min(1),
18
+ certificate: z.string().min(1),
19
+ createdAt: z.number(),
20
+ expiresAt: z.number(),
21
+ active: z.boolean(),
22
+ });
23
+ export const SamlApplicationSecrets = Object.freeze({
24
+ table: 'saml_application_secrets',
25
+ tableSingular: 'saml_application_secret',
26
+ fields: {
27
+ id: 'id',
28
+ tenantId: 'tenant_id',
29
+ applicationId: 'application_id',
30
+ privateKey: 'private_key',
31
+ certificate: 'certificate',
32
+ createdAt: 'created_at',
33
+ expiresAt: 'expires_at',
34
+ active: 'active',
35
+ },
36
+ fieldKeys: [
37
+ 'id',
38
+ 'tenantId',
39
+ 'applicationId',
40
+ 'privateKey',
41
+ 'certificate',
42
+ 'createdAt',
43
+ 'expiresAt',
44
+ 'active',
45
+ ],
46
+ createGuard,
47
+ guard,
48
+ updateGuard: guard.partial(),
49
+ });
@@ -26,6 +26,9 @@ export type CreateSignInExperience = {
26
26
  passwordPolicy?: PartialPasswordPolicy;
27
27
  mfa?: Mfa;
28
28
  singleSignOnEnabled?: boolean;
29
+ supportEmail?: string | null;
30
+ supportWebsiteUrl?: string | null;
31
+ unknownSessionRedirectUrl?: string | null;
29
32
  };
30
33
  export type SignInExperience = {
31
34
  tenantId: string;
@@ -48,6 +51,9 @@ export type SignInExperience = {
48
51
  passwordPolicy: PartialPasswordPolicy;
49
52
  mfa: Mfa;
50
53
  singleSignOnEnabled: boolean;
54
+ supportEmail: string | null;
55
+ supportWebsiteUrl: string | null;
56
+ unknownSessionRedirectUrl: string | null;
51
57
  };
52
- export type SignInExperienceKeys = 'tenantId' | 'id' | 'color' | 'branding' | 'languageInfo' | 'termsOfUseUrl' | 'privacyPolicyUrl' | 'agreeToTermsPolicy' | 'signIn' | 'signUp' | 'socialSignIn' | 'socialSignInConnectorTargets' | 'signInMode' | 'customCss' | 'customContent' | 'customUiAssets' | 'passwordPolicy' | 'mfa' | 'singleSignOnEnabled';
58
+ export type SignInExperienceKeys = 'tenantId' | 'id' | 'color' | 'branding' | 'languageInfo' | 'termsOfUseUrl' | 'privacyPolicyUrl' | 'agreeToTermsPolicy' | 'signIn' | 'signUp' | 'socialSignIn' | 'socialSignInConnectorTargets' | 'signInMode' | 'customCss' | 'customContent' | 'customUiAssets' | 'passwordPolicy' | 'mfa' | 'singleSignOnEnabled' | 'supportEmail' | 'supportWebsiteUrl' | 'unknownSessionRedirectUrl';
53
59
  export declare const SignInExperiences: GeneratedSchema<SignInExperienceKeys, CreateSignInExperience, SignInExperience, 'sign_in_experiences', 'sign_in_experience'>;
@@ -22,6 +22,9 @@ const createGuard = z.object({
22
22
  passwordPolicy: partialPasswordPolicyGuard.optional(),
23
23
  mfa: mfaGuard.optional(),
24
24
  singleSignOnEnabled: z.boolean().optional(),
25
+ supportEmail: z.string().nullable().optional(),
26
+ supportWebsiteUrl: z.string().nullable().optional(),
27
+ unknownSessionRedirectUrl: z.string().nullable().optional(),
25
28
  });
26
29
  const guard = z.object({
27
30
  tenantId: z.string().max(21),
@@ -43,6 +46,9 @@ const guard = z.object({
43
46
  passwordPolicy: partialPasswordPolicyGuard,
44
47
  mfa: mfaGuard,
45
48
  singleSignOnEnabled: z.boolean(),
49
+ supportEmail: z.string().nullable(),
50
+ supportWebsiteUrl: z.string().nullable(),
51
+ unknownSessionRedirectUrl: z.string().nullable(),
46
52
  });
47
53
  export const SignInExperiences = Object.freeze({
48
54
  table: 'sign_in_experiences',
@@ -67,6 +73,9 @@ export const SignInExperiences = Object.freeze({
67
73
  passwordPolicy: 'password_policy',
68
74
  mfa: 'mfa',
69
75
  singleSignOnEnabled: 'single_sign_on_enabled',
76
+ supportEmail: 'support_email',
77
+ supportWebsiteUrl: 'support_website_url',
78
+ unknownSessionRedirectUrl: 'unknown_session_redirect_url',
70
79
  },
71
80
  fieldKeys: [
72
81
  'tenantId',
@@ -88,6 +97,9 @@ export const SignInExperiences = Object.freeze({
88
97
  'passwordPolicy',
89
98
  'mfa',
90
99
  'singleSignOnEnabled',
100
+ 'supportEmail',
101
+ 'supportWebsiteUrl',
102
+ 'unknownSessionRedirectUrl',
91
103
  ],
92
104
  createGuard,
93
105
  guard,
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare enum AccountCenterControlValue {
3
+ Off = "Off",
4
+ ReadOnly = "ReadOnly",
5
+ Edit = "Edit"
6
+ }
7
+ /**
8
+ * Control list of each field in the account center (profile API)
9
+ * all fields are optional, if not set, the default value is `Off`
10
+ * this can make the alteration of the field control easier
11
+ */
12
+ export declare const accountCenterFieldControlGuard: z.ZodObject<{
13
+ name: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
14
+ avatar: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
15
+ profile: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
16
+ email: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
17
+ phone: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
18
+ password: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
19
+ username: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
20
+ social: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
21
+ customData: z.ZodOptional<z.ZodNativeEnum<typeof AccountCenterControlValue>>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ name?: AccountCenterControlValue | undefined;
24
+ username?: AccountCenterControlValue | undefined;
25
+ email?: AccountCenterControlValue | undefined;
26
+ phone?: AccountCenterControlValue | undefined;
27
+ password?: AccountCenterControlValue | undefined;
28
+ profile?: AccountCenterControlValue | undefined;
29
+ avatar?: AccountCenterControlValue | undefined;
30
+ social?: AccountCenterControlValue | undefined;
31
+ customData?: AccountCenterControlValue | undefined;
32
+ }, {
33
+ name?: AccountCenterControlValue | undefined;
34
+ username?: AccountCenterControlValue | undefined;
35
+ email?: AccountCenterControlValue | undefined;
36
+ phone?: AccountCenterControlValue | undefined;
37
+ password?: AccountCenterControlValue | undefined;
38
+ profile?: AccountCenterControlValue | undefined;
39
+ avatar?: AccountCenterControlValue | undefined;
40
+ social?: AccountCenterControlValue | undefined;
41
+ customData?: AccountCenterControlValue | undefined;
42
+ }>;
43
+ export type AccountCenterFieldControl = z.infer<typeof accountCenterFieldControlGuard>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ export var AccountCenterControlValue;
3
+ (function (AccountCenterControlValue) {
4
+ AccountCenterControlValue["Off"] = "Off";
5
+ AccountCenterControlValue["ReadOnly"] = "ReadOnly";
6
+ AccountCenterControlValue["Edit"] = "Edit";
7
+ })(AccountCenterControlValue || (AccountCenterControlValue = {}));
8
+ /**
9
+ * Control list of each field in the account center (profile API)
10
+ * all fields are optional, if not set, the default value is `Off`
11
+ * this can make the alteration of the field control easier
12
+ */
13
+ export const accountCenterFieldControlGuard = z
14
+ .object({
15
+ name: z.nativeEnum(AccountCenterControlValue),
16
+ avatar: z.nativeEnum(AccountCenterControlValue),
17
+ profile: z.nativeEnum(AccountCenterControlValue),
18
+ email: z.nativeEnum(AccountCenterControlValue),
19
+ phone: z.nativeEnum(AccountCenterControlValue),
20
+ password: z.nativeEnum(AccountCenterControlValue),
21
+ username: z.nativeEnum(AccountCenterControlValue),
22
+ social: z.nativeEnum(AccountCenterControlValue),
23
+ customData: z.nativeEnum(AccountCenterControlValue),
24
+ })
25
+ .partial();
@@ -9,5 +9,7 @@ export * from './users.js';
9
9
  export * from './sso-connector.js';
10
10
  export * from './applications.js';
11
11
  export * from './verification-records.js';
12
+ export * from './account-centers.js';
13
+ export * from './saml-application-configs.js';
12
14
  export { configurableConnectorMetadataGuard, type ConfigurableConnectorMetadata, jsonGuard, jsonObjectGuard, } from '@logto/connector-kit';
13
15
  export type { Json, JsonObject } from '@withtyped/server';
@@ -9,4 +9,6 @@ export * from './users.js';
9
9
  export * from './sso-connector.js';
10
10
  export * from './applications.js';
11
11
  export * from './verification-records.js';
12
+ export * from './account-centers.js';
13
+ export * from './saml-application-configs.js';
12
14
  export { configurableConnectorMetadataGuard, jsonGuard, jsonObjectGuard, } from '@logto/connector-kit';
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export type SamlAttributeMapping = Record<string, string>;
3
+ export declare const samlAttributeMappingGuard: z.ZodRecord<z.ZodString, z.ZodString>;
4
+ export declare enum BindingType {
5
+ POST = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST",
6
+ REDIRECT = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
7
+ }
8
+ export type SamlAcsUrl = {
9
+ binding?: BindingType;
10
+ url: string;
11
+ };
12
+ export declare const samlAcsUrlGuard: z.ZodObject<{
13
+ binding: z.ZodNativeEnum<typeof BindingType>;
14
+ url: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ url: string;
17
+ binding: BindingType;
18
+ }, {
19
+ url: string;
20
+ binding: BindingType;
21
+ }>;
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export const samlAttributeMappingGuard = z.record(z.string());
3
+ export var BindingType;
4
+ (function (BindingType) {
5
+ BindingType["POST"] = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST";
6
+ BindingType["REDIRECT"] = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect";
7
+ })(BindingType || (BindingType = {}));
8
+ export const samlAcsUrlGuard = z.object({
9
+ binding: z.nativeEnum(BindingType),
10
+ url: z.string(),
11
+ });
@@ -0,0 +1,2 @@
1
+ import type { CreateAccountCenter } from '../db-entries/index.js';
2
+ export declare const createDefaultAccountCenter: (forTenantId: string) => Readonly<CreateAccountCenter>;
@@ -0,0 +1,6 @@
1
+ export const createDefaultAccountCenter = (forTenantId) => Object.freeze({
2
+ tenantId: forTenantId,
3
+ id: 'default',
4
+ enabled: false,
5
+ fields: {},
6
+ });
@@ -4,3 +4,4 @@ export * from './management-api.js';
4
4
  export * from './logto-config.js';
5
5
  export * from './sign-in-experience.js';
6
6
  export * from './tenant.js';
7
+ export * from './account-center.js';
@@ -4,3 +4,4 @@ export * from './management-api.js';
4
4
  export * from './logto-config.js';
5
5
  export * from './sign-in-experience.js';
6
6
  export * from './tenant.js';
7
+ export * from './account-center.js';
@@ -107,6 +107,7 @@ export declare const featuredApplicationGuard: z.ZodObject<Pick<{
107
107
  export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShape<{
108
108
  type: z.ZodOptional<z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>>;
109
109
  name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
110
+ customData: z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>>;
110
111
  description: z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>;
111
112
  oidcClientMetadata: z.ZodOptional<z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>>;
112
113
  customClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodType<{
@@ -183,7 +184,6 @@ export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShap
183
184
  } | null;
184
185
  }[] | undefined;
185
186
  } | null>>>;
186
- customData: z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>>;
187
187
  isThirdParty: z.ZodOptional<z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>;
188
188
  }, Pick<{
189
189
  tenantId: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
@@ -273,23 +273,24 @@ export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShap
273
273
  }, "type" | "name">>, "strip", z.ZodTypeAny, {
274
274
  type: import("../db-entries/custom-types.js").ApplicationType;
275
275
  name: string;
276
+ customData?: import("@withtyped/server").JsonObject;
276
277
  description?: string | null;
277
278
  oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined;
278
279
  customClientMetadata?: import("../index.js").CustomClientMetadata;
279
280
  protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null;
280
- customData?: import("@withtyped/server").JsonObject;
281
281
  isThirdParty?: boolean;
282
282
  }, {
283
283
  type: import("../db-entries/custom-types.js").ApplicationType;
284
284
  name: string;
285
+ customData?: import("@withtyped/server").JsonObject;
285
286
  description?: string | null;
286
287
  oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined;
287
288
  customClientMetadata?: import("../index.js").CustomClientMetadata;
288
289
  protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null;
289
- customData?: import("@withtyped/server").JsonObject;
290
290
  isThirdParty?: boolean;
291
291
  }>;
292
292
  export declare const applicationPatchGuard: z.ZodObject<Omit<{
293
+ customData: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>>>;
293
294
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>>;
294
295
  oidcClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>>>;
295
296
  customClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<{
@@ -366,24 +367,23 @@ export declare const applicationPatchGuard: z.ZodObject<Omit<{
366
367
  } | null;
367
368
  }[] | undefined;
368
369
  } | null>>>>;
369
- customData: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>>>;
370
370
  isThirdParty: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>>;
371
371
  type: z.ZodOptional<z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>>;
372
372
  name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
373
373
  }, "type" | "isThirdParty">, "strip", z.ZodTypeAny, {
374
374
  name?: string | undefined;
375
+ customData?: import("@withtyped/server").JsonObject;
375
376
  description?: string | null;
376
377
  oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined;
377
378
  customClientMetadata?: import("../index.js").CustomClientMetadata;
378
379
  protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null;
379
- customData?: import("@withtyped/server").JsonObject;
380
380
  }, {
381
381
  name?: string | undefined;
382
+ customData?: import("@withtyped/server").JsonObject;
382
383
  description?: string | null;
383
384
  oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined;
384
385
  customClientMetadata?: import("../index.js").CustomClientMetadata;
385
386
  protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null;
386
- customData?: import("@withtyped/server").JsonObject;
387
387
  }>;
388
388
  export declare const applicationUserConsentScopesResponseGuard: z.ZodObject<{
389
389
  organizationScopes: z.ZodArray<z.ZodObject<Pick<{
@@ -118,20 +118,20 @@ export declare const publicUserInfoGuard: z.ZodObject<Pick<{
118
118
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
119
119
  createdAt: z.ZodType<number, z.ZodTypeDef, number>;
120
120
  updatedAt: z.ZodType<number, z.ZodTypeDef, number>;
121
- }, "name" | "id" | "username" | "primaryEmail" | "primaryPhone" | "avatar">, "strip", z.ZodTypeAny, {
121
+ }, "name" | "id" | "username" | "avatar" | "primaryEmail" | "primaryPhone">, "strip", z.ZodTypeAny, {
122
122
  name: string | null;
123
123
  id: string;
124
124
  username: string | null;
125
+ avatar: string | null;
125
126
  primaryEmail: string | null;
126
127
  primaryPhone: string | null;
127
- avatar: string | null;
128
128
  }, {
129
129
  name: string | null;
130
130
  id: string;
131
131
  username: string | null;
132
+ avatar: string | null;
132
133
  primaryEmail: string | null;
133
134
  primaryPhone: string | null;
134
- avatar: string | null;
135
135
  }>;
136
136
  export type PublicUserInfo = z.infer<typeof publicUserInfoGuard>;
137
137
  /**
@@ -684,20 +684,20 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
684
684
  lastSignInAt: z.ZodType<number | null, z.ZodTypeDef, number | null>;
685
685
  createdAt: z.ZodType<number, z.ZodTypeDef, number>;
686
686
  updatedAt: z.ZodType<number, z.ZodTypeDef, number>;
687
- }, "name" | "id" | "username" | "primaryEmail" | "primaryPhone" | "avatar">, "strip", z.ZodTypeAny, {
687
+ }, "name" | "id" | "username" | "avatar" | "primaryEmail" | "primaryPhone">, "strip", z.ZodTypeAny, {
688
688
  name: string | null;
689
689
  id: string;
690
690
  username: string | null;
691
+ avatar: string | null;
691
692
  primaryEmail: string | null;
692
693
  primaryPhone: string | null;
693
- avatar: string | null;
694
694
  }, {
695
695
  name: string | null;
696
696
  id: string;
697
697
  username: string | null;
698
+ avatar: string | null;
698
699
  primaryEmail: string | null;
699
700
  primaryPhone: string | null;
700
- avatar: string | null;
701
701
  }>;
702
702
  organizations: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
703
703
  tenantId: z.ZodType<string, z.ZodTypeDef, string>;
@@ -887,9 +887,9 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
887
887
  name: string | null;
888
888
  id: string;
889
889
  username: string | null;
890
+ avatar: string | null;
890
891
  primaryEmail: string | null;
891
892
  primaryPhone: string | null;
892
- avatar: string | null;
893
893
  };
894
894
  organizations?: {
895
895
  name: string;
@@ -939,9 +939,9 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
939
939
  name: string | null;
940
940
  id: string;
941
941
  username: string | null;
942
+ avatar: string | null;
942
943
  primaryEmail: string | null;
943
944
  primaryPhone: string | null;
944
- avatar: string | null;
945
945
  };
946
946
  organizations?: {
947
947
  name: string;
@@ -48,11 +48,11 @@ export declare const hookResponseGuard: z.ZodObject<z.objectUtil.extendShape<{
48
48
  id: string;
49
49
  tenantId: string;
50
50
  createdAt: number;
51
+ enabled: boolean;
51
52
  config: import("../foundations/index.js").HookConfig;
52
53
  event: import("../foundations/index.js").HookEvent | null;
53
54
  events: import("../foundations/index.js").HookEvents;
54
55
  signingKey: string;
55
- enabled: boolean;
56
56
  executionStats: {
57
57
  successCount: number;
58
58
  requestCount: number;
@@ -62,11 +62,11 @@ export declare const hookResponseGuard: z.ZodObject<z.objectUtil.extendShape<{
62
62
  id: string;
63
63
  tenantId: string;
64
64
  createdAt: number;
65
+ enabled: boolean;
65
66
  config: import("../foundations/index.js").HookConfig;
66
67
  event: import("../foundations/index.js").HookEvent | null;
67
68
  events: import("../foundations/index.js").HookEvents;
68
69
  signingKey: string;
69
- enabled: boolean;
70
70
  executionStats: {
71
71
  successCount: number;
72
72
  requestCount: number;
@@ -148,11 +148,11 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
148
148
  country: string;
149
149
  }>;
150
150
  }>>>;
151
+ avatar: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
151
152
  customData: z.ZodOptional<ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>;
152
153
  updatedAt: z.ZodOptional<ZodType<number, z.ZodTypeDef, number>>;
153
154
  primaryEmail: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
154
155
  primaryPhone: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
155
- avatar: z.ZodOptional<ZodType<string | null, z.ZodTypeDef, string | null>>;
156
156
  identities: z.ZodOptional<ZodType<Record<string, {
157
157
  userId: string;
158
158
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -303,6 +303,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
303
303
  country: string;
304
304
  }>;
305
305
  }> | undefined;
306
+ avatar?: string | null | undefined;
306
307
  customData?: import("@withtyped/server").JsonObject | undefined;
307
308
  updatedAt?: number | undefined;
308
309
  organizations?: {
@@ -324,7 +325,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
324
325
  }[] | undefined;
325
326
  primaryEmail?: string | null | undefined;
326
327
  primaryPhone?: string | null | undefined;
327
- avatar?: string | null | undefined;
328
328
  identities?: Record<string, {
329
329
  userId: string;
330
330
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -370,6 +370,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
370
370
  country: string;
371
371
  }>;
372
372
  }> | undefined;
373
+ avatar?: string | null | undefined;
373
374
  customData?: import("@withtyped/server").JsonObject | undefined;
374
375
  updatedAt?: number | undefined;
375
376
  organizations?: {
@@ -391,7 +392,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
391
392
  }[] | undefined;
392
393
  primaryEmail?: string | null | undefined;
393
394
  primaryPhone?: string | null | undefined;
394
- avatar?: string | null | undefined;
395
395
  identities?: Record<string, {
396
396
  userId: string;
397
397
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -449,6 +449,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
449
449
  country: string;
450
450
  }>;
451
451
  }> | undefined;
452
+ avatar?: string | null | undefined;
452
453
  customData?: import("@withtyped/server").JsonObject | undefined;
453
454
  updatedAt?: number | undefined;
454
455
  organizations?: {
@@ -470,7 +471,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
470
471
  }[] | undefined;
471
472
  primaryEmail?: string | null | undefined;
472
473
  primaryPhone?: string | null | undefined;
473
- avatar?: string | null | undefined;
474
474
  identities?: Record<string, {
475
475
  userId: string;
476
476
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -522,6 +522,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
522
522
  country: string;
523
523
  }>;
524
524
  }> | undefined;
525
+ avatar?: string | null | undefined;
525
526
  customData?: import("@withtyped/server").JsonObject | undefined;
526
527
  updatedAt?: number | undefined;
527
528
  organizations?: {
@@ -543,7 +544,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
543
544
  }[] | undefined;
544
545
  primaryEmail?: string | null | undefined;
545
546
  primaryPhone?: string | null | undefined;
546
- avatar?: string | null | undefined;
547
547
  identities?: Record<string, {
548
548
  userId: string;
549
549
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -599,6 +599,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
599
599
  country: string;
600
600
  }>;
601
601
  }> | undefined;
602
+ avatar?: string | null | undefined;
602
603
  customData?: import("@withtyped/server").JsonObject | undefined;
603
604
  updatedAt?: number | undefined;
604
605
  organizations?: {
@@ -620,7 +621,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
620
621
  }[] | undefined;
621
622
  primaryEmail?: string | null | undefined;
622
623
  primaryPhone?: string | null | undefined;
623
- avatar?: string | null | undefined;
624
624
  identities?: Record<string, {
625
625
  userId: string;
626
626
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -689,6 +689,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
689
689
  country: string;
690
690
  }>;
691
691
  }> | undefined;
692
+ avatar?: string | null | undefined;
692
693
  customData?: import("@withtyped/server").JsonObject | undefined;
693
694
  updatedAt?: number | undefined;
694
695
  organizations?: {
@@ -710,7 +711,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
710
711
  }[] | undefined;
711
712
  primaryEmail?: string | null | undefined;
712
713
  primaryPhone?: string | null | undefined;
713
- avatar?: string | null | undefined;
714
714
  identities?: Record<string, {
715
715
  userId: string;
716
716
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -781,6 +781,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
781
781
  country: string;
782
782
  }>;
783
783
  }> | undefined;
784
+ avatar?: string | null | undefined;
784
785
  customData?: import("@withtyped/server").JsonObject | undefined;
785
786
  updatedAt?: number | undefined;
786
787
  organizations?: {
@@ -802,7 +803,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
802
803
  }[] | undefined;
803
804
  primaryEmail?: string | null | undefined;
804
805
  primaryPhone?: string | null | undefined;
805
- avatar?: string | null | undefined;
806
806
  identities?: Record<string, {
807
807
  userId: string;
808
808
  details?: Record<string, import("@withtyped/server").Json> | undefined;
@@ -874,6 +874,7 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
874
874
  country: string;
875
875
  }>;
876
876
  }> | undefined;
877
+ avatar?: string | null | undefined;
877
878
  customData?: import("@withtyped/server").JsonObject | undefined;
878
879
  updatedAt?: number | undefined;
879
880
  organizations?: {
@@ -895,7 +896,6 @@ export declare const jwtCustomizerConfigsGuard: z.ZodDiscriminatedUnion<"key", [
895
896
  }[] | undefined;
896
897
  primaryEmail?: string | null | undefined;
897
898
  primaryPhone?: string | null | undefined;
898
- avatar?: string | null | undefined;
899
899
  identities?: Record<string, {
900
900
  userId: string;
901
901
  details?: Record<string, import("@withtyped/server").Json> | undefined;