@authhero/adapter-interfaces 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +198 -11
- package/dist/adapter-interfaces.mjs +576 -557
- package/package.json +1 -1
|
@@ -268,6 +268,164 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
268
268
|
deployed_at?: string | undefined;
|
|
269
269
|
}>;
|
|
270
270
|
export type Action = z.infer<typeof actionSchema>;
|
|
271
|
+
export declare const actionVersionInsertSchema: z.ZodObject<{
|
|
272
|
+
action_id: z.ZodString;
|
|
273
|
+
code: z.ZodString;
|
|
274
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
275
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
276
|
+
name: z.ZodString;
|
|
277
|
+
version: z.ZodString;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
version: string;
|
|
280
|
+
name: string;
|
|
281
|
+
}, {
|
|
282
|
+
version: string;
|
|
283
|
+
name: string;
|
|
284
|
+
}>, "many">>;
|
|
285
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
286
|
+
name: z.ZodString;
|
|
287
|
+
value: z.ZodOptional<z.ZodString>;
|
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
|
289
|
+
name: string;
|
|
290
|
+
value?: string | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
name: string;
|
|
293
|
+
value?: string | undefined;
|
|
294
|
+
}>, "many">>;
|
|
295
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
296
|
+
id: z.ZodString;
|
|
297
|
+
version: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
id: string;
|
|
300
|
+
version?: string | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
id: string;
|
|
303
|
+
version?: string | undefined;
|
|
304
|
+
}>, "many">>;
|
|
305
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
code: string;
|
|
308
|
+
action_id: string;
|
|
309
|
+
deployed: boolean;
|
|
310
|
+
supported_triggers?: {
|
|
311
|
+
id: string;
|
|
312
|
+
version?: string | undefined;
|
|
313
|
+
}[] | undefined;
|
|
314
|
+
runtime?: string | undefined;
|
|
315
|
+
dependencies?: {
|
|
316
|
+
version: string;
|
|
317
|
+
name: string;
|
|
318
|
+
}[] | undefined;
|
|
319
|
+
secrets?: {
|
|
320
|
+
name: string;
|
|
321
|
+
value?: string | undefined;
|
|
322
|
+
}[] | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
code: string;
|
|
325
|
+
action_id: string;
|
|
326
|
+
supported_triggers?: {
|
|
327
|
+
id: string;
|
|
328
|
+
version?: string | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
runtime?: string | undefined;
|
|
331
|
+
dependencies?: {
|
|
332
|
+
version: string;
|
|
333
|
+
name: string;
|
|
334
|
+
}[] | undefined;
|
|
335
|
+
secrets?: {
|
|
336
|
+
name: string;
|
|
337
|
+
value?: string | undefined;
|
|
338
|
+
}[] | undefined;
|
|
339
|
+
deployed?: boolean | undefined;
|
|
340
|
+
}>;
|
|
341
|
+
export type ActionVersionInsert = z.infer<typeof actionVersionInsertSchema>;
|
|
342
|
+
export declare const actionVersionSchema: z.ZodObject<{
|
|
343
|
+
action_id: z.ZodString;
|
|
344
|
+
code: z.ZodString;
|
|
345
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
346
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
version: z.ZodString;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
version: string;
|
|
351
|
+
name: string;
|
|
352
|
+
}, {
|
|
353
|
+
version: string;
|
|
354
|
+
name: string;
|
|
355
|
+
}>, "many">>;
|
|
356
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
value: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
name: string;
|
|
361
|
+
value?: string | undefined;
|
|
362
|
+
}, {
|
|
363
|
+
name: string;
|
|
364
|
+
value?: string | undefined;
|
|
365
|
+
}>, "many">>;
|
|
366
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
367
|
+
id: z.ZodString;
|
|
368
|
+
version: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
id: string;
|
|
371
|
+
version?: string | undefined;
|
|
372
|
+
}, {
|
|
373
|
+
id: string;
|
|
374
|
+
version?: string | undefined;
|
|
375
|
+
}>, "many">>;
|
|
376
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
} & {
|
|
378
|
+
created_at: z.ZodString;
|
|
379
|
+
updated_at: z.ZodString;
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
tenant_id: z.ZodString;
|
|
382
|
+
number: z.ZodNumber;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
number: number;
|
|
385
|
+
created_at: string;
|
|
386
|
+
updated_at: string;
|
|
387
|
+
code: string;
|
|
388
|
+
id: string;
|
|
389
|
+
tenant_id: string;
|
|
390
|
+
action_id: string;
|
|
391
|
+
deployed: boolean;
|
|
392
|
+
supported_triggers?: {
|
|
393
|
+
id: string;
|
|
394
|
+
version?: string | undefined;
|
|
395
|
+
}[] | undefined;
|
|
396
|
+
runtime?: string | undefined;
|
|
397
|
+
dependencies?: {
|
|
398
|
+
version: string;
|
|
399
|
+
name: string;
|
|
400
|
+
}[] | undefined;
|
|
401
|
+
secrets?: {
|
|
402
|
+
name: string;
|
|
403
|
+
value?: string | undefined;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
number: number;
|
|
407
|
+
created_at: string;
|
|
408
|
+
updated_at: string;
|
|
409
|
+
code: string;
|
|
410
|
+
id: string;
|
|
411
|
+
tenant_id: string;
|
|
412
|
+
action_id: string;
|
|
413
|
+
supported_triggers?: {
|
|
414
|
+
id: string;
|
|
415
|
+
version?: string | undefined;
|
|
416
|
+
}[] | undefined;
|
|
417
|
+
runtime?: string | undefined;
|
|
418
|
+
dependencies?: {
|
|
419
|
+
version: string;
|
|
420
|
+
name: string;
|
|
421
|
+
}[] | undefined;
|
|
422
|
+
secrets?: {
|
|
423
|
+
name: string;
|
|
424
|
+
value?: string | undefined;
|
|
425
|
+
}[] | undefined;
|
|
426
|
+
deployed?: boolean | undefined;
|
|
427
|
+
}>;
|
|
428
|
+
export type ActionVersion = z.infer<typeof actionVersionSchema>;
|
|
271
429
|
export declare const auditCategorySchema: z.ZodEnum<[
|
|
272
430
|
"user_action",
|
|
273
431
|
"admin_action",
|
|
@@ -11395,7 +11553,10 @@ export declare enum AuthorizationResponseType {
|
|
|
11395
11553
|
TOKEN = "token",
|
|
11396
11554
|
ID_TOKEN = "id_token",
|
|
11397
11555
|
TOKEN_ID_TOKEN = "id_token token",
|
|
11398
|
-
CODE = "code"
|
|
11556
|
+
CODE = "code",
|
|
11557
|
+
CODE_ID_TOKEN = "code id_token",
|
|
11558
|
+
CODE_TOKEN = "code token",
|
|
11559
|
+
CODE_ID_TOKEN_TOKEN = "code id_token token"
|
|
11399
11560
|
}
|
|
11400
11561
|
export declare enum AuthorizationResponseMode {
|
|
11401
11562
|
QUERY = "query",
|
|
@@ -11516,6 +11677,11 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
11516
11677
|
}, {
|
|
11517
11678
|
url: string;
|
|
11518
11679
|
}>>;
|
|
11680
|
+
dark_mode: z.ZodOptional<z.ZodEnum<[
|
|
11681
|
+
"dark",
|
|
11682
|
+
"light",
|
|
11683
|
+
"auto"
|
|
11684
|
+
]>>;
|
|
11519
11685
|
}, "strip", z.ZodTypeAny, {
|
|
11520
11686
|
colors?: {
|
|
11521
11687
|
primary: string;
|
|
@@ -11532,6 +11698,7 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
11532
11698
|
font?: {
|
|
11533
11699
|
url: string;
|
|
11534
11700
|
} | undefined;
|
|
11701
|
+
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
11535
11702
|
}, {
|
|
11536
11703
|
colors?: {
|
|
11537
11704
|
primary: string;
|
|
@@ -11548,6 +11715,7 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
11548
11715
|
font?: {
|
|
11549
11716
|
url: string;
|
|
11550
11717
|
} | undefined;
|
|
11718
|
+
dark_mode?: "dark" | "light" | "auto" | undefined;
|
|
11551
11719
|
}>;
|
|
11552
11720
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
11553
11721
|
export declare const codeTypeSchema: z.ZodEnum<[
|
|
@@ -47029,7 +47197,7 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
47029
47197
|
base_focus_color: string;
|
|
47030
47198
|
base_hover_color: string;
|
|
47031
47199
|
body_text: string;
|
|
47032
|
-
captcha_widget_theme: "
|
|
47200
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47033
47201
|
header: string;
|
|
47034
47202
|
icons: string;
|
|
47035
47203
|
input_background: string;
|
|
@@ -47049,7 +47217,7 @@ export declare const colorsSchema: z.ZodObject<{
|
|
|
47049
47217
|
base_focus_color: string;
|
|
47050
47218
|
base_hover_color: string;
|
|
47051
47219
|
body_text: string;
|
|
47052
|
-
captcha_widget_theme: "
|
|
47220
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47053
47221
|
header: string;
|
|
47054
47222
|
icons: string;
|
|
47055
47223
|
input_background: string;
|
|
@@ -47331,7 +47499,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47331
47499
|
base_focus_color: string;
|
|
47332
47500
|
base_hover_color: string;
|
|
47333
47501
|
body_text: string;
|
|
47334
|
-
captcha_widget_theme: "
|
|
47502
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47335
47503
|
header: string;
|
|
47336
47504
|
icons: string;
|
|
47337
47505
|
input_background: string;
|
|
@@ -47351,7 +47519,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47351
47519
|
base_focus_color: string;
|
|
47352
47520
|
base_hover_color: string;
|
|
47353
47521
|
body_text: string;
|
|
47354
|
-
captcha_widget_theme: "
|
|
47522
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47355
47523
|
header: string;
|
|
47356
47524
|
icons: string;
|
|
47357
47525
|
input_background: string;
|
|
@@ -47567,7 +47735,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47567
47735
|
base_focus_color: string;
|
|
47568
47736
|
base_hover_color: string;
|
|
47569
47737
|
body_text: string;
|
|
47570
|
-
captcha_widget_theme: "
|
|
47738
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47571
47739
|
header: string;
|
|
47572
47740
|
icons: string;
|
|
47573
47741
|
input_background: string;
|
|
@@ -47643,7 +47811,7 @@ export declare const themeInsertSchema: z.ZodObject<{
|
|
|
47643
47811
|
base_focus_color: string;
|
|
47644
47812
|
base_hover_color: string;
|
|
47645
47813
|
body_text: string;
|
|
47646
|
-
captcha_widget_theme: "
|
|
47814
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47647
47815
|
header: string;
|
|
47648
47816
|
icons: string;
|
|
47649
47817
|
input_background: string;
|
|
@@ -47778,7 +47946,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47778
47946
|
base_focus_color: string;
|
|
47779
47947
|
base_hover_color: string;
|
|
47780
47948
|
body_text: string;
|
|
47781
|
-
captcha_widget_theme: "
|
|
47949
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47782
47950
|
header: string;
|
|
47783
47951
|
icons: string;
|
|
47784
47952
|
input_background: string;
|
|
@@ -47798,7 +47966,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
47798
47966
|
base_focus_color: string;
|
|
47799
47967
|
base_hover_color: string;
|
|
47800
47968
|
body_text: string;
|
|
47801
|
-
captcha_widget_theme: "
|
|
47969
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
47802
47970
|
header: string;
|
|
47803
47971
|
icons: string;
|
|
47804
47972
|
input_background: string;
|
|
@@ -48016,7 +48184,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
48016
48184
|
base_focus_color: string;
|
|
48017
48185
|
base_hover_color: string;
|
|
48018
48186
|
body_text: string;
|
|
48019
|
-
captcha_widget_theme: "
|
|
48187
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
48020
48188
|
header: string;
|
|
48021
48189
|
icons: string;
|
|
48022
48190
|
input_background: string;
|
|
@@ -48093,7 +48261,7 @@ export declare const themeSchema: z.ZodObject<{
|
|
|
48093
48261
|
base_focus_color: string;
|
|
48094
48262
|
base_hover_color: string;
|
|
48095
48263
|
body_text: string;
|
|
48096
|
-
captcha_widget_theme: "
|
|
48264
|
+
captcha_widget_theme: "dark" | "light" | "auto";
|
|
48097
48265
|
header: string;
|
|
48098
48266
|
icons: string;
|
|
48099
48267
|
input_background: string;
|
|
@@ -50516,6 +50684,24 @@ export interface ActionsAdapter {
|
|
|
50516
50684
|
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
50517
50685
|
list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
|
|
50518
50686
|
}
|
|
50687
|
+
export interface ListActionVersionsResponse extends Totals {
|
|
50688
|
+
versions: ActionVersion[];
|
|
50689
|
+
}
|
|
50690
|
+
export interface ActionVersionsAdapter {
|
|
50691
|
+
/**
|
|
50692
|
+
* Append a new version row for an action. The adapter assigns the next
|
|
50693
|
+
* sequential `number` per action_id and clears the `deployed` flag on any
|
|
50694
|
+
* prior versions when the new one is created with `deployed: true`.
|
|
50695
|
+
*/
|
|
50696
|
+
create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
|
|
50697
|
+
get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
|
|
50698
|
+
list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
|
|
50699
|
+
/**
|
|
50700
|
+
* Remove every version row for an action — used when the parent action is
|
|
50701
|
+
* deleted. Returns the number of rows removed.
|
|
50702
|
+
*/
|
|
50703
|
+
removeForAction: (tenant_id: string, action_id: string) => Promise<number>;
|
|
50704
|
+
}
|
|
50519
50705
|
export interface ListFlowsResponse extends Totals {
|
|
50520
50706
|
flows: Flow[];
|
|
50521
50707
|
}
|
|
@@ -51156,6 +51342,7 @@ export interface SessionCleanupParams {
|
|
|
51156
51342
|
}
|
|
51157
51343
|
export interface DataAdapters {
|
|
51158
51344
|
actions: ActionsAdapter;
|
|
51345
|
+
actionVersions: ActionVersionsAdapter;
|
|
51159
51346
|
branding: BrandingAdapter;
|
|
51160
51347
|
cache?: CacheAdapter;
|
|
51161
51348
|
clients: ClientsAdapter;
|