@logto/schemas 1.27.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.
- package/alterations/1.28.0-1745735646-add-email-blocklist-policy-column-to-sie-table.ts +20 -0
- package/alterations-js/1.28.0-1745735646-add-email-blocklist-policy-column-to-sie-table.js +16 -0
- package/lib/db-entries/sign-in-experience.d.ts +4 -2
- package/lib/db-entries/sign-in-experience.js +5 -1
- package/lib/foundations/jsonb-types/sign-in-experience.d.ts +33 -0
- package/lib/foundations/jsonb-types/sign-in-experience.js +5 -0
- package/lib/types/application.d.ts +7 -91
- package/lib/types/connector.d.ts +9 -13
- package/lib/types/consent.d.ts +21 -21
- package/lib/types/hook.d.ts +3 -3
- package/lib/types/interactions.d.ts +6 -6
- package/lib/types/logto-config/index.d.ts +15 -16
- package/lib/types/logto-config/jwt-customizer.d.ts +35 -36
- package/lib/types/saml-application.d.ts +19 -342
- package/lib/types/scope.d.ts +3 -3
- package/lib/types/sign-in-experience.d.ts +12 -9
- package/lib/types/sso-connector.d.ts +4 -5
- package/lib/types/user.d.ts +3 -3
- package/package.json +3 -3
- package/tables/sign_in_experiences.sql +1 -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 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 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, Branding, LanguageInfo, SignIn, SignUp, SocialSignIn, ConnectorTargets, CustomContent, CustomUiAssets, PartialPasswordPolicy, Mfa, CaptchaPolicy, SentinelPolicy, 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
|
*
|
|
@@ -31,6 +31,7 @@ export type CreateSignInExperience = {
|
|
|
31
31
|
unknownSessionRedirectUrl?: string | null;
|
|
32
32
|
captchaPolicy?: CaptchaPolicy;
|
|
33
33
|
sentinelPolicy?: SentinelPolicy;
|
|
34
|
+
emailBlocklistPolicy?: EmailBlocklistPolicy;
|
|
34
35
|
};
|
|
35
36
|
export type SignInExperience = {
|
|
36
37
|
tenantId: string;
|
|
@@ -58,6 +59,7 @@ export type SignInExperience = {
|
|
|
58
59
|
unknownSessionRedirectUrl: string | null;
|
|
59
60
|
captchaPolicy: CaptchaPolicy;
|
|
60
61
|
sentinelPolicy: SentinelPolicy;
|
|
62
|
+
emailBlocklistPolicy: EmailBlocklistPolicy;
|
|
61
63
|
};
|
|
62
|
-
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';
|
|
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';
|
|
63
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, sentinelPolicyGuard } 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(),
|
|
@@ -27,6 +27,7 @@ const createGuard = z.object({
|
|
|
27
27
|
unknownSessionRedirectUrl: z.string().nullable().optional(),
|
|
28
28
|
captchaPolicy: captchaPolicyGuard.optional(),
|
|
29
29
|
sentinelPolicy: sentinelPolicyGuard.optional(),
|
|
30
|
+
emailBlocklistPolicy: emailBlocklistPolicyGuard.optional(),
|
|
30
31
|
});
|
|
31
32
|
const guard = z.object({
|
|
32
33
|
tenantId: z.string().max(21),
|
|
@@ -53,6 +54,7 @@ const guard = z.object({
|
|
|
53
54
|
unknownSessionRedirectUrl: z.string().nullable(),
|
|
54
55
|
captchaPolicy: captchaPolicyGuard,
|
|
55
56
|
sentinelPolicy: sentinelPolicyGuard,
|
|
57
|
+
emailBlocklistPolicy: emailBlocklistPolicyGuard,
|
|
56
58
|
});
|
|
57
59
|
export const SignInExperiences = Object.freeze({
|
|
58
60
|
table: 'sign_in_experiences',
|
|
@@ -82,6 +84,7 @@ export const SignInExperiences = Object.freeze({
|
|
|
82
84
|
unknownSessionRedirectUrl: 'unknown_session_redirect_url',
|
|
83
85
|
captchaPolicy: 'captcha_policy',
|
|
84
86
|
sentinelPolicy: 'sentinel_policy',
|
|
87
|
+
emailBlocklistPolicy: 'email_blocklist_policy',
|
|
85
88
|
},
|
|
86
89
|
fieldKeys: [
|
|
87
90
|
'tenantId',
|
|
@@ -108,6 +111,7 @@ export const SignInExperiences = Object.freeze({
|
|
|
108
111
|
'unknownSessionRedirectUrl',
|
|
109
112
|
'captchaPolicy',
|
|
110
113
|
'sentinelPolicy',
|
|
114
|
+
'emailBlocklistPolicy',
|
|
111
115
|
],
|
|
112
116
|
createGuard,
|
|
113
117
|
guard,
|
|
@@ -311,4 +311,37 @@ export declare const sentinelPolicyGuard: z.ZodObject<{
|
|
|
311
311
|
maxAttempts?: number | undefined;
|
|
312
312
|
lockoutDuration?: number | undefined;
|
|
313
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
|
+
}>;
|
|
314
347
|
export {};
|
|
@@ -110,3 +110,8 @@ export const sentinelPolicyGuard = z.object({
|
|
|
110
110
|
maxAttempts: z.number().optional(),
|
|
111
111
|
lockoutDuration: z.number().optional(),
|
|
112
112
|
});
|
|
113
|
+
export const emailBlocklistPolicyGuard = z.object({
|
|
114
|
+
blockDisposableAddresses: z.boolean().optional(),
|
|
115
|
+
blockSubaddressing: z.boolean().optional(),
|
|
116
|
+
customBlocklist: z.string().array().optional(),
|
|
117
|
+
});
|
|
@@ -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<
|
|
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>>;
|
|
@@ -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
|
-
}
|
|
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
|
-
|
|
196
|
-
|
|
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
|
-
value: string;
|
|
226
|
-
type: 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
|
-
value: string;
|
|
254
|
-
type: 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;
|
|
@@ -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<
|
|
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
|
-
}
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
532
|
displayName?: string | null;
|
|
617
533
|
color?: import("../index.js").PartialColor;
|
|
618
534
|
branding?: import("../index.js").Branding;
|
package/lib/types/connector.d.ts
CHANGED
|
@@ -2,12 +2,10 @@ import { ConnectorType } from '@logto/connector-kit';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export type { ConnectorMetadata } from '@logto/connector-kit';
|
|
4
4
|
export { ConnectorType, ConnectorPlatform } from '@logto/connector-kit';
|
|
5
|
-
export declare const connectorResponseGuard: z.ZodObject<
|
|
6
|
-
|
|
7
|
-
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
5
|
+
export declare const connectorResponseGuard: z.ZodObject<{
|
|
6
|
+
config: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
8
7
|
syncProfile: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
9
8
|
connectorId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
10
|
-
config: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
11
9
|
metadata: z.ZodType<{
|
|
12
10
|
target?: string | undefined;
|
|
13
11
|
name?: import("@logto/connector-kit").I18nPhrases | undefined;
|
|
@@ -19,8 +17,7 @@ export declare const connectorResponseGuard: z.ZodObject<z.objectUtil.extendShap
|
|
|
19
17
|
logo?: string | undefined;
|
|
20
18
|
logoDark?: string | null | undefined;
|
|
21
19
|
}>;
|
|
22
|
-
|
|
23
|
-
}, "id" | "config" | "syncProfile" | "connectorId" | "metadata">, z.objectUtil.extendShape<{
|
|
20
|
+
} & {
|
|
24
21
|
id: z.ZodString;
|
|
25
22
|
target: z.ZodString;
|
|
26
23
|
name: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
@@ -207,15 +204,14 @@ export declare const connectorResponseGuard: z.ZodObject<z.objectUtil.extendShap
|
|
|
207
204
|
}>]>, "many">>;
|
|
208
205
|
customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
209
206
|
fromEmail: z.ZodOptional<z.ZodString>;
|
|
210
|
-
}, {
|
|
211
207
|
platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
|
|
212
208
|
isStandard: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
-
}
|
|
209
|
+
} & {
|
|
214
210
|
type: z.ZodNativeEnum<typeof ConnectorType>;
|
|
215
211
|
isDemo: z.ZodOptional<z.ZodBoolean>;
|
|
216
212
|
extraInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
213
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
218
|
-
}
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
215
|
type: ConnectorType;
|
|
220
216
|
name: {
|
|
221
217
|
en: string;
|
|
@@ -879,10 +875,10 @@ export declare const connectorResponseGuard: z.ZodObject<z.objectUtil.extendShap
|
|
|
879
875
|
extraInfo?: Record<string, unknown> | undefined;
|
|
880
876
|
}>;
|
|
881
877
|
export type ConnectorResponse = z.infer<typeof connectorResponseGuard>;
|
|
882
|
-
export declare const connectorFactoryResponseGuard: z.ZodObject<
|
|
878
|
+
export declare const connectorFactoryResponseGuard: z.ZodObject<{
|
|
883
879
|
type: z.ZodNativeEnum<typeof ConnectorType>;
|
|
884
880
|
isDemo: z.ZodOptional<z.ZodBoolean>;
|
|
885
|
-
}
|
|
881
|
+
} & {
|
|
886
882
|
id: z.ZodString;
|
|
887
883
|
target: z.ZodString;
|
|
888
884
|
name: z.ZodType<import("@logto/connector-kit").I18nPhrases, z.ZodTypeDef, import("@logto/connector-kit").I18nPhrases>;
|
|
@@ -1069,10 +1065,10 @@ export declare const connectorFactoryResponseGuard: z.ZodObject<z.objectUtil.ext
|
|
|
1069
1065
|
}>]>, "many">>;
|
|
1070
1066
|
customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1071
1067
|
fromEmail: z.ZodOptional<z.ZodString>;
|
|
1072
|
-
}
|
|
1068
|
+
} & {
|
|
1073
1069
|
platform: z.ZodNullable<z.ZodNativeEnum<typeof import("@logto/connector-kit").ConnectorPlatform>>;
|
|
1074
1070
|
isStandard: z.ZodOptional<z.ZodBoolean>;
|
|
1075
|
-
}
|
|
1071
|
+
}, "strip", z.ZodTypeAny, {
|
|
1076
1072
|
type: ConnectorType;
|
|
1077
1073
|
name: {
|
|
1078
1074
|
en: string;
|
package/lib/types/consent.d.ts
CHANGED
|
@@ -268,16 +268,16 @@ export declare const applicationSignInExperienceGuard: z.ZodObject<Pick<{
|
|
|
268
268
|
privacyPolicyUrl: string | null;
|
|
269
269
|
}>;
|
|
270
270
|
export declare const missingResourceScopesGuard: z.ZodObject<{
|
|
271
|
-
resource: z.ZodObject<
|
|
271
|
+
resource: z.ZodObject<Pick<{
|
|
272
272
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
273
273
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
274
274
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
275
275
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
276
276
|
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
277
277
|
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
278
|
-
}, "name" | "indicator"
|
|
278
|
+
}, "name" | "indicator"> & {
|
|
279
279
|
id: z.ZodString;
|
|
280
|
-
}
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
281
|
name: string;
|
|
282
282
|
id: string;
|
|
283
283
|
indicator: string;
|
|
@@ -332,7 +332,7 @@ export type MissingResourceScopes = z.infer<typeof missingResourceScopesGuard>;
|
|
|
332
332
|
/**
|
|
333
333
|
* Define the public organization info that can be exposed to the public. e.g. on the user consent page.
|
|
334
334
|
*/
|
|
335
|
-
export declare const publicOrganizationGuard: z.ZodObject<
|
|
335
|
+
export declare const publicOrganizationGuard: z.ZodObject<Pick<{
|
|
336
336
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
337
337
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
338
338
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -351,18 +351,18 @@ export declare const publicOrganizationGuard: z.ZodObject<z.objectUtil.extendSha
|
|
|
351
351
|
darkFavicon?: string | undefined;
|
|
352
352
|
}>;
|
|
353
353
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
354
|
-
}, "name" | "id"
|
|
354
|
+
}, "name" | "id"> & {
|
|
355
355
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
356
|
-
resource: z.ZodObject<
|
|
356
|
+
resource: z.ZodObject<Pick<{
|
|
357
357
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
358
358
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
359
359
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
360
360
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
361
361
|
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
362
362
|
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
363
|
-
}, "name" | "indicator"
|
|
363
|
+
}, "name" | "indicator"> & {
|
|
364
364
|
id: z.ZodString;
|
|
365
|
-
}
|
|
365
|
+
}, "strip", z.ZodTypeAny, {
|
|
366
366
|
name: string;
|
|
367
367
|
id: string;
|
|
368
368
|
indicator: string;
|
|
@@ -410,7 +410,7 @@ export declare const publicOrganizationGuard: z.ZodObject<z.objectUtil.extendSha
|
|
|
410
410
|
description: string | null;
|
|
411
411
|
}[];
|
|
412
412
|
}>, "many">>;
|
|
413
|
-
}
|
|
413
|
+
}, "strip", z.ZodTypeAny, {
|
|
414
414
|
name: string;
|
|
415
415
|
id: string;
|
|
416
416
|
missingResourceScopes?: {
|
|
@@ -443,7 +443,7 @@ export declare const publicOrganizationGuard: z.ZodObject<z.objectUtil.extendSha
|
|
|
443
443
|
}>;
|
|
444
444
|
export type PublicOrganization = z.infer<typeof publicOrganizationGuard>;
|
|
445
445
|
export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
446
|
-
application: z.ZodObject<
|
|
446
|
+
application: z.ZodObject<Pick<{
|
|
447
447
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
448
448
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
449
449
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -528,7 +528,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
528
528
|
customData: z.ZodType<import("@withtyped/server").JsonObject, z.ZodTypeDef, import("@withtyped/server").JsonObject>;
|
|
529
529
|
isThirdParty: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
530
530
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
531
|
-
}, "name" | "id"
|
|
531
|
+
}, "name" | "id"> & {
|
|
532
532
|
displayName: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
533
533
|
branding: z.ZodOptional<z.ZodType<{
|
|
534
534
|
logoUrl?: string | undefined;
|
|
@@ -543,7 +543,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
543
543
|
}>>;
|
|
544
544
|
termsOfUseUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
545
545
|
privacyPolicyUrl: z.ZodOptional<z.ZodType<string | null, z.ZodTypeDef, string | null>>;
|
|
546
|
-
}
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
547
|
name: string;
|
|
548
548
|
id: string;
|
|
549
549
|
displayName?: string | null | undefined;
|
|
@@ -699,7 +699,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
699
699
|
primaryEmail: string | null;
|
|
700
700
|
primaryPhone: string | null;
|
|
701
701
|
}>;
|
|
702
|
-
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<
|
|
702
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
|
|
703
703
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
704
704
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
705
705
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -718,18 +718,18 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
718
718
|
darkFavicon?: string | undefined;
|
|
719
719
|
}>;
|
|
720
720
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
721
|
-
}, "name" | "id"
|
|
721
|
+
}, "name" | "id"> & {
|
|
722
722
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
723
|
-
resource: z.ZodObject<
|
|
723
|
+
resource: z.ZodObject<Pick<{
|
|
724
724
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
725
725
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
726
726
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
727
727
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
728
728
|
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
729
729
|
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
730
|
-
}, "name" | "indicator"
|
|
730
|
+
}, "name" | "indicator"> & {
|
|
731
731
|
id: z.ZodString;
|
|
732
|
-
}
|
|
732
|
+
}, "strip", z.ZodTypeAny, {
|
|
733
733
|
name: string;
|
|
734
734
|
id: string;
|
|
735
735
|
indicator: string;
|
|
@@ -777,7 +777,7 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
777
777
|
description: string | null;
|
|
778
778
|
}[];
|
|
779
779
|
}>, "many">>;
|
|
780
|
-
}
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
781
|
name: string;
|
|
782
782
|
id: string;
|
|
783
783
|
missingResourceScopes?: {
|
|
@@ -810,16 +810,16 @@ export declare const consentInfoResponseGuard: z.ZodObject<{
|
|
|
810
810
|
}>, "many">>;
|
|
811
811
|
missingOIDCScope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
812
812
|
missingResourceScopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
813
|
-
resource: z.ZodObject<
|
|
813
|
+
resource: z.ZodObject<Pick<{
|
|
814
814
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
815
815
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
816
816
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
817
817
|
indicator: z.ZodType<string, z.ZodTypeDef, string>;
|
|
818
818
|
isDefault: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
819
819
|
accessTokenTtl: z.ZodType<number, z.ZodTypeDef, number>;
|
|
820
|
-
}, "name" | "indicator"
|
|
820
|
+
}, "name" | "indicator"> & {
|
|
821
821
|
id: z.ZodString;
|
|
822
|
-
}
|
|
822
|
+
}, "strip", z.ZodTypeAny, {
|
|
823
823
|
name: string;
|
|
824
824
|
id: string;
|
|
825
825
|
indicator: string;
|
package/lib/types/hook.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const hookExecutionStatsGuard: z.ZodObject<{
|
|
|
14
14
|
requestCount: number;
|
|
15
15
|
}>;
|
|
16
16
|
export type HookExecutionStats = z.infer<typeof hookExecutionStatsGuard>;
|
|
17
|
-
export declare const hookResponseGuard: z.ZodObject<
|
|
17
|
+
export declare const hookResponseGuard: z.ZodObject<{
|
|
18
18
|
tenantId: z.ZodType<string, z.ZodTypeDef, string>;
|
|
19
19
|
id: z.ZodType<string, z.ZodTypeDef, string>;
|
|
20
20
|
name: z.ZodType<string, z.ZodTypeDef, string>;
|
|
@@ -32,7 +32,7 @@ export declare const hookResponseGuard: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
32
32
|
signingKey: z.ZodType<string, z.ZodTypeDef, string>;
|
|
33
33
|
enabled: z.ZodType<boolean, z.ZodTypeDef, boolean>;
|
|
34
34
|
createdAt: z.ZodType<number, z.ZodTypeDef, number>;
|
|
35
|
-
}
|
|
35
|
+
} & {
|
|
36
36
|
executionStats: z.ZodObject<{
|
|
37
37
|
successCount: z.ZodNumber;
|
|
38
38
|
requestCount: z.ZodNumber;
|
|
@@ -43,7 +43,7 @@ export declare const hookResponseGuard: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
43
43
|
successCount: number;
|
|
44
44
|
requestCount: number;
|
|
45
45
|
}>;
|
|
46
|
-
}
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
name: string;
|
|
48
48
|
id: string;
|
|
49
49
|
tenantId: string;
|
|
@@ -698,7 +698,7 @@ export declare const totpVerificationPayloadGuard: z.ZodObject<{
|
|
|
698
698
|
}>;
|
|
699
699
|
/** @deprecated Legacy interaction API use only */
|
|
700
700
|
export type TotpVerificationPayload = z.infer<typeof totpVerificationPayloadGuard>;
|
|
701
|
-
export declare const webAuthnVerificationPayloadGuard: z.ZodObject<
|
|
701
|
+
export declare const webAuthnVerificationPayloadGuard: z.ZodObject<Omit<{
|
|
702
702
|
type: z.ZodLiteral<MfaFactor.WebAuthn>;
|
|
703
703
|
id: z.ZodString;
|
|
704
704
|
rawId: z.ZodString;
|
|
@@ -753,7 +753,7 @@ export declare const webAuthnVerificationPayloadGuard: z.ZodObject<z.objectUtil.
|
|
|
753
753
|
} | undefined;
|
|
754
754
|
hmacCreateSecret?: boolean | undefined;
|
|
755
755
|
}>;
|
|
756
|
-
}, "response"
|
|
756
|
+
}, "response"> & {
|
|
757
757
|
response: z.ZodObject<{
|
|
758
758
|
clientDataJSON: z.ZodString;
|
|
759
759
|
authenticatorData: z.ZodString;
|
|
@@ -770,7 +770,7 @@ export declare const webAuthnVerificationPayloadGuard: z.ZodObject<z.objectUtil.
|
|
|
770
770
|
signature: string;
|
|
771
771
|
userHandle?: string | undefined;
|
|
772
772
|
}>;
|
|
773
|
-
}
|
|
773
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
774
|
type: MfaFactor.WebAuthn;
|
|
775
775
|
id: string;
|
|
776
776
|
rawId: string;
|
|
@@ -828,7 +828,7 @@ export declare const verifyMfaPayloadGuard: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
828
828
|
}, {
|
|
829
829
|
code: string;
|
|
830
830
|
type: MfaFactor.TOTP;
|
|
831
|
-
}>, z.ZodObject<
|
|
831
|
+
}>, z.ZodObject<Omit<{
|
|
832
832
|
type: z.ZodLiteral<MfaFactor.WebAuthn>;
|
|
833
833
|
id: z.ZodString;
|
|
834
834
|
rawId: z.ZodString;
|
|
@@ -883,7 +883,7 @@ export declare const verifyMfaPayloadGuard: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
883
883
|
} | undefined;
|
|
884
884
|
hmacCreateSecret?: boolean | undefined;
|
|
885
885
|
}>;
|
|
886
|
-
}, "response"
|
|
886
|
+
}, "response"> & {
|
|
887
887
|
response: z.ZodObject<{
|
|
888
888
|
clientDataJSON: z.ZodString;
|
|
889
889
|
authenticatorData: z.ZodString;
|
|
@@ -900,7 +900,7 @@ export declare const verifyMfaPayloadGuard: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
900
900
|
signature: string;
|
|
901
901
|
userHandle?: string | undefined;
|
|
902
902
|
}>;
|
|
903
|
-
}
|
|
903
|
+
}, "strip", z.ZodTypeAny, {
|
|
904
904
|
type: MfaFactor.WebAuthn;
|
|
905
905
|
id: string;
|
|
906
906
|
rawId: string;
|