@authhero/adapter-interfaces 2.6.0 → 2.7.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/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +10850 -11234
- package/dist/adapter-interfaces.mjs +2599 -3401
- package/dist/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/adapters/ActionExecutions.d.ts +5 -0
- package/dist/types/adapters/ActionVersions.d.ts +20 -0
- package/dist/types/adapters/Actions.d.ts +12 -0
- package/dist/types/adapters/Analytics.d.ts +9 -0
- package/dist/types/adapters/AuthenticationMethods.d.ts +9 -0
- package/dist/types/adapters/Branding.d.ts +5 -0
- package/dist/types/adapters/Cache.d.ts +35 -0
- package/dist/types/adapters/ClientConnections.d.ts +26 -0
- package/dist/types/adapters/ClientGrants.d.ts +12 -0
- package/dist/types/adapters/ClientRegistrationTokens.d.ts +11 -0
- package/dist/types/adapters/Clients.d.ts +25 -0
- package/dist/types/adapters/CodeExecutor.d.ts +47 -0
- package/dist/types/adapters/Codes.d.ts +17 -0
- package/dist/types/adapters/Connections.d.ts +12 -0
- package/dist/types/adapters/CustomDomains.d.ts +9 -0
- package/dist/types/adapters/CustomText.d.ts +22 -0
- package/dist/types/adapters/EmailProviders.d.ts +7 -0
- package/dist/types/adapters/EmailService.d.ts +23 -0
- package/dist/types/adapters/EmailTemplates.d.ts +8 -0
- package/dist/types/adapters/Flows.d.ts +12 -0
- package/dist/types/adapters/Forms.d.ts +12 -0
- package/dist/types/adapters/Geo.d.ts +16 -0
- package/dist/types/adapters/HookCode.d.ts +7 -0
- package/dist/types/adapters/Hooks.d.ts +12 -0
- package/dist/types/adapters/Invites.d.ts +12 -0
- package/dist/types/adapters/Keys.d.ts +10 -0
- package/dist/types/adapters/LogStreams.d.ts +8 -0
- package/dist/types/adapters/LoginSessions.d.ts +7 -0
- package/dist/types/adapters/Logs.d.ts +11 -0
- package/dist/types/adapters/MigrationSources.d.ts +8 -0
- package/dist/types/adapters/OrganizationConnections.d.ts +8 -0
- package/dist/types/adapters/Organizations.d.ts +12 -0
- package/dist/types/adapters/Outbox.d.ts +59 -0
- package/dist/types/adapters/Passwords.d.ts +7 -0
- package/dist/types/adapters/PromptSettings.d.ts +5 -0
- package/dist/types/adapters/RateLimit.d.ts +27 -0
- package/dist/types/adapters/RefreshTokens.d.ts +36 -0
- package/dist/types/adapters/ResourceServers.d.ts +12 -0
- package/dist/types/adapters/RolePermissions.d.ts +7 -0
- package/dist/types/adapters/Roles.d.ts +13 -0
- package/dist/types/adapters/Sessions.d.ts +12 -0
- package/dist/types/adapters/SmsService.d.ts +13 -0
- package/dist/types/adapters/Stats.d.ts +15 -0
- package/dist/types/adapters/TenantSettings.d.ts +5 -0
- package/dist/types/adapters/Tenants.d.ts +21 -0
- package/dist/types/adapters/Themes.d.ts +7 -0
- package/dist/types/adapters/UniversalLoginTemplates.d.ts +8 -0
- package/dist/types/adapters/UserOrganizations.d.ts +27 -0
- package/dist/types/adapters/UserPermissions.d.ts +7 -0
- package/dist/types/adapters/UserRoles.d.ts +13 -0
- package/dist/types/adapters/Users.d.ts +20 -0
- package/dist/types/adapters/index.d.ts +217 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/types/Action.d.ts +87 -0
- package/dist/types/types/ActionExecution.d.ts +128 -0
- package/dist/types/types/ActionVersion.d.ts +44 -0
- package/dist/types/types/Analytics.d.ts +91 -0
- package/dist/types/types/AttackProtection.d.ts +79 -0
- package/dist/types/types/AuditEvent.d.ts +208 -0
- package/dist/types/types/AuthParams.d.ts +67 -0
- package/dist/types/types/AuthenticationMethod.d.ts +59 -0
- package/dist/types/types/BaseEntity.d.ts +5 -0
- package/dist/types/types/Branding.d.ts +24 -0
- package/dist/types/types/Client.d.ts +249 -0
- package/dist/types/types/ClientGrant.d.ts +61 -0
- package/dist/types/types/ClientRegistrationToken.d.ts +37 -0
- package/dist/types/types/Code.d.ts +68 -0
- package/dist/types/types/Connection.d.ts +470 -0
- package/dist/types/types/CustomDomain.d.ts +116 -0
- package/dist/types/types/CustomText.d.ts +81 -0
- package/dist/types/types/Device.d.ts +9 -0
- package/dist/types/types/EmailProvider.d.ts +9 -0
- package/dist/types/types/EmailTemplate.d.ts +41 -0
- package/dist/types/types/Flow.d.ts +267 -0
- package/dist/types/types/Flows.d.ts +572 -0
- package/dist/types/types/Forms.d.ts +4943 -0
- package/dist/types/types/Hook.d.ts +152 -0
- package/dist/types/types/HookCode.d.ts +15 -0
- package/dist/types/types/Identity.d.ts +36 -0
- package/dist/types/types/Invite.d.ts +50 -0
- package/dist/types/types/JWKS.d.ts +89 -0
- package/dist/types/types/ListParams.d.ts +14 -0
- package/dist/types/types/LogStream.d.ts +67 -0
- package/dist/types/types/LoginSession.d.ts +143 -0
- package/dist/types/types/Logs.d.ts +255 -0
- package/dist/types/types/MigrationSource.d.ts +58 -0
- package/dist/types/types/Organization.d.ts +77 -0
- package/dist/types/types/OrganizationConnection.d.ts +34 -0
- package/dist/types/types/Password.d.ts +25 -0
- package/dist/types/types/PromptSetting.d.ts +11 -0
- package/dist/types/types/RefreshTokens.d.ts +59 -0
- package/dist/types/types/ResourceServer.d.ts +124 -0
- package/dist/types/types/Role.d.ts +29 -0
- package/dist/types/types/RolePermission.d.ts +21 -0
- package/dist/types/types/Session.d.ts +43 -0
- package/dist/types/types/SigningKey.d.ts +22 -0
- package/dist/types/types/SmsProvider.d.ts +11 -0
- package/dist/types/types/Stats.d.ts +12 -0
- package/dist/types/types/Strategy.d.ts +21 -0
- package/dist/types/types/Tenant.d.ts +367 -0
- package/dist/types/types/TenantSettings.d.ts +96 -0
- package/dist/types/types/Theme.d.ts +341 -0
- package/dist/types/types/Token.d.ts +25 -0
- package/dist/types/types/User.d.ts +222 -0
- package/dist/types/types/UserOrganization.d.ts +14 -0
- package/dist/types/types/UserPermission.d.ts +46 -0
- package/dist/types/types/UserRole.d.ts +23 -0
- package/dist/types/types/auth0/Query.d.ts +8 -0
- package/dist/types/types/auth0/Totals.d.ts +13 -0
- package/dist/types/types/auth0/UserResponse.d.ts +46 -0
- package/dist/types/types/auth0/index.d.ts +3 -0
- package/dist/types/types/index.d.ts +53 -0
- package/dist/types/utils/connection-attributes.d.ts +25 -0
- package/dist/types/utils/guards.d.ts +1 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/passthrough.d.ts +111 -0
- package/dist/types/utils/user-id.d.ts +4 -0
- package/package.json +6 -8
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const customDomainInsertSchema: z.ZodObject<{
|
|
3
|
+
domain: z.ZodString;
|
|
4
|
+
custom_domain_id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
auth0_managed_certs: "auth0_managed_certs";
|
|
7
|
+
self_managed_certs: "self_managed_certs";
|
|
8
|
+
}>;
|
|
9
|
+
verification_method: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
txt: "txt";
|
|
11
|
+
}>>;
|
|
12
|
+
tls_policy: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
recommended: "recommended";
|
|
14
|
+
}>>;
|
|
15
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
null: "null";
|
|
17
|
+
"true-client-ip": "true-client-ip";
|
|
18
|
+
"cf-connecting-ip": "cf-connecting-ip";
|
|
19
|
+
"x-forwarded-for": "x-forwarded-for";
|
|
20
|
+
"x-azure-clientip": "x-azure-clientip";
|
|
21
|
+
}>>;
|
|
22
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type CustomDomainInsert = z.infer<typeof customDomainInsertSchema>;
|
|
25
|
+
export declare const verificationMethodsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
name: z.ZodLiteral<"txt">;
|
|
27
|
+
record: z.ZodString;
|
|
28
|
+
domain: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
name: z.ZodLiteral<"http">;
|
|
31
|
+
http_body: z.ZodString;
|
|
32
|
+
http_url: z.ZodString;
|
|
33
|
+
}, z.core.$strip>], "name">;
|
|
34
|
+
export type VerificationMethods = z.infer<typeof verificationMethodsSchema>;
|
|
35
|
+
export declare const customDomainSchema: z.ZodObject<{
|
|
36
|
+
domain: z.ZodString;
|
|
37
|
+
type: z.ZodEnum<{
|
|
38
|
+
auth0_managed_certs: "auth0_managed_certs";
|
|
39
|
+
self_managed_certs: "self_managed_certs";
|
|
40
|
+
}>;
|
|
41
|
+
verification_method: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
txt: "txt";
|
|
43
|
+
}>>;
|
|
44
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
null: "null";
|
|
46
|
+
"true-client-ip": "true-client-ip";
|
|
47
|
+
"cf-connecting-ip": "cf-connecting-ip";
|
|
48
|
+
"x-forwarded-for": "x-forwarded-for";
|
|
49
|
+
"x-azure-clientip": "x-azure-clientip";
|
|
50
|
+
}>>;
|
|
51
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52
|
+
custom_domain_id: z.ZodString;
|
|
53
|
+
primary: z.ZodBoolean;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
pending: "pending";
|
|
56
|
+
disabled: "disabled";
|
|
57
|
+
pending_verification: "pending_verification";
|
|
58
|
+
ready: "ready";
|
|
59
|
+
}>;
|
|
60
|
+
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
61
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
methods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
|
+
name: z.ZodLiteral<"txt">;
|
|
64
|
+
record: z.ZodString;
|
|
65
|
+
domain: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
name: z.ZodLiteral<"http">;
|
|
68
|
+
http_body: z.ZodString;
|
|
69
|
+
http_url: z.ZodString;
|
|
70
|
+
}, z.core.$strip>], "name">>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
tls_policy: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export default customDomainSchema;
|
|
75
|
+
export type CustomDomain = z.infer<typeof customDomainSchema>;
|
|
76
|
+
export declare const customDomainWithTenantIdSchema: z.ZodObject<{
|
|
77
|
+
domain: z.ZodString;
|
|
78
|
+
type: z.ZodEnum<{
|
|
79
|
+
auth0_managed_certs: "auth0_managed_certs";
|
|
80
|
+
self_managed_certs: "self_managed_certs";
|
|
81
|
+
}>;
|
|
82
|
+
verification_method: z.ZodOptional<z.ZodEnum<{
|
|
83
|
+
txt: "txt";
|
|
84
|
+
}>>;
|
|
85
|
+
custom_client_ip_header: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
null: "null";
|
|
87
|
+
"true-client-ip": "true-client-ip";
|
|
88
|
+
"cf-connecting-ip": "cf-connecting-ip";
|
|
89
|
+
"x-forwarded-for": "x-forwarded-for";
|
|
90
|
+
"x-azure-clientip": "x-azure-clientip";
|
|
91
|
+
}>>;
|
|
92
|
+
domain_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
93
|
+
custom_domain_id: z.ZodString;
|
|
94
|
+
primary: z.ZodBoolean;
|
|
95
|
+
status: z.ZodEnum<{
|
|
96
|
+
pending: "pending";
|
|
97
|
+
disabled: "disabled";
|
|
98
|
+
pending_verification: "pending_verification";
|
|
99
|
+
ready: "ready";
|
|
100
|
+
}>;
|
|
101
|
+
origin_domain_name: z.ZodOptional<z.ZodString>;
|
|
102
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
methods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
104
|
+
name: z.ZodLiteral<"txt">;
|
|
105
|
+
record: z.ZodString;
|
|
106
|
+
domain: z.ZodString;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
name: z.ZodLiteral<"http">;
|
|
109
|
+
http_body: z.ZodString;
|
|
110
|
+
http_url: z.ZodString;
|
|
111
|
+
}, z.core.$strip>], "name">>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
tls_policy: z.ZodOptional<z.ZodString>;
|
|
114
|
+
tenant_id: z.ZodString;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
/**
|
|
3
|
+
* Available prompt screens that can be customized
|
|
4
|
+
* Based on Auth0's prompt customization options
|
|
5
|
+
*/
|
|
6
|
+
export declare const promptScreenSchema: z.ZodEnum<{
|
|
7
|
+
status: "status";
|
|
8
|
+
signup: "signup";
|
|
9
|
+
organizations: "organizations";
|
|
10
|
+
mfa: "mfa";
|
|
11
|
+
login: "login";
|
|
12
|
+
"login-id": "login-id";
|
|
13
|
+
"login-password": "login-password";
|
|
14
|
+
"signup-id": "signup-id";
|
|
15
|
+
"signup-password": "signup-password";
|
|
16
|
+
"reset-password": "reset-password";
|
|
17
|
+
consent: "consent";
|
|
18
|
+
"mfa-push": "mfa-push";
|
|
19
|
+
"mfa-otp": "mfa-otp";
|
|
20
|
+
"mfa-voice": "mfa-voice";
|
|
21
|
+
"mfa-phone": "mfa-phone";
|
|
22
|
+
"mfa-webauthn": "mfa-webauthn";
|
|
23
|
+
"mfa-email": "mfa-email";
|
|
24
|
+
"mfa-recovery-code": "mfa-recovery-code";
|
|
25
|
+
"device-flow": "device-flow";
|
|
26
|
+
"email-verification": "email-verification";
|
|
27
|
+
"email-otp-challenge": "email-otp-challenge";
|
|
28
|
+
invitation: "invitation";
|
|
29
|
+
common: "common";
|
|
30
|
+
passkeys: "passkeys";
|
|
31
|
+
captcha: "captcha";
|
|
32
|
+
"custom-form": "custom-form";
|
|
33
|
+
"login-passwordless": "login-passwordless";
|
|
34
|
+
"mfa-login-options": "mfa-login-options";
|
|
35
|
+
}>;
|
|
36
|
+
export type PromptScreen = z.infer<typeof promptScreenSchema>;
|
|
37
|
+
/**
|
|
38
|
+
* Custom text for a specific prompt and language
|
|
39
|
+
* Top-level keys are screen names, values are key-value pairs of text overrides
|
|
40
|
+
* e.g. { "email-otp-challenge": { "buttonText": "Continue" } }
|
|
41
|
+
*/
|
|
42
|
+
export declare const customTextSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43
|
+
export type CustomText = z.infer<typeof customTextSchema>;
|
|
44
|
+
/**
|
|
45
|
+
* Custom text entry for storage
|
|
46
|
+
*/
|
|
47
|
+
export declare const customTextEntrySchema: z.ZodObject<{
|
|
48
|
+
prompt: z.ZodEnum<{
|
|
49
|
+
status: "status";
|
|
50
|
+
signup: "signup";
|
|
51
|
+
organizations: "organizations";
|
|
52
|
+
mfa: "mfa";
|
|
53
|
+
login: "login";
|
|
54
|
+
"login-id": "login-id";
|
|
55
|
+
"login-password": "login-password";
|
|
56
|
+
"signup-id": "signup-id";
|
|
57
|
+
"signup-password": "signup-password";
|
|
58
|
+
"reset-password": "reset-password";
|
|
59
|
+
consent: "consent";
|
|
60
|
+
"mfa-push": "mfa-push";
|
|
61
|
+
"mfa-otp": "mfa-otp";
|
|
62
|
+
"mfa-voice": "mfa-voice";
|
|
63
|
+
"mfa-phone": "mfa-phone";
|
|
64
|
+
"mfa-webauthn": "mfa-webauthn";
|
|
65
|
+
"mfa-email": "mfa-email";
|
|
66
|
+
"mfa-recovery-code": "mfa-recovery-code";
|
|
67
|
+
"device-flow": "device-flow";
|
|
68
|
+
"email-verification": "email-verification";
|
|
69
|
+
"email-otp-challenge": "email-otp-challenge";
|
|
70
|
+
invitation: "invitation";
|
|
71
|
+
common: "common";
|
|
72
|
+
passkeys: "passkeys";
|
|
73
|
+
captcha: "captcha";
|
|
74
|
+
"custom-form": "custom-form";
|
|
75
|
+
"login-passwordless": "login-passwordless";
|
|
76
|
+
"mfa-login-options": "mfa-login-options";
|
|
77
|
+
}>;
|
|
78
|
+
language: z.ZodString;
|
|
79
|
+
custom_text: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type CustomTextEntry = z.infer<typeof customTextEntrySchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const deviceSchema: z.ZodObject<{
|
|
3
|
+
initial_user_agent: z.ZodString;
|
|
4
|
+
initial_ip: z.ZodString;
|
|
5
|
+
initial_asn: z.ZodString;
|
|
6
|
+
last_user_agent: z.ZodString;
|
|
7
|
+
last_ip: z.ZodString;
|
|
8
|
+
last_asn: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const emailProviderSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5
|
+
default_from_address: z.ZodOptional<z.ZodString>;
|
|
6
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
settings: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type EmailProvider = z.infer<typeof emailProviderSchema>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const emailTemplateNameSchema: z.ZodEnum<{
|
|
3
|
+
verify_email: "verify_email";
|
|
4
|
+
password_reset: "password_reset";
|
|
5
|
+
change_password: "change_password";
|
|
6
|
+
verify_email_by_code: "verify_email_by_code";
|
|
7
|
+
reset_email: "reset_email";
|
|
8
|
+
reset_email_by_code: "reset_email_by_code";
|
|
9
|
+
welcome_email: "welcome_email";
|
|
10
|
+
blocked_account: "blocked_account";
|
|
11
|
+
stolen_credentials: "stolen_credentials";
|
|
12
|
+
enrollment_email: "enrollment_email";
|
|
13
|
+
mfa_oob_code: "mfa_oob_code";
|
|
14
|
+
user_invitation: "user_invitation";
|
|
15
|
+
}>;
|
|
16
|
+
export type EmailTemplateName = z.infer<typeof emailTemplateNameSchema>;
|
|
17
|
+
export declare const emailTemplateSchema: z.ZodObject<{
|
|
18
|
+
template: z.ZodEnum<{
|
|
19
|
+
verify_email: "verify_email";
|
|
20
|
+
password_reset: "password_reset";
|
|
21
|
+
change_password: "change_password";
|
|
22
|
+
verify_email_by_code: "verify_email_by_code";
|
|
23
|
+
reset_email: "reset_email";
|
|
24
|
+
reset_email_by_code: "reset_email_by_code";
|
|
25
|
+
welcome_email: "welcome_email";
|
|
26
|
+
blocked_account: "blocked_account";
|
|
27
|
+
stolen_credentials: "stolen_credentials";
|
|
28
|
+
enrollment_email: "enrollment_email";
|
|
29
|
+
mfa_oob_code: "mfa_oob_code";
|
|
30
|
+
user_invitation: "user_invitation";
|
|
31
|
+
}>;
|
|
32
|
+
body: z.ZodString;
|
|
33
|
+
from: z.ZodString;
|
|
34
|
+
subject: z.ZodString;
|
|
35
|
+
syntax: z.ZodDefault<z.ZodLiteral<"liquid">>;
|
|
36
|
+
resultUrl: z.ZodOptional<z.ZodString>;
|
|
37
|
+
urlLifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
includeEmailInRedirect: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type EmailTemplate = z.infer<typeof emailTemplateSchema>;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
/**
|
|
3
|
+
* Flow action types supported by the system (Auth0 compatible)
|
|
4
|
+
* For now we support AUTH0, EMAIL, and REDIRECT types
|
|
5
|
+
*/
|
|
6
|
+
export declare const FlowActionTypeEnum: z.ZodEnum<{
|
|
7
|
+
AUTH0: "AUTH0";
|
|
8
|
+
EMAIL: "EMAIL";
|
|
9
|
+
REDIRECT: "REDIRECT";
|
|
10
|
+
}>;
|
|
11
|
+
export type FlowActionType = z.infer<typeof FlowActionTypeEnum>;
|
|
12
|
+
/**
|
|
13
|
+
* AUTH0 action operations
|
|
14
|
+
*/
|
|
15
|
+
export declare const Auth0ActionEnum: z.ZodEnum<{
|
|
16
|
+
CREATE_USER: "CREATE_USER";
|
|
17
|
+
GET_USER: "GET_USER";
|
|
18
|
+
UPDATE_USER: "UPDATE_USER";
|
|
19
|
+
SEND_REQUEST: "SEND_REQUEST";
|
|
20
|
+
SEND_EMAIL: "SEND_EMAIL";
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* EMAIL action operations
|
|
24
|
+
*/
|
|
25
|
+
export declare const EmailActionEnum: z.ZodEnum<{
|
|
26
|
+
VERIFY_EMAIL: "VERIFY_EMAIL";
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Email verification rules schema
|
|
30
|
+
*/
|
|
31
|
+
export declare const emailVerificationRulesSchema: z.ZodObject<{
|
|
32
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type EmailVerificationRules = z.infer<typeof emailVerificationRulesSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* AUTH0 UPDATE_USER action step
|
|
42
|
+
*/
|
|
43
|
+
export declare const auth0UpdateUserActionSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
46
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
47
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
48
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
params: z.ZodObject<{
|
|
51
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
user_id: z.ZodString;
|
|
53
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type Auth0UpdateUserAction = z.infer<typeof auth0UpdateUserActionSchema>;
|
|
57
|
+
/**
|
|
58
|
+
* EMAIL VERIFY_EMAIL action step
|
|
59
|
+
*/
|
|
60
|
+
export declare const emailVerifyActionSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
63
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
64
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
65
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
params: z.ZodObject<{
|
|
68
|
+
email: z.ZodString;
|
|
69
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
71
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type EmailVerifyAction = z.infer<typeof emailVerifyActionSchema>;
|
|
80
|
+
/**
|
|
81
|
+
* Pre-defined redirect targets
|
|
82
|
+
*/
|
|
83
|
+
export declare const RedirectTargetEnum: z.ZodEnum<{
|
|
84
|
+
custom: "custom";
|
|
85
|
+
"change-email": "change-email";
|
|
86
|
+
account: "account";
|
|
87
|
+
}>;
|
|
88
|
+
export type RedirectTarget = z.infer<typeof RedirectTargetEnum>;
|
|
89
|
+
/**
|
|
90
|
+
* REDIRECT action step - redirects user to a predefined or custom URL
|
|
91
|
+
*/
|
|
92
|
+
export declare const redirectActionSchema: z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
95
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
96
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
97
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
params: z.ZodObject<{
|
|
100
|
+
target: z.ZodEnum<{
|
|
101
|
+
custom: "custom";
|
|
102
|
+
"change-email": "change-email";
|
|
103
|
+
account: "account";
|
|
104
|
+
}>;
|
|
105
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type RedirectAction = z.infer<typeof redirectActionSchema>;
|
|
109
|
+
/**
|
|
110
|
+
* Union of all supported action steps
|
|
111
|
+
*/
|
|
112
|
+
export declare const flowActionStepSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
115
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
116
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
117
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
params: z.ZodObject<{
|
|
120
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
121
|
+
user_id: z.ZodString;
|
|
122
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
127
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
128
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
129
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
params: z.ZodObject<{
|
|
132
|
+
email: z.ZodString;
|
|
133
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
145
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
146
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
147
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
params: z.ZodObject<{
|
|
150
|
+
target: z.ZodEnum<{
|
|
151
|
+
custom: "custom";
|
|
152
|
+
"change-email": "change-email";
|
|
153
|
+
account: "account";
|
|
154
|
+
}>;
|
|
155
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
}, z.core.$strip>]>;
|
|
158
|
+
export type FlowActionStep = z.infer<typeof flowActionStepSchema>;
|
|
159
|
+
/**
|
|
160
|
+
* Schema for creating a flow
|
|
161
|
+
*/
|
|
162
|
+
export declare const flowInsertSchema: z.ZodObject<{
|
|
163
|
+
name: z.ZodString;
|
|
164
|
+
actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
167
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
168
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
169
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
params: z.ZodObject<{
|
|
172
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
173
|
+
user_id: z.ZodString;
|
|
174
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
179
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
180
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
181
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
182
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
params: z.ZodObject<{
|
|
184
|
+
email: z.ZodString;
|
|
185
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
197
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
198
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
199
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
params: z.ZodObject<{
|
|
202
|
+
target: z.ZodEnum<{
|
|
203
|
+
custom: "custom";
|
|
204
|
+
"change-email": "change-email";
|
|
205
|
+
account: "account";
|
|
206
|
+
}>;
|
|
207
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>]>>>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type FlowInsert = z.infer<typeof flowInsertSchema>;
|
|
212
|
+
/**
|
|
213
|
+
* Full flow schema including system fields
|
|
214
|
+
*/
|
|
215
|
+
export declare const flowSchema: z.ZodObject<{
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
218
|
+
id: z.ZodString;
|
|
219
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
220
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
221
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
222
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
params: z.ZodObject<{
|
|
225
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
226
|
+
user_id: z.ZodString;
|
|
227
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
232
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
233
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
234
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
params: z.ZodObject<{
|
|
237
|
+
email: z.ZodString;
|
|
238
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
239
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
244
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
+
id: z.ZodString;
|
|
249
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
250
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
251
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
252
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
params: z.ZodObject<{
|
|
255
|
+
target: z.ZodEnum<{
|
|
256
|
+
custom: "custom";
|
|
257
|
+
"change-email": "change-email";
|
|
258
|
+
account: "account";
|
|
259
|
+
}>;
|
|
260
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
}, z.core.$strip>]>>>>;
|
|
263
|
+
created_at: z.ZodString;
|
|
264
|
+
updated_at: z.ZodString;
|
|
265
|
+
id: z.ZodString;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
export type Flow = z.infer<typeof flowSchema>;
|