authhero 4.100.0 → 4.101.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.
@@ -43006,6 +43006,22 @@ export declare enum LoginSessionState {
43006
43006
  export declare const loginSessionStateSchema: z.ZodNativeEnum<typeof LoginSessionState>;
43007
43007
  /** Continuation scope - which pages/actions are allowed during continuation */
43008
43008
  export type ContinuationScope = "change-email" | "account" | "custom";
43009
+ /**
43010
+ * Strategy metadata persisted alongside the authenticated user so that
43011
+ * `/authorize/resume` can re-hydrate everything `createFrontChannelAuthResponse`
43012
+ * needs without the sub-flow having to keep that context in memory.
43013
+ */
43014
+ export declare const loginSessionAuthStrategySchema: z.ZodObject<{
43015
+ strategy: z.ZodString;
43016
+ strategy_type: z.ZodString;
43017
+ }, "strip", z.ZodTypeAny, {
43018
+ strategy: string;
43019
+ strategy_type: string;
43020
+ }, {
43021
+ strategy: string;
43022
+ strategy_type: string;
43023
+ }>;
43024
+ export type LoginSessionAuthStrategy = z.infer<typeof loginSessionAuthStrategySchema>;
43009
43025
  export declare const loginSessionInsertSchema: z.ZodObject<{
43010
43026
  csrf_token: z.ZodString;
43011
43027
  auth0Client: z.ZodOptional<z.ZodString>;
@@ -43078,6 +43094,17 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
43078
43094
  failure_reason: z.ZodOptional<z.ZodString>;
43079
43095
  user_id: z.ZodOptional<z.ZodString>;
43080
43096
  auth_connection: z.ZodOptional<z.ZodString>;
43097
+ auth_strategy: z.ZodOptional<z.ZodObject<{
43098
+ strategy: z.ZodString;
43099
+ strategy_type: z.ZodString;
43100
+ }, "strip", z.ZodTypeAny, {
43101
+ strategy: string;
43102
+ strategy_type: string;
43103
+ }, {
43104
+ strategy: string;
43105
+ strategy_type: string;
43106
+ }>>;
43107
+ authenticated_at: z.ZodOptional<z.ZodString>;
43081
43108
  }, "strip", z.ZodTypeAny, {
43082
43109
  state: LoginSessionState;
43083
43110
  expires_at: string;
@@ -43112,6 +43139,11 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
43112
43139
  state_data?: string | undefined;
43113
43140
  failure_reason?: string | undefined;
43114
43141
  auth_connection?: string | undefined;
43142
+ auth_strategy?: {
43143
+ strategy: string;
43144
+ strategy_type: string;
43145
+ } | undefined;
43146
+ authenticated_at?: string | undefined;
43115
43147
  }, {
43116
43148
  expires_at: string;
43117
43149
  csrf_token: string;
@@ -43146,6 +43178,11 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
43146
43178
  state_data?: string | undefined;
43147
43179
  failure_reason?: string | undefined;
43148
43180
  auth_connection?: string | undefined;
43181
+ auth_strategy?: {
43182
+ strategy: string;
43183
+ strategy_type: string;
43184
+ } | undefined;
43185
+ authenticated_at?: string | undefined;
43149
43186
  }>;
43150
43187
  export type LoginSessionInsert = z.input<typeof loginSessionInsertSchema>;
43151
43188
  export declare const loginSessionSchema: z.ZodObject<{
@@ -43223,6 +43260,17 @@ export declare const loginSessionSchema: z.ZodObject<{
43223
43260
  failure_reason: z.ZodOptional<z.ZodString>;
43224
43261
  user_id: z.ZodOptional<z.ZodString>;
43225
43262
  auth_connection: z.ZodOptional<z.ZodString>;
43263
+ auth_strategy: z.ZodOptional<z.ZodObject<{
43264
+ strategy: z.ZodString;
43265
+ strategy_type: z.ZodString;
43266
+ }, "strip", z.ZodTypeAny, {
43267
+ strategy: string;
43268
+ strategy_type: string;
43269
+ }, {
43270
+ strategy: string;
43271
+ strategy_type: string;
43272
+ }>>;
43273
+ authenticated_at: z.ZodOptional<z.ZodString>;
43226
43274
  }, "strip", z.ZodTypeAny, {
43227
43275
  created_at: string;
43228
43276
  updated_at: string;
@@ -43260,6 +43308,11 @@ export declare const loginSessionSchema: z.ZodObject<{
43260
43308
  state_data?: string | undefined;
43261
43309
  failure_reason?: string | undefined;
43262
43310
  auth_connection?: string | undefined;
43311
+ auth_strategy?: {
43312
+ strategy: string;
43313
+ strategy_type: string;
43314
+ } | undefined;
43315
+ authenticated_at?: string | undefined;
43263
43316
  }, {
43264
43317
  created_at: string;
43265
43318
  updated_at: string;
@@ -43297,6 +43350,11 @@ export declare const loginSessionSchema: z.ZodObject<{
43297
43350
  state_data?: string | undefined;
43298
43351
  failure_reason?: string | undefined;
43299
43352
  auth_connection?: string | undefined;
43353
+ auth_strategy?: {
43354
+ strategy: string;
43355
+ strategy_type: string;
43356
+ } | undefined;
43357
+ authenticated_at?: string | undefined;
43300
43358
  }>;
43301
43359
  export type LoginSession = z.infer<typeof loginSessionSchema>;
43302
43360
  export declare const LogTypes: {
@@ -43934,6 +43992,7 @@ export declare const sessionSchema: z.ZodObject<{
43934
43992
  updated_at: string;
43935
43993
  id: string;
43936
43994
  user_id: string;
43995
+ authenticated_at: string;
43937
43996
  login_session_id: string;
43938
43997
  device: {
43939
43998
  last_ip: string;
@@ -43944,7 +44003,6 @@ export declare const sessionSchema: z.ZodObject<{
43944
44003
  last_asn: string;
43945
44004
  };
43946
44005
  clients: string[];
43947
- authenticated_at: string;
43948
44006
  last_interaction_at: string;
43949
44007
  expires_at?: string | undefined;
43950
44008
  used_at?: string | undefined;
@@ -43955,6 +44013,7 @@ export declare const sessionSchema: z.ZodObject<{
43955
44013
  updated_at: string;
43956
44014
  id: string;
43957
44015
  user_id: string;
44016
+ authenticated_at: string;
43958
44017
  login_session_id: string;
43959
44018
  device: {
43960
44019
  last_ip: string;
@@ -43965,7 +44024,6 @@ export declare const sessionSchema: z.ZodObject<{
43965
44024
  last_asn: string;
43966
44025
  };
43967
44026
  clients: string[];
43968
- authenticated_at: string;
43969
44027
  last_interaction_at: string;
43970
44028
  expires_at?: string | undefined;
43971
44029
  used_at?: string | undefined;
@@ -52498,6 +52556,126 @@ export interface OutboxCleanupParams {
52498
52556
  * Intended for use in a scheduled handler / cron job.
52499
52557
  */
52500
52558
  export declare function cleanupOutbox(outbox: OutboxAdapter, params?: OutboxCleanupParams): Promise<number>;
52559
+ export interface CreateDefaultDestinationsConfig {
52560
+ /**
52561
+ * Data adapter — only the `logs`, `hooks`, and `users` adapters are used
52562
+ * by the built-in destinations.
52563
+ */
52564
+ dataAdapter: Pick<DataAdapters, "logs" | "hooks" | "users">;
52565
+ /**
52566
+ * Produces a Bearer access token for the given tenant, used when POSTing
52567
+ * `hook.*` events to the configured webhook URLs.
52568
+ *
52569
+ * Required if you want `hook.*` events to be drained. Omit for cron
52570
+ * drains that only need to sweep up log events.
52571
+ */
52572
+ getServiceToken?: (tenantId: string) => Promise<string>;
52573
+ /** Webhook HTTP request timeout in ms (default: 10_000). */
52574
+ webhookTimeoutMs?: number;
52575
+ }
52576
+ /**
52577
+ * Build the same array of outbox destinations that authhero's per-request
52578
+ * `outboxMiddleware` constructs internally. Intended for consumers that want
52579
+ * to run `drainOutbox` from a cron / scheduled handler as a safety net for
52580
+ * events that failed per-request delivery.
52581
+ *
52582
+ * Without this helper, consumers would have to instantiate the destination
52583
+ * classes themselves and stay in sync with their ordering and filtering
52584
+ * rules (e.g. `RegistrationFinalizerDestination` must come AFTER
52585
+ * `WebhookDestination`).
52586
+ *
52587
+ * @example
52588
+ * ```ts
52589
+ * // Cloudflare Workers scheduled handler
52590
+ * async scheduled(_event, env) {
52591
+ * const destinations = createDefaultDestinations({
52592
+ * dataAdapter,
52593
+ * getServiceToken: async (tenantId) =>
52594
+ * (await mintServiceToken(tenantId, "webhook")).access_token,
52595
+ * });
52596
+ * await drainOutbox(dataAdapter.outbox, destinations);
52597
+ * await cleanupOutbox(dataAdapter.outbox, { retentionDays: 7 });
52598
+ * }
52599
+ * ```
52600
+ */
52601
+ export declare function createDefaultDestinations(config: CreateDefaultDestinationsConfig): EventDestination[];
52602
+ export declare class LogsDestination implements EventDestination {
52603
+ name: string;
52604
+ private logs;
52605
+ constructor(logs: LogsDataAdapter);
52606
+ /**
52607
+ * Only accept log-shaped events. `hook.*` events are dispatch tasks for
52608
+ * webhook / code-hook destinations and are not audit log entries.
52609
+ */
52610
+ accepts(event: AuditEvent): boolean;
52611
+ transform(event: AuditEvent): {
52612
+ tenantId: string;
52613
+ log: LogInsert;
52614
+ };
52615
+ deliver(events: {
52616
+ tenantId: string;
52617
+ log: LogInsert;
52618
+ }[]): Promise<void>;
52619
+ }
52620
+ export type GetServiceToken = (tenantId: string) => Promise<string>;
52621
+ export interface WebhookInvocation {
52622
+ eventId: string;
52623
+ tenantId: string;
52624
+ triggerId: string;
52625
+ payload: {
52626
+ tenant_id: string;
52627
+ trigger_id: string;
52628
+ user?: unknown;
52629
+ request?: unknown;
52630
+ };
52631
+ }
52632
+ /**
52633
+ * Delivers `hook.*` outbox events to HTTP webhooks configured for the matching
52634
+ * trigger_id. Each POST includes `Idempotency-Key: {event.id}` so downstream
52635
+ * webhook handlers can dedupe if the outbox retries.
52636
+ *
52637
+ * The destination is constructed per-request (via `outboxMiddleware`'s
52638
+ * `getDestinations(ctx)` factory) so it can close over a ctx-bound service
52639
+ * token generator.
52640
+ */
52641
+ export declare class WebhookDestination implements EventDestination {
52642
+ name: string;
52643
+ private hooks;
52644
+ private getServiceToken;
52645
+ private timeoutMs;
52646
+ constructor(hooks: HooksAdapter, getServiceToken: GetServiceToken, options?: {
52647
+ timeoutMs?: number;
52648
+ });
52649
+ accepts(event: AuditEvent): boolean;
52650
+ transform(event: AuditEvent): WebhookInvocation;
52651
+ deliver(events: WebhookInvocation[]): Promise<void>;
52652
+ }
52653
+ export interface FinalizationTask {
52654
+ tenantId: string;
52655
+ userId: string;
52656
+ timestamp: string;
52657
+ }
52658
+ /**
52659
+ * Side-effect destination that flips `user.registration_completed_at` once
52660
+ * the upstream hook destinations (webhooks, code hooks) have all succeeded
52661
+ * for a `hook.post-user-registration` event.
52662
+ *
52663
+ * Must be listed AFTER the destinations that actually deliver the hook so
52664
+ * that a delivery failure aborts the loop before the flag is set — the
52665
+ * relay then retries the entire event, and on a subsequent successful pass
52666
+ * the finalizer sets the flag.
52667
+ *
52668
+ * The flag is read by `postUserLoginHook` to decide whether to re-enqueue
52669
+ * the event on the next login (self-healing recovery).
52670
+ */
52671
+ export declare class RegistrationFinalizerDestination implements EventDestination {
52672
+ name: string;
52673
+ private users;
52674
+ constructor(users: UserDataAdapter);
52675
+ accepts(event: AuditEvent): boolean;
52676
+ transform(event: AuditEvent): FinalizationTask;
52677
+ deliver(tasks: FinalizationTask[]): Promise<void>;
52678
+ }
52501
52679
  /**
52502
52680
  * Options for the entity hooks wrapper
52503
52681
  */
@@ -53827,8 +54005,8 @@ export declare function init(config: AuthHeroConfig): {
53827
54005
  };
53828
54006
  app_metadata?: Record<string, any> | undefined;
53829
54007
  user_metadata?: Record<string, any> | undefined;
53830
- roles?: string[] | undefined;
53831
54008
  connection_id?: string | undefined;
54009
+ roles?: string[] | undefined;
53832
54010
  ttl_sec?: number | undefined;
53833
54011
  send_invitation_email?: boolean | undefined;
53834
54012
  };
@@ -59030,6 +59208,7 @@ export declare function init(config: AuthHeroConfig): {
59030
59208
  updated_at: string;
59031
59209
  id: string;
59032
59210
  user_id: string;
59211
+ authenticated_at: string;
59033
59212
  login_session_id: string;
59034
59213
  device: {
59035
59214
  last_ip: string;
@@ -59040,7 +59219,6 @@ export declare function init(config: AuthHeroConfig): {
59040
59219
  last_asn: string;
59041
59220
  };
59042
59221
  clients: string[];
59043
- authenticated_at: string;
59044
59222
  last_interaction_at: string;
59045
59223
  expires_at?: string | undefined | undefined;
59046
59224
  used_at?: string | undefined | undefined;
@@ -59748,9 +59926,9 @@ export declare function init(config: AuthHeroConfig): {
59748
59926
  response_type?: AuthorizationResponseType | undefined;
59749
59927
  id?: string | undefined;
59750
59928
  display_name?: string | undefined;
59929
+ strategy?: string | undefined;
59751
59930
  is_system?: boolean | undefined;
59752
59931
  metadata?: Record<string, any> | undefined;
59753
- strategy?: string | undefined;
59754
59932
  enabled_clients?: string[] | undefined;
59755
59933
  is_domain_connection?: boolean | undefined;
59756
59934
  show_as_button?: boolean | undefined;
@@ -62694,6 +62872,7 @@ export declare function init(config: AuthHeroConfig): {
62694
62872
  updated_at: string;
62695
62873
  id: string;
62696
62874
  user_id: string;
62875
+ authenticated_at: string;
62697
62876
  login_session_id: string;
62698
62877
  device: {
62699
62878
  last_ip: string;
@@ -62704,7 +62883,6 @@ export declare function init(config: AuthHeroConfig): {
62704
62883
  last_asn: string;
62705
62884
  };
62706
62885
  clients: string[];
62707
- authenticated_at: string;
62708
62886
  last_interaction_at: string;
62709
62887
  expires_at?: string | undefined | undefined;
62710
62888
  used_at?: string | undefined | undefined;
@@ -62719,6 +62897,7 @@ export declare function init(config: AuthHeroConfig): {
62719
62897
  updated_at: string;
62720
62898
  id: string;
62721
62899
  user_id: string;
62900
+ authenticated_at: string;
62722
62901
  login_session_id: string;
62723
62902
  device: {
62724
62903
  last_ip: string;
@@ -62729,7 +62908,6 @@ export declare function init(config: AuthHeroConfig): {
62729
62908
  last_asn: string;
62730
62909
  };
62731
62910
  clients: string[];
62732
- authenticated_at: string;
62733
62911
  last_interaction_at: string;
62734
62912
  expires_at?: string | undefined | undefined;
62735
62913
  used_at?: string | undefined | undefined;
@@ -62742,6 +62920,109 @@ export declare function init(config: AuthHeroConfig): {
62742
62920
  status: 200;
62743
62921
  };
62744
62922
  };
62923
+ } & {
62924
+ "/:user_id/logs": {
62925
+ $get: {
62926
+ input: {
62927
+ param: {
62928
+ user_id: string;
62929
+ };
62930
+ } & {
62931
+ query: {
62932
+ sort?: string | undefined;
62933
+ page?: string | undefined;
62934
+ per_page?: string | undefined;
62935
+ include_totals?: string | undefined;
62936
+ from?: string | undefined;
62937
+ take?: string | undefined;
62938
+ q?: string | undefined;
62939
+ };
62940
+ } & {
62941
+ header: {
62942
+ "tenant-id"?: string | undefined;
62943
+ };
62944
+ };
62945
+ output: {
62946
+ type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
62947
+ date: string;
62948
+ isMobile: boolean;
62949
+ log_id: string;
62950
+ description?: string | undefined | undefined;
62951
+ client_id?: string | undefined | undefined;
62952
+ ip?: string | undefined | undefined;
62953
+ user_agent?: string | undefined | undefined;
62954
+ connection?: string | undefined | undefined;
62955
+ strategy?: string | undefined | undefined;
62956
+ strategy_type?: string | undefined | undefined;
62957
+ auth0_client?: {
62958
+ version: string;
62959
+ name: string;
62960
+ env?: {
62961
+ node?: string | undefined | undefined;
62962
+ } | undefined;
62963
+ } | undefined;
62964
+ hostname?: string | undefined | undefined;
62965
+ connection_id?: string | undefined | undefined;
62966
+ user_id?: string | undefined | undefined;
62967
+ audience?: string | undefined | undefined;
62968
+ scope?: string | undefined | undefined;
62969
+ details?: any;
62970
+ user_name?: string | undefined | undefined;
62971
+ client_name?: string | undefined | undefined;
62972
+ location_info?: {
62973
+ country_code: string;
62974
+ city_name: string;
62975
+ latitude: string;
62976
+ longitude: string;
62977
+ time_zone: string;
62978
+ continent_code: string;
62979
+ } | undefined;
62980
+ }[] | {
62981
+ length: number;
62982
+ start: number;
62983
+ limit: number;
62984
+ logs: {
62985
+ type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
62986
+ date: string;
62987
+ isMobile: boolean;
62988
+ log_id: string;
62989
+ description?: string | undefined | undefined;
62990
+ client_id?: string | undefined | undefined;
62991
+ ip?: string | undefined | undefined;
62992
+ user_agent?: string | undefined | undefined;
62993
+ connection?: string | undefined | undefined;
62994
+ strategy?: string | undefined | undefined;
62995
+ strategy_type?: string | undefined | undefined;
62996
+ auth0_client?: {
62997
+ version: string;
62998
+ name: string;
62999
+ env?: {
63000
+ node?: string | undefined | undefined;
63001
+ } | undefined;
63002
+ } | undefined;
63003
+ hostname?: string | undefined | undefined;
63004
+ connection_id?: string | undefined | undefined;
63005
+ user_id?: string | undefined | undefined;
63006
+ audience?: string | undefined | undefined;
63007
+ scope?: string | undefined | undefined;
63008
+ details?: any;
63009
+ user_name?: string | undefined | undefined;
63010
+ client_name?: string | undefined | undefined;
63011
+ location_info?: {
63012
+ country_code: string;
63013
+ city_name: string;
63014
+ latitude: string;
63015
+ longitude: string;
63016
+ time_zone: string;
63017
+ continent_code: string;
63018
+ } | undefined;
63019
+ }[];
63020
+ total?: number | undefined;
63021
+ };
63022
+ outputFormat: "json";
63023
+ status: 200;
63024
+ };
63025
+ };
62745
63026
  } & {
62746
63027
  "/:user_id/permissions": {
62747
63028
  $get: {
@@ -64564,6 +64845,52 @@ export declare function init(config: AuthHeroConfig): {
64564
64845
  status: 403;
64565
64846
  };
64566
64847
  };
64848
+ } & {
64849
+ "/resume": {
64850
+ $get: {
64851
+ input: {
64852
+ query: {
64853
+ state: string;
64854
+ };
64855
+ };
64856
+ output: {};
64857
+ outputFormat: string;
64858
+ status: 302;
64859
+ } | {
64860
+ input: {
64861
+ query: {
64862
+ state: string;
64863
+ };
64864
+ };
64865
+ output: {
64866
+ message: string;
64867
+ };
64868
+ outputFormat: "json";
64869
+ status: 400;
64870
+ } | {
64871
+ input: {
64872
+ query: {
64873
+ state: string;
64874
+ };
64875
+ };
64876
+ output: {
64877
+ message: string;
64878
+ };
64879
+ outputFormat: "json";
64880
+ status: 403;
64881
+ } | {
64882
+ input: {
64883
+ query: {
64884
+ state: string;
64885
+ };
64886
+ };
64887
+ output: {
64888
+ message: string;
64889
+ };
64890
+ outputFormat: "json";
64891
+ status: 409;
64892
+ };
64893
+ };
64567
64894
  }, "/authorize"> & import("hono/types").MergeSchemaPath<{
64568
64895
  "/": {
64569
64896
  $post: {