authhero 4.114.0 → 4.115.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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +102 -102
- package/dist/authhero.d.ts +387 -0
- package/dist/authhero.mjs +10536 -10287
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -271,6 +271,164 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
271
271
|
deployed_at?: string | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
export type Action = z.infer<typeof actionSchema>;
|
|
274
|
+
export declare const actionVersionInsertSchema: z.ZodObject<{
|
|
275
|
+
action_id: z.ZodString;
|
|
276
|
+
code: z.ZodString;
|
|
277
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
278
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
version: z.ZodString;
|
|
281
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
|
+
version: string;
|
|
283
|
+
name: string;
|
|
284
|
+
}, {
|
|
285
|
+
version: string;
|
|
286
|
+
name: string;
|
|
287
|
+
}>, "many">>;
|
|
288
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
value: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
name: string;
|
|
293
|
+
value?: string | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
name: string;
|
|
296
|
+
value?: string | undefined;
|
|
297
|
+
}>, "many">>;
|
|
298
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
version: z.ZodOptional<z.ZodString>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
id: string;
|
|
303
|
+
version?: string | undefined;
|
|
304
|
+
}, {
|
|
305
|
+
id: string;
|
|
306
|
+
version?: string | undefined;
|
|
307
|
+
}>, "many">>;
|
|
308
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
code: string;
|
|
311
|
+
action_id: string;
|
|
312
|
+
deployed: boolean;
|
|
313
|
+
supported_triggers?: {
|
|
314
|
+
id: string;
|
|
315
|
+
version?: string | undefined;
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
runtime?: string | undefined;
|
|
318
|
+
dependencies?: {
|
|
319
|
+
version: string;
|
|
320
|
+
name: string;
|
|
321
|
+
}[] | undefined;
|
|
322
|
+
secrets?: {
|
|
323
|
+
name: string;
|
|
324
|
+
value?: string | undefined;
|
|
325
|
+
}[] | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
code: string;
|
|
328
|
+
action_id: string;
|
|
329
|
+
supported_triggers?: {
|
|
330
|
+
id: string;
|
|
331
|
+
version?: string | undefined;
|
|
332
|
+
}[] | undefined;
|
|
333
|
+
runtime?: string | undefined;
|
|
334
|
+
dependencies?: {
|
|
335
|
+
version: string;
|
|
336
|
+
name: string;
|
|
337
|
+
}[] | undefined;
|
|
338
|
+
secrets?: {
|
|
339
|
+
name: string;
|
|
340
|
+
value?: string | undefined;
|
|
341
|
+
}[] | undefined;
|
|
342
|
+
deployed?: boolean | undefined;
|
|
343
|
+
}>;
|
|
344
|
+
export type ActionVersionInsert = z.infer<typeof actionVersionInsertSchema>;
|
|
345
|
+
export declare const actionVersionSchema: z.ZodObject<{
|
|
346
|
+
action_id: z.ZodString;
|
|
347
|
+
code: z.ZodString;
|
|
348
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
349
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
name: z.ZodString;
|
|
351
|
+
version: z.ZodString;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
version: string;
|
|
354
|
+
name: string;
|
|
355
|
+
}, {
|
|
356
|
+
version: string;
|
|
357
|
+
name: string;
|
|
358
|
+
}>, "many">>;
|
|
359
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
360
|
+
name: z.ZodString;
|
|
361
|
+
value: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
name: string;
|
|
364
|
+
value?: string | undefined;
|
|
365
|
+
}, {
|
|
366
|
+
name: string;
|
|
367
|
+
value?: string | undefined;
|
|
368
|
+
}>, "many">>;
|
|
369
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
version: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
373
|
+
id: string;
|
|
374
|
+
version?: string | undefined;
|
|
375
|
+
}, {
|
|
376
|
+
id: string;
|
|
377
|
+
version?: string | undefined;
|
|
378
|
+
}>, "many">>;
|
|
379
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
380
|
+
} & {
|
|
381
|
+
created_at: z.ZodString;
|
|
382
|
+
updated_at: z.ZodString;
|
|
383
|
+
id: z.ZodString;
|
|
384
|
+
tenant_id: z.ZodString;
|
|
385
|
+
number: z.ZodNumber;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
number: number;
|
|
388
|
+
created_at: string;
|
|
389
|
+
updated_at: string;
|
|
390
|
+
code: string;
|
|
391
|
+
id: string;
|
|
392
|
+
tenant_id: string;
|
|
393
|
+
action_id: string;
|
|
394
|
+
deployed: boolean;
|
|
395
|
+
supported_triggers?: {
|
|
396
|
+
id: string;
|
|
397
|
+
version?: string | undefined;
|
|
398
|
+
}[] | undefined;
|
|
399
|
+
runtime?: string | undefined;
|
|
400
|
+
dependencies?: {
|
|
401
|
+
version: string;
|
|
402
|
+
name: string;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
secrets?: {
|
|
405
|
+
name: string;
|
|
406
|
+
value?: string | undefined;
|
|
407
|
+
}[] | undefined;
|
|
408
|
+
}, {
|
|
409
|
+
number: number;
|
|
410
|
+
created_at: string;
|
|
411
|
+
updated_at: string;
|
|
412
|
+
code: string;
|
|
413
|
+
id: string;
|
|
414
|
+
tenant_id: string;
|
|
415
|
+
action_id: string;
|
|
416
|
+
supported_triggers?: {
|
|
417
|
+
id: string;
|
|
418
|
+
version?: string | undefined;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
runtime?: string | undefined;
|
|
421
|
+
dependencies?: {
|
|
422
|
+
version: string;
|
|
423
|
+
name: string;
|
|
424
|
+
}[] | undefined;
|
|
425
|
+
secrets?: {
|
|
426
|
+
name: string;
|
|
427
|
+
value?: string | undefined;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
deployed?: boolean | undefined;
|
|
430
|
+
}>;
|
|
431
|
+
export type ActionVersion = z.infer<typeof actionVersionSchema>;
|
|
274
432
|
export declare const auditCategorySchema: z.ZodEnum<[
|
|
275
433
|
"user_action",
|
|
276
434
|
"admin_action",
|
|
@@ -50519,6 +50677,24 @@ export interface ActionsAdapter {
|
|
|
50519
50677
|
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
50520
50678
|
list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
|
|
50521
50679
|
}
|
|
50680
|
+
export interface ListActionVersionsResponse extends Totals {
|
|
50681
|
+
versions: ActionVersion[];
|
|
50682
|
+
}
|
|
50683
|
+
export interface ActionVersionsAdapter {
|
|
50684
|
+
/**
|
|
50685
|
+
* Append a new version row for an action. The adapter assigns the next
|
|
50686
|
+
* sequential `number` per action_id and clears the `deployed` flag on any
|
|
50687
|
+
* prior versions when the new one is created with `deployed: true`.
|
|
50688
|
+
*/
|
|
50689
|
+
create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
|
|
50690
|
+
get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
|
|
50691
|
+
list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
|
|
50692
|
+
/**
|
|
50693
|
+
* Remove every version row for an action — used when the parent action is
|
|
50694
|
+
* deleted. Returns the number of rows removed.
|
|
50695
|
+
*/
|
|
50696
|
+
removeForAction: (tenant_id: string, action_id: string) => Promise<number>;
|
|
50697
|
+
}
|
|
50522
50698
|
export interface ListFlowsResponse extends Totals {
|
|
50523
50699
|
flows: Flow[];
|
|
50524
50700
|
}
|
|
@@ -51159,6 +51335,7 @@ export interface SessionCleanupParams {
|
|
|
51159
51335
|
}
|
|
51160
51336
|
export interface DataAdapters {
|
|
51161
51337
|
actions: ActionsAdapter;
|
|
51338
|
+
actionVersions: ActionVersionsAdapter;
|
|
51162
51339
|
branding: BrandingAdapter;
|
|
51163
51340
|
cache?: CacheAdapter;
|
|
51164
51341
|
clients: ClientsAdapter;
|
|
@@ -67942,6 +68119,216 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
67942
68119
|
status: 200;
|
|
67943
68120
|
};
|
|
67944
68121
|
};
|
|
68122
|
+
} & {
|
|
68123
|
+
"/:actionId/versions": {
|
|
68124
|
+
$get: {
|
|
68125
|
+
input: {
|
|
68126
|
+
param: {
|
|
68127
|
+
actionId: string;
|
|
68128
|
+
};
|
|
68129
|
+
} & {
|
|
68130
|
+
query: {
|
|
68131
|
+
sort?: string | undefined;
|
|
68132
|
+
page?: string | undefined;
|
|
68133
|
+
per_page?: string | undefined;
|
|
68134
|
+
include_totals?: string | undefined;
|
|
68135
|
+
from?: string | undefined;
|
|
68136
|
+
take?: string | undefined;
|
|
68137
|
+
q?: string | undefined;
|
|
68138
|
+
};
|
|
68139
|
+
} & {
|
|
68140
|
+
header: {
|
|
68141
|
+
"tenant-id"?: string | undefined;
|
|
68142
|
+
};
|
|
68143
|
+
};
|
|
68144
|
+
output: {};
|
|
68145
|
+
outputFormat: string;
|
|
68146
|
+
status: 404;
|
|
68147
|
+
} | {
|
|
68148
|
+
input: {
|
|
68149
|
+
param: {
|
|
68150
|
+
actionId: string;
|
|
68151
|
+
};
|
|
68152
|
+
} & {
|
|
68153
|
+
query: {
|
|
68154
|
+
sort?: string | undefined;
|
|
68155
|
+
page?: string | undefined;
|
|
68156
|
+
per_page?: string | undefined;
|
|
68157
|
+
include_totals?: string | undefined;
|
|
68158
|
+
from?: string | undefined;
|
|
68159
|
+
take?: string | undefined;
|
|
68160
|
+
q?: string | undefined;
|
|
68161
|
+
};
|
|
68162
|
+
} & {
|
|
68163
|
+
header: {
|
|
68164
|
+
"tenant-id"?: string | undefined;
|
|
68165
|
+
};
|
|
68166
|
+
};
|
|
68167
|
+
output: {
|
|
68168
|
+
versions: {
|
|
68169
|
+
number: number;
|
|
68170
|
+
created_at: string;
|
|
68171
|
+
updated_at: string;
|
|
68172
|
+
code: string;
|
|
68173
|
+
id: string;
|
|
68174
|
+
tenant_id: string;
|
|
68175
|
+
action_id: string;
|
|
68176
|
+
deployed: boolean;
|
|
68177
|
+
supported_triggers?: {
|
|
68178
|
+
id: string;
|
|
68179
|
+
version?: string | undefined | undefined;
|
|
68180
|
+
}[] | undefined;
|
|
68181
|
+
runtime?: string | undefined | undefined;
|
|
68182
|
+
dependencies?: {
|
|
68183
|
+
version: string;
|
|
68184
|
+
name: string;
|
|
68185
|
+
}[] | undefined;
|
|
68186
|
+
secrets?: {
|
|
68187
|
+
name: string;
|
|
68188
|
+
value?: string | undefined | undefined;
|
|
68189
|
+
}[] | undefined;
|
|
68190
|
+
}[];
|
|
68191
|
+
} | {
|
|
68192
|
+
length: number;
|
|
68193
|
+
start: number;
|
|
68194
|
+
limit: number;
|
|
68195
|
+
versions: {
|
|
68196
|
+
number: number;
|
|
68197
|
+
created_at: string;
|
|
68198
|
+
updated_at: string;
|
|
68199
|
+
code: string;
|
|
68200
|
+
id: string;
|
|
68201
|
+
tenant_id: string;
|
|
68202
|
+
action_id: string;
|
|
68203
|
+
deployed: boolean;
|
|
68204
|
+
supported_triggers?: {
|
|
68205
|
+
id: string;
|
|
68206
|
+
version?: string | undefined | undefined;
|
|
68207
|
+
}[] | undefined;
|
|
68208
|
+
runtime?: string | undefined | undefined;
|
|
68209
|
+
dependencies?: {
|
|
68210
|
+
version: string;
|
|
68211
|
+
name: string;
|
|
68212
|
+
}[] | undefined;
|
|
68213
|
+
secrets?: {
|
|
68214
|
+
name: string;
|
|
68215
|
+
value?: string | undefined | undefined;
|
|
68216
|
+
}[] | undefined;
|
|
68217
|
+
}[];
|
|
68218
|
+
total?: number | undefined;
|
|
68219
|
+
};
|
|
68220
|
+
outputFormat: "json";
|
|
68221
|
+
status: 200;
|
|
68222
|
+
};
|
|
68223
|
+
};
|
|
68224
|
+
} & {
|
|
68225
|
+
"/:actionId/versions/:id": {
|
|
68226
|
+
$get: {
|
|
68227
|
+
input: {
|
|
68228
|
+
param: {
|
|
68229
|
+
id: string;
|
|
68230
|
+
actionId: string;
|
|
68231
|
+
};
|
|
68232
|
+
} & {
|
|
68233
|
+
header: {
|
|
68234
|
+
"tenant-id"?: string | undefined;
|
|
68235
|
+
};
|
|
68236
|
+
};
|
|
68237
|
+
output: {};
|
|
68238
|
+
outputFormat: string;
|
|
68239
|
+
status: 404;
|
|
68240
|
+
} | {
|
|
68241
|
+
input: {
|
|
68242
|
+
param: {
|
|
68243
|
+
id: string;
|
|
68244
|
+
actionId: string;
|
|
68245
|
+
};
|
|
68246
|
+
} & {
|
|
68247
|
+
header: {
|
|
68248
|
+
"tenant-id"?: string | undefined;
|
|
68249
|
+
};
|
|
68250
|
+
};
|
|
68251
|
+
output: {
|
|
68252
|
+
number: number;
|
|
68253
|
+
created_at: string;
|
|
68254
|
+
updated_at: string;
|
|
68255
|
+
code: string;
|
|
68256
|
+
id: string;
|
|
68257
|
+
tenant_id: string;
|
|
68258
|
+
action_id: string;
|
|
68259
|
+
deployed: boolean;
|
|
68260
|
+
supported_triggers?: {
|
|
68261
|
+
id: string;
|
|
68262
|
+
version?: string | undefined | undefined;
|
|
68263
|
+
}[] | undefined;
|
|
68264
|
+
runtime?: string | undefined | undefined;
|
|
68265
|
+
dependencies?: {
|
|
68266
|
+
version: string;
|
|
68267
|
+
name: string;
|
|
68268
|
+
}[] | undefined;
|
|
68269
|
+
secrets?: {
|
|
68270
|
+
name: string;
|
|
68271
|
+
value?: string | undefined | undefined;
|
|
68272
|
+
}[] | undefined;
|
|
68273
|
+
};
|
|
68274
|
+
outputFormat: "json";
|
|
68275
|
+
status: 200;
|
|
68276
|
+
};
|
|
68277
|
+
};
|
|
68278
|
+
} & {
|
|
68279
|
+
"/:actionId/versions/:id/deploy": {
|
|
68280
|
+
$post: {
|
|
68281
|
+
input: {
|
|
68282
|
+
param: {
|
|
68283
|
+
id: string;
|
|
68284
|
+
actionId: string;
|
|
68285
|
+
};
|
|
68286
|
+
} & {
|
|
68287
|
+
header: {
|
|
68288
|
+
"tenant-id"?: string | undefined;
|
|
68289
|
+
};
|
|
68290
|
+
};
|
|
68291
|
+
output: {};
|
|
68292
|
+
outputFormat: string;
|
|
68293
|
+
status: 404;
|
|
68294
|
+
} | {
|
|
68295
|
+
input: {
|
|
68296
|
+
param: {
|
|
68297
|
+
id: string;
|
|
68298
|
+
actionId: string;
|
|
68299
|
+
};
|
|
68300
|
+
} & {
|
|
68301
|
+
header: {
|
|
68302
|
+
"tenant-id"?: string | undefined;
|
|
68303
|
+
};
|
|
68304
|
+
};
|
|
68305
|
+
output: {
|
|
68306
|
+
created_at: string;
|
|
68307
|
+
updated_at: string;
|
|
68308
|
+
code: string;
|
|
68309
|
+
status: "draft" | "built";
|
|
68310
|
+
id: string;
|
|
68311
|
+
name: string;
|
|
68312
|
+
tenant_id: string;
|
|
68313
|
+
supported_triggers?: {
|
|
68314
|
+
id: string;
|
|
68315
|
+
version?: string | undefined | undefined;
|
|
68316
|
+
}[] | undefined;
|
|
68317
|
+
runtime?: string | undefined | undefined;
|
|
68318
|
+
dependencies?: {
|
|
68319
|
+
version: string;
|
|
68320
|
+
name: string;
|
|
68321
|
+
}[] | undefined;
|
|
68322
|
+
secrets?: {
|
|
68323
|
+
name: string;
|
|
68324
|
+
value?: string | undefined | undefined;
|
|
68325
|
+
}[] | undefined;
|
|
68326
|
+
deployed_at?: string | undefined | undefined;
|
|
68327
|
+
};
|
|
68328
|
+
outputFormat: "json";
|
|
68329
|
+
status: 200;
|
|
68330
|
+
};
|
|
68331
|
+
};
|
|
67945
68332
|
}, "/actions/actions">, "/">;
|
|
67946
68333
|
oauthApp: OpenAPIHono<{
|
|
67947
68334
|
Bindings: Bindings;
|