authhero 4.113.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.
@@ -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",
@@ -11397,7 +11555,7 @@ export interface Auth0FlowInsert {
11397
11555
  export declare enum AuthorizationResponseType {
11398
11556
  TOKEN = "token",
11399
11557
  ID_TOKEN = "id_token",
11400
- TOKEN_ID_TOKEN = "token id_token",
11558
+ TOKEN_ID_TOKEN = "id_token token",
11401
11559
  CODE = "code"
11402
11560
  }
11403
11561
  export declare enum AuthorizationResponseMode {
@@ -43361,9 +43519,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43361
43519
  issuer: z.ZodString;
43362
43520
  authorization_endpoint: z.ZodString;
43363
43521
  token_endpoint: z.ZodString;
43364
- device_authorization_endpoint: z.ZodString;
43365
43522
  userinfo_endpoint: z.ZodString;
43366
- mfa_challenge_endpoint: z.ZodString;
43367
43523
  jwks_uri: z.ZodString;
43368
43524
  registration_endpoint: z.ZodOptional<z.ZodString>;
43369
43525
  revocation_endpoint: z.ZodString;
@@ -43387,8 +43543,6 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43387
43543
  userinfo_endpoint: string;
43388
43544
  jwks_uri: string;
43389
43545
  issuer: string;
43390
- device_authorization_endpoint: string;
43391
- mfa_challenge_endpoint: string;
43392
43546
  revocation_endpoint: string;
43393
43547
  scopes_supported: string[];
43394
43548
  response_types_supported: string[];
@@ -43411,8 +43565,6 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43411
43565
  userinfo_endpoint: string;
43412
43566
  jwks_uri: string;
43413
43567
  issuer: string;
43414
- device_authorization_endpoint: string;
43415
- mfa_challenge_endpoint: string;
43416
43568
  revocation_endpoint: string;
43417
43569
  scopes_supported: string[];
43418
43570
  response_types_supported: string[];
@@ -45012,6 +45164,7 @@ export declare const sessionSchema: z.ZodObject<{
45012
45164
  export type Session = z.infer<typeof sessionSchema>;
45013
45165
  export declare const signingKeySchema: z.ZodObject<{
45014
45166
  kid: z.ZodString;
45167
+ tenant_id: z.ZodOptional<z.ZodString>;
45015
45168
  cert: z.ZodString;
45016
45169
  fingerprint: z.ZodString;
45017
45170
  thumbprint: z.ZodString;
@@ -45034,6 +45187,7 @@ export declare const signingKeySchema: z.ZodObject<{
45034
45187
  cert: string;
45035
45188
  fingerprint: string;
45036
45189
  thumbprint: string;
45190
+ tenant_id?: string | undefined;
45037
45191
  connection?: string | undefined;
45038
45192
  revoked_at?: string | undefined;
45039
45193
  pkcs7?: string | undefined;
@@ -45049,6 +45203,7 @@ export declare const signingKeySchema: z.ZodObject<{
45049
45203
  cert: string;
45050
45204
  fingerprint: string;
45051
45205
  thumbprint: string;
45206
+ tenant_id?: string | undefined;
45052
45207
  connection?: string | undefined;
45053
45208
  revoked_at?: string | undefined;
45054
45209
  pkcs7?: string | undefined;
@@ -48205,6 +48360,66 @@ export declare const emailProviderSchema: z.ZodObject<{
48205
48360
  settings?: {} | undefined;
48206
48361
  }>;
48207
48362
  export type EmailProvider = z.infer<typeof emailProviderSchema>;
48363
+ export declare const emailTemplateNameSchema: z.ZodEnum<[
48364
+ "verify_email",
48365
+ "verify_email_by_code",
48366
+ "reset_email",
48367
+ "reset_email_by_code",
48368
+ "welcome_email",
48369
+ "blocked_account",
48370
+ "stolen_credentials",
48371
+ "enrollment_email",
48372
+ "mfa_oob_code",
48373
+ "change_password",
48374
+ "password_reset",
48375
+ "user_invitation"
48376
+ ]>;
48377
+ export type EmailTemplateName = z.infer<typeof emailTemplateNameSchema>;
48378
+ export declare const emailTemplateSchema: z.ZodObject<{
48379
+ template: z.ZodEnum<[
48380
+ "verify_email",
48381
+ "verify_email_by_code",
48382
+ "reset_email",
48383
+ "reset_email_by_code",
48384
+ "welcome_email",
48385
+ "blocked_account",
48386
+ "stolen_credentials",
48387
+ "enrollment_email",
48388
+ "mfa_oob_code",
48389
+ "change_password",
48390
+ "password_reset",
48391
+ "user_invitation"
48392
+ ]>;
48393
+ body: z.ZodString;
48394
+ from: z.ZodString;
48395
+ subject: z.ZodString;
48396
+ syntax: z.ZodDefault<z.ZodLiteral<"liquid">>;
48397
+ resultUrl: z.ZodOptional<z.ZodString>;
48398
+ urlLifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
48399
+ includeEmailInRedirect: z.ZodDefault<z.ZodBoolean>;
48400
+ enabled: z.ZodDefault<z.ZodBoolean>;
48401
+ }, "strip", z.ZodTypeAny, {
48402
+ body: string;
48403
+ from: string;
48404
+ enabled: boolean;
48405
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
48406
+ subject: string;
48407
+ syntax: "liquid";
48408
+ includeEmailInRedirect: boolean;
48409
+ resultUrl?: string | undefined;
48410
+ urlLifetimeInSeconds?: number | undefined;
48411
+ }, {
48412
+ body: string;
48413
+ from: string;
48414
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
48415
+ subject: string;
48416
+ enabled?: boolean | undefined;
48417
+ syntax?: "liquid" | undefined;
48418
+ resultUrl?: string | undefined;
48419
+ urlLifetimeInSeconds?: number | undefined;
48420
+ includeEmailInRedirect?: boolean | undefined;
48421
+ }>;
48422
+ export type EmailTemplate = z.infer<typeof emailTemplateSchema>;
48208
48423
  export declare const refreshTokenInsertSchema: z.ZodObject<{
48209
48424
  id: z.ZodString;
48210
48425
  login_id: z.ZodString;
@@ -50462,6 +50677,24 @@ export interface ActionsAdapter {
50462
50677
  remove: (tenant_id: string, action_id: string) => Promise<boolean>;
50463
50678
  list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
50464
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
+ }
50465
50698
  export interface ListFlowsResponse extends Totals {
50466
50699
  flows: Flow[];
50467
50700
  }
@@ -50726,6 +50959,13 @@ export interface EmailProvidersAdapter {
50726
50959
  get: (tenant_id: string) => Promise<EmailProvider | null>;
50727
50960
  remove: (tenant_id: string) => Promise<void>;
50728
50961
  }
50962
+ export interface EmailTemplatesAdapter {
50963
+ get: (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
50964
+ list: (tenant_id: string) => Promise<EmailTemplate[]>;
50965
+ create: (tenant_id: string, template: EmailTemplate) => Promise<EmailTemplate>;
50966
+ update: (tenant_id: string, templateName: EmailTemplateName, template: Partial<EmailTemplate>) => Promise<boolean>;
50967
+ remove: (tenant_id: string, templateName: EmailTemplateName) => Promise<boolean>;
50968
+ }
50729
50969
  export interface ListRefreshTokenResponse extends Totals {
50730
50970
  refresh_tokens: RefreshToken[];
50731
50971
  }
@@ -51095,6 +51335,7 @@ export interface SessionCleanupParams {
51095
51335
  }
51096
51336
  export interface DataAdapters {
51097
51337
  actions: ActionsAdapter;
51338
+ actionVersions: ActionVersionsAdapter;
51098
51339
  branding: BrandingAdapter;
51099
51340
  cache?: CacheAdapter;
51100
51341
  clients: ClientsAdapter;
@@ -51105,6 +51346,7 @@ export interface DataAdapters {
51105
51346
  connections: ConnectionsAdapter;
51106
51347
  customDomains: CustomDomainsAdapter;
51107
51348
  emailProviders: EmailProvidersAdapter;
51349
+ emailTemplates: EmailTemplatesAdapter;
51108
51350
  flows: FlowsAdapter;
51109
51351
  forms: FormsAdapter;
51110
51352
  geo?: GeoAdapter;
@@ -54189,6 +54431,29 @@ export type UserLinkingModeOption = UserLinkingMode | UserLinkingModeResolver;
54189
54431
  export type UsernamePasswordProviderResolver = (params: {
54190
54432
  tenant_id: string;
54191
54433
  }) => "auth0" | "auth2" | Promise<"auth0" | "auth2">;
54434
+ /**
54435
+ * Mode for which signing-key bucket a tenant uses when minting and
54436
+ * publishing JWTs.
54437
+ *
54438
+ * - `"control-plane"` — tenant uses the shared control-plane keys (rows
54439
+ * with `tenant_id IS NULL`). This matches the legacy single-key-pool
54440
+ * behavior; existing data needs no migration.
54441
+ * - `"tenant"` — tenant uses its own keys (rows with `tenant_id =
54442
+ * tenantId`). Falls back to the control-plane bucket if the tenant has
54443
+ * no non-revoked key yet, so flipping a tenant on is safe even before
54444
+ * a tenant key has been minted. JWKS for that tenant publishes the
54445
+ * union of tenant + control-plane keys so tokens signed by either set
54446
+ * keep verifying during rotation.
54447
+ */
54448
+ export type SigningKeyMode = "control-plane" | "tenant";
54449
+ /**
54450
+ * Resolver form for the per-tenant signing-key mode. Receives the
54451
+ * resolved `tenant_id` and returns which bucket to use. May be async.
54452
+ */
54453
+ export type SigningKeyModeResolver = (params: {
54454
+ tenant_id: string;
54455
+ }) => SigningKeyMode | Promise<SigningKeyMode>;
54456
+ export type SigningKeyModeOption = SigningKeyMode | SigningKeyModeResolver;
54192
54457
  export interface AuthHeroConfig {
54193
54458
  dataAdapter: DataAdapters;
54194
54459
  /**
@@ -54404,6 +54669,23 @@ export interface AuthHeroConfig {
54404
54669
  * flows can be removed once all tenants have been backfilled.
54405
54670
  */
54406
54671
  usernamePasswordProvider?: UsernamePasswordProviderResolver;
54672
+ /**
54673
+ * Per-tenant control over which signing-key bucket a tenant uses.
54674
+ *
54675
+ * Accepts either a static value or a resolver that receives
54676
+ * `{ tenant_id }` and returns the mode. Use the resolver form to
54677
+ * migrate tenants onto their own keys one at a time.
54678
+ *
54679
+ * Omit (or set to `"control-plane"`) to preserve the legacy behavior
54680
+ * where every tenant shares the control-plane keys.
54681
+ *
54682
+ * TRANSITIONAL: once every tenant is on `"tenant"` and the
54683
+ * control-plane bucket has been retired, this option and the
54684
+ * fallback path can be removed.
54685
+ *
54686
+ * @default "control-plane"
54687
+ */
54688
+ signingKeyMode?: SigningKeyModeOption;
54407
54689
  }
54408
54690
  export type UserInfo = {
54409
54691
  sub: string;
@@ -54466,6 +54748,7 @@ export type Bindings = {
54466
54748
  outbox?: OutboxConfig;
54467
54749
  userLinkingMode?: UserLinkingModeOption;
54468
54750
  usernamePasswordProvider?: UsernamePasswordProviderResolver;
54751
+ signingKeyMode?: SigningKeyModeOption;
54469
54752
  /**
54470
54753
  * Allow outbound fetches (jwks_uri, request_uri) to localhost / private IP
54471
54754
  * ranges and over plain http. Intended for tests and local development;
@@ -65127,6 +65410,7 @@ export declare function init(config: AuthHeroConfig): {
65127
65410
  cert: string;
65128
65411
  fingerprint: string;
65129
65412
  thumbprint: string;
65413
+ tenant_id?: string | undefined | undefined;
65130
65414
  connection?: string | undefined | undefined;
65131
65415
  revoked_at?: string | undefined | undefined;
65132
65416
  pkcs7?: string | undefined | undefined;
@@ -65159,6 +65443,7 @@ export declare function init(config: AuthHeroConfig): {
65159
65443
  cert: string;
65160
65444
  fingerprint: string;
65161
65445
  thumbprint: string;
65446
+ tenant_id?: string | undefined | undefined;
65162
65447
  connection?: string | undefined | undefined;
65163
65448
  revoked_at?: string | undefined | undefined;
65164
65449
  pkcs7?: string | undefined | undefined;
@@ -66271,6 +66556,205 @@ export declare function init(config: AuthHeroConfig): {
66271
66556
  };
66272
66557
  };
66273
66558
  }, "/users"> & import("hono/types").MergeSchemaPath<{
66559
+ "/": {
66560
+ $post: {
66561
+ input: {
66562
+ header: {
66563
+ "tenant-id"?: string | undefined;
66564
+ };
66565
+ } & {
66566
+ json: {
66567
+ body: string;
66568
+ from: string;
66569
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66570
+ subject: string;
66571
+ enabled?: boolean | undefined;
66572
+ syntax?: "liquid" | undefined;
66573
+ resultUrl?: string | undefined;
66574
+ urlLifetimeInSeconds?: number | undefined;
66575
+ includeEmailInRedirect?: boolean | undefined;
66576
+ };
66577
+ };
66578
+ output: {};
66579
+ outputFormat: string;
66580
+ status: 409;
66581
+ } | {
66582
+ input: {
66583
+ header: {
66584
+ "tenant-id"?: string | undefined;
66585
+ };
66586
+ } & {
66587
+ json: {
66588
+ body: string;
66589
+ from: string;
66590
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66591
+ subject: string;
66592
+ enabled?: boolean | undefined;
66593
+ syntax?: "liquid" | undefined;
66594
+ resultUrl?: string | undefined;
66595
+ urlLifetimeInSeconds?: number | undefined;
66596
+ includeEmailInRedirect?: boolean | undefined;
66597
+ };
66598
+ };
66599
+ output: {
66600
+ body: string;
66601
+ from: string;
66602
+ enabled: boolean;
66603
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66604
+ subject: string;
66605
+ syntax: "liquid";
66606
+ includeEmailInRedirect: boolean;
66607
+ resultUrl?: string | undefined | undefined;
66608
+ urlLifetimeInSeconds?: number | undefined | undefined;
66609
+ };
66610
+ outputFormat: "json";
66611
+ status: 201;
66612
+ };
66613
+ };
66614
+ } & {
66615
+ "/:templateName": {
66616
+ $get: {
66617
+ input: {
66618
+ param: {
66619
+ templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
66620
+ };
66621
+ } & {
66622
+ header: {
66623
+ "tenant-id"?: string | undefined;
66624
+ };
66625
+ };
66626
+ output: {};
66627
+ outputFormat: string;
66628
+ status: 404;
66629
+ } | {
66630
+ input: {
66631
+ param: {
66632
+ templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
66633
+ };
66634
+ } & {
66635
+ header: {
66636
+ "tenant-id"?: string | undefined;
66637
+ };
66638
+ };
66639
+ output: {
66640
+ body: string;
66641
+ from: string;
66642
+ enabled: boolean;
66643
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66644
+ subject: string;
66645
+ syntax: "liquid";
66646
+ includeEmailInRedirect: boolean;
66647
+ resultUrl?: string | undefined | undefined;
66648
+ urlLifetimeInSeconds?: number | undefined | undefined;
66649
+ };
66650
+ outputFormat: "json";
66651
+ status: 200;
66652
+ };
66653
+ };
66654
+ } & {
66655
+ "/:templateName": {
66656
+ $put: {
66657
+ input: {
66658
+ param: {
66659
+ templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
66660
+ };
66661
+ } & {
66662
+ header: {
66663
+ "tenant-id"?: string | undefined;
66664
+ };
66665
+ } & {
66666
+ json: {
66667
+ body: string;
66668
+ from: string;
66669
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66670
+ subject: string;
66671
+ enabled?: boolean | undefined;
66672
+ syntax?: "liquid" | undefined;
66673
+ resultUrl?: string | undefined;
66674
+ urlLifetimeInSeconds?: number | undefined;
66675
+ includeEmailInRedirect?: boolean | undefined;
66676
+ };
66677
+ };
66678
+ output: {
66679
+ body: string;
66680
+ from: string;
66681
+ enabled: boolean;
66682
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66683
+ subject: string;
66684
+ syntax: "liquid";
66685
+ includeEmailInRedirect: boolean;
66686
+ resultUrl?: string | undefined | undefined;
66687
+ urlLifetimeInSeconds?: number | undefined | undefined;
66688
+ };
66689
+ outputFormat: "json";
66690
+ status: 200;
66691
+ };
66692
+ };
66693
+ } & {
66694
+ "/:templateName": {
66695
+ $patch: {
66696
+ input: {
66697
+ param: {
66698
+ templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
66699
+ };
66700
+ } & {
66701
+ header: {
66702
+ "tenant-id"?: string | undefined;
66703
+ };
66704
+ } & {
66705
+ json: {
66706
+ body?: string | undefined;
66707
+ from?: string | undefined;
66708
+ enabled?: boolean | undefined;
66709
+ template?: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation" | undefined;
66710
+ subject?: string | undefined;
66711
+ syntax?: "liquid" | undefined;
66712
+ resultUrl?: string | undefined;
66713
+ urlLifetimeInSeconds?: number | undefined;
66714
+ includeEmailInRedirect?: boolean | undefined;
66715
+ };
66716
+ };
66717
+ output: {};
66718
+ outputFormat: string;
66719
+ status: 404;
66720
+ } | {
66721
+ input: {
66722
+ param: {
66723
+ templateName: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation";
66724
+ };
66725
+ } & {
66726
+ header: {
66727
+ "tenant-id"?: string | undefined;
66728
+ };
66729
+ } & {
66730
+ json: {
66731
+ body?: string | undefined;
66732
+ from?: string | undefined;
66733
+ enabled?: boolean | undefined;
66734
+ template?: "verify_email" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "password_reset" | "user_invitation" | undefined;
66735
+ subject?: string | undefined;
66736
+ syntax?: "liquid" | undefined;
66737
+ resultUrl?: string | undefined;
66738
+ urlLifetimeInSeconds?: number | undefined;
66739
+ includeEmailInRedirect?: boolean | undefined;
66740
+ };
66741
+ };
66742
+ output: {
66743
+ body: string;
66744
+ from: string;
66745
+ enabled: boolean;
66746
+ template: "verify_email" | "password_reset" | "change_password" | "verify_email_by_code" | "reset_email" | "reset_email_by_code" | "welcome_email" | "blocked_account" | "stolen_credentials" | "enrollment_email" | "mfa_oob_code" | "user_invitation";
66747
+ subject: string;
66748
+ syntax: "liquid";
66749
+ includeEmailInRedirect: boolean;
66750
+ resultUrl?: string | undefined | undefined;
66751
+ urlLifetimeInSeconds?: number | undefined | undefined;
66752
+ };
66753
+ outputFormat: "json";
66754
+ status: 200;
66755
+ };
66756
+ };
66757
+ }, "/email-templates"> & import("hono/types").MergeSchemaPath<{
66274
66758
  "/": {
66275
66759
  $get: {
66276
66760
  input: {
@@ -67635,6 +68119,216 @@ export declare function init(config: AuthHeroConfig): {
67635
68119
  status: 200;
67636
68120
  };
67637
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
+ };
67638
68332
  }, "/actions/actions">, "/">;
67639
68333
  oauthApp: OpenAPIHono<{
67640
68334
  Bindings: Bindings;
@@ -68106,7 +68800,7 @@ export declare function init(config: AuthHeroConfig): {
68106
68800
  organization?: string | undefined;
68107
68801
  nonce?: string | undefined;
68108
68802
  response_mode?: AuthorizationResponseMode | undefined;
68109
- response_type?: AuthorizationResponseType | undefined;
68803
+ response_type?: unknown;
68110
68804
  prompt?: string | undefined;
68111
68805
  state?: string | undefined;
68112
68806
  auth0Client?: string | undefined;
@@ -68139,7 +68833,7 @@ export declare function init(config: AuthHeroConfig): {
68139
68833
  organization?: string | undefined;
68140
68834
  nonce?: string | undefined;
68141
68835
  response_mode?: AuthorizationResponseMode | undefined;
68142
- response_type?: AuthorizationResponseType | undefined;
68836
+ response_type?: unknown;
68143
68837
  prompt?: string | undefined;
68144
68838
  state?: string | undefined;
68145
68839
  auth0Client?: string | undefined;
@@ -68172,7 +68866,7 @@ export declare function init(config: AuthHeroConfig): {
68172
68866
  organization?: string | undefined;
68173
68867
  nonce?: string | undefined;
68174
68868
  response_mode?: AuthorizationResponseMode | undefined;
68175
- response_type?: AuthorizationResponseType | undefined;
68869
+ response_type?: unknown;
68176
68870
  prompt?: string | undefined;
68177
68871
  state?: string | undefined;
68178
68872
  auth0Client?: string | undefined;
@@ -68213,7 +68907,7 @@ export declare function init(config: AuthHeroConfig): {
68213
68907
  organization?: string | undefined;
68214
68908
  nonce?: string | undefined;
68215
68909
  response_mode?: AuthorizationResponseMode | undefined;
68216
- response_type?: AuthorizationResponseType | undefined;
68910
+ response_type?: unknown;
68217
68911
  prompt?: string | undefined;
68218
68912
  state?: string | undefined;
68219
68913
  auth0Client?: string | undefined;
@@ -68248,7 +68942,7 @@ export declare function init(config: AuthHeroConfig): {
68248
68942
  organization?: string | undefined;
68249
68943
  nonce?: string | undefined;
68250
68944
  response_mode?: AuthorizationResponseMode | undefined;
68251
- response_type?: AuthorizationResponseType | undefined;
68945
+ response_type?: unknown;
68252
68946
  prompt?: string | undefined;
68253
68947
  state?: string | undefined;
68254
68948
  auth0Client?: string | undefined;
@@ -69010,8 +69704,6 @@ export declare function init(config: AuthHeroConfig): {
69010
69704
  userinfo_endpoint: string;
69011
69705
  jwks_uri: string;
69012
69706
  issuer: string;
69013
- device_authorization_endpoint: string;
69014
- mfa_challenge_endpoint: string;
69015
69707
  revocation_endpoint: string;
69016
69708
  scopes_supported: string[];
69017
69709
  response_types_supported: string[];