@authhero/adapter-interfaces 2.5.0 → 2.6.1

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 (122) hide show
  1. package/dist/adapter-interfaces.cjs +1 -1
  2. package/dist/adapter-interfaces.d.ts +10911 -52339
  3. package/dist/adapter-interfaces.mjs +189 -211
  4. package/dist/tsconfig.types.tsbuildinfo +1 -0
  5. package/dist/types/adapters/ActionExecutions.d.ts +5 -0
  6. package/dist/types/adapters/ActionVersions.d.ts +20 -0
  7. package/dist/types/adapters/Actions.d.ts +12 -0
  8. package/dist/types/adapters/Analytics.d.ts +9 -0
  9. package/dist/types/adapters/AuthenticationMethods.d.ts +9 -0
  10. package/dist/types/adapters/Branding.d.ts +5 -0
  11. package/dist/types/adapters/Cache.d.ts +35 -0
  12. package/dist/types/adapters/ClientConnections.d.ts +26 -0
  13. package/dist/types/adapters/ClientGrants.d.ts +12 -0
  14. package/dist/types/adapters/ClientRegistrationTokens.d.ts +11 -0
  15. package/dist/types/adapters/Clients.d.ts +25 -0
  16. package/dist/types/adapters/CodeExecutor.d.ts +47 -0
  17. package/dist/types/adapters/Codes.d.ts +17 -0
  18. package/dist/types/adapters/Connections.d.ts +12 -0
  19. package/dist/types/adapters/CustomDomains.d.ts +9 -0
  20. package/dist/types/adapters/CustomText.d.ts +22 -0
  21. package/dist/types/adapters/EmailProviders.d.ts +7 -0
  22. package/dist/types/adapters/EmailService.d.ts +14 -0
  23. package/dist/types/adapters/EmailTemplates.d.ts +8 -0
  24. package/dist/types/adapters/Flows.d.ts +12 -0
  25. package/dist/types/adapters/Forms.d.ts +12 -0
  26. package/dist/types/adapters/Geo.d.ts +16 -0
  27. package/dist/types/adapters/HookCode.d.ts +7 -0
  28. package/dist/types/adapters/Hooks.d.ts +12 -0
  29. package/dist/types/adapters/Invites.d.ts +12 -0
  30. package/dist/types/adapters/Keys.d.ts +10 -0
  31. package/dist/types/adapters/LogStreams.d.ts +8 -0
  32. package/dist/types/adapters/LoginSessions.d.ts +7 -0
  33. package/dist/types/adapters/Logs.d.ts +11 -0
  34. package/dist/types/adapters/MigrationSources.d.ts +8 -0
  35. package/dist/types/adapters/OrganizationConnections.d.ts +8 -0
  36. package/dist/types/adapters/Organizations.d.ts +12 -0
  37. package/dist/types/adapters/Outbox.d.ts +59 -0
  38. package/dist/types/adapters/Passwords.d.ts +7 -0
  39. package/dist/types/adapters/PromptSettings.d.ts +5 -0
  40. package/dist/types/adapters/RateLimit.d.ts +27 -0
  41. package/dist/types/adapters/RefreshTokens.d.ts +36 -0
  42. package/dist/types/adapters/ResourceServers.d.ts +12 -0
  43. package/dist/types/adapters/RolePermissions.d.ts +7 -0
  44. package/dist/types/adapters/Roles.d.ts +13 -0
  45. package/dist/types/adapters/Sessions.d.ts +12 -0
  46. package/dist/types/adapters/SmsService.d.ts +11 -0
  47. package/dist/types/adapters/Stats.d.ts +15 -0
  48. package/dist/types/adapters/TenantSettings.d.ts +5 -0
  49. package/dist/types/adapters/Tenants.d.ts +21 -0
  50. package/dist/types/adapters/Themes.d.ts +7 -0
  51. package/dist/types/adapters/UniversalLoginTemplates.d.ts +8 -0
  52. package/dist/types/adapters/UserOrganizations.d.ts +27 -0
  53. package/dist/types/adapters/UserPermissions.d.ts +7 -0
  54. package/dist/types/adapters/UserRoles.d.ts +13 -0
  55. package/dist/types/adapters/Users.d.ts +20 -0
  56. package/dist/types/adapters/index.d.ts +217 -0
  57. package/dist/types/index.d.ts +4 -0
  58. package/dist/types/types/Action.d.ts +87 -0
  59. package/dist/types/types/ActionExecution.d.ts +128 -0
  60. package/dist/types/types/ActionVersion.d.ts +44 -0
  61. package/dist/types/types/Analytics.d.ts +91 -0
  62. package/dist/types/types/AttackProtection.d.ts +79 -0
  63. package/dist/types/types/AuditEvent.d.ts +208 -0
  64. package/dist/types/types/AuthParams.d.ts +67 -0
  65. package/dist/types/types/AuthenticationMethod.d.ts +59 -0
  66. package/dist/types/types/BaseEntity.d.ts +5 -0
  67. package/dist/types/types/Branding.d.ts +24 -0
  68. package/dist/types/types/Client.d.ts +249 -0
  69. package/dist/types/types/ClientGrant.d.ts +61 -0
  70. package/dist/types/types/ClientRegistrationToken.d.ts +37 -0
  71. package/dist/types/types/Code.d.ts +68 -0
  72. package/dist/types/types/Connection.d.ts +470 -0
  73. package/dist/types/types/CustomDomain.d.ts +116 -0
  74. package/dist/types/types/CustomText.d.ts +81 -0
  75. package/dist/types/types/Device.d.ts +9 -0
  76. package/dist/types/types/EmailProvider.d.ts +9 -0
  77. package/dist/types/types/EmailTemplate.d.ts +41 -0
  78. package/dist/types/types/Flow.d.ts +267 -0
  79. package/dist/types/types/Flows.d.ts +572 -0
  80. package/dist/types/types/Forms.d.ts +4943 -0
  81. package/dist/types/types/Hook.d.ts +152 -0
  82. package/dist/types/types/HookCode.d.ts +15 -0
  83. package/dist/types/types/Identity.d.ts +36 -0
  84. package/dist/types/types/Invite.d.ts +50 -0
  85. package/dist/types/types/JWKS.d.ts +89 -0
  86. package/dist/types/types/ListParams.d.ts +14 -0
  87. package/dist/types/types/LogStream.d.ts +67 -0
  88. package/dist/types/types/LoginSession.d.ts +143 -0
  89. package/dist/types/types/Logs.d.ts +255 -0
  90. package/dist/types/types/MigrationSource.d.ts +58 -0
  91. package/dist/types/types/Organization.d.ts +77 -0
  92. package/dist/types/types/OrganizationConnection.d.ts +34 -0
  93. package/dist/types/types/Password.d.ts +25 -0
  94. package/dist/types/types/PromptSetting.d.ts +11 -0
  95. package/dist/types/types/RefreshTokens.d.ts +59 -0
  96. package/dist/types/types/ResourceServer.d.ts +124 -0
  97. package/dist/types/types/Role.d.ts +29 -0
  98. package/dist/types/types/RolePermission.d.ts +21 -0
  99. package/dist/types/types/Session.d.ts +43 -0
  100. package/dist/types/types/SigningKey.d.ts +22 -0
  101. package/dist/types/types/SmsProvider.d.ts +11 -0
  102. package/dist/types/types/Stats.d.ts +12 -0
  103. package/dist/types/types/Strategy.d.ts +21 -0
  104. package/dist/types/types/Tenant.d.ts +367 -0
  105. package/dist/types/types/TenantSettings.d.ts +96 -0
  106. package/dist/types/types/Theme.d.ts +341 -0
  107. package/dist/types/types/Token.d.ts +25 -0
  108. package/dist/types/types/User.d.ts +222 -0
  109. package/dist/types/types/UserOrganization.d.ts +14 -0
  110. package/dist/types/types/UserPermission.d.ts +46 -0
  111. package/dist/types/types/UserRole.d.ts +23 -0
  112. package/dist/types/types/auth0/Query.d.ts +8 -0
  113. package/dist/types/types/auth0/Totals.d.ts +13 -0
  114. package/dist/types/types/auth0/UserResponse.d.ts +46 -0
  115. package/dist/types/types/auth0/index.d.ts +3 -0
  116. package/dist/types/types/index.d.ts +53 -0
  117. package/dist/types/utils/connection-attributes.d.ts +25 -0
  118. package/dist/types/utils/guards.d.ts +1 -0
  119. package/dist/types/utils/index.d.ts +4 -0
  120. package/dist/types/utils/passthrough.d.ts +111 -0
  121. package/dist/types/utils/user-id.d.ts +4 -0
  122. package/package.json +5 -5
@@ -0,0 +1,572 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ /**
3
+ * Types for Auth0 Form Flow components
4
+ * Based on the actual structure used by Auth0 forms API
5
+ */
6
+ export declare const coordinatesSchema: z.ZodObject<{
7
+ x: z.ZodNumber;
8
+ y: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ export type Coordinates = z.infer<typeof coordinatesSchema>;
11
+ export declare enum ComponentType {
12
+ RICH_TEXT = "RICH_TEXT",
13
+ NEXT_BUTTON = "NEXT_BUTTON",
14
+ BACK_BUTTON = "BACK_BUTTON",
15
+ SUBMIT_BUTTON = "SUBMIT_BUTTON",
16
+ DIVIDER = "DIVIDER",
17
+ TEXT = "TEXT",
18
+ EMAIL = "EMAIL",
19
+ PASSWORD = "PASSWORD",
20
+ NUMBER = "NUMBER",
21
+ PHONE = "PHONE",
22
+ DATE = "DATE",
23
+ CHECKBOX = "CHECKBOX",
24
+ RADIO = "RADIO",
25
+ SELECT = "SELECT",
26
+ HIDDEN = "HIDDEN",
27
+ LEGAL = "LEGAL"
28
+ }
29
+ export declare enum ComponentCategory {
30
+ BLOCK = "BLOCK",
31
+ FIELD = "FIELD"
32
+ }
33
+ export declare const richTextComponentSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
36
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
37
+ config: z.ZodObject<{
38
+ content: z.ZodString;
39
+ }, z.core.$loose>;
40
+ }, z.core.$strip>;
41
+ export declare const buttonComponentSchema: z.ZodObject<{
42
+ id: z.ZodString;
43
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
44
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
45
+ config: z.ZodObject<{
46
+ text: z.ZodString;
47
+ }, z.core.$loose>;
48
+ }, z.core.$strip>;
49
+ export declare const legalComponentSchema: z.ZodObject<{
50
+ id: z.ZodString;
51
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
52
+ type: z.ZodLiteral<ComponentType.LEGAL>;
53
+ required: z.ZodOptional<z.ZodBoolean>;
54
+ sensitive: z.ZodOptional<z.ZodBoolean>;
55
+ config: z.ZodObject<{
56
+ text: z.ZodString;
57
+ }, z.core.$loose>;
58
+ }, z.core.$strip>;
59
+ export declare const fieldComponentSchema: z.ZodObject<{
60
+ id: z.ZodString;
61
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
62
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
63
+ required: z.ZodOptional<z.ZodBoolean>;
64
+ sensitive: z.ZodOptional<z.ZodBoolean>;
65
+ config: z.ZodObject<{
66
+ label: z.ZodOptional<z.ZodString>;
67
+ placeholder: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$loose>;
69
+ }, z.core.$strip>;
70
+ export declare const genericComponentSchema: z.ZodObject<{
71
+ id: z.ZodString;
72
+ category: z.ZodString;
73
+ type: z.ZodString;
74
+ }, z.core.$loose>;
75
+ export declare const componentSchema: z.ZodUnion<readonly [z.ZodObject<{
76
+ id: z.ZodString;
77
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
78
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
79
+ config: z.ZodObject<{
80
+ content: z.ZodString;
81
+ }, z.core.$loose>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ id: z.ZodString;
84
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
85
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
86
+ config: z.ZodObject<{
87
+ text: z.ZodString;
88
+ }, z.core.$loose>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ id: z.ZodString;
91
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
92
+ type: z.ZodLiteral<ComponentType.LEGAL>;
93
+ required: z.ZodOptional<z.ZodBoolean>;
94
+ sensitive: z.ZodOptional<z.ZodBoolean>;
95
+ config: z.ZodObject<{
96
+ text: z.ZodString;
97
+ }, z.core.$loose>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ id: z.ZodString;
100
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
101
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
102
+ required: z.ZodOptional<z.ZodBoolean>;
103
+ sensitive: z.ZodOptional<z.ZodBoolean>;
104
+ config: z.ZodObject<{
105
+ label: z.ZodOptional<z.ZodString>;
106
+ placeholder: z.ZodOptional<z.ZodString>;
107
+ }, z.core.$loose>;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ id: z.ZodString;
110
+ category: z.ZodString;
111
+ type: z.ZodString;
112
+ }, z.core.$loose>]>;
113
+ export type RichTextComponent = z.infer<typeof richTextComponentSchema>;
114
+ export type ButtonComponent = z.infer<typeof buttonComponentSchema>;
115
+ export type LegalComponent = z.infer<typeof legalComponentSchema>;
116
+ export type FieldComponent = z.infer<typeof fieldComponentSchema>;
117
+ export type GenericComponent = z.infer<typeof genericComponentSchema>;
118
+ export type Component = z.infer<typeof componentSchema>;
119
+ export declare enum NodeType {
120
+ STEP = "STEP",
121
+ FLOW = "FLOW",
122
+ CONDITION = "CONDITION",
123
+ ACTION = "ACTION"
124
+ }
125
+ export declare const stepNodeSchema: z.ZodObject<{
126
+ id: z.ZodString;
127
+ type: z.ZodLiteral<NodeType.STEP>;
128
+ coordinates: z.ZodObject<{
129
+ x: z.ZodNumber;
130
+ y: z.ZodNumber;
131
+ }, z.core.$strip>;
132
+ alias: z.ZodOptional<z.ZodString>;
133
+ config: z.ZodObject<{
134
+ components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
135
+ id: z.ZodString;
136
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
137
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
138
+ config: z.ZodObject<{
139
+ content: z.ZodString;
140
+ }, z.core.$loose>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ id: z.ZodString;
143
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
144
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
145
+ config: z.ZodObject<{
146
+ text: z.ZodString;
147
+ }, z.core.$loose>;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ id: z.ZodString;
150
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
151
+ type: z.ZodLiteral<ComponentType.LEGAL>;
152
+ required: z.ZodOptional<z.ZodBoolean>;
153
+ sensitive: z.ZodOptional<z.ZodBoolean>;
154
+ config: z.ZodObject<{
155
+ text: z.ZodString;
156
+ }, z.core.$loose>;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ id: z.ZodString;
159
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
160
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
161
+ required: z.ZodOptional<z.ZodBoolean>;
162
+ sensitive: z.ZodOptional<z.ZodBoolean>;
163
+ config: z.ZodObject<{
164
+ label: z.ZodOptional<z.ZodString>;
165
+ placeholder: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$loose>;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ id: z.ZodString;
169
+ category: z.ZodString;
170
+ type: z.ZodString;
171
+ }, z.core.$loose>]>>;
172
+ next_node: z.ZodString;
173
+ }, z.core.$loose>;
174
+ }, z.core.$strip>;
175
+ export declare const flowNodeSchema: z.ZodObject<{
176
+ id: z.ZodString;
177
+ type: z.ZodLiteral<NodeType.FLOW>;
178
+ coordinates: z.ZodObject<{
179
+ x: z.ZodNumber;
180
+ y: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ alias: z.ZodOptional<z.ZodString>;
183
+ config: z.ZodObject<{
184
+ flow_id: z.ZodString;
185
+ next_node: z.ZodString;
186
+ }, z.core.$strip>;
187
+ }, z.core.$strip>;
188
+ export declare const actionNodeSchema: z.ZodObject<{
189
+ id: z.ZodString;
190
+ type: z.ZodLiteral<NodeType.ACTION>;
191
+ coordinates: z.ZodObject<{
192
+ x: z.ZodNumber;
193
+ y: z.ZodNumber;
194
+ }, z.core.$strip>;
195
+ alias: z.ZodOptional<z.ZodString>;
196
+ config: z.ZodObject<{
197
+ action_type: z.ZodEnum<{
198
+ REDIRECT: "REDIRECT";
199
+ }>;
200
+ target: z.ZodEnum<{
201
+ custom: "custom";
202
+ "change-email": "change-email";
203
+ account: "account";
204
+ }>;
205
+ custom_url: z.ZodOptional<z.ZodString>;
206
+ next_node: z.ZodString;
207
+ }, z.core.$loose>;
208
+ }, z.core.$strip>;
209
+ export declare const genericNodeSchema: z.ZodObject<{
210
+ id: z.ZodString;
211
+ type: z.ZodString;
212
+ coordinates: z.ZodObject<{
213
+ x: z.ZodNumber;
214
+ y: z.ZodNumber;
215
+ }, z.core.$strip>;
216
+ }, z.core.$loose>;
217
+ export declare const nodeSchema: z.ZodUnion<readonly [z.ZodObject<{
218
+ id: z.ZodString;
219
+ type: z.ZodLiteral<NodeType.STEP>;
220
+ coordinates: z.ZodObject<{
221
+ x: z.ZodNumber;
222
+ y: z.ZodNumber;
223
+ }, z.core.$strip>;
224
+ alias: z.ZodOptional<z.ZodString>;
225
+ config: z.ZodObject<{
226
+ components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
227
+ id: z.ZodString;
228
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
229
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
230
+ config: z.ZodObject<{
231
+ content: z.ZodString;
232
+ }, z.core.$loose>;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ id: z.ZodString;
235
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
236
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
237
+ config: z.ZodObject<{
238
+ text: z.ZodString;
239
+ }, z.core.$loose>;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ id: z.ZodString;
242
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
243
+ type: z.ZodLiteral<ComponentType.LEGAL>;
244
+ required: z.ZodOptional<z.ZodBoolean>;
245
+ sensitive: z.ZodOptional<z.ZodBoolean>;
246
+ config: z.ZodObject<{
247
+ text: z.ZodString;
248
+ }, z.core.$loose>;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ id: z.ZodString;
251
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
252
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
253
+ required: z.ZodOptional<z.ZodBoolean>;
254
+ sensitive: z.ZodOptional<z.ZodBoolean>;
255
+ config: z.ZodObject<{
256
+ label: z.ZodOptional<z.ZodString>;
257
+ placeholder: z.ZodOptional<z.ZodString>;
258
+ }, z.core.$loose>;
259
+ }, z.core.$strip>, z.ZodObject<{
260
+ id: z.ZodString;
261
+ category: z.ZodString;
262
+ type: z.ZodString;
263
+ }, z.core.$loose>]>>;
264
+ next_node: z.ZodString;
265
+ }, z.core.$loose>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ id: z.ZodString;
268
+ type: z.ZodLiteral<NodeType.FLOW>;
269
+ coordinates: z.ZodObject<{
270
+ x: z.ZodNumber;
271
+ y: z.ZodNumber;
272
+ }, z.core.$strip>;
273
+ alias: z.ZodOptional<z.ZodString>;
274
+ config: z.ZodObject<{
275
+ flow_id: z.ZodString;
276
+ next_node: z.ZodString;
277
+ }, z.core.$strip>;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ id: z.ZodString;
280
+ type: z.ZodLiteral<NodeType.ACTION>;
281
+ coordinates: z.ZodObject<{
282
+ x: z.ZodNumber;
283
+ y: z.ZodNumber;
284
+ }, z.core.$strip>;
285
+ alias: z.ZodOptional<z.ZodString>;
286
+ config: z.ZodObject<{
287
+ action_type: z.ZodEnum<{
288
+ REDIRECT: "REDIRECT";
289
+ }>;
290
+ target: z.ZodEnum<{
291
+ custom: "custom";
292
+ "change-email": "change-email";
293
+ account: "account";
294
+ }>;
295
+ custom_url: z.ZodOptional<z.ZodString>;
296
+ next_node: z.ZodString;
297
+ }, z.core.$loose>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ id: z.ZodString;
300
+ type: z.ZodString;
301
+ coordinates: z.ZodObject<{
302
+ x: z.ZodNumber;
303
+ y: z.ZodNumber;
304
+ }, z.core.$strip>;
305
+ }, z.core.$loose>]>;
306
+ export type StepNode = z.infer<typeof stepNodeSchema>;
307
+ export type FlowNode = z.infer<typeof flowNodeSchema>;
308
+ export type ActionNode = z.infer<typeof actionNodeSchema>;
309
+ export type GenericNode = z.infer<typeof genericNodeSchema>;
310
+ export type Node = z.infer<typeof nodeSchema>;
311
+ export declare const startSchema: z.ZodObject<{
312
+ next_node: z.ZodString;
313
+ coordinates: z.ZodObject<{
314
+ x: z.ZodNumber;
315
+ y: z.ZodNumber;
316
+ }, z.core.$strip>;
317
+ }, z.core.$loose>;
318
+ export declare const endingSchema: z.ZodObject<{
319
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
320
+ coordinates: z.ZodObject<{
321
+ x: z.ZodNumber;
322
+ y: z.ZodNumber;
323
+ }, z.core.$strip>;
324
+ }, z.core.$loose>;
325
+ export type Start = z.infer<typeof startSchema>;
326
+ export type Ending = z.infer<typeof endingSchema>;
327
+ export declare const auth0FlowSchema: z.ZodObject<{
328
+ id: z.ZodString;
329
+ name: z.ZodString;
330
+ languages: z.ZodObject<{
331
+ primary: z.ZodString;
332
+ }, z.core.$loose>;
333
+ nodes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
334
+ id: z.ZodString;
335
+ type: z.ZodLiteral<NodeType.STEP>;
336
+ coordinates: z.ZodObject<{
337
+ x: z.ZodNumber;
338
+ y: z.ZodNumber;
339
+ }, z.core.$strip>;
340
+ alias: z.ZodOptional<z.ZodString>;
341
+ config: z.ZodObject<{
342
+ components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
343
+ id: z.ZodString;
344
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
345
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
346
+ config: z.ZodObject<{
347
+ content: z.ZodString;
348
+ }, z.core.$loose>;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ id: z.ZodString;
351
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
352
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
353
+ config: z.ZodObject<{
354
+ text: z.ZodString;
355
+ }, z.core.$loose>;
356
+ }, z.core.$strip>, z.ZodObject<{
357
+ id: z.ZodString;
358
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
359
+ type: z.ZodLiteral<ComponentType.LEGAL>;
360
+ required: z.ZodOptional<z.ZodBoolean>;
361
+ sensitive: z.ZodOptional<z.ZodBoolean>;
362
+ config: z.ZodObject<{
363
+ text: z.ZodString;
364
+ }, z.core.$loose>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ id: z.ZodString;
367
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
368
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
369
+ required: z.ZodOptional<z.ZodBoolean>;
370
+ sensitive: z.ZodOptional<z.ZodBoolean>;
371
+ config: z.ZodObject<{
372
+ label: z.ZodOptional<z.ZodString>;
373
+ placeholder: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$loose>;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ id: z.ZodString;
377
+ category: z.ZodString;
378
+ type: z.ZodString;
379
+ }, z.core.$loose>]>>;
380
+ next_node: z.ZodString;
381
+ }, z.core.$loose>;
382
+ }, z.core.$strip>, z.ZodObject<{
383
+ id: z.ZodString;
384
+ type: z.ZodLiteral<NodeType.FLOW>;
385
+ coordinates: z.ZodObject<{
386
+ x: z.ZodNumber;
387
+ y: z.ZodNumber;
388
+ }, z.core.$strip>;
389
+ alias: z.ZodOptional<z.ZodString>;
390
+ config: z.ZodObject<{
391
+ flow_id: z.ZodString;
392
+ next_node: z.ZodString;
393
+ }, z.core.$strip>;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ id: z.ZodString;
396
+ type: z.ZodLiteral<NodeType.ACTION>;
397
+ coordinates: z.ZodObject<{
398
+ x: z.ZodNumber;
399
+ y: z.ZodNumber;
400
+ }, z.core.$strip>;
401
+ alias: z.ZodOptional<z.ZodString>;
402
+ config: z.ZodObject<{
403
+ action_type: z.ZodEnum<{
404
+ REDIRECT: "REDIRECT";
405
+ }>;
406
+ target: z.ZodEnum<{
407
+ custom: "custom";
408
+ "change-email": "change-email";
409
+ account: "account";
410
+ }>;
411
+ custom_url: z.ZodOptional<z.ZodString>;
412
+ next_node: z.ZodString;
413
+ }, z.core.$loose>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ id: z.ZodString;
416
+ type: z.ZodString;
417
+ coordinates: z.ZodObject<{
418
+ x: z.ZodNumber;
419
+ y: z.ZodNumber;
420
+ }, z.core.$strip>;
421
+ }, z.core.$loose>]>>;
422
+ start: z.ZodObject<{
423
+ next_node: z.ZodString;
424
+ coordinates: z.ZodObject<{
425
+ x: z.ZodNumber;
426
+ y: z.ZodNumber;
427
+ }, z.core.$strip>;
428
+ }, z.core.$loose>;
429
+ ending: z.ZodObject<{
430
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
431
+ coordinates: z.ZodObject<{
432
+ x: z.ZodNumber;
433
+ y: z.ZodNumber;
434
+ }, z.core.$strip>;
435
+ }, z.core.$loose>;
436
+ created_at: z.ZodString;
437
+ updated_at: z.ZodString;
438
+ links: z.ZodObject<{
439
+ sdkSrc: z.ZodOptional<z.ZodString>;
440
+ sdk_src: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$loose>;
442
+ }, z.core.$loose>;
443
+ export type Auth0Flow = z.infer<typeof auth0FlowSchema>;
444
+ export declare const auth0FlowInsertSchema: z.ZodObject<{
445
+ name: z.ZodString;
446
+ start: z.ZodObject<{
447
+ next_node: z.ZodString;
448
+ coordinates: z.ZodObject<{
449
+ x: z.ZodNumber;
450
+ y: z.ZodNumber;
451
+ }, z.core.$strip>;
452
+ }, z.core.$loose>;
453
+ ending: z.ZodObject<{
454
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
455
+ coordinates: z.ZodObject<{
456
+ x: z.ZodNumber;
457
+ y: z.ZodNumber;
458
+ }, z.core.$strip>;
459
+ }, z.core.$loose>;
460
+ languages: z.ZodObject<{
461
+ primary: z.ZodString;
462
+ }, z.core.$loose>;
463
+ nodes: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
464
+ id: z.ZodString;
465
+ type: z.ZodLiteral<NodeType.STEP>;
466
+ coordinates: z.ZodObject<{
467
+ x: z.ZodNumber;
468
+ y: z.ZodNumber;
469
+ }, z.core.$strip>;
470
+ alias: z.ZodOptional<z.ZodString>;
471
+ config: z.ZodObject<{
472
+ components: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
473
+ id: z.ZodString;
474
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
475
+ type: z.ZodLiteral<ComponentType.RICH_TEXT>;
476
+ config: z.ZodObject<{
477
+ content: z.ZodString;
478
+ }, z.core.$loose>;
479
+ }, z.core.$strip>, z.ZodObject<{
480
+ id: z.ZodString;
481
+ category: z.ZodLiteral<ComponentCategory.BLOCK>;
482
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.NEXT_BUTTON>, z.ZodLiteral<ComponentType.BACK_BUTTON>, z.ZodLiteral<ComponentType.SUBMIT_BUTTON>]>;
483
+ config: z.ZodObject<{
484
+ text: z.ZodString;
485
+ }, z.core.$loose>;
486
+ }, z.core.$strip>, z.ZodObject<{
487
+ id: z.ZodString;
488
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
489
+ type: z.ZodLiteral<ComponentType.LEGAL>;
490
+ required: z.ZodOptional<z.ZodBoolean>;
491
+ sensitive: z.ZodOptional<z.ZodBoolean>;
492
+ config: z.ZodObject<{
493
+ text: z.ZodString;
494
+ }, z.core.$loose>;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ id: z.ZodString;
497
+ category: z.ZodLiteral<ComponentCategory.FIELD>;
498
+ type: z.ZodUnion<readonly [z.ZodLiteral<ComponentType.TEXT>, z.ZodLiteral<ComponentType.EMAIL>, z.ZodLiteral<ComponentType.PASSWORD>, z.ZodLiteral<ComponentType.NUMBER>, z.ZodLiteral<ComponentType.PHONE>, z.ZodLiteral<ComponentType.DATE>, z.ZodLiteral<ComponentType.CHECKBOX>, z.ZodLiteral<ComponentType.RADIO>, z.ZodLiteral<ComponentType.SELECT>, z.ZodLiteral<ComponentType.HIDDEN>]>;
499
+ required: z.ZodOptional<z.ZodBoolean>;
500
+ sensitive: z.ZodOptional<z.ZodBoolean>;
501
+ config: z.ZodObject<{
502
+ label: z.ZodOptional<z.ZodString>;
503
+ placeholder: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$loose>;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ id: z.ZodString;
507
+ category: z.ZodString;
508
+ type: z.ZodString;
509
+ }, z.core.$loose>]>>;
510
+ next_node: z.ZodString;
511
+ }, z.core.$loose>;
512
+ }, z.core.$strip>, z.ZodObject<{
513
+ id: z.ZodString;
514
+ type: z.ZodLiteral<NodeType.FLOW>;
515
+ coordinates: z.ZodObject<{
516
+ x: z.ZodNumber;
517
+ y: z.ZodNumber;
518
+ }, z.core.$strip>;
519
+ alias: z.ZodOptional<z.ZodString>;
520
+ config: z.ZodObject<{
521
+ flow_id: z.ZodString;
522
+ next_node: z.ZodString;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ id: z.ZodString;
526
+ type: z.ZodLiteral<NodeType.ACTION>;
527
+ coordinates: z.ZodObject<{
528
+ x: z.ZodNumber;
529
+ y: z.ZodNumber;
530
+ }, z.core.$strip>;
531
+ alias: z.ZodOptional<z.ZodString>;
532
+ config: z.ZodObject<{
533
+ action_type: z.ZodEnum<{
534
+ REDIRECT: "REDIRECT";
535
+ }>;
536
+ target: z.ZodEnum<{
537
+ custom: "custom";
538
+ "change-email": "change-email";
539
+ account: "account";
540
+ }>;
541
+ custom_url: z.ZodOptional<z.ZodString>;
542
+ next_node: z.ZodString;
543
+ }, z.core.$loose>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ id: z.ZodString;
546
+ type: z.ZodString;
547
+ coordinates: z.ZodObject<{
548
+ x: z.ZodNumber;
549
+ y: z.ZodNumber;
550
+ }, z.core.$strip>;
551
+ }, z.core.$loose>]>>;
552
+ links: z.ZodObject<{
553
+ sdkSrc: z.ZodOptional<z.ZodString>;
554
+ sdk_src: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$loose>;
556
+ }, z.core.$loose>;
557
+ export interface Auth0FlowInsert {
558
+ name: string;
559
+ languages: {
560
+ primary: string;
561
+ [key: string]: any;
562
+ };
563
+ nodes: Node[];
564
+ start: Start;
565
+ ending: Ending;
566
+ links?: {
567
+ sdkSrc?: string;
568
+ sdk_src?: string;
569
+ [key: string]: any;
570
+ };
571
+ [key: string]: any;
572
+ }