@authhero/kysely-adapter 10.67.0 → 10.69.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/README.md +49 -2
- package/dist/kysely-adapter.cjs +18 -18
- package/dist/kysely-adapter.d.ts +704 -116
- package/dist/kysely-adapter.mjs +2154 -2054
- package/package.json +7 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -3,6 +3,560 @@
|
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { Kysely } from 'kysely';
|
|
5
5
|
|
|
6
|
+
declare const flowInsertSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
|
|
9
|
+
z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
12
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
13
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
14
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
params: z.ZodObject<{
|
|
17
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
user_id: z.ZodString;
|
|
19
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
user_id: string;
|
|
22
|
+
changes: Record<string, any>;
|
|
23
|
+
connection_id?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
user_id: string;
|
|
26
|
+
changes: Record<string, any>;
|
|
27
|
+
connection_id?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
params: {
|
|
31
|
+
user_id: string;
|
|
32
|
+
changes: Record<string, any>;
|
|
33
|
+
connection_id?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
type: "AUTH0";
|
|
36
|
+
id: string;
|
|
37
|
+
action: "UPDATE_USER";
|
|
38
|
+
alias?: string | undefined;
|
|
39
|
+
allow_failure?: boolean | undefined;
|
|
40
|
+
mask_output?: boolean | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
params: {
|
|
43
|
+
user_id: string;
|
|
44
|
+
changes: Record<string, any>;
|
|
45
|
+
connection_id?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
type: "AUTH0";
|
|
48
|
+
id: string;
|
|
49
|
+
action: "UPDATE_USER";
|
|
50
|
+
alias?: string | undefined;
|
|
51
|
+
allow_failure?: boolean | undefined;
|
|
52
|
+
mask_output?: boolean | undefined;
|
|
53
|
+
}>,
|
|
54
|
+
z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
57
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
58
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
59
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
params: z.ZodObject<{
|
|
62
|
+
email: z.ZodString;
|
|
63
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
69
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
require_mx_record?: boolean | undefined;
|
|
72
|
+
block_aliases?: boolean | undefined;
|
|
73
|
+
block_free_emails?: boolean | undefined;
|
|
74
|
+
block_disposable_emails?: boolean | undefined;
|
|
75
|
+
blocklist?: string[] | undefined;
|
|
76
|
+
allowlist?: string[] | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
require_mx_record?: boolean | undefined;
|
|
79
|
+
block_aliases?: boolean | undefined;
|
|
80
|
+
block_free_emails?: boolean | undefined;
|
|
81
|
+
block_disposable_emails?: boolean | undefined;
|
|
82
|
+
blocklist?: string[] | undefined;
|
|
83
|
+
allowlist?: string[] | undefined;
|
|
84
|
+
}>>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
email: string;
|
|
87
|
+
rules?: {
|
|
88
|
+
require_mx_record?: boolean | undefined;
|
|
89
|
+
block_aliases?: boolean | undefined;
|
|
90
|
+
block_free_emails?: boolean | undefined;
|
|
91
|
+
block_disposable_emails?: boolean | undefined;
|
|
92
|
+
blocklist?: string[] | undefined;
|
|
93
|
+
allowlist?: string[] | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
email: string;
|
|
97
|
+
rules?: {
|
|
98
|
+
require_mx_record?: boolean | undefined;
|
|
99
|
+
block_aliases?: boolean | undefined;
|
|
100
|
+
block_free_emails?: boolean | undefined;
|
|
101
|
+
block_disposable_emails?: boolean | undefined;
|
|
102
|
+
blocklist?: string[] | undefined;
|
|
103
|
+
allowlist?: string[] | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
params: {
|
|
108
|
+
email: string;
|
|
109
|
+
rules?: {
|
|
110
|
+
require_mx_record?: boolean | undefined;
|
|
111
|
+
block_aliases?: boolean | undefined;
|
|
112
|
+
block_free_emails?: boolean | undefined;
|
|
113
|
+
block_disposable_emails?: boolean | undefined;
|
|
114
|
+
blocklist?: string[] | undefined;
|
|
115
|
+
allowlist?: string[] | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
};
|
|
118
|
+
type: "EMAIL";
|
|
119
|
+
id: string;
|
|
120
|
+
action: "VERIFY_EMAIL";
|
|
121
|
+
alias?: string | undefined;
|
|
122
|
+
allow_failure?: boolean | undefined;
|
|
123
|
+
mask_output?: boolean | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
params: {
|
|
126
|
+
email: string;
|
|
127
|
+
rules?: {
|
|
128
|
+
require_mx_record?: boolean | undefined;
|
|
129
|
+
block_aliases?: boolean | undefined;
|
|
130
|
+
block_free_emails?: boolean | undefined;
|
|
131
|
+
block_disposable_emails?: boolean | undefined;
|
|
132
|
+
blocklist?: string[] | undefined;
|
|
133
|
+
allowlist?: string[] | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
};
|
|
136
|
+
type: "EMAIL";
|
|
137
|
+
id: string;
|
|
138
|
+
action: "VERIFY_EMAIL";
|
|
139
|
+
alias?: string | undefined;
|
|
140
|
+
allow_failure?: boolean | undefined;
|
|
141
|
+
mask_output?: boolean | undefined;
|
|
142
|
+
}>,
|
|
143
|
+
z.ZodObject<{
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
146
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
147
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
148
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
params: z.ZodObject<{
|
|
151
|
+
target: z.ZodEnum<[
|
|
152
|
+
"change-email",
|
|
153
|
+
"account",
|
|
154
|
+
"custom"
|
|
155
|
+
]>;
|
|
156
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
target: "custom" | "change-email" | "account";
|
|
159
|
+
custom_url?: string | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
target: "custom" | "change-email" | "account";
|
|
162
|
+
custom_url?: string | undefined;
|
|
163
|
+
}>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
params: {
|
|
166
|
+
target: "custom" | "change-email" | "account";
|
|
167
|
+
custom_url?: string | undefined;
|
|
168
|
+
};
|
|
169
|
+
type: "REDIRECT";
|
|
170
|
+
id: string;
|
|
171
|
+
action: "REDIRECT_USER";
|
|
172
|
+
alias?: string | undefined;
|
|
173
|
+
allow_failure?: boolean | undefined;
|
|
174
|
+
mask_output?: boolean | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
params: {
|
|
177
|
+
target: "custom" | "change-email" | "account";
|
|
178
|
+
custom_url?: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
type: "REDIRECT";
|
|
181
|
+
id: string;
|
|
182
|
+
action: "REDIRECT_USER";
|
|
183
|
+
alias?: string | undefined;
|
|
184
|
+
allow_failure?: boolean | undefined;
|
|
185
|
+
mask_output?: boolean | undefined;
|
|
186
|
+
}>
|
|
187
|
+
]>, "many">>>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
name: string;
|
|
190
|
+
actions: ({
|
|
191
|
+
params: {
|
|
192
|
+
user_id: string;
|
|
193
|
+
changes: Record<string, any>;
|
|
194
|
+
connection_id?: string | undefined;
|
|
195
|
+
};
|
|
196
|
+
type: "AUTH0";
|
|
197
|
+
id: string;
|
|
198
|
+
action: "UPDATE_USER";
|
|
199
|
+
alias?: string | undefined;
|
|
200
|
+
allow_failure?: boolean | undefined;
|
|
201
|
+
mask_output?: boolean | undefined;
|
|
202
|
+
} | {
|
|
203
|
+
params: {
|
|
204
|
+
email: string;
|
|
205
|
+
rules?: {
|
|
206
|
+
require_mx_record?: boolean | undefined;
|
|
207
|
+
block_aliases?: boolean | undefined;
|
|
208
|
+
block_free_emails?: boolean | undefined;
|
|
209
|
+
block_disposable_emails?: boolean | undefined;
|
|
210
|
+
blocklist?: string[] | undefined;
|
|
211
|
+
allowlist?: string[] | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
};
|
|
214
|
+
type: "EMAIL";
|
|
215
|
+
id: string;
|
|
216
|
+
action: "VERIFY_EMAIL";
|
|
217
|
+
alias?: string | undefined;
|
|
218
|
+
allow_failure?: boolean | undefined;
|
|
219
|
+
mask_output?: boolean | undefined;
|
|
220
|
+
} | {
|
|
221
|
+
params: {
|
|
222
|
+
target: "custom" | "change-email" | "account";
|
|
223
|
+
custom_url?: string | undefined;
|
|
224
|
+
};
|
|
225
|
+
type: "REDIRECT";
|
|
226
|
+
id: string;
|
|
227
|
+
action: "REDIRECT_USER";
|
|
228
|
+
alias?: string | undefined;
|
|
229
|
+
allow_failure?: boolean | undefined;
|
|
230
|
+
mask_output?: boolean | undefined;
|
|
231
|
+
})[];
|
|
232
|
+
}, {
|
|
233
|
+
name: string;
|
|
234
|
+
actions?: ({
|
|
235
|
+
params: {
|
|
236
|
+
user_id: string;
|
|
237
|
+
changes: Record<string, any>;
|
|
238
|
+
connection_id?: string | undefined;
|
|
239
|
+
};
|
|
240
|
+
type: "AUTH0";
|
|
241
|
+
id: string;
|
|
242
|
+
action: "UPDATE_USER";
|
|
243
|
+
alias?: string | undefined;
|
|
244
|
+
allow_failure?: boolean | undefined;
|
|
245
|
+
mask_output?: boolean | undefined;
|
|
246
|
+
} | {
|
|
247
|
+
params: {
|
|
248
|
+
email: string;
|
|
249
|
+
rules?: {
|
|
250
|
+
require_mx_record?: boolean | undefined;
|
|
251
|
+
block_aliases?: boolean | undefined;
|
|
252
|
+
block_free_emails?: boolean | undefined;
|
|
253
|
+
block_disposable_emails?: boolean | undefined;
|
|
254
|
+
blocklist?: string[] | undefined;
|
|
255
|
+
allowlist?: string[] | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
};
|
|
258
|
+
type: "EMAIL";
|
|
259
|
+
id: string;
|
|
260
|
+
action: "VERIFY_EMAIL";
|
|
261
|
+
alias?: string | undefined;
|
|
262
|
+
allow_failure?: boolean | undefined;
|
|
263
|
+
mask_output?: boolean | undefined;
|
|
264
|
+
} | {
|
|
265
|
+
params: {
|
|
266
|
+
target: "custom" | "change-email" | "account";
|
|
267
|
+
custom_url?: string | undefined;
|
|
268
|
+
};
|
|
269
|
+
type: "REDIRECT";
|
|
270
|
+
id: string;
|
|
271
|
+
action: "REDIRECT_USER";
|
|
272
|
+
alias?: string | undefined;
|
|
273
|
+
allow_failure?: boolean | undefined;
|
|
274
|
+
mask_output?: boolean | undefined;
|
|
275
|
+
})[] | undefined;
|
|
276
|
+
}>;
|
|
277
|
+
export type FlowInsert = z.infer<typeof flowInsertSchema>;
|
|
278
|
+
declare const flowSchema: z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
|
|
281
|
+
z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
284
|
+
type: z.ZodLiteral<"AUTH0">;
|
|
285
|
+
action: z.ZodLiteral<"UPDATE_USER">;
|
|
286
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
+
params: z.ZodObject<{
|
|
289
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
290
|
+
user_id: z.ZodString;
|
|
291
|
+
changes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
user_id: string;
|
|
294
|
+
changes: Record<string, any>;
|
|
295
|
+
connection_id?: string | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
user_id: string;
|
|
298
|
+
changes: Record<string, any>;
|
|
299
|
+
connection_id?: string | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
params: {
|
|
303
|
+
user_id: string;
|
|
304
|
+
changes: Record<string, any>;
|
|
305
|
+
connection_id?: string | undefined;
|
|
306
|
+
};
|
|
307
|
+
type: "AUTH0";
|
|
308
|
+
id: string;
|
|
309
|
+
action: "UPDATE_USER";
|
|
310
|
+
alias?: string | undefined;
|
|
311
|
+
allow_failure?: boolean | undefined;
|
|
312
|
+
mask_output?: boolean | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
params: {
|
|
315
|
+
user_id: string;
|
|
316
|
+
changes: Record<string, any>;
|
|
317
|
+
connection_id?: string | undefined;
|
|
318
|
+
};
|
|
319
|
+
type: "AUTH0";
|
|
320
|
+
id: string;
|
|
321
|
+
action: "UPDATE_USER";
|
|
322
|
+
alias?: string | undefined;
|
|
323
|
+
allow_failure?: boolean | undefined;
|
|
324
|
+
mask_output?: boolean | undefined;
|
|
325
|
+
}>,
|
|
326
|
+
z.ZodObject<{
|
|
327
|
+
id: z.ZodString;
|
|
328
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
329
|
+
type: z.ZodLiteral<"EMAIL">;
|
|
330
|
+
action: z.ZodLiteral<"VERIFY_EMAIL">;
|
|
331
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
+
params: z.ZodObject<{
|
|
334
|
+
email: z.ZodString;
|
|
335
|
+
rules: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
require_mx_record: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
block_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
block_free_emails: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
+
block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
341
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
require_mx_record?: boolean | undefined;
|
|
344
|
+
block_aliases?: boolean | undefined;
|
|
345
|
+
block_free_emails?: boolean | undefined;
|
|
346
|
+
block_disposable_emails?: boolean | undefined;
|
|
347
|
+
blocklist?: string[] | undefined;
|
|
348
|
+
allowlist?: string[] | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
require_mx_record?: boolean | undefined;
|
|
351
|
+
block_aliases?: boolean | undefined;
|
|
352
|
+
block_free_emails?: boolean | undefined;
|
|
353
|
+
block_disposable_emails?: boolean | undefined;
|
|
354
|
+
blocklist?: string[] | undefined;
|
|
355
|
+
allowlist?: string[] | undefined;
|
|
356
|
+
}>>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
email: string;
|
|
359
|
+
rules?: {
|
|
360
|
+
require_mx_record?: boolean | undefined;
|
|
361
|
+
block_aliases?: boolean | undefined;
|
|
362
|
+
block_free_emails?: boolean | undefined;
|
|
363
|
+
block_disposable_emails?: boolean | undefined;
|
|
364
|
+
blocklist?: string[] | undefined;
|
|
365
|
+
allowlist?: string[] | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
}, {
|
|
368
|
+
email: string;
|
|
369
|
+
rules?: {
|
|
370
|
+
require_mx_record?: boolean | undefined;
|
|
371
|
+
block_aliases?: boolean | undefined;
|
|
372
|
+
block_free_emails?: boolean | undefined;
|
|
373
|
+
block_disposable_emails?: boolean | undefined;
|
|
374
|
+
blocklist?: string[] | undefined;
|
|
375
|
+
allowlist?: string[] | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
}>;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
params: {
|
|
380
|
+
email: string;
|
|
381
|
+
rules?: {
|
|
382
|
+
require_mx_record?: boolean | undefined;
|
|
383
|
+
block_aliases?: boolean | undefined;
|
|
384
|
+
block_free_emails?: boolean | undefined;
|
|
385
|
+
block_disposable_emails?: boolean | undefined;
|
|
386
|
+
blocklist?: string[] | undefined;
|
|
387
|
+
allowlist?: string[] | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
};
|
|
390
|
+
type: "EMAIL";
|
|
391
|
+
id: string;
|
|
392
|
+
action: "VERIFY_EMAIL";
|
|
393
|
+
alias?: string | undefined;
|
|
394
|
+
allow_failure?: boolean | undefined;
|
|
395
|
+
mask_output?: boolean | undefined;
|
|
396
|
+
}, {
|
|
397
|
+
params: {
|
|
398
|
+
email: string;
|
|
399
|
+
rules?: {
|
|
400
|
+
require_mx_record?: boolean | undefined;
|
|
401
|
+
block_aliases?: boolean | undefined;
|
|
402
|
+
block_free_emails?: boolean | undefined;
|
|
403
|
+
block_disposable_emails?: boolean | undefined;
|
|
404
|
+
blocklist?: string[] | undefined;
|
|
405
|
+
allowlist?: string[] | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
};
|
|
408
|
+
type: "EMAIL";
|
|
409
|
+
id: string;
|
|
410
|
+
action: "VERIFY_EMAIL";
|
|
411
|
+
alias?: string | undefined;
|
|
412
|
+
allow_failure?: boolean | undefined;
|
|
413
|
+
mask_output?: boolean | undefined;
|
|
414
|
+
}>,
|
|
415
|
+
z.ZodObject<{
|
|
416
|
+
id: z.ZodString;
|
|
417
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
418
|
+
type: z.ZodLiteral<"REDIRECT">;
|
|
419
|
+
action: z.ZodLiteral<"REDIRECT_USER">;
|
|
420
|
+
allow_failure: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
mask_output: z.ZodOptional<z.ZodBoolean>;
|
|
422
|
+
params: z.ZodObject<{
|
|
423
|
+
target: z.ZodEnum<[
|
|
424
|
+
"change-email",
|
|
425
|
+
"account",
|
|
426
|
+
"custom"
|
|
427
|
+
]>;
|
|
428
|
+
custom_url: z.ZodOptional<z.ZodString>;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
target: "custom" | "change-email" | "account";
|
|
431
|
+
custom_url?: string | undefined;
|
|
432
|
+
}, {
|
|
433
|
+
target: "custom" | "change-email" | "account";
|
|
434
|
+
custom_url?: string | undefined;
|
|
435
|
+
}>;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
params: {
|
|
438
|
+
target: "custom" | "change-email" | "account";
|
|
439
|
+
custom_url?: string | undefined;
|
|
440
|
+
};
|
|
441
|
+
type: "REDIRECT";
|
|
442
|
+
id: string;
|
|
443
|
+
action: "REDIRECT_USER";
|
|
444
|
+
alias?: string | undefined;
|
|
445
|
+
allow_failure?: boolean | undefined;
|
|
446
|
+
mask_output?: boolean | undefined;
|
|
447
|
+
}, {
|
|
448
|
+
params: {
|
|
449
|
+
target: "custom" | "change-email" | "account";
|
|
450
|
+
custom_url?: string | undefined;
|
|
451
|
+
};
|
|
452
|
+
type: "REDIRECT";
|
|
453
|
+
id: string;
|
|
454
|
+
action: "REDIRECT_USER";
|
|
455
|
+
alias?: string | undefined;
|
|
456
|
+
allow_failure?: boolean | undefined;
|
|
457
|
+
mask_output?: boolean | undefined;
|
|
458
|
+
}>
|
|
459
|
+
]>, "many">>>;
|
|
460
|
+
} & {
|
|
461
|
+
id: z.ZodString;
|
|
462
|
+
created_at: z.ZodString;
|
|
463
|
+
updated_at: z.ZodString;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
created_at: string;
|
|
466
|
+
updated_at: string;
|
|
467
|
+
id: string;
|
|
468
|
+
name: string;
|
|
469
|
+
actions: ({
|
|
470
|
+
params: {
|
|
471
|
+
user_id: string;
|
|
472
|
+
changes: Record<string, any>;
|
|
473
|
+
connection_id?: string | undefined;
|
|
474
|
+
};
|
|
475
|
+
type: "AUTH0";
|
|
476
|
+
id: string;
|
|
477
|
+
action: "UPDATE_USER";
|
|
478
|
+
alias?: string | undefined;
|
|
479
|
+
allow_failure?: boolean | undefined;
|
|
480
|
+
mask_output?: boolean | undefined;
|
|
481
|
+
} | {
|
|
482
|
+
params: {
|
|
483
|
+
email: string;
|
|
484
|
+
rules?: {
|
|
485
|
+
require_mx_record?: boolean | undefined;
|
|
486
|
+
block_aliases?: boolean | undefined;
|
|
487
|
+
block_free_emails?: boolean | undefined;
|
|
488
|
+
block_disposable_emails?: boolean | undefined;
|
|
489
|
+
blocklist?: string[] | undefined;
|
|
490
|
+
allowlist?: string[] | undefined;
|
|
491
|
+
} | undefined;
|
|
492
|
+
};
|
|
493
|
+
type: "EMAIL";
|
|
494
|
+
id: string;
|
|
495
|
+
action: "VERIFY_EMAIL";
|
|
496
|
+
alias?: string | undefined;
|
|
497
|
+
allow_failure?: boolean | undefined;
|
|
498
|
+
mask_output?: boolean | undefined;
|
|
499
|
+
} | {
|
|
500
|
+
params: {
|
|
501
|
+
target: "custom" | "change-email" | "account";
|
|
502
|
+
custom_url?: string | undefined;
|
|
503
|
+
};
|
|
504
|
+
type: "REDIRECT";
|
|
505
|
+
id: string;
|
|
506
|
+
action: "REDIRECT_USER";
|
|
507
|
+
alias?: string | undefined;
|
|
508
|
+
allow_failure?: boolean | undefined;
|
|
509
|
+
mask_output?: boolean | undefined;
|
|
510
|
+
})[];
|
|
511
|
+
}, {
|
|
512
|
+
created_at: string;
|
|
513
|
+
updated_at: string;
|
|
514
|
+
id: string;
|
|
515
|
+
name: string;
|
|
516
|
+
actions?: ({
|
|
517
|
+
params: {
|
|
518
|
+
user_id: string;
|
|
519
|
+
changes: Record<string, any>;
|
|
520
|
+
connection_id?: string | undefined;
|
|
521
|
+
};
|
|
522
|
+
type: "AUTH0";
|
|
523
|
+
id: string;
|
|
524
|
+
action: "UPDATE_USER";
|
|
525
|
+
alias?: string | undefined;
|
|
526
|
+
allow_failure?: boolean | undefined;
|
|
527
|
+
mask_output?: boolean | undefined;
|
|
528
|
+
} | {
|
|
529
|
+
params: {
|
|
530
|
+
email: string;
|
|
531
|
+
rules?: {
|
|
532
|
+
require_mx_record?: boolean | undefined;
|
|
533
|
+
block_aliases?: boolean | undefined;
|
|
534
|
+
block_free_emails?: boolean | undefined;
|
|
535
|
+
block_disposable_emails?: boolean | undefined;
|
|
536
|
+
blocklist?: string[] | undefined;
|
|
537
|
+
allowlist?: string[] | undefined;
|
|
538
|
+
} | undefined;
|
|
539
|
+
};
|
|
540
|
+
type: "EMAIL";
|
|
541
|
+
id: string;
|
|
542
|
+
action: "VERIFY_EMAIL";
|
|
543
|
+
alias?: string | undefined;
|
|
544
|
+
allow_failure?: boolean | undefined;
|
|
545
|
+
mask_output?: boolean | undefined;
|
|
546
|
+
} | {
|
|
547
|
+
params: {
|
|
548
|
+
target: "custom" | "change-email" | "account";
|
|
549
|
+
custom_url?: string | undefined;
|
|
550
|
+
};
|
|
551
|
+
type: "REDIRECT";
|
|
552
|
+
id: string;
|
|
553
|
+
action: "REDIRECT_USER";
|
|
554
|
+
alias?: string | undefined;
|
|
555
|
+
allow_failure?: boolean | undefined;
|
|
556
|
+
mask_output?: boolean | undefined;
|
|
557
|
+
})[] | undefined;
|
|
558
|
+
}>;
|
|
559
|
+
export type Flow = z.infer<typeof flowSchema>;
|
|
6
560
|
export interface Totals {
|
|
7
561
|
start: number;
|
|
8
562
|
limit: number;
|
|
@@ -34,13 +588,13 @@ declare const userInsertSchema: z.ZodObject<{
|
|
|
34
588
|
}, "strip", z.ZodTypeAny, {
|
|
35
589
|
email_verified: boolean;
|
|
36
590
|
connection: string;
|
|
37
|
-
email?: string | undefined;
|
|
38
591
|
name?: string | undefined;
|
|
592
|
+
user_id?: string | undefined;
|
|
593
|
+
email?: string | undefined;
|
|
39
594
|
username?: string | undefined;
|
|
40
595
|
given_name?: string | undefined;
|
|
41
596
|
phone_number?: string | undefined;
|
|
42
597
|
family_name?: string | undefined;
|
|
43
|
-
user_id?: string | undefined;
|
|
44
598
|
provider?: string | undefined;
|
|
45
599
|
profileData?: string | undefined;
|
|
46
600
|
nickname?: string | undefined;
|
|
@@ -55,14 +609,14 @@ declare const userInsertSchema: z.ZodObject<{
|
|
|
55
609
|
is_social?: boolean | undefined;
|
|
56
610
|
}, {
|
|
57
611
|
connection: string;
|
|
612
|
+
name?: string | undefined;
|
|
613
|
+
user_id?: string | undefined;
|
|
58
614
|
email?: string | undefined;
|
|
59
615
|
email_verified?: boolean | undefined;
|
|
60
|
-
name?: string | undefined;
|
|
61
616
|
username?: string | undefined;
|
|
62
617
|
given_name?: string | undefined;
|
|
63
618
|
phone_number?: string | undefined;
|
|
64
619
|
family_name?: string | undefined;
|
|
65
|
-
user_id?: string | undefined;
|
|
66
620
|
provider?: string | undefined;
|
|
67
621
|
profileData?: string | undefined;
|
|
68
622
|
nickname?: string | undefined;
|
|
@@ -120,8 +674,8 @@ declare const userSchema: z.ZodObject<{
|
|
|
120
674
|
family_name: z.ZodOptional<z.ZodString>;
|
|
121
675
|
}, z.ZodAny, "strip">>>;
|
|
122
676
|
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
connection: string;
|
|
124
677
|
user_id: string;
|
|
678
|
+
connection: string;
|
|
125
679
|
provider: string;
|
|
126
680
|
isSocial: boolean;
|
|
127
681
|
access_token?: string | undefined;
|
|
@@ -138,8 +692,8 @@ declare const userSchema: z.ZodObject<{
|
|
|
138
692
|
family_name: z.ZodOptional<z.ZodString>;
|
|
139
693
|
}, z.ZodAny, "strip"> | undefined;
|
|
140
694
|
}, {
|
|
141
|
-
connection: string;
|
|
142
695
|
user_id: string;
|
|
696
|
+
connection: string;
|
|
143
697
|
provider: string;
|
|
144
698
|
isSocial: boolean;
|
|
145
699
|
access_token?: string | undefined;
|
|
@@ -178,14 +732,14 @@ declare const userSchema: z.ZodObject<{
|
|
|
178
732
|
}, "strip", z.ZodTypeAny, {
|
|
179
733
|
created_at: string;
|
|
180
734
|
updated_at: string;
|
|
735
|
+
user_id: string;
|
|
181
736
|
email_verified: boolean;
|
|
182
737
|
connection: string;
|
|
183
|
-
user_id: string;
|
|
184
738
|
provider: string;
|
|
185
739
|
is_social: boolean;
|
|
186
740
|
login_count: number;
|
|
187
|
-
email?: string | undefined;
|
|
188
741
|
name?: string | undefined;
|
|
742
|
+
email?: string | undefined;
|
|
189
743
|
username?: string | undefined;
|
|
190
744
|
given_name?: string | undefined;
|
|
191
745
|
phone_number?: string | undefined;
|
|
@@ -201,8 +755,8 @@ declare const userSchema: z.ZodObject<{
|
|
|
201
755
|
last_ip?: string | undefined;
|
|
202
756
|
last_login?: string | undefined;
|
|
203
757
|
identities?: {
|
|
204
|
-
connection: string;
|
|
205
758
|
user_id: string;
|
|
759
|
+
connection: string;
|
|
206
760
|
provider: string;
|
|
207
761
|
isSocial: boolean;
|
|
208
762
|
access_token?: string | undefined;
|
|
@@ -222,13 +776,13 @@ declare const userSchema: z.ZodObject<{
|
|
|
222
776
|
}, {
|
|
223
777
|
created_at: string;
|
|
224
778
|
updated_at: string;
|
|
225
|
-
connection: string;
|
|
226
779
|
user_id: string;
|
|
780
|
+
connection: string;
|
|
227
781
|
provider: string;
|
|
228
782
|
is_social: boolean;
|
|
783
|
+
name?: string | undefined;
|
|
229
784
|
email?: string | undefined;
|
|
230
785
|
email_verified?: boolean | undefined;
|
|
231
|
-
name?: string | undefined;
|
|
232
786
|
username?: string | undefined;
|
|
233
787
|
given_name?: string | undefined;
|
|
234
788
|
phone_number?: string | undefined;
|
|
@@ -245,8 +799,8 @@ declare const userSchema: z.ZodObject<{
|
|
|
245
799
|
last_login?: string | undefined;
|
|
246
800
|
login_count?: number | undefined;
|
|
247
801
|
identities?: {
|
|
248
|
-
connection: string;
|
|
249
802
|
user_id: string;
|
|
803
|
+
connection: string;
|
|
250
804
|
provider: string;
|
|
251
805
|
isSocial: boolean;
|
|
252
806
|
access_token?: string | undefined;
|
|
@@ -707,9 +1261,9 @@ declare const clientGrantSchema: z.ZodObject<{
|
|
|
707
1261
|
authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
708
1262
|
id: z.ZodString;
|
|
709
1263
|
}, "strip", z.ZodTypeAny, {
|
|
1264
|
+
id: string;
|
|
710
1265
|
client_id: string;
|
|
711
1266
|
audience: string;
|
|
712
|
-
id: string;
|
|
713
1267
|
created_at?: string | undefined;
|
|
714
1268
|
updated_at?: string | undefined;
|
|
715
1269
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
@@ -719,9 +1273,9 @@ declare const clientGrantSchema: z.ZodObject<{
|
|
|
719
1273
|
subject_type?: "client" | "user" | undefined;
|
|
720
1274
|
authorization_details_types?: string[] | undefined;
|
|
721
1275
|
}, {
|
|
1276
|
+
id: string;
|
|
722
1277
|
client_id: string;
|
|
723
1278
|
audience: string;
|
|
724
|
-
id: string;
|
|
725
1279
|
created_at?: string | undefined;
|
|
726
1280
|
updated_at?: string | undefined;
|
|
727
1281
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
@@ -1068,8 +1622,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1068
1622
|
}, "strip", z.ZodTypeAny, {
|
|
1069
1623
|
created_at: string;
|
|
1070
1624
|
updated_at: string;
|
|
1071
|
-
audience: string;
|
|
1072
1625
|
id: string;
|
|
1626
|
+
audience: string;
|
|
1073
1627
|
friendly_name: string;
|
|
1074
1628
|
sender_email: string;
|
|
1075
1629
|
sender_name: string;
|
|
@@ -1168,8 +1722,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1168
1722
|
}, {
|
|
1169
1723
|
created_at: string | null;
|
|
1170
1724
|
updated_at: string | null;
|
|
1171
|
-
audience: string;
|
|
1172
1725
|
id: string;
|
|
1726
|
+
audience: string;
|
|
1173
1727
|
friendly_name: string;
|
|
1174
1728
|
sender_email: string;
|
|
1175
1729
|
sender_name: string;
|
|
@@ -1342,6 +1896,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1342
1896
|
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
1343
1897
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1344
1898
|
}, "strip", z.ZodTypeAny, {
|
|
1899
|
+
created_at: string;
|
|
1900
|
+
updated_at: string;
|
|
1345
1901
|
options: {
|
|
1346
1902
|
provider?: string | undefined;
|
|
1347
1903
|
client_id?: string | undefined;
|
|
@@ -1363,8 +1919,6 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1363
1919
|
twilio_token?: string | undefined;
|
|
1364
1920
|
icon_url?: string | undefined;
|
|
1365
1921
|
};
|
|
1366
|
-
created_at: string;
|
|
1367
|
-
updated_at: string;
|
|
1368
1922
|
name: string;
|
|
1369
1923
|
strategy: string;
|
|
1370
1924
|
id?: string | undefined;
|
|
@@ -1511,6 +2065,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1511
2065
|
is_first_party: boolean;
|
|
1512
2066
|
oidc_conformant: boolean;
|
|
1513
2067
|
connections: {
|
|
2068
|
+
created_at: string;
|
|
2069
|
+
updated_at: string;
|
|
1514
2070
|
options: {
|
|
1515
2071
|
provider?: string | undefined;
|
|
1516
2072
|
client_id?: string | undefined;
|
|
@@ -1532,8 +2088,6 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1532
2088
|
twilio_token?: string | undefined;
|
|
1533
2089
|
icon_url?: string | undefined;
|
|
1534
2090
|
};
|
|
1535
|
-
created_at: string;
|
|
1536
|
-
updated_at: string;
|
|
1537
2091
|
name: string;
|
|
1538
2092
|
strategy: string;
|
|
1539
2093
|
id?: string | undefined;
|
|
@@ -1554,8 +2108,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1554
2108
|
tenant: {
|
|
1555
2109
|
created_at: string;
|
|
1556
2110
|
updated_at: string;
|
|
1557
|
-
audience: string;
|
|
1558
2111
|
id: string;
|
|
2112
|
+
audience: string;
|
|
1559
2113
|
friendly_name: string;
|
|
1560
2114
|
sender_email: string;
|
|
1561
2115
|
sender_name: string;
|
|
@@ -1730,8 +2284,8 @@ declare const legacyClientSchema: z.ZodObject<{
|
|
|
1730
2284
|
tenant: {
|
|
1731
2285
|
created_at: string | null;
|
|
1732
2286
|
updated_at: string | null;
|
|
1733
|
-
audience: string;
|
|
1734
2287
|
id: string;
|
|
2288
|
+
audience: string;
|
|
1735
2289
|
friendly_name: string;
|
|
1736
2290
|
sender_email: string;
|
|
1737
2291
|
sender_name: string;
|
|
@@ -1912,13 +2466,13 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1912
2466
|
login_id: string;
|
|
1913
2467
|
code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
|
|
1914
2468
|
expires_at: string;
|
|
2469
|
+
connection_id?: string | undefined;
|
|
1915
2470
|
user_id?: string | undefined;
|
|
1916
2471
|
redirect_uri?: string | undefined;
|
|
1917
2472
|
state?: string | undefined;
|
|
1918
2473
|
nonce?: string | undefined;
|
|
1919
2474
|
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1920
2475
|
code_challenge?: string | undefined;
|
|
1921
|
-
connection_id?: string | undefined;
|
|
1922
2476
|
code_verifier?: string | undefined;
|
|
1923
2477
|
used_at?: string | undefined;
|
|
1924
2478
|
}, {
|
|
@@ -1926,13 +2480,13 @@ declare const codeInsertSchema: z.ZodObject<{
|
|
|
1926
2480
|
login_id: string;
|
|
1927
2481
|
code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
|
|
1928
2482
|
expires_at: string;
|
|
2483
|
+
connection_id?: string | undefined;
|
|
1929
2484
|
user_id?: string | undefined;
|
|
1930
2485
|
redirect_uri?: string | undefined;
|
|
1931
2486
|
state?: string | undefined;
|
|
1932
2487
|
nonce?: string | undefined;
|
|
1933
2488
|
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1934
2489
|
code_challenge?: string | undefined;
|
|
1935
|
-
connection_id?: string | undefined;
|
|
1936
2490
|
code_verifier?: string | undefined;
|
|
1937
2491
|
used_at?: string | undefined;
|
|
1938
2492
|
}>;
|
|
@@ -1968,13 +2522,13 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1968
2522
|
login_id: string;
|
|
1969
2523
|
code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
|
|
1970
2524
|
expires_at: string;
|
|
2525
|
+
connection_id?: string | undefined;
|
|
1971
2526
|
user_id?: string | undefined;
|
|
1972
2527
|
redirect_uri?: string | undefined;
|
|
1973
2528
|
state?: string | undefined;
|
|
1974
2529
|
nonce?: string | undefined;
|
|
1975
2530
|
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1976
2531
|
code_challenge?: string | undefined;
|
|
1977
|
-
connection_id?: string | undefined;
|
|
1978
2532
|
code_verifier?: string | undefined;
|
|
1979
2533
|
used_at?: string | undefined;
|
|
1980
2534
|
}, {
|
|
@@ -1983,13 +2537,13 @@ declare const codeSchema: z.ZodObject<{
|
|
|
1983
2537
|
login_id: string;
|
|
1984
2538
|
code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
|
|
1985
2539
|
expires_at: string;
|
|
2540
|
+
connection_id?: string | undefined;
|
|
1986
2541
|
user_id?: string | undefined;
|
|
1987
2542
|
redirect_uri?: string | undefined;
|
|
1988
2543
|
state?: string | undefined;
|
|
1989
2544
|
nonce?: string | undefined;
|
|
1990
2545
|
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1991
2546
|
code_challenge?: string | undefined;
|
|
1992
|
-
connection_id?: string | undefined;
|
|
1993
2547
|
code_verifier?: string | undefined;
|
|
1994
2548
|
used_at?: string | undefined;
|
|
1995
2549
|
}>;
|
|
@@ -2208,6 +2762,8 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
2208
2762
|
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
2209
2763
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2210
2764
|
}, "strip", z.ZodTypeAny, {
|
|
2765
|
+
created_at: string;
|
|
2766
|
+
updated_at: string;
|
|
2211
2767
|
options: {
|
|
2212
2768
|
provider?: string | undefined;
|
|
2213
2769
|
client_id?: string | undefined;
|
|
@@ -2229,8 +2785,6 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
2229
2785
|
twilio_token?: string | undefined;
|
|
2230
2786
|
icon_url?: string | undefined;
|
|
2231
2787
|
};
|
|
2232
|
-
created_at: string;
|
|
2233
|
-
updated_at: string;
|
|
2234
2788
|
name: string;
|
|
2235
2789
|
strategy: string;
|
|
2236
2790
|
id?: string | undefined;
|
|
@@ -2629,6 +3183,7 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
2629
3183
|
}, "strip", z.ZodTypeAny, {
|
|
2630
3184
|
type: "ROUTER";
|
|
2631
3185
|
id: string;
|
|
3186
|
+
alias: string;
|
|
2632
3187
|
config: {
|
|
2633
3188
|
rules: {
|
|
2634
3189
|
id: string;
|
|
@@ -2642,10 +3197,10 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
2642
3197
|
x: number;
|
|
2643
3198
|
y: number;
|
|
2644
3199
|
};
|
|
2645
|
-
alias: string;
|
|
2646
3200
|
}, {
|
|
2647
3201
|
type: "ROUTER";
|
|
2648
3202
|
id: string;
|
|
3203
|
+
alias: string;
|
|
2649
3204
|
config: {
|
|
2650
3205
|
rules: {
|
|
2651
3206
|
id: string;
|
|
@@ -2659,7 +3214,6 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
2659
3214
|
x: number;
|
|
2660
3215
|
y: number;
|
|
2661
3216
|
};
|
|
2662
|
-
alias: string;
|
|
2663
3217
|
}>,
|
|
2664
3218
|
z.ZodObject<{
|
|
2665
3219
|
id: z.ZodString;
|
|
@@ -3359,11 +3913,11 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3359
3913
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
3360
3914
|
target: z.ZodOptional<z.ZodString>;
|
|
3361
3915
|
}, "strip", z.ZodTypeAny, {
|
|
3362
|
-
delay?: number | undefined;
|
|
3363
3916
|
target?: string | undefined;
|
|
3364
|
-
}, {
|
|
3365
3917
|
delay?: number | undefined;
|
|
3918
|
+
}, {
|
|
3366
3919
|
target?: string | undefined;
|
|
3920
|
+
delay?: number | undefined;
|
|
3367
3921
|
}>>;
|
|
3368
3922
|
after_submit: z.ZodOptional<z.ZodObject<{
|
|
3369
3923
|
flow_id: z.ZodOptional<z.ZodString>;
|
|
@@ -3390,8 +3944,8 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3390
3944
|
} | undefined;
|
|
3391
3945
|
resume_flow?: boolean | undefined;
|
|
3392
3946
|
redirection?: {
|
|
3393
|
-
delay?: number | undefined;
|
|
3394
3947
|
target?: string | undefined;
|
|
3948
|
+
delay?: number | undefined;
|
|
3395
3949
|
} | undefined;
|
|
3396
3950
|
after_submit?: {
|
|
3397
3951
|
flow_id?: string | undefined;
|
|
@@ -3403,8 +3957,8 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3403
3957
|
} | undefined;
|
|
3404
3958
|
resume_flow?: boolean | undefined;
|
|
3405
3959
|
redirection?: {
|
|
3406
|
-
delay?: number | undefined;
|
|
3407
3960
|
target?: string | undefined;
|
|
3961
|
+
delay?: number | undefined;
|
|
3408
3962
|
} | undefined;
|
|
3409
3963
|
after_submit?: {
|
|
3410
3964
|
flow_id?: string | undefined;
|
|
@@ -3419,6 +3973,9 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3419
3973
|
}>>;
|
|
3420
3974
|
}, "strip", z.ZodTypeAny, {
|
|
3421
3975
|
name: string;
|
|
3976
|
+
style?: {
|
|
3977
|
+
css?: string | undefined;
|
|
3978
|
+
} | undefined;
|
|
3422
3979
|
start?: {
|
|
3423
3980
|
coordinates?: {
|
|
3424
3981
|
x: number;
|
|
@@ -3430,9 +3987,6 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3430
3987
|
key: string;
|
|
3431
3988
|
}[] | undefined;
|
|
3432
3989
|
} | undefined;
|
|
3433
|
-
style?: {
|
|
3434
|
-
css?: string | undefined;
|
|
3435
|
-
} | undefined;
|
|
3436
3990
|
languages?: {
|
|
3437
3991
|
default?: string | undefined;
|
|
3438
3992
|
primary?: string | undefined;
|
|
@@ -3452,6 +4006,7 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3452
4006
|
} | {
|
|
3453
4007
|
type: "ROUTER";
|
|
3454
4008
|
id: string;
|
|
4009
|
+
alias: string;
|
|
3455
4010
|
config: {
|
|
3456
4011
|
rules: {
|
|
3457
4012
|
id: string;
|
|
@@ -3465,7 +4020,6 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3465
4020
|
x: number;
|
|
3466
4021
|
y: number;
|
|
3467
4022
|
};
|
|
3468
|
-
alias: string;
|
|
3469
4023
|
} | {
|
|
3470
4024
|
type: "STEP";
|
|
3471
4025
|
id: string;
|
|
@@ -3563,8 +4117,8 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3563
4117
|
} | undefined;
|
|
3564
4118
|
resume_flow?: boolean | undefined;
|
|
3565
4119
|
redirection?: {
|
|
3566
|
-
delay?: number | undefined;
|
|
3567
4120
|
target?: string | undefined;
|
|
4121
|
+
delay?: number | undefined;
|
|
3568
4122
|
} | undefined;
|
|
3569
4123
|
after_submit?: {
|
|
3570
4124
|
flow_id?: string | undefined;
|
|
@@ -3577,6 +4131,9 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3577
4131
|
translations?: Record<string, any> | undefined;
|
|
3578
4132
|
}, {
|
|
3579
4133
|
name: string;
|
|
4134
|
+
style?: {
|
|
4135
|
+
css?: string | undefined;
|
|
4136
|
+
} | undefined;
|
|
3580
4137
|
start?: {
|
|
3581
4138
|
coordinates?: {
|
|
3582
4139
|
x: number;
|
|
@@ -3588,9 +4145,6 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3588
4145
|
key: string;
|
|
3589
4146
|
}[] | undefined;
|
|
3590
4147
|
} | undefined;
|
|
3591
|
-
style?: {
|
|
3592
|
-
css?: string | undefined;
|
|
3593
|
-
} | undefined;
|
|
3594
4148
|
languages?: {
|
|
3595
4149
|
default?: string | undefined;
|
|
3596
4150
|
primary?: string | undefined;
|
|
@@ -3610,6 +4164,7 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3610
4164
|
} | {
|
|
3611
4165
|
type: "ROUTER";
|
|
3612
4166
|
id: string;
|
|
4167
|
+
alias: string;
|
|
3613
4168
|
config: {
|
|
3614
4169
|
rules: {
|
|
3615
4170
|
id: string;
|
|
@@ -3623,7 +4178,6 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3623
4178
|
x: number;
|
|
3624
4179
|
y: number;
|
|
3625
4180
|
};
|
|
3626
|
-
alias: string;
|
|
3627
4181
|
} | {
|
|
3628
4182
|
type: "STEP";
|
|
3629
4183
|
id: string;
|
|
@@ -3721,8 +4275,8 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
3721
4275
|
} | undefined;
|
|
3722
4276
|
resume_flow?: boolean | undefined;
|
|
3723
4277
|
redirection?: {
|
|
3724
|
-
delay?: number | undefined;
|
|
3725
4278
|
target?: string | undefined;
|
|
4279
|
+
delay?: number | undefined;
|
|
3726
4280
|
} | undefined;
|
|
3727
4281
|
after_submit?: {
|
|
3728
4282
|
flow_id?: string | undefined;
|
|
@@ -3861,6 +4415,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
3861
4415
|
}, "strip", z.ZodTypeAny, {
|
|
3862
4416
|
type: "ROUTER";
|
|
3863
4417
|
id: string;
|
|
4418
|
+
alias: string;
|
|
3864
4419
|
config: {
|
|
3865
4420
|
rules: {
|
|
3866
4421
|
id: string;
|
|
@@ -3874,10 +4429,10 @@ declare const formSchema: z.ZodObject<{
|
|
|
3874
4429
|
x: number;
|
|
3875
4430
|
y: number;
|
|
3876
4431
|
};
|
|
3877
|
-
alias: string;
|
|
3878
4432
|
}, {
|
|
3879
4433
|
type: "ROUTER";
|
|
3880
4434
|
id: string;
|
|
4435
|
+
alias: string;
|
|
3881
4436
|
config: {
|
|
3882
4437
|
rules: {
|
|
3883
4438
|
id: string;
|
|
@@ -3891,7 +4446,6 @@ declare const formSchema: z.ZodObject<{
|
|
|
3891
4446
|
x: number;
|
|
3892
4447
|
y: number;
|
|
3893
4448
|
};
|
|
3894
|
-
alias: string;
|
|
3895
4449
|
}>,
|
|
3896
4450
|
z.ZodObject<{
|
|
3897
4451
|
id: z.ZodString;
|
|
@@ -4591,11 +5145,11 @@ declare const formSchema: z.ZodObject<{
|
|
|
4591
5145
|
delay: z.ZodOptional<z.ZodNumber>;
|
|
4592
5146
|
target: z.ZodOptional<z.ZodString>;
|
|
4593
5147
|
}, "strip", z.ZodTypeAny, {
|
|
4594
|
-
delay?: number | undefined;
|
|
4595
5148
|
target?: string | undefined;
|
|
4596
|
-
}, {
|
|
4597
5149
|
delay?: number | undefined;
|
|
5150
|
+
}, {
|
|
4598
5151
|
target?: string | undefined;
|
|
5152
|
+
delay?: number | undefined;
|
|
4599
5153
|
}>>;
|
|
4600
5154
|
after_submit: z.ZodOptional<z.ZodObject<{
|
|
4601
5155
|
flow_id: z.ZodOptional<z.ZodString>;
|
|
@@ -4622,8 +5176,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
4622
5176
|
} | undefined;
|
|
4623
5177
|
resume_flow?: boolean | undefined;
|
|
4624
5178
|
redirection?: {
|
|
4625
|
-
delay?: number | undefined;
|
|
4626
5179
|
target?: string | undefined;
|
|
5180
|
+
delay?: number | undefined;
|
|
4627
5181
|
} | undefined;
|
|
4628
5182
|
after_submit?: {
|
|
4629
5183
|
flow_id?: string | undefined;
|
|
@@ -4635,8 +5189,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
4635
5189
|
} | undefined;
|
|
4636
5190
|
resume_flow?: boolean | undefined;
|
|
4637
5191
|
redirection?: {
|
|
4638
|
-
delay?: number | undefined;
|
|
4639
5192
|
target?: string | undefined;
|
|
5193
|
+
delay?: number | undefined;
|
|
4640
5194
|
} | undefined;
|
|
4641
5195
|
after_submit?: {
|
|
4642
5196
|
flow_id?: string | undefined;
|
|
@@ -4654,8 +5208,11 @@ declare const formSchema: z.ZodObject<{
|
|
|
4654
5208
|
}, "strip", z.ZodTypeAny, {
|
|
4655
5209
|
created_at: string;
|
|
4656
5210
|
updated_at: string;
|
|
4657
|
-
name: string;
|
|
4658
5211
|
id: string;
|
|
5212
|
+
name: string;
|
|
5213
|
+
style?: {
|
|
5214
|
+
css?: string | undefined;
|
|
5215
|
+
} | undefined;
|
|
4659
5216
|
start?: {
|
|
4660
5217
|
coordinates?: {
|
|
4661
5218
|
x: number;
|
|
@@ -4667,9 +5224,6 @@ declare const formSchema: z.ZodObject<{
|
|
|
4667
5224
|
key: string;
|
|
4668
5225
|
}[] | undefined;
|
|
4669
5226
|
} | undefined;
|
|
4670
|
-
style?: {
|
|
4671
|
-
css?: string | undefined;
|
|
4672
|
-
} | undefined;
|
|
4673
5227
|
languages?: {
|
|
4674
5228
|
default?: string | undefined;
|
|
4675
5229
|
primary?: string | undefined;
|
|
@@ -4689,6 +5243,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
4689
5243
|
} | {
|
|
4690
5244
|
type: "ROUTER";
|
|
4691
5245
|
id: string;
|
|
5246
|
+
alias: string;
|
|
4692
5247
|
config: {
|
|
4693
5248
|
rules: {
|
|
4694
5249
|
id: string;
|
|
@@ -4702,7 +5257,6 @@ declare const formSchema: z.ZodObject<{
|
|
|
4702
5257
|
x: number;
|
|
4703
5258
|
y: number;
|
|
4704
5259
|
};
|
|
4705
|
-
alias: string;
|
|
4706
5260
|
} | {
|
|
4707
5261
|
type: "STEP";
|
|
4708
5262
|
id: string;
|
|
@@ -4800,8 +5354,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
4800
5354
|
} | undefined;
|
|
4801
5355
|
resume_flow?: boolean | undefined;
|
|
4802
5356
|
redirection?: {
|
|
4803
|
-
delay?: number | undefined;
|
|
4804
5357
|
target?: string | undefined;
|
|
5358
|
+
delay?: number | undefined;
|
|
4805
5359
|
} | undefined;
|
|
4806
5360
|
after_submit?: {
|
|
4807
5361
|
flow_id?: string | undefined;
|
|
@@ -4815,8 +5369,11 @@ declare const formSchema: z.ZodObject<{
|
|
|
4815
5369
|
}, {
|
|
4816
5370
|
created_at: string;
|
|
4817
5371
|
updated_at: string;
|
|
4818
|
-
name: string;
|
|
4819
5372
|
id: string;
|
|
5373
|
+
name: string;
|
|
5374
|
+
style?: {
|
|
5375
|
+
css?: string | undefined;
|
|
5376
|
+
} | undefined;
|
|
4820
5377
|
start?: {
|
|
4821
5378
|
coordinates?: {
|
|
4822
5379
|
x: number;
|
|
@@ -4828,9 +5385,6 @@ declare const formSchema: z.ZodObject<{
|
|
|
4828
5385
|
key: string;
|
|
4829
5386
|
}[] | undefined;
|
|
4830
5387
|
} | undefined;
|
|
4831
|
-
style?: {
|
|
4832
|
-
css?: string | undefined;
|
|
4833
|
-
} | undefined;
|
|
4834
5388
|
languages?: {
|
|
4835
5389
|
default?: string | undefined;
|
|
4836
5390
|
primary?: string | undefined;
|
|
@@ -4850,6 +5404,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
4850
5404
|
} | {
|
|
4851
5405
|
type: "ROUTER";
|
|
4852
5406
|
id: string;
|
|
5407
|
+
alias: string;
|
|
4853
5408
|
config: {
|
|
4854
5409
|
rules: {
|
|
4855
5410
|
id: string;
|
|
@@ -4863,7 +5418,6 @@ declare const formSchema: z.ZodObject<{
|
|
|
4863
5418
|
x: number;
|
|
4864
5419
|
y: number;
|
|
4865
5420
|
};
|
|
4866
|
-
alias: string;
|
|
4867
5421
|
} | {
|
|
4868
5422
|
type: "STEP";
|
|
4869
5423
|
id: string;
|
|
@@ -4961,8 +5515,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
4961
5515
|
} | undefined;
|
|
4962
5516
|
resume_flow?: boolean | undefined;
|
|
4963
5517
|
redirection?: {
|
|
4964
|
-
delay?: number | undefined;
|
|
4965
5518
|
target?: string | undefined;
|
|
5519
|
+
delay?: number | undefined;
|
|
4966
5520
|
} | undefined;
|
|
4967
5521
|
after_submit?: {
|
|
4968
5522
|
flow_id?: string | undefined;
|
|
@@ -5143,9 +5697,9 @@ declare const inviteInsertSchema: z.ZodObject<{
|
|
|
5143
5697
|
email?: string | undefined;
|
|
5144
5698
|
};
|
|
5145
5699
|
invitation_url: string;
|
|
5700
|
+
connection_id?: string | undefined;
|
|
5146
5701
|
app_metadata?: Record<string, any> | undefined;
|
|
5147
5702
|
user_metadata?: Record<string, any> | undefined;
|
|
5148
|
-
connection_id?: string | undefined;
|
|
5149
5703
|
ttl_sec?: number | undefined;
|
|
5150
5704
|
roles?: string[] | undefined;
|
|
5151
5705
|
send_invitation_email?: boolean | undefined;
|
|
@@ -5159,9 +5713,9 @@ declare const inviteInsertSchema: z.ZodObject<{
|
|
|
5159
5713
|
email?: string | undefined;
|
|
5160
5714
|
};
|
|
5161
5715
|
invitation_url: string;
|
|
5716
|
+
connection_id?: string | undefined;
|
|
5162
5717
|
app_metadata?: Record<string, any> | undefined;
|
|
5163
5718
|
user_metadata?: Record<string, any> | undefined;
|
|
5164
|
-
connection_id?: string | undefined;
|
|
5165
5719
|
ttl_sec?: number | undefined;
|
|
5166
5720
|
roles?: string[] | undefined;
|
|
5167
5721
|
send_invitation_email?: boolean | undefined;
|
|
@@ -5198,8 +5752,8 @@ declare const inviteSchema: z.ZodObject<{
|
|
|
5198
5752
|
send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
5199
5753
|
}, "strip", z.ZodTypeAny, {
|
|
5200
5754
|
created_at: string;
|
|
5201
|
-
client_id: string;
|
|
5202
5755
|
id: string;
|
|
5756
|
+
client_id: string;
|
|
5203
5757
|
expires_at: string;
|
|
5204
5758
|
organization_id: string;
|
|
5205
5759
|
inviter: {
|
|
@@ -5209,17 +5763,17 @@ declare const inviteSchema: z.ZodObject<{
|
|
|
5209
5763
|
email?: string | undefined;
|
|
5210
5764
|
};
|
|
5211
5765
|
invitation_url: string;
|
|
5766
|
+
connection_id?: string | undefined;
|
|
5212
5767
|
app_metadata?: Record<string, any> | undefined;
|
|
5213
5768
|
user_metadata?: Record<string, any> | undefined;
|
|
5214
|
-
connection_id?: string | undefined;
|
|
5215
5769
|
ttl_sec?: number | undefined;
|
|
5216
5770
|
roles?: string[] | undefined;
|
|
5217
5771
|
send_invitation_email?: boolean | undefined;
|
|
5218
5772
|
ticket_id?: string | undefined;
|
|
5219
5773
|
}, {
|
|
5220
5774
|
created_at: string;
|
|
5221
|
-
client_id: string;
|
|
5222
5775
|
id: string;
|
|
5776
|
+
client_id: string;
|
|
5223
5777
|
expires_at: string;
|
|
5224
5778
|
organization_id: string;
|
|
5225
5779
|
inviter: {
|
|
@@ -5229,9 +5783,9 @@ declare const inviteSchema: z.ZodObject<{
|
|
|
5229
5783
|
email?: string | undefined;
|
|
5230
5784
|
};
|
|
5231
5785
|
invitation_url: string;
|
|
5786
|
+
connection_id?: string | undefined;
|
|
5232
5787
|
app_metadata?: Record<string, any> | undefined;
|
|
5233
5788
|
user_metadata?: Record<string, any> | undefined;
|
|
5234
|
-
connection_id?: string | undefined;
|
|
5235
5789
|
ttl_sec?: number | undefined;
|
|
5236
5790
|
roles?: string[] | undefined;
|
|
5237
5791
|
send_invitation_email?: boolean | undefined;
|
|
@@ -5567,13 +6121,13 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
5567
6121
|
date: string;
|
|
5568
6122
|
isMobile: boolean;
|
|
5569
6123
|
description?: string | undefined;
|
|
5570
|
-
|
|
6124
|
+
connection_id?: string | undefined;
|
|
5571
6125
|
user_id?: string | undefined;
|
|
6126
|
+
connection?: string | undefined;
|
|
5572
6127
|
client_id?: string | undefined;
|
|
5573
6128
|
audience?: string | undefined;
|
|
5574
6129
|
scope?: string | undefined;
|
|
5575
6130
|
strategy?: string | undefined;
|
|
5576
|
-
connection_id?: string | undefined;
|
|
5577
6131
|
ip?: string | undefined;
|
|
5578
6132
|
user_agent?: string | undefined;
|
|
5579
6133
|
details?: any;
|
|
@@ -5602,13 +6156,13 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
5602
6156
|
date: string;
|
|
5603
6157
|
isMobile: boolean;
|
|
5604
6158
|
description?: string | undefined;
|
|
5605
|
-
|
|
6159
|
+
connection_id?: string | undefined;
|
|
5606
6160
|
user_id?: string | undefined;
|
|
6161
|
+
connection?: string | undefined;
|
|
5607
6162
|
client_id?: string | undefined;
|
|
5608
6163
|
audience?: string | undefined;
|
|
5609
6164
|
scope?: string | undefined;
|
|
5610
6165
|
strategy?: string | undefined;
|
|
5611
|
-
connection_id?: string | undefined;
|
|
5612
6166
|
ip?: string | undefined;
|
|
5613
6167
|
user_agent?: string | undefined;
|
|
5614
6168
|
details?: any;
|
|
@@ -5705,13 +6259,13 @@ declare const logSchema: z.ZodObject<{
|
|
|
5705
6259
|
isMobile: boolean;
|
|
5706
6260
|
log_id: string;
|
|
5707
6261
|
description?: string | undefined;
|
|
5708
|
-
|
|
6262
|
+
connection_id?: string | undefined;
|
|
5709
6263
|
user_id?: string | undefined;
|
|
6264
|
+
connection?: string | undefined;
|
|
5710
6265
|
client_id?: string | undefined;
|
|
5711
6266
|
audience?: string | undefined;
|
|
5712
6267
|
scope?: string | undefined;
|
|
5713
6268
|
strategy?: string | undefined;
|
|
5714
|
-
connection_id?: string | undefined;
|
|
5715
6269
|
ip?: string | undefined;
|
|
5716
6270
|
user_agent?: string | undefined;
|
|
5717
6271
|
details?: any;
|
|
@@ -5740,13 +6294,13 @@ declare const logSchema: z.ZodObject<{
|
|
|
5740
6294
|
isMobile: boolean;
|
|
5741
6295
|
log_id: string;
|
|
5742
6296
|
description?: string | undefined;
|
|
5743
|
-
|
|
6297
|
+
connection_id?: string | undefined;
|
|
5744
6298
|
user_id?: string | undefined;
|
|
6299
|
+
connection?: string | undefined;
|
|
5745
6300
|
client_id?: string | undefined;
|
|
5746
6301
|
audience?: string | undefined;
|
|
5747
6302
|
scope?: string | undefined;
|
|
5748
6303
|
strategy?: string | undefined;
|
|
5749
|
-
connection_id?: string | undefined;
|
|
5750
6304
|
ip?: string | undefined;
|
|
5751
6305
|
user_agent?: string | undefined;
|
|
5752
6306
|
details?: any;
|
|
@@ -5807,19 +6361,19 @@ declare const passwordSchema: z.ZodObject<{
|
|
|
5807
6361
|
created_at: z.ZodString;
|
|
5808
6362
|
updated_at: z.ZodString;
|
|
5809
6363
|
}, "strip", z.ZodTypeAny, {
|
|
5810
|
-
password: string;
|
|
5811
6364
|
created_at: string;
|
|
5812
6365
|
updated_at: string;
|
|
5813
|
-
|
|
6366
|
+
password: string;
|
|
5814
6367
|
id: string;
|
|
6368
|
+
user_id: string;
|
|
5815
6369
|
algorithm: "bcrypt" | "argon2id";
|
|
5816
6370
|
is_current: boolean;
|
|
5817
6371
|
}, {
|
|
5818
|
-
password: string;
|
|
5819
6372
|
created_at: string;
|
|
5820
6373
|
updated_at: string;
|
|
5821
|
-
|
|
6374
|
+
password: string;
|
|
5822
6375
|
id: string;
|
|
6376
|
+
user_id: string;
|
|
5823
6377
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
5824
6378
|
is_current?: boolean | undefined;
|
|
5825
6379
|
}>;
|
|
@@ -5856,8 +6410,8 @@ declare const sessionInsertSchema: z.ZodObject<{
|
|
|
5856
6410
|
}>;
|
|
5857
6411
|
clients: z.ZodArray<z.ZodString, "many">;
|
|
5858
6412
|
}, "strip", z.ZodTypeAny, {
|
|
5859
|
-
user_id: string;
|
|
5860
6413
|
id: string;
|
|
6414
|
+
user_id: string;
|
|
5861
6415
|
clients: string[];
|
|
5862
6416
|
login_session_id: string;
|
|
5863
6417
|
device: {
|
|
@@ -5873,8 +6427,8 @@ declare const sessionInsertSchema: z.ZodObject<{
|
|
|
5873
6427
|
revoked_at?: string | undefined;
|
|
5874
6428
|
idle_expires_at?: string | undefined;
|
|
5875
6429
|
}, {
|
|
5876
|
-
user_id: string;
|
|
5877
6430
|
id: string;
|
|
6431
|
+
user_id: string;
|
|
5878
6432
|
clients: string[];
|
|
5879
6433
|
login_session_id: string;
|
|
5880
6434
|
device: {
|
|
@@ -5929,8 +6483,8 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
5929
6483
|
}, "strip", z.ZodTypeAny, {
|
|
5930
6484
|
created_at: string;
|
|
5931
6485
|
updated_at: string;
|
|
5932
|
-
user_id: string;
|
|
5933
6486
|
id: string;
|
|
6487
|
+
user_id: string;
|
|
5934
6488
|
clients: string[];
|
|
5935
6489
|
login_session_id: string;
|
|
5936
6490
|
device: {
|
|
@@ -5950,8 +6504,8 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
5950
6504
|
}, {
|
|
5951
6505
|
created_at: string;
|
|
5952
6506
|
updated_at: string;
|
|
5953
|
-
user_id: string;
|
|
5954
6507
|
id: string;
|
|
6508
|
+
user_id: string;
|
|
5955
6509
|
clients: string[];
|
|
5956
6510
|
login_session_id: string;
|
|
5957
6511
|
device: {
|
|
@@ -6259,8 +6813,8 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
6259
6813
|
}, "strip", z.ZodTypeAny, {
|
|
6260
6814
|
created_at: string;
|
|
6261
6815
|
updated_at: string;
|
|
6262
|
-
audience: string;
|
|
6263
6816
|
id: string;
|
|
6817
|
+
audience: string;
|
|
6264
6818
|
friendly_name: string;
|
|
6265
6819
|
sender_email: string;
|
|
6266
6820
|
sender_name: string;
|
|
@@ -6359,8 +6913,8 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
6359
6913
|
}, {
|
|
6360
6914
|
created_at: string | null;
|
|
6361
6915
|
updated_at: string | null;
|
|
6362
|
-
audience: string;
|
|
6363
6916
|
id: string;
|
|
6917
|
+
audience: string;
|
|
6364
6918
|
friendly_name: string;
|
|
6365
6919
|
sender_email: string;
|
|
6366
6920
|
sender_name: string;
|
|
@@ -7500,9 +8054,9 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
7500
8054
|
}>, "many">;
|
|
7501
8055
|
rotating: z.ZodBoolean;
|
|
7502
8056
|
}, "strip", z.ZodTypeAny, {
|
|
8057
|
+
id: string;
|
|
7503
8058
|
user_id: string;
|
|
7504
8059
|
client_id: string;
|
|
7505
|
-
id: string;
|
|
7506
8060
|
session_id: string;
|
|
7507
8061
|
device: {
|
|
7508
8062
|
last_ip: string;
|
|
@@ -7521,9 +8075,9 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
7521
8075
|
idle_expires_at?: string | undefined;
|
|
7522
8076
|
last_exchanged_at?: string | undefined;
|
|
7523
8077
|
}, {
|
|
8078
|
+
id: string;
|
|
7524
8079
|
user_id: string;
|
|
7525
8080
|
client_id: string;
|
|
7526
|
-
id: string;
|
|
7527
8081
|
session_id: string;
|
|
7528
8082
|
device: {
|
|
7529
8083
|
last_ip: string;
|
|
@@ -7587,9 +8141,9 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
7587
8141
|
created_at: z.ZodString;
|
|
7588
8142
|
}, "strip", z.ZodTypeAny, {
|
|
7589
8143
|
created_at: string;
|
|
8144
|
+
id: string;
|
|
7590
8145
|
user_id: string;
|
|
7591
8146
|
client_id: string;
|
|
7592
|
-
id: string;
|
|
7593
8147
|
session_id: string;
|
|
7594
8148
|
device: {
|
|
7595
8149
|
last_ip: string;
|
|
@@ -7609,9 +8163,9 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
7609
8163
|
last_exchanged_at?: string | undefined;
|
|
7610
8164
|
}, {
|
|
7611
8165
|
created_at: string;
|
|
8166
|
+
id: string;
|
|
7612
8167
|
user_id: string;
|
|
7613
8168
|
client_id: string;
|
|
7614
|
-
id: string;
|
|
7615
8169
|
session_id: string;
|
|
7616
8170
|
device: {
|
|
7617
8171
|
last_ip: string;
|
|
@@ -7805,6 +8359,8 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
7805
8359
|
}, "strip", z.ZodTypeAny, {
|
|
7806
8360
|
name: string;
|
|
7807
8361
|
identifier: string;
|
|
8362
|
+
created_at?: string | undefined;
|
|
8363
|
+
updated_at?: string | undefined;
|
|
7808
8364
|
options?: {
|
|
7809
8365
|
mtls?: {
|
|
7810
8366
|
bound_access_tokens?: boolean | undefined;
|
|
@@ -7816,8 +8372,6 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
7816
8372
|
persist_client_authorization?: boolean | undefined;
|
|
7817
8373
|
enable_introspection_endpoint?: boolean | undefined;
|
|
7818
8374
|
} | undefined;
|
|
7819
|
-
created_at?: string | undefined;
|
|
7820
|
-
updated_at?: string | undefined;
|
|
7821
8375
|
id?: string | undefined;
|
|
7822
8376
|
scopes?: {
|
|
7823
8377
|
value: string;
|
|
@@ -7833,6 +8387,8 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
7833
8387
|
}, {
|
|
7834
8388
|
name: string;
|
|
7835
8389
|
identifier: string;
|
|
8390
|
+
created_at?: string | undefined;
|
|
8391
|
+
updated_at?: string | undefined;
|
|
7836
8392
|
options?: {
|
|
7837
8393
|
mtls?: {
|
|
7838
8394
|
bound_access_tokens?: boolean | undefined;
|
|
@@ -7844,8 +8400,6 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
7844
8400
|
persist_client_authorization?: boolean | undefined;
|
|
7845
8401
|
enable_introspection_endpoint?: boolean | undefined;
|
|
7846
8402
|
} | undefined;
|
|
7847
|
-
created_at?: string | undefined;
|
|
7848
|
-
updated_at?: string | undefined;
|
|
7849
8403
|
id?: string | undefined;
|
|
7850
8404
|
scopes?: {
|
|
7851
8405
|
value: string;
|
|
@@ -7921,16 +8475,16 @@ declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
|
7921
8475
|
resource_server_identifier: string;
|
|
7922
8476
|
permission_name: string;
|
|
7923
8477
|
resource_server_name: string;
|
|
7924
|
-
description?: string | null | undefined;
|
|
7925
8478
|
created_at?: string | undefined;
|
|
8479
|
+
description?: string | null | undefined;
|
|
7926
8480
|
organization_id?: string | undefined;
|
|
7927
8481
|
}, {
|
|
7928
8482
|
user_id: string;
|
|
7929
8483
|
resource_server_identifier: string;
|
|
7930
8484
|
permission_name: string;
|
|
7931
8485
|
resource_server_name: string;
|
|
7932
|
-
description?: string | null | undefined;
|
|
7933
8486
|
created_at?: string | undefined;
|
|
8487
|
+
description?: string | null | undefined;
|
|
7934
8488
|
organization_id?: string | undefined;
|
|
7935
8489
|
}>, "many">;
|
|
7936
8490
|
export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
|
|
@@ -7951,17 +8505,17 @@ declare const roleSchema: z.ZodObject<{
|
|
|
7951
8505
|
description: z.ZodOptional<z.ZodString>;
|
|
7952
8506
|
id: z.ZodString;
|
|
7953
8507
|
}, "strip", z.ZodTypeAny, {
|
|
7954
|
-
name: string;
|
|
7955
8508
|
id: string;
|
|
7956
|
-
|
|
8509
|
+
name: string;
|
|
7957
8510
|
created_at?: string | undefined;
|
|
7958
8511
|
updated_at?: string | undefined;
|
|
8512
|
+
description?: string | undefined;
|
|
7959
8513
|
}, {
|
|
7960
|
-
name: string;
|
|
7961
8514
|
id: string;
|
|
7962
|
-
|
|
8515
|
+
name: string;
|
|
7963
8516
|
created_at?: string | undefined;
|
|
7964
8517
|
updated_at?: string | undefined;
|
|
8518
|
+
description?: string | undefined;
|
|
7965
8519
|
}>;
|
|
7966
8520
|
export type Role = z.infer<typeof roleSchema>;
|
|
7967
8521
|
export type RoleInsert = z.infer<typeof roleInsertSchema>;
|
|
@@ -8001,8 +8555,8 @@ declare const organizationInsertSchema: z.ZodObject<{
|
|
|
8001
8555
|
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
8002
8556
|
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
8003
8557
|
}, "strip", z.ZodTypeAny, {
|
|
8004
|
-
show_as_button: boolean;
|
|
8005
8558
|
connection_id: string;
|
|
8559
|
+
show_as_button: boolean;
|
|
8006
8560
|
assign_membership_on_login: boolean;
|
|
8007
8561
|
is_signup_enabled: boolean;
|
|
8008
8562
|
}, {
|
|
@@ -8040,6 +8594,7 @@ declare const organizationInsertSchema: z.ZodObject<{
|
|
|
8040
8594
|
}>>;
|
|
8041
8595
|
}, "strip", z.ZodTypeAny, {
|
|
8042
8596
|
name: string;
|
|
8597
|
+
id?: string | undefined;
|
|
8043
8598
|
token_quota?: {
|
|
8044
8599
|
client_credentials?: {
|
|
8045
8600
|
enforce: boolean;
|
|
@@ -8047,7 +8602,6 @@ declare const organizationInsertSchema: z.ZodObject<{
|
|
|
8047
8602
|
per_hour: number;
|
|
8048
8603
|
} | undefined;
|
|
8049
8604
|
} | undefined;
|
|
8050
|
-
id?: string | undefined;
|
|
8051
8605
|
display_name?: string | undefined;
|
|
8052
8606
|
metadata?: Record<string, any> | undefined;
|
|
8053
8607
|
branding?: {
|
|
@@ -8058,13 +8612,14 @@ declare const organizationInsertSchema: z.ZodObject<{
|
|
|
8058
8612
|
logo_url?: string | undefined;
|
|
8059
8613
|
} | undefined;
|
|
8060
8614
|
enabled_connections?: {
|
|
8061
|
-
show_as_button: boolean;
|
|
8062
8615
|
connection_id: string;
|
|
8616
|
+
show_as_button: boolean;
|
|
8063
8617
|
assign_membership_on_login: boolean;
|
|
8064
8618
|
is_signup_enabled: boolean;
|
|
8065
8619
|
}[] | undefined;
|
|
8066
8620
|
}, {
|
|
8067
8621
|
name: string;
|
|
8622
|
+
id?: string | undefined;
|
|
8068
8623
|
token_quota?: {
|
|
8069
8624
|
client_credentials?: {
|
|
8070
8625
|
enforce?: boolean | undefined;
|
|
@@ -8072,7 +8627,6 @@ declare const organizationInsertSchema: z.ZodObject<{
|
|
|
8072
8627
|
per_hour?: number | undefined;
|
|
8073
8628
|
} | undefined;
|
|
8074
8629
|
} | undefined;
|
|
8075
|
-
id?: string | undefined;
|
|
8076
8630
|
display_name?: string | undefined;
|
|
8077
8631
|
metadata?: Record<string, any> | undefined;
|
|
8078
8632
|
branding?: {
|
|
@@ -8128,8 +8682,8 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
8128
8682
|
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
8129
8683
|
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
8130
8684
|
}, "strip", z.ZodTypeAny, {
|
|
8131
|
-
show_as_button: boolean;
|
|
8132
8685
|
connection_id: string;
|
|
8686
|
+
show_as_button: boolean;
|
|
8133
8687
|
assign_membership_on_login: boolean;
|
|
8134
8688
|
is_signup_enabled: boolean;
|
|
8135
8689
|
}, {
|
|
@@ -8168,8 +8722,8 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
8168
8722
|
}, "strip", z.ZodTypeAny, {
|
|
8169
8723
|
created_at: string;
|
|
8170
8724
|
updated_at: string;
|
|
8171
|
-
name: string;
|
|
8172
8725
|
id: string;
|
|
8726
|
+
name: string;
|
|
8173
8727
|
token_quota?: {
|
|
8174
8728
|
client_credentials?: {
|
|
8175
8729
|
enforce: boolean;
|
|
@@ -8187,16 +8741,16 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
8187
8741
|
logo_url?: string | undefined;
|
|
8188
8742
|
} | undefined;
|
|
8189
8743
|
enabled_connections?: {
|
|
8190
|
-
show_as_button: boolean;
|
|
8191
8744
|
connection_id: string;
|
|
8745
|
+
show_as_button: boolean;
|
|
8192
8746
|
assign_membership_on_login: boolean;
|
|
8193
8747
|
is_signup_enabled: boolean;
|
|
8194
8748
|
}[] | undefined;
|
|
8195
8749
|
}, {
|
|
8196
8750
|
created_at: string;
|
|
8197
8751
|
updated_at: string;
|
|
8198
|
-
name: string;
|
|
8199
8752
|
id: string;
|
|
8753
|
+
name: string;
|
|
8200
8754
|
token_quota?: {
|
|
8201
8755
|
client_credentials?: {
|
|
8202
8756
|
enforce?: boolean | undefined;
|
|
@@ -8241,14 +8795,14 @@ declare const userOrganizationSchema: z.ZodObject<{
|
|
|
8241
8795
|
}, "strip", z.ZodTypeAny, {
|
|
8242
8796
|
created_at: string;
|
|
8243
8797
|
updated_at: string;
|
|
8244
|
-
user_id: string;
|
|
8245
8798
|
id: string;
|
|
8799
|
+
user_id: string;
|
|
8246
8800
|
organization_id: string;
|
|
8247
8801
|
}, {
|
|
8248
8802
|
created_at: string;
|
|
8249
8803
|
updated_at: string;
|
|
8250
|
-
user_id: string;
|
|
8251
8804
|
id: string;
|
|
8805
|
+
user_id: string;
|
|
8252
8806
|
organization_id: string;
|
|
8253
8807
|
}>;
|
|
8254
8808
|
export type UserOrganization = z.infer<typeof userOrganizationSchema>;
|
|
@@ -8260,21 +8814,31 @@ declare const dailyStatsSchema: z.ZodObject<{
|
|
|
8260
8814
|
updated_at: z.ZodString;
|
|
8261
8815
|
created_at: z.ZodString;
|
|
8262
8816
|
}, "strip", z.ZodTypeAny, {
|
|
8263
|
-
date: string;
|
|
8264
8817
|
created_at: string;
|
|
8265
8818
|
updated_at: string;
|
|
8819
|
+
date: string;
|
|
8266
8820
|
logins: number;
|
|
8267
8821
|
signups: number;
|
|
8268
8822
|
leaked_passwords: number;
|
|
8269
8823
|
}, {
|
|
8270
|
-
date: string;
|
|
8271
8824
|
created_at: string;
|
|
8272
8825
|
updated_at: string;
|
|
8826
|
+
date: string;
|
|
8273
8827
|
logins: number;
|
|
8274
8828
|
signups: number;
|
|
8275
8829
|
leaked_passwords: number;
|
|
8276
8830
|
}>;
|
|
8277
8831
|
export type DailyStats = z.infer<typeof dailyStatsSchema>;
|
|
8832
|
+
export interface ListFlowsResponse extends Totals {
|
|
8833
|
+
flows: Flow[];
|
|
8834
|
+
}
|
|
8835
|
+
export interface FlowsAdapter {
|
|
8836
|
+
create(tenant_id: string, params: FlowInsert): Promise<Flow>;
|
|
8837
|
+
get(tenant_id: string, flow_id: string): Promise<Flow | null>;
|
|
8838
|
+
remove(tenant_id: string, flow_id: string): Promise<boolean>;
|
|
8839
|
+
update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
|
|
8840
|
+
list(tenant_id: string, params?: ListParams): Promise<ListFlowsResponse>;
|
|
8841
|
+
}
|
|
8278
8842
|
export interface CacheAdapter {
|
|
8279
8843
|
/**
|
|
8280
8844
|
* Get a value from the cache
|
|
@@ -8610,6 +9174,7 @@ export interface DataAdapters {
|
|
|
8610
9174
|
connections: ConnectionsAdapter;
|
|
8611
9175
|
customDomains: CustomDomainsAdapter;
|
|
8612
9176
|
emailProviders: EmailProvidersAdapter;
|
|
9177
|
+
flows: FlowsAdapter;
|
|
8613
9178
|
forms: FormsAdapter;
|
|
8614
9179
|
geo?: GeoAdapter;
|
|
8615
9180
|
hooks: HooksAdapter;
|
|
@@ -8780,8 +9345,8 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
8780
9345
|
family_name: z.ZodOptional<z.ZodString>;
|
|
8781
9346
|
}, z.ZodAny, "strip">>>;
|
|
8782
9347
|
}, "strip", z.ZodTypeAny, {
|
|
8783
|
-
connection: string;
|
|
8784
9348
|
user_id: string;
|
|
9349
|
+
connection: string;
|
|
8785
9350
|
provider: string;
|
|
8786
9351
|
isSocial: boolean;
|
|
8787
9352
|
access_token?: string | undefined;
|
|
@@ -8798,8 +9363,8 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
8798
9363
|
family_name: z.ZodOptional<z.ZodString>;
|
|
8799
9364
|
}, z.ZodAny, "strip"> | undefined;
|
|
8800
9365
|
}, {
|
|
8801
|
-
connection: string;
|
|
8802
9366
|
user_id: string;
|
|
9367
|
+
connection: string;
|
|
8803
9368
|
provider: string;
|
|
8804
9369
|
isSocial: boolean;
|
|
8805
9370
|
access_token?: string | undefined;
|
|
@@ -8847,8 +9412,8 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
8847
9412
|
name?: string | undefined;
|
|
8848
9413
|
email?: string | undefined;
|
|
8849
9414
|
identities?: {
|
|
8850
|
-
connection: string;
|
|
8851
9415
|
user_id: string;
|
|
9416
|
+
connection: string;
|
|
8852
9417
|
provider: string;
|
|
8853
9418
|
isSocial: boolean;
|
|
8854
9419
|
access_token?: string | undefined;
|
|
@@ -8892,8 +9457,8 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
8892
9457
|
email?: string | undefined;
|
|
8893
9458
|
login_count?: number | undefined;
|
|
8894
9459
|
identities?: {
|
|
8895
|
-
connection: string;
|
|
8896
9460
|
user_id: string;
|
|
9461
|
+
connection: string;
|
|
8897
9462
|
provider: string;
|
|
8898
9463
|
isSocial: boolean;
|
|
8899
9464
|
access_token?: string | undefined;
|
|
@@ -9251,6 +9816,28 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
9251
9816
|
} | undefined;
|
|
9252
9817
|
translations?: Record<string, any> | undefined;
|
|
9253
9818
|
}>;
|
|
9819
|
+
declare const sqlFlowSchema: z.ZodObject<{
|
|
9820
|
+
tenant_id: z.ZodString;
|
|
9821
|
+
actions: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9822
|
+
name: z.ZodString;
|
|
9823
|
+
id: z.ZodString;
|
|
9824
|
+
created_at: z.ZodString;
|
|
9825
|
+
updated_at: z.ZodString;
|
|
9826
|
+
}, "strip", z.ZodTypeAny, {
|
|
9827
|
+
tenant_id: string;
|
|
9828
|
+
id: string;
|
|
9829
|
+
name: string;
|
|
9830
|
+
created_at: string;
|
|
9831
|
+
updated_at: string;
|
|
9832
|
+
actions: string;
|
|
9833
|
+
}, {
|
|
9834
|
+
tenant_id: string;
|
|
9835
|
+
id: string;
|
|
9836
|
+
name: string;
|
|
9837
|
+
created_at: string;
|
|
9838
|
+
updated_at: string;
|
|
9839
|
+
actions?: string | undefined;
|
|
9840
|
+
}>;
|
|
9254
9841
|
declare const sqlLogSchema: z.ZodObject<{
|
|
9255
9842
|
id: z.ZodOptional<z.ZodString>;
|
|
9256
9843
|
tenant_id: z.ZodString;
|
|
@@ -10296,6 +10883,7 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
10296
10883
|
par_request_expiry?: number | undefined;
|
|
10297
10884
|
}>;
|
|
10298
10885
|
export interface Database {
|
|
10886
|
+
flows: z.infer<typeof sqlFlowSchema>;
|
|
10299
10887
|
branding: z.infer<typeof sqlBrandingSchema>;
|
|
10300
10888
|
clients: z.infer<typeof sqlClientSchema>;
|
|
10301
10889
|
client_grants: z.infer<typeof sqlClientGrantSchema>;
|