@logto/schemas 1.26.0 → 1.28.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 (39) hide show
  1. package/alterations/1.27.0-1744013256-add-sentinel-policy-column-to-sie-table.ts +20 -0
  2. package/alterations/1.27.0-1744357867-add-sentinel-activities-hash-index.ts +19 -0
  3. package/alterations/1.28.0-1745735646-add-email-blocklist-policy-column-to-sie-table.ts +20 -0
  4. package/alterations-js/1.27.0-1744013256-add-sentinel-policy-column-to-sie-table.js +16 -0
  5. package/alterations-js/1.27.0-1744357867-add-sentinel-activities-hash-index.js +15 -0
  6. package/alterations-js/1.28.0-1745735646-add-email-blocklist-policy-column-to-sie-table.js +16 -0
  7. package/lib/consts/experience.d.ts +1 -1
  8. package/lib/consts/experience.js +1 -1
  9. package/lib/consts/index.d.ts +1 -0
  10. package/lib/consts/index.js +1 -0
  11. package/lib/consts/sentinel.d.ts +10 -0
  12. package/lib/consts/sentinel.js +10 -0
  13. package/lib/db-entries/sign-in-experience.d.ts +6 -2
  14. package/lib/db-entries/sign-in-experience.js +9 -1
  15. package/lib/foundations/jsonb-types/applications.d.ts +14 -14
  16. package/lib/foundations/jsonb-types/captcha.d.ts +2 -0
  17. package/lib/foundations/jsonb-types/custom-domain.d.ts +4 -4
  18. package/lib/foundations/jsonb-types/sign-in-experience.d.ts +53 -0
  19. package/lib/foundations/jsonb-types/sign-in-experience.js +9 -0
  20. package/lib/types/application.d.ts +13 -97
  21. package/lib/types/connector.d.ts +9 -13
  22. package/lib/types/consent.d.ts +25 -25
  23. package/lib/types/domain.d.ts +2 -2
  24. package/lib/types/hook.d.ts +3 -3
  25. package/lib/types/interactions.d.ts +24 -24
  26. package/lib/types/log/interaction.d.ts +3 -2
  27. package/lib/types/log/interaction.js +1 -0
  28. package/lib/types/logto-config/index.d.ts +15 -16
  29. package/lib/types/logto-config/jwt-customizer.d.ts +35 -36
  30. package/lib/types/saml-application.d.ts +19 -342
  31. package/lib/types/scope.d.ts +3 -3
  32. package/lib/types/sign-in-experience.d.ts +15 -9
  33. package/lib/types/sso-connector.d.ts +4 -5
  34. package/lib/types/system.d.ts +3 -20
  35. package/lib/types/system.js +0 -13
  36. package/lib/types/user.d.ts +3 -3
  37. package/package.json +13 -13
  38. package/tables/sentinel_activities.sql +3 -0
  39. package/tables/sign_in_experiences.sql +2 -0
@@ -35,7 +35,7 @@ export type JwtCustomizerUserContext = UserInfo & {
35
35
  roleName: string;
36
36
  }>;
37
37
  };
38
- export declare const jwtCustomizerUserContextGuard: z.ZodObject<z.objectUtil.extendShape<Pick<{
38
+ export declare const jwtCustomizerUserContextGuard: z.ZodObject<Pick<{
39
39
  tenantId: ZodType<string, z.ZodTypeDef, string>;
40
40
  id: ZodType<string, z.ZodTypeDef, string>;
41
41
  username: ZodType<string | null, z.ZodTypeDef, string | null>;
@@ -151,7 +151,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<z.objectUtil.ext
151
151
  lastSignInAt: ZodType<number | null, z.ZodTypeDef, number | null>;
152
152
  createdAt: ZodType<number, z.ZodTypeDef, number>;
153
153
  updatedAt: ZodType<number, z.ZodTypeDef, number>;
154
- }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt">, {
154
+ }, "name" | "id" | "applicationId" | "username" | "createdAt" | "profile" | "avatar" | "customData" | "identities" | "updatedAt" | "primaryEmail" | "primaryPhone" | "isSuspended" | "lastSignInAt"> & {
155
155
  hasPassword: z.ZodBoolean;
156
156
  ssoIdentities: z.ZodArray<z.ZodObject<Pick<{
157
157
  tenantId: ZodType<string, z.ZodTypeDef, string>;
@@ -172,24 +172,24 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<z.objectUtil.ext
172
172
  detail: import("@withtyped/server/lib/types.js").JsonObject;
173
173
  }>, "many">;
174
174
  mfaVerificationFactors: z.ZodArray<z.ZodNativeEnum<typeof import("../../foundations/index.js").MfaFactor>, "many">;
175
- roles: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
175
+ roles: z.ZodArray<z.ZodObject<Pick<{
176
176
  tenantId: ZodType<string, z.ZodTypeDef, string>;
177
177
  id: ZodType<string, z.ZodTypeDef, string>;
178
178
  name: ZodType<string, z.ZodTypeDef, string>;
179
179
  description: ZodType<string, z.ZodTypeDef, string>;
180
180
  type: ZodType<import("../../db-entries/custom-types.js").RoleType, z.ZodTypeDef, import("../../db-entries/custom-types.js").RoleType>;
181
181
  isDefault: ZodType<boolean, z.ZodTypeDef, boolean>;
182
- }, "name" | "id" | "description">, {
183
- scopes: z.ZodArray<z.ZodObject<Pick<z.objectUtil.extendShape<{
182
+ }, "name" | "id" | "description"> & {
183
+ scopes: z.ZodArray<z.ZodObject<Pick<{
184
184
  tenantId: ZodType<string, z.ZodTypeDef, string>;
185
185
  id: ZodType<string, z.ZodTypeDef, string>;
186
186
  resourceId: ZodType<string, z.ZodTypeDef, string>;
187
187
  name: ZodType<string, z.ZodTypeDef, string>;
188
188
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
189
189
  createdAt: ZodType<number, z.ZodTypeDef, number>;
190
- }, {
190
+ } & {
191
191
  resource: import("../../foundations/schemas.js").Guard<import("../../db-entries/resource.js").Resource>;
192
- }>, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
192
+ }, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
193
193
  name: string;
194
194
  id: string;
195
195
  description: string | null;
@@ -202,7 +202,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<z.objectUtil.ext
202
202
  resource: import("../../db-entries/resource.js").Resource;
203
203
  resourceId: string;
204
204
  }>, "many">;
205
- }>, "strip", z.ZodTypeAny, {
205
+ }, "strip", z.ZodTypeAny, {
206
206
  name: string;
207
207
  id: string;
208
208
  description: string;
@@ -266,7 +266,7 @@ export declare const jwtCustomizerUserContextGuard: z.ZodObject<z.objectUtil.ext
266
266
  roleId: string;
267
267
  roleName: string;
268
268
  }>, "many">;
269
- }>, "strip", z.ZodTypeAny, {
269
+ }, "strip", z.ZodTypeAny, {
270
270
  name: string | null;
271
271
  id: string;
272
272
  applicationId: string | null;
@@ -366,11 +366,10 @@ export declare const jwtCustomizerGrantContextGuard: z.ZodObject<{
366
366
  subjectTokenContext: Record<string, import("@withtyped/server/lib/types.js").Json>;
367
367
  }>;
368
368
  export type JwtCustomizerGrantContext = z.infer<typeof jwtCustomizerGrantContextGuard>;
369
- export declare const accessTokenJwtCustomizerGuard: z.ZodObject<z.objectUtil.extendShape<{
369
+ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<{
370
370
  script: z.ZodString;
371
371
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372
- contextSample: z.ZodOptional<z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>>;
373
- }, {
372
+ } & {
374
373
  tokenSample: z.ZodOptional<z.ZodObject<{
375
374
  accountId: z.ZodOptional<z.ZodString>;
376
375
  expiresWithSession: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
@@ -490,24 +489,24 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<z.objectUtil.ext
490
489
  detail: import("@withtyped/server/lib/types.js").JsonObject;
491
490
  }>, "many">>;
492
491
  mfaVerificationFactors: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../foundations/index.js").MfaFactor>, "many">>;
493
- roles: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
492
+ roles: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
494
493
  tenantId: ZodType<string, z.ZodTypeDef, string>;
495
494
  id: ZodType<string, z.ZodTypeDef, string>;
496
495
  name: ZodType<string, z.ZodTypeDef, string>;
497
496
  description: ZodType<string, z.ZodTypeDef, string>;
498
497
  type: ZodType<import("../../db-entries/custom-types.js").RoleType, z.ZodTypeDef, import("../../db-entries/custom-types.js").RoleType>;
499
498
  isDefault: ZodType<boolean, z.ZodTypeDef, boolean>;
500
- }, "name" | "id" | "description">, {
501
- scopes: z.ZodArray<z.ZodObject<Pick<z.objectUtil.extendShape<{
499
+ }, "name" | "id" | "description"> & {
500
+ scopes: z.ZodArray<z.ZodObject<Pick<{
502
501
  tenantId: ZodType<string, z.ZodTypeDef, string>;
503
502
  id: ZodType<string, z.ZodTypeDef, string>;
504
503
  resourceId: ZodType<string, z.ZodTypeDef, string>;
505
504
  name: ZodType<string, z.ZodTypeDef, string>;
506
505
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
507
506
  createdAt: ZodType<number, z.ZodTypeDef, number>;
508
- }, {
507
+ } & {
509
508
  resource: import("../../foundations/schemas.js").Guard<import("../../db-entries/resource.js").Resource>;
510
- }>, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
509
+ }, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
511
510
  name: string;
512
511
  id: string;
513
512
  description: string | null;
@@ -520,7 +519,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<z.objectUtil.ext
520
519
  resource: import("../../db-entries/resource.js").Resource;
521
520
  resourceId: string;
522
521
  }>, "many">;
523
- }>, "strip", z.ZodTypeAny, {
522
+ }, "strip", z.ZodTypeAny, {
524
523
  name: string;
525
524
  id: string;
526
525
  description: string;
@@ -876,7 +875,7 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<z.objectUtil.ext
876
875
  subjectTokenContext?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
877
876
  } | undefined;
878
877
  }>>;
879
- }>, "strict", z.ZodTypeAny, {
878
+ }, "strict", z.ZodTypeAny, {
880
879
  script: string;
881
880
  environmentVariables?: Record<string, string> | undefined;
882
881
  contextSample?: {
@@ -1058,11 +1057,11 @@ export declare const accessTokenJwtCustomizerGuard: z.ZodObject<z.objectUtil.ext
1058
1057
  } | undefined;
1059
1058
  }>;
1060
1059
  export type AccessTokenJwtCustomizer = z.infer<typeof accessTokenJwtCustomizerGuard>;
1061
- export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<z.objectUtil.extendShape<{
1060
+ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<{
1062
1061
  script: z.ZodString;
1063
1062
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1064
1063
  contextSample: z.ZodOptional<z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>>;
1065
- }, {
1064
+ } & {
1066
1065
  tokenSample: z.ZodOptional<z.ZodObject<{
1067
1066
  kind: z.ZodOptional<z.ZodLiteral<"ClientCredentials">>;
1068
1067
  jti: z.ZodOptional<z.ZodString>;
@@ -1082,7 +1081,7 @@ export declare const clientCredentialsJwtCustomizerGuard: z.ZodObject<z.objectUt
1082
1081
  aud?: string | string[] | undefined;
1083
1082
  clientId?: string | undefined;
1084
1083
  }>>;
1085
- }>, "strict", z.ZodTypeAny, {
1084
+ }, "strict", z.ZodTypeAny, {
1086
1085
  script: string;
1087
1086
  environmentVariables?: Record<string, string> | undefined;
1088
1087
  contextSample?: Record<string, import("@withtyped/server/lib/types.js").Json> | undefined;
@@ -1233,24 +1232,24 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1233
1232
  detail: import("@withtyped/server/lib/types.js").JsonObject;
1234
1233
  }>, "many">>;
1235
1234
  mfaVerificationFactors: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("../../foundations/index.js").MfaFactor>, "many">>;
1236
- roles: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<Pick<{
1235
+ roles: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
1237
1236
  tenantId: ZodType<string, z.ZodTypeDef, string>;
1238
1237
  id: ZodType<string, z.ZodTypeDef, string>;
1239
1238
  name: ZodType<string, z.ZodTypeDef, string>;
1240
1239
  description: ZodType<string, z.ZodTypeDef, string>;
1241
1240
  type: ZodType<import("../../db-entries/custom-types.js").RoleType, z.ZodTypeDef, import("../../db-entries/custom-types.js").RoleType>;
1242
1241
  isDefault: ZodType<boolean, z.ZodTypeDef, boolean>;
1243
- }, "name" | "id" | "description">, {
1244
- scopes: z.ZodArray<z.ZodObject<Pick<z.objectUtil.extendShape<{
1242
+ }, "name" | "id" | "description"> & {
1243
+ scopes: z.ZodArray<z.ZodObject<Pick<{
1245
1244
  tenantId: ZodType<string, z.ZodTypeDef, string>;
1246
1245
  id: ZodType<string, z.ZodTypeDef, string>;
1247
1246
  resourceId: ZodType<string, z.ZodTypeDef, string>;
1248
1247
  name: ZodType<string, z.ZodTypeDef, string>;
1249
1248
  description: ZodType<string | null, z.ZodTypeDef, string | null>;
1250
1249
  createdAt: ZodType<number, z.ZodTypeDef, number>;
1251
- }, {
1250
+ } & {
1252
1251
  resource: import("../../foundations/schemas.js").Guard<import("../../db-entries/resource.js").Resource>;
1253
- }>, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
1252
+ }, "name" | "id" | "description" | "resource" | "resourceId">, "strip", z.ZodTypeAny, {
1254
1253
  name: string;
1255
1254
  id: string;
1256
1255
  description: string | null;
@@ -1263,7 +1262,7 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1263
1262
  resource: import("../../db-entries/resource.js").Resource;
1264
1263
  resourceId: string;
1265
1264
  }>, "many">;
1266
- }>, "strip", z.ZodTypeAny, {
1265
+ }, "strip", z.ZodTypeAny, {
1267
1266
  name: string;
1268
1267
  id: string;
1269
1268
  description: string;
@@ -1851,15 +1850,15 @@ export declare const jwtCustomizerTestRequestBodyGuard: z.ZodDiscriminatedUnion<
1851
1850
  environmentVariables?: Record<string, string> | undefined;
1852
1851
  }>]>;
1853
1852
  export type JwtCustomizerTestRequestBody = z.infer<typeof jwtCustomizerTestRequestBodyGuard>;
1854
- export declare const customJwtFetcherGuard: z.ZodDiscriminatedUnion<"tokenType", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1853
+ export declare const customJwtFetcherGuard: z.ZodDiscriminatedUnion<"tokenType", [z.ZodObject<{
1855
1854
  script: z.ZodString;
1856
1855
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1857
- }, {
1856
+ } & {
1858
1857
  token: z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1859
- }>, {
1858
+ } & {
1860
1859
  tokenType: z.ZodLiteral<LogtoJwtTokenKeyType.AccessToken>;
1861
1860
  context: z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1862
- }>, "strip", z.ZodTypeAny, {
1861
+ }, "strip", z.ZodTypeAny, {
1863
1862
  token: Record<string, import("@withtyped/server/lib/types.js").Json>;
1864
1863
  context: Record<string, import("@withtyped/server/lib/types.js").Json>;
1865
1864
  script: string;
@@ -1871,14 +1870,14 @@ export declare const customJwtFetcherGuard: z.ZodDiscriminatedUnion<"tokenType",
1871
1870
  script: string;
1872
1871
  tokenType: LogtoJwtTokenKeyType.AccessToken;
1873
1872
  environmentVariables?: Record<string, string> | undefined;
1874
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1873
+ }>, z.ZodObject<{
1875
1874
  script: z.ZodString;
1876
1875
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1877
- }, {
1876
+ } & {
1878
1877
  token: z.ZodRecord<z.ZodString, ZodType<import("@withtyped/server/lib/types.js").Json, z.ZodTypeDef, import("@withtyped/server/lib/types.js").Json>>;
1879
- }>, {
1878
+ } & {
1880
1879
  tokenType: z.ZodLiteral<LogtoJwtTokenKeyType.ClientCredentials>;
1881
- }>, "strip", z.ZodTypeAny, {
1880
+ }, "strip", z.ZodTypeAny, {
1882
1881
  token: Record<string, import("@withtyped/server/lib/types.js").Json>;
1883
1882
  script: string;
1884
1883
  tokenType: LogtoJwtTokenKeyType.ClientCredentials;
@@ -1,172 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { NameIdFormat } from '../foundations/index.js';
3
- export declare const samlApplicationCreateGuard: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Pick<z.objectUtil.extendShape<{
4
- type: z.ZodOptional<z.ZodType<import("../index.js").ApplicationType, z.ZodTypeDef, import("../index.js").ApplicationType>>;
5
- name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3
+ export declare const samlApplicationCreateGuard: z.ZodObject<{
4
+ name: z.ZodType<string, z.ZodTypeDef, string>;
6
5
  customData: z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>>;
7
6
  description: z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>;
8
- oidcClientMetadata: z.ZodOptional<z.ZodType<import("../foundations/index.js").OidcClientMetadata, z.ZodTypeDef, import("../foundations/index.js").OidcClientMetadata>>;
9
- customClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodType<{
10
- corsAllowedOrigins?: string[] | undefined;
11
- idTokenTtl?: number | undefined;
12
- refreshTokenTtl?: number | undefined;
13
- refreshTokenTtlInDays?: number | undefined;
14
- tenantId?: string | undefined;
15
- alwaysIssueRefreshToken?: boolean | undefined;
16
- rotateRefreshToken?: boolean | undefined;
17
- }, z.ZodTypeDef, {
18
- corsAllowedOrigins?: string[] | undefined;
19
- idTokenTtl?: number | undefined;
20
- refreshTokenTtl?: number | undefined;
21
- refreshTokenTtlInDays?: number | undefined;
22
- tenantId?: string | undefined;
23
- alwaysIssueRefreshToken?: boolean | undefined;
24
- rotateRefreshToken?: boolean | undefined;
25
- }>>>;
26
- protectedAppMetadata: z.ZodOptional<z.ZodOptional<z.ZodType<{
27
- host: string;
28
- origin: string;
29
- sessionDuration: number;
30
- pageRules: {
31
- path: string;
32
- }[];
33
- customDomains?: {
34
- status: import("../foundations/index.js").DomainStatus;
35
- domain: string;
36
- errorMessage: string | null;
37
- dnsRecords: {
38
- type: string;
39
- value: string;
40
- name: string;
41
- }[];
42
- cloudflareData: {
43
- status: string;
44
- id: string;
45
- ssl: {
46
- status: string;
47
- validation_errors?: {
48
- message: string;
49
- }[] | undefined;
50
- };
51
- verification_errors?: string[] | undefined;
52
- } | null;
53
- }[] | undefined;
54
- } | null, z.ZodTypeDef, {
55
- host: string;
56
- origin: string;
57
- sessionDuration: number;
58
- pageRules: {
59
- path: string;
60
- }[];
61
- customDomains?: {
62
- status: import("../foundations/index.js").DomainStatus;
63
- domain: string;
64
- errorMessage: string | null;
65
- dnsRecords: {
66
- type: string;
67
- value: string;
68
- name: string;
69
- }[];
70
- cloudflareData: {
71
- status: string;
72
- id: string;
73
- ssl: {
74
- status: string;
75
- validation_errors?: {
76
- message: string;
77
- }[] | undefined;
78
- };
79
- verification_errors?: string[] | undefined;
80
- } | null;
81
- }[] | undefined;
82
- } | null>>>;
83
- isThirdParty: z.ZodOptional<z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>;
84
- }, Pick<{
85
- tenantId: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
86
- id: z.ZodType<string, z.ZodTypeDef, string>;
87
- name: z.ZodType<string, z.ZodTypeDef, string>;
88
- secret: z.ZodType<string, z.ZodTypeDef, string>;
89
- description: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
90
- type: z.ZodType<import("../index.js").ApplicationType, z.ZodTypeDef, import("../index.js").ApplicationType>;
91
- oidcClientMetadata: z.ZodType<import("../foundations/index.js").OidcClientMetadata, z.ZodTypeDef, import("../foundations/index.js").OidcClientMetadata>;
92
- customClientMetadata: z.ZodOptional<z.ZodType<{
93
- corsAllowedOrigins?: string[] | undefined;
94
- idTokenTtl?: number | undefined;
95
- refreshTokenTtl?: number | undefined;
96
- refreshTokenTtlInDays?: number | undefined;
97
- tenantId?: string | undefined;
98
- alwaysIssueRefreshToken?: boolean | undefined;
99
- rotateRefreshToken?: boolean | undefined;
100
- }, z.ZodTypeDef, {
101
- corsAllowedOrigins?: string[] | undefined;
102
- idTokenTtl?: number | undefined;
103
- refreshTokenTtl?: number | undefined;
104
- refreshTokenTtlInDays?: number | undefined;
105
- tenantId?: string | undefined;
106
- alwaysIssueRefreshToken?: boolean | undefined;
107
- rotateRefreshToken?: boolean | undefined;
108
- }>>;
109
- protectedAppMetadata: z.ZodOptional<z.ZodType<{
110
- host: string;
111
- origin: string;
112
- sessionDuration: number;
113
- pageRules: {
114
- path: string;
115
- }[];
116
- customDomains?: {
117
- status: import("../foundations/index.js").DomainStatus;
118
- domain: string;
119
- errorMessage: string | null;
120
- dnsRecords: {
121
- type: string;
122
- value: string;
123
- name: string;
124
- }[];
125
- cloudflareData: {
126
- status: string;
127
- id: string;
128
- ssl: {
129
- status: string;
130
- validation_errors?: {
131
- message: string;
132
- }[] | undefined;
133
- };
134
- verification_errors?: string[] | undefined;
135
- } | null;
136
- }[] | undefined;
137
- } | null, z.ZodTypeDef, {
138
- host: string;
139
- origin: string;
140
- sessionDuration: number;
141
- pageRules: {
142
- path: string;
143
- }[];
144
- customDomains?: {
145
- status: import("../foundations/index.js").DomainStatus;
146
- domain: string;
147
- errorMessage: string | null;
148
- dnsRecords: {
149
- type: string;
150
- value: string;
151
- name: string;
152
- }[];
153
- cloudflareData: {
154
- status: string;
155
- id: string;
156
- ssl: {
157
- status: string;
158
- validation_errors?: {
159
- message: string;
160
- }[] | undefined;
161
- };
162
- verification_errors?: string[] | undefined;
163
- } | null;
164
- }[] | undefined;
165
- } | null>>;
166
- customData: z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>;
167
- isThirdParty: z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>;
168
- createdAt: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
169
- }, "type" | "name">>, "name" | "customData" | "description">, {
170
7
  attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
171
8
  entityId: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
172
9
  acsUrl: z.ZodOptional<z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>>;
@@ -179,10 +16,9 @@ export declare const samlApplicationCreateGuard: z.ZodObject<z.objectUtil.extend
179
16
  encryptThenSign?: boolean | undefined;
180
17
  certificate?: string | undefined;
181
18
  } | null>>;
182
- nameIdFormat: z.ZodOptional<z.ZodType<NameIdFormat, z.ZodTypeDef, NameIdFormat>>;
183
- }>, {
19
+ } & {
184
20
  nameIdFormat: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof NameIdFormat>>>;
185
- }>, "strip", z.ZodTypeAny, {
21
+ }, "strip", z.ZodTypeAny, {
186
22
  name: string;
187
23
  nameIdFormat: NameIdFormat;
188
24
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
@@ -210,88 +46,10 @@ export declare const samlApplicationCreateGuard: z.ZodObject<z.objectUtil.extend
210
46
  nameIdFormat?: NameIdFormat | undefined;
211
47
  }>;
212
48
  export type CreateSamlApplication = z.input<typeof samlApplicationCreateGuard>;
213
- export declare const samlApplicationPatchGuard: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Pick<Omit<{
49
+ export declare const samlApplicationPatchGuard: z.ZodObject<{
50
+ name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
214
51
  customData: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>>>>;
215
52
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>>;
216
- oidcClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("../foundations/index.js").OidcClientMetadata, z.ZodTypeDef, import("../foundations/index.js").OidcClientMetadata>>>;
217
- customClientMetadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<{
218
- corsAllowedOrigins?: string[] | undefined;
219
- idTokenTtl?: number | undefined;
220
- refreshTokenTtl?: number | undefined;
221
- refreshTokenTtlInDays?: number | undefined;
222
- tenantId?: string | undefined;
223
- alwaysIssueRefreshToken?: boolean | undefined;
224
- rotateRefreshToken?: boolean | undefined;
225
- }, z.ZodTypeDef, {
226
- corsAllowedOrigins?: string[] | undefined;
227
- idTokenTtl?: number | undefined;
228
- refreshTokenTtl?: number | undefined;
229
- refreshTokenTtlInDays?: number | undefined;
230
- tenantId?: string | undefined;
231
- alwaysIssueRefreshToken?: boolean | undefined;
232
- rotateRefreshToken?: boolean | undefined;
233
- }>>>>;
234
- protectedAppMetadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<{
235
- host: string;
236
- origin: string;
237
- sessionDuration: number;
238
- pageRules: {
239
- path: string;
240
- }[];
241
- customDomains?: {
242
- status: import("../foundations/index.js").DomainStatus;
243
- domain: string;
244
- errorMessage: string | null;
245
- dnsRecords: {
246
- type: string;
247
- value: string;
248
- name: string;
249
- }[];
250
- cloudflareData: {
251
- status: string;
252
- id: string;
253
- ssl: {
254
- status: string;
255
- validation_errors?: {
256
- message: string;
257
- }[] | undefined;
258
- };
259
- verification_errors?: string[] | undefined;
260
- } | null;
261
- }[] | undefined;
262
- } | null, z.ZodTypeDef, {
263
- host: string;
264
- origin: string;
265
- sessionDuration: number;
266
- pageRules: {
267
- path: string;
268
- }[];
269
- customDomains?: {
270
- status: import("../foundations/index.js").DomainStatus;
271
- domain: string;
272
- errorMessage: string | null;
273
- dnsRecords: {
274
- type: string;
275
- value: string;
276
- name: string;
277
- }[];
278
- cloudflareData: {
279
- status: string;
280
- id: string;
281
- ssl: {
282
- status: string;
283
- validation_errors?: {
284
- message: string;
285
- }[] | undefined;
286
- };
287
- verification_errors?: string[] | undefined;
288
- } | null;
289
- }[] | undefined;
290
- } | null>>>>;
291
- isThirdParty: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>>;
292
- type: z.ZodOptional<z.ZodType<import("../index.js").ApplicationType, z.ZodTypeDef, import("../index.js").ApplicationType>>;
293
- name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
294
- }, "type" | "isThirdParty">, "name" | "customData" | "description">, {
295
53
  attributeMapping: z.ZodOptional<z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>>;
296
54
  entityId: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
297
55
  acsUrl: z.ZodOptional<z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>>;
@@ -304,10 +62,9 @@ export declare const samlApplicationPatchGuard: z.ZodObject<z.objectUtil.extendS
304
62
  encryptThenSign?: boolean | undefined;
305
63
  certificate?: string | undefined;
306
64
  } | null>>;
307
- nameIdFormat: z.ZodOptional<z.ZodType<NameIdFormat, z.ZodTypeDef, NameIdFormat>>;
308
- }>, {
65
+ } & {
309
66
  nameIdFormat: z.ZodOptional<z.ZodNativeEnum<typeof NameIdFormat>>;
310
- }>, "strip", z.ZodTypeAny, {
67
+ }, "strip", z.ZodTypeAny, {
311
68
  name?: string | undefined;
312
69
  customData?: import("@withtyped/server/lib/types.js").JsonObject;
313
70
  description?: string | null;
@@ -335,94 +92,15 @@ export declare const samlApplicationPatchGuard: z.ZodObject<z.objectUtil.extendS
335
92
  nameIdFormat?: NameIdFormat | undefined;
336
93
  }>;
337
94
  export type PatchSamlApplication = z.infer<typeof samlApplicationPatchGuard>;
338
- export declare const samlApplicationResponseGuard: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
339
- tenantId: z.ZodType<string, z.ZodTypeDef, string>;
340
- id: z.ZodType<string, z.ZodTypeDef, string>;
341
- name: z.ZodType<string, z.ZodTypeDef, string>;
342
- secret: z.ZodType<string, z.ZodTypeDef, string>;
343
- description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
95
+ export declare const samlApplicationResponseGuard: z.ZodObject<{
344
96
  type: z.ZodType<import("../index.js").ApplicationType, z.ZodTypeDef, import("../index.js").ApplicationType>;
345
- oidcClientMetadata: z.ZodType<import("../foundations/index.js").OidcClientMetadata, z.ZodTypeDef, import("../foundations/index.js").OidcClientMetadata>;
346
- customClientMetadata: z.ZodType<{
347
- corsAllowedOrigins?: string[] | undefined;
348
- idTokenTtl?: number | undefined;
349
- refreshTokenTtl?: number | undefined;
350
- refreshTokenTtlInDays?: number | undefined;
351
- tenantId?: string | undefined;
352
- alwaysIssueRefreshToken?: boolean | undefined;
353
- rotateRefreshToken?: boolean | undefined;
354
- }, z.ZodTypeDef, {
355
- corsAllowedOrigins?: string[] | undefined;
356
- idTokenTtl?: number | undefined;
357
- refreshTokenTtl?: number | undefined;
358
- refreshTokenTtlInDays?: number | undefined;
359
- tenantId?: string | undefined;
360
- alwaysIssueRefreshToken?: boolean | undefined;
361
- rotateRefreshToken?: boolean | undefined;
362
- }>;
363
- protectedAppMetadata: z.ZodType<{
364
- host: string;
365
- origin: string;
366
- sessionDuration: number;
367
- pageRules: {
368
- path: string;
369
- }[];
370
- customDomains?: {
371
- status: import("../foundations/index.js").DomainStatus;
372
- domain: string;
373
- errorMessage: string | null;
374
- dnsRecords: {
375
- type: string;
376
- value: string;
377
- name: string;
378
- }[];
379
- cloudflareData: {
380
- status: string;
381
- id: string;
382
- ssl: {
383
- status: string;
384
- validation_errors?: {
385
- message: string;
386
- }[] | undefined;
387
- };
388
- verification_errors?: string[] | undefined;
389
- } | null;
390
- }[] | undefined;
391
- } | null, z.ZodTypeDef, {
392
- host: string;
393
- origin: string;
394
- sessionDuration: number;
395
- pageRules: {
396
- path: string;
397
- }[];
398
- customDomains?: {
399
- status: import("../foundations/index.js").DomainStatus;
400
- domain: string;
401
- errorMessage: string | null;
402
- dnsRecords: {
403
- type: string;
404
- value: string;
405
- name: string;
406
- }[];
407
- cloudflareData: {
408
- status: string;
409
- id: string;
410
- ssl: {
411
- status: string;
412
- validation_errors?: {
413
- message: string;
414
- }[] | undefined;
415
- };
416
- verification_errors?: string[] | undefined;
417
- } | null;
418
- }[] | undefined;
419
- } | null>;
97
+ name: z.ZodType<string, z.ZodTypeDef, string>;
98
+ id: z.ZodType<string, z.ZodTypeDef, string>;
99
+ tenantId: z.ZodType<string, z.ZodTypeDef, string>;
100
+ createdAt: z.ZodType<number, z.ZodTypeDef, number>;
420
101
  customData: z.ZodType<import("@withtyped/server/lib/types.js").JsonObject, z.ZodTypeDef, import("@withtyped/server/lib/types.js").JsonObject>;
102
+ description: z.ZodType<string | null, z.ZodTypeDef, string | null>;
421
103
  isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
422
- createdAt: z.ZodType<number, z.ZodTypeDef, number>;
423
- }, "secret" | "oidcClientMetadata" | "customClientMetadata" | "protectedAppMetadata">, Pick<{
424
- applicationId: z.ZodType<string, z.ZodTypeDef, string>;
425
- tenantId: z.ZodType<string, z.ZodTypeDef, string>;
426
104
  attributeMapping: z.ZodType<Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>, z.ZodTypeDef, Partial<Record<"name" | "username" | "email" | "sub" | "nickname" | "profile" | "website" | "gender" | "birthdate" | "zoneinfo" | "locale" | "address" | "given_name" | "family_name" | "middle_name" | "preferred_username" | "picture" | "email_verified" | "phone_number" | "phone_number_verified" | "updated_at" | "roles" | "organizations" | "organization_data" | "organization_roles" | "custom_data" | "identities" | "sso_identities" | "created_at", string>>>;
427
105
  entityId: z.ZodType<string | null, z.ZodTypeDef, string | null>;
428
106
  acsUrl: z.ZodType<import("../foundations/index.js").SamlAcsUrl | null, z.ZodTypeDef, import("../foundations/index.js").SamlAcsUrl | null>;
@@ -435,10 +113,9 @@ export declare const samlApplicationResponseGuard: z.ZodObject<z.objectUtil.exte
435
113
  encryptThenSign?: boolean | undefined;
436
114
  certificate?: string | undefined;
437
115
  } | null>;
438
- nameIdFormat: z.ZodType<NameIdFormat, z.ZodTypeDef, NameIdFormat>;
439
- }, "attributeMapping" | "entityId" | "acsUrl" | "encryption" | "nameIdFormat">>, {
116
+ } & {
440
117
  nameIdFormat: z.ZodNativeEnum<typeof NameIdFormat>;
441
- }>, "strip", z.ZodTypeAny, {
118
+ }, "strip", z.ZodTypeAny, {
442
119
  type: import("../index.js").ApplicationType;
443
120
  name: string;
444
121
  id: string;
@@ -497,7 +174,7 @@ export declare const certificateFingerprintsGuard: z.ZodObject<{
497
174
  unformatted: string;
498
175
  };
499
176
  }>;
500
- export declare const samlApplicationSecretResponseGuard: z.ZodObject<z.objectUtil.extendShape<Omit<{
177
+ export declare const samlApplicationSecretResponseGuard: z.ZodObject<Omit<{
501
178
  id: z.ZodType<string, z.ZodTypeDef, string>;
502
179
  tenantId: z.ZodType<string, z.ZodTypeDef, string>;
503
180
  applicationId: z.ZodType<string, z.ZodTypeDef, string>;
@@ -506,7 +183,7 @@ export declare const samlApplicationSecretResponseGuard: z.ZodObject<z.objectUti
506
183
  createdAt: z.ZodType<number, z.ZodTypeDef, number>;
507
184
  expiresAt: z.ZodType<number, z.ZodTypeDef, number>;
508
185
  active: z.ZodType<boolean, z.ZodTypeDef, boolean>;
509
- }, "applicationId" | "tenantId" | "privateKey">, {
186
+ }, "applicationId" | "tenantId" | "privateKey"> & {
510
187
  fingerprints: z.ZodObject<{
511
188
  sha256: z.ZodObject<{
512
189
  formatted: z.ZodString;
@@ -529,7 +206,7 @@ export declare const samlApplicationSecretResponseGuard: z.ZodObject<z.objectUti
529
206
  unformatted: string;
530
207
  };
531
208
  }>;
532
- }>, "strip", z.ZodTypeAny, {
209
+ }, "strip", z.ZodTypeAny, {
533
210
  id: string;
534
211
  createdAt: number;
535
212
  certificate: string;