@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
@@ -0,0 +1,20 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table sign_in_experiences
9
+ add column sentinel_policy jsonb not null default '{}'::jsonb;
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ await pool.query(sql`
14
+ alter table sign_in_experiences
15
+ drop column sentinel_policy;
16
+ `);
17
+ },
18
+ };
19
+
20
+ export default alteration;
@@ -0,0 +1,19 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ create index sentinel_activities__target_type_target_hash
9
+ on sentinel_activities (tenant_id, target_type, target_hash);
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ await pool.query(sql`
14
+ drop index sentinel_activities__target_type_target_hash;
15
+ `);
16
+ },
17
+ };
18
+
19
+ export default alteration;
@@ -0,0 +1,20 @@
1
+ import { sql } from '@silverhand/slonik';
2
+
3
+ import type { AlterationScript } from '../lib/types/alteration.js';
4
+
5
+ const alteration: AlterationScript = {
6
+ up: async (pool) => {
7
+ await pool.query(sql`
8
+ alter table sign_in_experiences
9
+ add column email_blocklist_policy jsonb not null default '{}'::jsonb;
10
+ `);
11
+ },
12
+ down: async (pool) => {
13
+ await pool.query(sql`
14
+ alter table sign_in_experiences
15
+ drop column email_blocklist_policy;
16
+ `);
17
+ },
18
+ };
19
+
20
+ export default alteration;
@@ -0,0 +1,16 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table sign_in_experiences
6
+ add column sentinel_policy jsonb not null default '{}'::jsonb;
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ await pool.query(sql `
11
+ alter table sign_in_experiences
12
+ drop column sentinel_policy;
13
+ `);
14
+ },
15
+ };
16
+ export default alteration;
@@ -0,0 +1,15 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ create index sentinel_activities__target_type_target_hash
6
+ on sentinel_activities (tenant_id, target_type, target_hash);
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ await pool.query(sql `
11
+ drop index sentinel_activities__target_type_target_hash;
12
+ `);
13
+ },
14
+ };
15
+ export default alteration;
@@ -0,0 +1,16 @@
1
+ import { sql } from '@silverhand/slonik';
2
+ const alteration = {
3
+ up: async (pool) => {
4
+ await pool.query(sql `
5
+ alter table sign_in_experiences
6
+ add column email_blocklist_policy jsonb not null default '{}'::jsonb;
7
+ `);
8
+ },
9
+ down: async (pool) => {
10
+ await pool.query(sql `
11
+ alter table sign_in_experiences
12
+ drop column email_blocklist_policy;
13
+ `);
14
+ },
15
+ };
16
+ export default alteration;
@@ -8,6 +8,6 @@ export declare const experience: Readonly<{
8
8
  readonly identifierSignIn: "identifier-sign-in";
9
9
  readonly identifierRegister: "identifier-register";
10
10
  readonly switchAccount: "switch-account";
11
- readonly error: "error";
11
+ readonly oneTimeToken: "one-time-token";
12
12
  }>;
13
13
  }>;
@@ -7,7 +7,7 @@ const routes = Object.freeze({
7
7
  identifierSignIn: 'identifier-sign-in',
8
8
  identifierRegister: 'identifier-register',
9
9
  switchAccount: 'switch-account',
10
- error: 'error',
10
+ oneTimeToken: 'one-time-token',
11
11
  });
12
12
  export const experience = Object.freeze({
13
13
  routes,
@@ -5,3 +5,4 @@ export * from './date.js';
5
5
  export * from './tenant.js';
6
6
  export * from './subscriptions.js';
7
7
  export * from './experience.js';
8
+ export * from './sentinel.js';
@@ -5,3 +5,4 @@ export * from './date.js';
5
5
  export * from './tenant.js';
6
6
  export * from './subscriptions.js';
7
7
  export * from './experience.js';
8
+ export * from './sentinel.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The default policy for this sentinel.
3
+ *
4
+ * - `maxAttempts`: 100
5
+ * - `lockoutDuration`: 60 minutes
6
+ */
7
+ export declare const defaultSentinelPolicy: Readonly<{
8
+ maxAttempts: number;
9
+ lockoutDuration: number;
10
+ }>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The default policy for this sentinel.
3
+ *
4
+ * - `maxAttempts`: 100
5
+ * - `lockoutDuration`: 60 minutes
6
+ */
7
+ export const defaultSentinelPolicy = Object.freeze({
8
+ maxAttempts: 100,
9
+ lockoutDuration: 60,
10
+ });
@@ -1,4 +1,4 @@
1
- import { Color, Branding, LanguageInfo, SignIn, SignUp, SocialSignIn, ConnectorTargets, CustomContent, CustomUiAssets, PartialPasswordPolicy, Mfa, CaptchaPolicy, GeneratedSchema } from './../foundations/index.js';
1
+ import { Color, Branding, LanguageInfo, SignIn, SignUp, SocialSignIn, ConnectorTargets, CustomContent, CustomUiAssets, PartialPasswordPolicy, Mfa, CaptchaPolicy, SentinelPolicy, EmailBlocklistPolicy, GeneratedSchema } from './../foundations/index.js';
2
2
  import { AgreeToTermsPolicy, SignInMode } from './custom-types.js';
3
3
  /**
4
4
  *
@@ -30,6 +30,8 @@ export type CreateSignInExperience = {
30
30
  supportWebsiteUrl?: string | null;
31
31
  unknownSessionRedirectUrl?: string | null;
32
32
  captchaPolicy?: CaptchaPolicy;
33
+ sentinelPolicy?: SentinelPolicy;
34
+ emailBlocklistPolicy?: EmailBlocklistPolicy;
33
35
  };
34
36
  export type SignInExperience = {
35
37
  tenantId: string;
@@ -56,6 +58,8 @@ export type SignInExperience = {
56
58
  supportWebsiteUrl: string | null;
57
59
  unknownSessionRedirectUrl: string | null;
58
60
  captchaPolicy: CaptchaPolicy;
61
+ sentinelPolicy: SentinelPolicy;
62
+ emailBlocklistPolicy: EmailBlocklistPolicy;
59
63
  };
60
- 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' | 'captchaPolicy';
64
+ 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' | 'captchaPolicy' | 'sentinelPolicy' | 'emailBlocklistPolicy';
61
65
  export declare const SignInExperiences: GeneratedSchema<SignInExperienceKeys, CreateSignInExperience, SignInExperience, 'sign_in_experiences', 'sign_in_experience'>;
@@ -1,6 +1,6 @@
1
1
  // THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
2
  import { z } from 'zod';
3
- import { colorGuard, brandingGuard, languageInfoGuard, signInGuard, signUpGuard, socialSignInGuard, connectorTargetsGuard, customContentGuard, customUiAssetsGuard, partialPasswordPolicyGuard, mfaGuard, captchaPolicyGuard } from './../foundations/index.js';
3
+ import { colorGuard, brandingGuard, languageInfoGuard, signInGuard, signUpGuard, socialSignInGuard, connectorTargetsGuard, customContentGuard, customUiAssetsGuard, partialPasswordPolicyGuard, mfaGuard, captchaPolicyGuard, sentinelPolicyGuard, emailBlocklistPolicyGuard } from './../foundations/index.js';
4
4
  import { AgreeToTermsPolicy, SignInMode } from './custom-types.js';
5
5
  const createGuard = z.object({
6
6
  tenantId: z.string().max(21).optional(),
@@ -26,6 +26,8 @@ const createGuard = z.object({
26
26
  supportWebsiteUrl: z.string().nullable().optional(),
27
27
  unknownSessionRedirectUrl: z.string().nullable().optional(),
28
28
  captchaPolicy: captchaPolicyGuard.optional(),
29
+ sentinelPolicy: sentinelPolicyGuard.optional(),
30
+ emailBlocklistPolicy: emailBlocklistPolicyGuard.optional(),
29
31
  });
30
32
  const guard = z.object({
31
33
  tenantId: z.string().max(21),
@@ -51,6 +53,8 @@ const guard = z.object({
51
53
  supportWebsiteUrl: z.string().nullable(),
52
54
  unknownSessionRedirectUrl: z.string().nullable(),
53
55
  captchaPolicy: captchaPolicyGuard,
56
+ sentinelPolicy: sentinelPolicyGuard,
57
+ emailBlocklistPolicy: emailBlocklistPolicyGuard,
54
58
  });
55
59
  export const SignInExperiences = Object.freeze({
56
60
  table: 'sign_in_experiences',
@@ -79,6 +83,8 @@ export const SignInExperiences = Object.freeze({
79
83
  supportWebsiteUrl: 'support_website_url',
80
84
  unknownSessionRedirectUrl: 'unknown_session_redirect_url',
81
85
  captchaPolicy: 'captcha_policy',
86
+ sentinelPolicy: 'sentinel_policy',
87
+ emailBlocklistPolicy: 'email_blocklist_policy',
82
88
  },
83
89
  fieldKeys: [
84
90
  'tenantId',
@@ -104,6 +110,8 @@ export const SignInExperiences = Object.freeze({
104
110
  'supportWebsiteUrl',
105
111
  'unknownSessionRedirectUrl',
106
112
  'captchaPolicy',
113
+ 'sentinelPolicy',
114
+ 'emailBlocklistPolicy',
107
115
  ],
108
116
  createGuard,
109
117
  guard,
@@ -8,12 +8,12 @@ export declare const customDomainGuard: z.ZodObject<{
8
8
  type: z.ZodString;
9
9
  value: z.ZodString;
10
10
  }, "strip", z.ZodTypeAny, {
11
- type: string;
12
11
  value: string;
12
+ type: string;
13
13
  name: string;
14
14
  }, {
15
- type: string;
16
15
  value: string;
16
+ type: string;
17
17
  name: string;
18
18
  }>, "many">;
19
19
  cloudflareData: z.ZodNullable<z.ZodObject<{
@@ -66,8 +66,8 @@ export declare const customDomainGuard: z.ZodObject<{
66
66
  domain: string;
67
67
  errorMessage: string | null;
68
68
  dnsRecords: {
69
- type: string;
70
69
  value: string;
70
+ type: string;
71
71
  name: string;
72
72
  }[];
73
73
  cloudflareData: {
@@ -86,8 +86,8 @@ export declare const customDomainGuard: z.ZodObject<{
86
86
  domain: string;
87
87
  errorMessage: string | null;
88
88
  dnsRecords: {
89
- type: string;
90
89
  value: string;
90
+ type: string;
91
91
  name: string;
92
92
  }[];
93
93
  cloudflareData: {
@@ -111,12 +111,12 @@ export declare const customDomainsGuard: z.ZodArray<z.ZodObject<{
111
111
  type: z.ZodString;
112
112
  value: z.ZodString;
113
113
  }, "strip", z.ZodTypeAny, {
114
- type: string;
115
114
  value: string;
115
+ type: string;
116
116
  name: string;
117
117
  }, {
118
- type: string;
119
118
  value: string;
119
+ type: string;
120
120
  name: string;
121
121
  }>, "many">;
122
122
  cloudflareData: z.ZodNullable<z.ZodObject<{
@@ -169,8 +169,8 @@ export declare const customDomainsGuard: z.ZodArray<z.ZodObject<{
169
169
  domain: string;
170
170
  errorMessage: string | null;
171
171
  dnsRecords: {
172
- type: string;
173
172
  value: string;
173
+ type: string;
174
174
  name: string;
175
175
  }[];
176
176
  cloudflareData: {
@@ -189,8 +189,8 @@ export declare const customDomainsGuard: z.ZodArray<z.ZodObject<{
189
189
  domain: string;
190
190
  errorMessage: string | null;
191
191
  dnsRecords: {
192
- type: string;
193
192
  value: string;
193
+ type: string;
194
194
  name: string;
195
195
  }[];
196
196
  cloudflareData: {
@@ -226,12 +226,12 @@ export declare const protectedAppMetadataGuard: z.ZodObject<{
226
226
  type: z.ZodString;
227
227
  value: z.ZodString;
228
228
  }, "strip", z.ZodTypeAny, {
229
- type: string;
230
229
  value: string;
230
+ type: string;
231
231
  name: string;
232
232
  }, {
233
- type: string;
234
233
  value: string;
234
+ type: string;
235
235
  name: string;
236
236
  }>, "many">;
237
237
  cloudflareData: z.ZodNullable<z.ZodObject<{
@@ -284,8 +284,8 @@ export declare const protectedAppMetadataGuard: z.ZodObject<{
284
284
  domain: string;
285
285
  errorMessage: string | null;
286
286
  dnsRecords: {
287
- type: string;
288
287
  value: string;
288
+ type: string;
289
289
  name: string;
290
290
  }[];
291
291
  cloudflareData: {
@@ -304,8 +304,8 @@ export declare const protectedAppMetadataGuard: z.ZodObject<{
304
304
  domain: string;
305
305
  errorMessage: string | null;
306
306
  dnsRecords: {
307
- type: string;
308
307
  value: string;
308
+ type: string;
309
309
  name: string;
310
310
  }[];
311
311
  cloudflareData: {
@@ -332,8 +332,8 @@ export declare const protectedAppMetadataGuard: z.ZodObject<{
332
332
  domain: string;
333
333
  errorMessage: string | null;
334
334
  dnsRecords: {
335
- type: string;
336
335
  value: string;
336
+ type: string;
337
337
  name: string;
338
338
  }[];
339
339
  cloudflareData: {
@@ -360,8 +360,8 @@ export declare const protectedAppMetadataGuard: z.ZodObject<{
360
360
  domain: string;
361
361
  errorMessage: string | null;
362
362
  dnsRecords: {
363
- type: string;
364
363
  value: string;
364
+ type: string;
365
365
  name: string;
366
366
  }[];
367
367
  cloudflareData: {
@@ -16,6 +16,7 @@ export declare const turnstileConfigGuard: z.ZodObject<{
16
16
  siteKey: string;
17
17
  secretKey: string;
18
18
  }>;
19
+ export type TurnstileConfig = z.infer<typeof turnstileConfigGuard>;
19
20
  export declare const recaptchaEnterpriseConfigGuard: z.ZodObject<{
20
21
  type: z.ZodLiteral<CaptchaType.RecaptchaEnterprise>;
21
22
  siteKey: z.ZodString;
@@ -32,6 +33,7 @@ export declare const recaptchaEnterpriseConfigGuard: z.ZodObject<{
32
33
  secretKey: string;
33
34
  projectId: string;
34
35
  }>;
36
+ export type RecaptchaEnterpriseConfig = z.infer<typeof recaptchaEnterpriseConfigGuard>;
35
37
  export declare const captchaConfigGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
36
38
  type: z.ZodLiteral<CaptchaType.Turnstile>;
37
39
  siteKey: z.ZodString;
@@ -4,12 +4,12 @@ export declare const domainDnsRecordGuard: z.ZodObject<{
4
4
  type: z.ZodString;
5
5
  value: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
- type: string;
8
7
  value: string;
8
+ type: string;
9
9
  name: string;
10
10
  }, {
11
- type: string;
12
11
  value: string;
12
+ type: string;
13
13
  name: string;
14
14
  }>;
15
15
  export type DomainDnsRecord = z.infer<typeof domainDnsRecordGuard>;
@@ -18,12 +18,12 @@ export declare const domainDnsRecordsGuard: z.ZodArray<z.ZodObject<{
18
18
  type: z.ZodString;
19
19
  value: z.ZodString;
20
20
  }, "strip", z.ZodTypeAny, {
21
- type: string;
22
21
  value: string;
22
+ type: string;
23
23
  name: string;
24
24
  }, {
25
- type: string;
26
25
  value: string;
26
+ type: string;
27
27
  name: string;
28
28
  }>, "many">;
29
29
  export type DomainDnsRecords = z.infer<typeof domainDnsRecordsGuard>;
@@ -291,4 +291,57 @@ export declare const captchaPolicyGuard: z.ZodObject<{
291
291
  enabled?: boolean | undefined;
292
292
  }>;
293
293
  export type CaptchaPolicy = z.infer<typeof captchaPolicyGuard>;
294
+ export type SentinelPolicy = {
295
+ /**
296
+ * Maximum failed attempts allowed in one hour before blocking the user.
297
+ */
298
+ maxAttempts?: number;
299
+ /**
300
+ * Lockout duration in minutes after exceeding the maximum failed attempts.
301
+ */
302
+ lockoutDuration?: number;
303
+ };
304
+ export declare const sentinelPolicyGuard: z.ZodObject<{
305
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
306
+ lockoutDuration: z.ZodOptional<z.ZodNumber>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ maxAttempts?: number | undefined;
309
+ lockoutDuration?: number | undefined;
310
+ }, {
311
+ maxAttempts?: number | undefined;
312
+ lockoutDuration?: number | undefined;
313
+ }>;
314
+ /**
315
+ * Email blocklist policy.
316
+ *
317
+ * @remarks
318
+ * This policy is used to block specific email addresses or domains from signing up.
319
+ */
320
+ export type EmailBlocklistPolicy = {
321
+ blockDisposableAddresses?: boolean;
322
+ blockSubaddressing?: boolean;
323
+ /**
324
+ * Custom blocklist of email addresses or domains.
325
+ *
326
+ * @example
327
+ * Email address: abc@xyx.com
328
+ *
329
+ * @example
330
+ * Domain name: @xyz.com
331
+ */
332
+ customBlocklist?: string[];
333
+ };
334
+ export declare const emailBlocklistPolicyGuard: z.ZodObject<{
335
+ blockDisposableAddresses: z.ZodOptional<z.ZodBoolean>;
336
+ blockSubaddressing: z.ZodOptional<z.ZodBoolean>;
337
+ customBlocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ blockDisposableAddresses?: boolean | undefined;
340
+ blockSubaddressing?: boolean | undefined;
341
+ customBlocklist?: string[] | undefined;
342
+ }, {
343
+ blockDisposableAddresses?: boolean | undefined;
344
+ blockSubaddressing?: boolean | undefined;
345
+ customBlocklist?: string[] | undefined;
346
+ }>;
294
347
  export {};
@@ -106,3 +106,12 @@ export const customUiAssetsGuard = z.object({
106
106
  export const captchaPolicyGuard = z.object({
107
107
  enabled: z.boolean().optional(),
108
108
  });
109
+ export const sentinelPolicyGuard = z.object({
110
+ maxAttempts: z.number().optional(),
111
+ lockoutDuration: z.number().optional(),
112
+ });
113
+ export const emailBlocklistPolicyGuard = z.object({
114
+ blockDisposableAddresses: z.boolean().optional(),
115
+ blockSubaddressing: z.boolean().optional(),
116
+ customBlocklist: z.string().array().optional(),
117
+ });
@@ -47,8 +47,8 @@ export declare const featuredApplicationGuard: z.ZodObject<Pick<{
47
47
  domain: string;
48
48
  errorMessage: string | null;
49
49
  dnsRecords: {
50
- type: string;
51
50
  value: string;
51
+ type: string;
52
52
  name: string;
53
53
  }[];
54
54
  cloudflareData: {
@@ -75,8 +75,8 @@ export declare const featuredApplicationGuard: z.ZodObject<Pick<{
75
75
  domain: string;
76
76
  errorMessage: string | null;
77
77
  dnsRecords: {
78
- type: string;
79
78
  value: string;
79
+ type: string;
80
80
  name: string;
81
81
  }[];
82
82
  cloudflareData: {
@@ -104,9 +104,7 @@ export declare const featuredApplicationGuard: z.ZodObject<Pick<{
104
104
  name: string;
105
105
  id: string;
106
106
  }>;
107
- export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShape<{
108
- type: z.ZodOptional<z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>>;
109
- name: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
107
+ export declare const applicationCreateGuard: z.ZodObject<{
110
108
  customData: z.ZodOptional<z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>>;
111
109
  description: z.ZodOptional<z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>>;
112
110
  oidcClientMetadata: z.ZodOptional<z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>>;
@@ -139,8 +137,8 @@ export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShap
139
137
  domain: string;
140
138
  errorMessage: string | null;
141
139
  dnsRecords: {
142
- type: string;
143
140
  value: string;
141
+ type: string;
144
142
  name: string;
145
143
  }[];
146
144
  cloudflareData: {
@@ -167,8 +165,8 @@ export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShap
167
165
  domain: string;
168
166
  errorMessage: string | null;
169
167
  dnsRecords: {
170
- type: string;
171
168
  value: string;
169
+ type: string;
172
170
  name: string;
173
171
  }[];
174
172
  cloudflareData: {
@@ -185,92 +183,10 @@ export declare const applicationCreateGuard: z.ZodObject<z.objectUtil.extendShap
185
183
  }[] | undefined;
186
184
  } | null>>>;
187
185
  isThirdParty: z.ZodOptional<z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>>;
188
- }, Pick<{
189
- tenantId: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
190
- id: z.ZodType<string, z.ZodTypeDef, string>;
191
- name: z.ZodType<string, z.ZodTypeDef, string>;
192
- secret: z.ZodType<string, z.ZodTypeDef, string>;
193
- description: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
186
+ } & {
194
187
  type: z.ZodType<import("../db-entries/custom-types.js").ApplicationType, z.ZodTypeDef, import("../db-entries/custom-types.js").ApplicationType>;
195
- oidcClientMetadata: z.ZodType<import("../index.js").OidcClientMetadata, z.ZodTypeDef, import("../index.js").OidcClientMetadata>;
196
- customClientMetadata: z.ZodOptional<z.ZodType<{
197
- corsAllowedOrigins?: string[] | undefined;
198
- idTokenTtl?: number | undefined;
199
- refreshTokenTtl?: number | undefined;
200
- refreshTokenTtlInDays?: number | undefined;
201
- tenantId?: string | undefined;
202
- alwaysIssueRefreshToken?: boolean | undefined;
203
- rotateRefreshToken?: boolean | undefined;
204
- }, z.ZodTypeDef, {
205
- corsAllowedOrigins?: string[] | undefined;
206
- idTokenTtl?: number | undefined;
207
- refreshTokenTtl?: number | undefined;
208
- refreshTokenTtlInDays?: number | undefined;
209
- tenantId?: string | undefined;
210
- alwaysIssueRefreshToken?: boolean | undefined;
211
- rotateRefreshToken?: boolean | undefined;
212
- }>>;
213
- protectedAppMetadata: z.ZodOptional<z.ZodType<{
214
- host: string;
215
- origin: string;
216
- sessionDuration: number;
217
- pageRules: {
218
- path: string;
219
- }[];
220
- customDomains?: {
221
- status: import("../index.js").DomainStatus;
222
- domain: string;
223
- errorMessage: string | null;
224
- dnsRecords: {
225
- type: string;
226
- value: string;
227
- name: string;
228
- }[];
229
- cloudflareData: {
230
- status: string;
231
- id: string;
232
- ssl: {
233
- status: string;
234
- validation_errors?: {
235
- message: string;
236
- }[] | undefined;
237
- };
238
- verification_errors?: string[] | undefined;
239
- } | null;
240
- }[] | undefined;
241
- } | null, z.ZodTypeDef, {
242
- host: string;
243
- origin: string;
244
- sessionDuration: number;
245
- pageRules: {
246
- path: string;
247
- }[];
248
- customDomains?: {
249
- status: import("../index.js").DomainStatus;
250
- domain: string;
251
- errorMessage: string | null;
252
- dnsRecords: {
253
- type: string;
254
- value: string;
255
- name: string;
256
- }[];
257
- cloudflareData: {
258
- status: string;
259
- id: string;
260
- ssl: {
261
- status: string;
262
- validation_errors?: {
263
- message: string;
264
- }[] | undefined;
265
- };
266
- verification_errors?: string[] | undefined;
267
- } | null;
268
- }[] | undefined;
269
- } | null>>;
270
- customData: z.ZodOptional<z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>>;
271
- isThirdParty: z.ZodOptional<z.ZodType<boolean, z.ZodTypeDef, boolean>>;
272
- createdAt: z.ZodOptional<z.ZodType<number, z.ZodTypeDef, number>>;
273
- }, "type" | "name">>, "strip", z.ZodTypeAny, {
188
+ name: z.ZodType<string, z.ZodTypeDef, string>;
189
+ }, "strip", z.ZodTypeAny, {
274
190
  type: import("../db-entries/custom-types.js").ApplicationType;
275
191
  name: string;
276
192
  customData?: import("@withtyped/server").JsonObject;
@@ -322,8 +238,8 @@ export declare const applicationPatchGuard: z.ZodObject<Omit<{
322
238
  domain: string;
323
239
  errorMessage: string | null;
324
240
  dnsRecords: {
325
- type: string;
326
241
  value: string;
242
+ type: string;
327
243
  name: string;
328
244
  }[];
329
245
  cloudflareData: {
@@ -350,8 +266,8 @@ export declare const applicationPatchGuard: z.ZodObject<Omit<{
350
266
  domain: string;
351
267
  errorMessage: string | null;
352
268
  dnsRecords: {
353
- type: string;
354
269
  value: string;
270
+ type: string;
355
271
  name: string;
356
272
  }[];
357
273
  cloudflareData: {
@@ -583,7 +499,7 @@ export declare enum ApplicationUserConsentScopeType {
583
499
  UserScopes = "user-scopes"
584
500
  }
585
501
  export type ApplicationUserConsentScopesResponse = z.infer<typeof applicationUserConsentScopesResponseGuard>;
586
- export declare const applicationSignInExperienceCreateGuard: z.ZodObject<z.objectUtil.extendShape<Omit<{
502
+ export declare const applicationSignInExperienceCreateGuard: z.ZodObject<Omit<{
587
503
  tenantId: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
588
504
  applicationId: z.ZodType<string, z.ZodTypeDef, string>;
589
505
  color: z.ZodOptional<z.ZodType<Partial<{
@@ -609,10 +525,10 @@ export declare const applicationSignInExperienceCreateGuard: z.ZodObject<z.objec
609
525
  termsOfUseUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
610
526
  privacyPolicyUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
611
527
  displayName: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
612
- }, "applicationId" | "tenantId" | "termsOfUseUrl" | "privacyPolicyUrl">, {
528
+ }, "applicationId" | "tenantId" | "termsOfUseUrl" | "privacyPolicyUrl"> & {
613
529
  termsOfUseUrl: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
614
530
  privacyPolicyUrl: z.ZodUnion<[z.ZodNullable<z.ZodOptional<z.ZodString>>, z.ZodLiteral<"">]>;
615
- }>, "strip", z.ZodTypeAny, {
531
+ }, "strip", z.ZodTypeAny, {
616
532
  displayName?: string | null;
617
533
  color?: import("../index.js").PartialColor;
618
534
  branding?: import("../index.js").Branding;