@authhero/kysely-adapter 10.133.0 → 10.134.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/kysely-adapter.cjs +14 -14
- package/dist/kysely-adapter.d.ts +218 -0
- package/dist/kysely-adapter.mjs +1785 -1679
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -239,6 +239,164 @@ declare const actionSchema: z.ZodObject<{
|
|
|
239
239
|
deployed_at?: string | undefined;
|
|
240
240
|
}>;
|
|
241
241
|
export type Action = z.infer<typeof actionSchema>;
|
|
242
|
+
declare const actionVersionInsertSchema: z.ZodObject<{
|
|
243
|
+
action_id: z.ZodString;
|
|
244
|
+
code: z.ZodString;
|
|
245
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
246
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
version: z.ZodString;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
version: string;
|
|
251
|
+
name: string;
|
|
252
|
+
}, {
|
|
253
|
+
version: string;
|
|
254
|
+
name: string;
|
|
255
|
+
}>, "many">>;
|
|
256
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
257
|
+
name: z.ZodString;
|
|
258
|
+
value: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
name: string;
|
|
261
|
+
value?: string | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
name: string;
|
|
264
|
+
value?: string | undefined;
|
|
265
|
+
}>, "many">>;
|
|
266
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
version: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
id: string;
|
|
271
|
+
version?: string | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
id: string;
|
|
274
|
+
version?: string | undefined;
|
|
275
|
+
}>, "many">>;
|
|
276
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
code: string;
|
|
279
|
+
action_id: string;
|
|
280
|
+
deployed: boolean;
|
|
281
|
+
supported_triggers?: {
|
|
282
|
+
id: string;
|
|
283
|
+
version?: string | undefined;
|
|
284
|
+
}[] | undefined;
|
|
285
|
+
runtime?: string | undefined;
|
|
286
|
+
dependencies?: {
|
|
287
|
+
version: string;
|
|
288
|
+
name: string;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
secrets?: {
|
|
291
|
+
name: string;
|
|
292
|
+
value?: string | undefined;
|
|
293
|
+
}[] | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
code: string;
|
|
296
|
+
action_id: string;
|
|
297
|
+
supported_triggers?: {
|
|
298
|
+
id: string;
|
|
299
|
+
version?: string | undefined;
|
|
300
|
+
}[] | undefined;
|
|
301
|
+
runtime?: string | undefined;
|
|
302
|
+
dependencies?: {
|
|
303
|
+
version: string;
|
|
304
|
+
name: string;
|
|
305
|
+
}[] | undefined;
|
|
306
|
+
secrets?: {
|
|
307
|
+
name: string;
|
|
308
|
+
value?: string | undefined;
|
|
309
|
+
}[] | undefined;
|
|
310
|
+
deployed?: boolean | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
export type ActionVersionInsert = z.infer<typeof actionVersionInsertSchema>;
|
|
313
|
+
declare const actionVersionSchema: z.ZodObject<{
|
|
314
|
+
action_id: z.ZodString;
|
|
315
|
+
code: z.ZodString;
|
|
316
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
317
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
318
|
+
name: z.ZodString;
|
|
319
|
+
version: z.ZodString;
|
|
320
|
+
}, "strip", z.ZodTypeAny, {
|
|
321
|
+
version: string;
|
|
322
|
+
name: string;
|
|
323
|
+
}, {
|
|
324
|
+
version: string;
|
|
325
|
+
name: string;
|
|
326
|
+
}>, "many">>;
|
|
327
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
value: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
name: string;
|
|
332
|
+
value?: string | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
name: string;
|
|
335
|
+
value?: string | undefined;
|
|
336
|
+
}>, "many">>;
|
|
337
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
version: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
id: string;
|
|
342
|
+
version?: string | undefined;
|
|
343
|
+
}, {
|
|
344
|
+
id: string;
|
|
345
|
+
version?: string | undefined;
|
|
346
|
+
}>, "many">>;
|
|
347
|
+
deployed: z.ZodDefault<z.ZodBoolean>;
|
|
348
|
+
} & {
|
|
349
|
+
created_at: z.ZodString;
|
|
350
|
+
updated_at: z.ZodString;
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
tenant_id: z.ZodString;
|
|
353
|
+
number: z.ZodNumber;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
number: number;
|
|
356
|
+
created_at: string;
|
|
357
|
+
updated_at: string;
|
|
358
|
+
code: string;
|
|
359
|
+
id: string;
|
|
360
|
+
tenant_id: string;
|
|
361
|
+
action_id: string;
|
|
362
|
+
deployed: boolean;
|
|
363
|
+
supported_triggers?: {
|
|
364
|
+
id: string;
|
|
365
|
+
version?: string | undefined;
|
|
366
|
+
}[] | undefined;
|
|
367
|
+
runtime?: string | undefined;
|
|
368
|
+
dependencies?: {
|
|
369
|
+
version: string;
|
|
370
|
+
name: string;
|
|
371
|
+
}[] | undefined;
|
|
372
|
+
secrets?: {
|
|
373
|
+
name: string;
|
|
374
|
+
value?: string | undefined;
|
|
375
|
+
}[] | undefined;
|
|
376
|
+
}, {
|
|
377
|
+
number: number;
|
|
378
|
+
created_at: string;
|
|
379
|
+
updated_at: string;
|
|
380
|
+
code: string;
|
|
381
|
+
id: string;
|
|
382
|
+
tenant_id: string;
|
|
383
|
+
action_id: string;
|
|
384
|
+
supported_triggers?: {
|
|
385
|
+
id: string;
|
|
386
|
+
version?: string | undefined;
|
|
387
|
+
}[] | undefined;
|
|
388
|
+
runtime?: string | undefined;
|
|
389
|
+
dependencies?: {
|
|
390
|
+
version: string;
|
|
391
|
+
name: string;
|
|
392
|
+
}[] | undefined;
|
|
393
|
+
secrets?: {
|
|
394
|
+
name: string;
|
|
395
|
+
value?: string | undefined;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
deployed?: boolean | undefined;
|
|
398
|
+
}>;
|
|
399
|
+
export type ActionVersion = z.infer<typeof actionVersionSchema>;
|
|
242
400
|
declare const auditEventInsertSchema: z.ZodObject<{
|
|
243
401
|
tenant_id: z.ZodString;
|
|
244
402
|
event_type: z.ZodString;
|
|
@@ -20078,6 +20236,24 @@ export interface ActionsAdapter {
|
|
|
20078
20236
|
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
20079
20237
|
list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
|
|
20080
20238
|
}
|
|
20239
|
+
export interface ListActionVersionsResponse extends Totals {
|
|
20240
|
+
versions: ActionVersion[];
|
|
20241
|
+
}
|
|
20242
|
+
export interface ActionVersionsAdapter {
|
|
20243
|
+
/**
|
|
20244
|
+
* Append a new version row for an action. The adapter assigns the next
|
|
20245
|
+
* sequential `number` per action_id and clears the `deployed` flag on any
|
|
20246
|
+
* prior versions when the new one is created with `deployed: true`.
|
|
20247
|
+
*/
|
|
20248
|
+
create: (tenant_id: string, version: ActionVersionInsert) => Promise<ActionVersion>;
|
|
20249
|
+
get: (tenant_id: string, action_id: string, version_id: string) => Promise<ActionVersion | null>;
|
|
20250
|
+
list: (tenant_id: string, action_id: string, params?: ListParams) => Promise<ListActionVersionsResponse>;
|
|
20251
|
+
/**
|
|
20252
|
+
* Remove every version row for an action — used when the parent action is
|
|
20253
|
+
* deleted. Returns the number of rows removed.
|
|
20254
|
+
*/
|
|
20255
|
+
removeForAction: (tenant_id: string, action_id: string) => Promise<number>;
|
|
20256
|
+
}
|
|
20081
20257
|
export interface ListFlowsResponse extends Totals {
|
|
20082
20258
|
flows: Flow[];
|
|
20083
20259
|
}
|
|
@@ -20661,6 +20837,7 @@ export interface SessionCleanupParams {
|
|
|
20661
20837
|
}
|
|
20662
20838
|
export interface DataAdapters {
|
|
20663
20839
|
actions: ActionsAdapter;
|
|
20840
|
+
actionVersions: ActionVersionsAdapter;
|
|
20664
20841
|
branding: BrandingAdapter;
|
|
20665
20842
|
cache?: CacheAdapter;
|
|
20666
20843
|
clients: ClientsAdapter;
|
|
@@ -21241,6 +21418,46 @@ declare const sqlActionSchema: z.ZodObject<{
|
|
|
21241
21418
|
supported_triggers?: string | null | undefined;
|
|
21242
21419
|
deployed_at_ts?: number | null | undefined;
|
|
21243
21420
|
}>;
|
|
21421
|
+
declare const sqlActionVersionSchema: z.ZodObject<{
|
|
21422
|
+
id: z.ZodString;
|
|
21423
|
+
tenant_id: z.ZodString;
|
|
21424
|
+
action_id: z.ZodString;
|
|
21425
|
+
number: z.ZodNumber;
|
|
21426
|
+
code: z.ZodString;
|
|
21427
|
+
runtime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21428
|
+
secrets: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21429
|
+
dependencies: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21430
|
+
supported_triggers: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21431
|
+
deployed: z.ZodNumber;
|
|
21432
|
+
created_at_ts: z.ZodNumber;
|
|
21433
|
+
updated_at_ts: z.ZodNumber;
|
|
21434
|
+
}, "strip", z.ZodTypeAny, {
|
|
21435
|
+
number: number;
|
|
21436
|
+
code: string;
|
|
21437
|
+
tenant_id: string;
|
|
21438
|
+
created_at_ts: number;
|
|
21439
|
+
updated_at_ts: number;
|
|
21440
|
+
id: string;
|
|
21441
|
+
action_id: string;
|
|
21442
|
+
deployed: number;
|
|
21443
|
+
runtime?: string | null | undefined;
|
|
21444
|
+
secrets?: string | null | undefined;
|
|
21445
|
+
dependencies?: string | null | undefined;
|
|
21446
|
+
supported_triggers?: string | null | undefined;
|
|
21447
|
+
}, {
|
|
21448
|
+
number: number;
|
|
21449
|
+
code: string;
|
|
21450
|
+
tenant_id: string;
|
|
21451
|
+
created_at_ts: number;
|
|
21452
|
+
updated_at_ts: number;
|
|
21453
|
+
id: string;
|
|
21454
|
+
action_id: string;
|
|
21455
|
+
deployed: number;
|
|
21456
|
+
runtime?: string | null | undefined;
|
|
21457
|
+
secrets?: string | null | undefined;
|
|
21458
|
+
dependencies?: string | null | undefined;
|
|
21459
|
+
supported_triggers?: string | null | undefined;
|
|
21460
|
+
}>;
|
|
21244
21461
|
declare const sqlHookCodeSchema: z.ZodObject<{
|
|
21245
21462
|
id: z.ZodString;
|
|
21246
21463
|
tenant_id: z.ZodString;
|
|
@@ -23421,6 +23638,7 @@ declare const sqlAuthenticationMethodSchema: z.ZodObject<{
|
|
|
23421
23638
|
}>;
|
|
23422
23639
|
export interface Database {
|
|
23423
23640
|
actions: z.infer<typeof sqlActionSchema>;
|
|
23641
|
+
action_versions: z.infer<typeof sqlActionVersionSchema>;
|
|
23424
23642
|
flows: z.infer<typeof sqlFlowSchema>;
|
|
23425
23643
|
branding: z.infer<typeof sqlBrandingSchema>;
|
|
23426
23644
|
clients: z.infer<typeof sqlClientSchema>;
|