@authhero/kysely-adapter 11.3.0 → 11.4.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.d.ts +824 -5885
- package/dist/types/migrate/ReferenceMigrationProvider.d.ts +6 -0
- package/dist/types/migrate/log.d.ts +3 -0
- package/dist/types/migrate/migrate.d.ts +4 -0
- package/dist/types/migrate/migrations/2022-12-11T09:17:35_init.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-09-21T10:12:15_support-url.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-10-26T06:57:21_updated_at.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-10-26T08:14:09_log_table.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-10-27T16:00:11_picture-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-02T23:18:12_sessions.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-07T23:18:12_passwords.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-08T17:12:09_logs-table-new-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-16T14:27:00_passwords-table-password.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-17T10:34:00_codes-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-19T20:53:00_univeral-login-session.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-21T12:30:00_user-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-21T15:57:00_user-indexes.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-11-23T17:44:00_profile-data-field.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-12-08T15:59:00_user-linked-to-index.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-12-21T15:05:00_user-locale.d.ts +4 -0
- package/dist/types/migrate/migrations/2023-12-26T10:58:00_signing-keys.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-01-06T16:23:00_logs-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-01-10T23:19:00_connections-userinfo.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-01-11T10:58:00_missing-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-01-17T10:51:00_session-deleted-at.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-01-31T09:00:00_drop-logs-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-02T15:55:00_drop-users-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-02T16:55:00_logs-indexes.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-05T18:35:00_log-desc-max-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-08T12:45:00_logs-table-extra-fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-13T11:25:00_users-table-name-index.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-02-19T20:14:00_users-email-constrain.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-03-11T12:45:00_increase-otp-state-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-04-22T14:48:00_increase-ticket-state-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-09T08:50:00_branding.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-14T07:53:00_indexes_and_not_null.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-16T10:45:00_vendor_id_in_universal_login_session.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-23T15:53:00_auth0client_in_universal_login_session.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-24T16:25:00_increase-universal-auth-state-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-05-27T23:50:00_authentication_codes.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-06-03T10:00:00_disable-sign-ups.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-06-05T10:00:00_otp-ip-address.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-06-19T10:00:00_increase-user-agent-length.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-15T10:00:00_user_id.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-15T12:52:00_hooks.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-22T12:52:00_user-indexes.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-25T12:19:00_session_id.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-26T10:18:00_codes.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-07-26T14:18:00_hook-properties.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-01T14:19:00_login_auth0_client.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-01T15:52:00_login_state.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-16T13:45:00_saml.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-20T08:50:00_remove_fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-22T08:26:00_authparams_nonce.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-22T11:54:00_connection_id.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-26T18:38:00_cert.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-27T14:35:00_codes_primay_key.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-27T23:48:00_remove_unused.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-08-30T16:41:00_logs_index.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-09-03T08:48:00_application_fields.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-09-03T15:15:00_prompt_settings.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-09-04T08:41:00_connection_client_id.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-09-15T19:31:00_connection_options.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-09-16T17:02:00_users_metadata.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-10-01T9:09:00_ui_locales.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-10-19T07:47:00_prompt.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-10-22T09:01:00_connection_cleanup.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-11-18T10:37:00_act_as.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-11-22T17:48:00_code_verifier.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-12-04T23:34:00_email_provider.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-12-05T13:05:00_drop_tickets.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-12-05T13:20:00_login_useragent.d.ts +4 -0
- package/dist/types/migrate/migrations/2024-12-06T17:42:00_useragent_length.d.ts +0 -0
- package/dist/types/migrate/migrations/2025-01-14T17:51:00_password_key.d.ts +0 -0
- package/dist/types/migrate/migrations/2025-02-03T08:48:00_refresh_tokens.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-02-11T13:54:00_session_new_fields.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-02-12T13:15:00_session_primary_key.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-02-12T15:27:00_drop_sessions.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-02-21T23:45:00_custom_domains.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-10T11:20:00_organization.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-12T14:14:00_authorization_url_length.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-14T21:58:00_drop_session.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-14T22:41:00_login_sessions.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-19T15:47:00_drop_sessions_2.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-03-21T11:08:00_recreate_custom_domains.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-04-22T14:00:00_phone.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-05-21T10:00:00_forms.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-05-29T00:00:00_add_forms_id_to_hooks.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-05-30T00:00:00_login_completed.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-06-04T12:00:00_add_login_session_id_to_sessions.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-06-04T13:00:00_index_sessions_login_session_id.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-06-04T14:00:00_code_challenge.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-06-05T09:40:00_add_redirect_uri_to_codes.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-06-05T14:30:00_add_nonce_and_state_to_codes.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-07-23T14:30:00_themes.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-08-11T12:00:00_resource_servers_rules_permissions.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-08-13T15:00:00_role_user_permissions.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-08-14T09:30:00_user_roles.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-08-20T12:00:00_keys_connection_and_extend_columns.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-09-10T10:00:00_create_organizations_table.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-09-10T11:00:00_create_user_organizations_table.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-09-11T12:00:00_add_organization_to_user_permissions_and_roles.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-09-16T12:00:00_clients.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-09-16T12:30:00_update_client_foreign_keys.d.ts +20 -0
- package/dist/types/migrate/migrations/2025-09-18T12:00:00_client_grants.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-09-19T10:56:35_drop_applications.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-09-24T12:00:00_phone_number_index.d.ts +11 -0
- package/dist/types/migrate/migrations/2025-09-24T12:30:00_login_sessions_id_index.d.ts +12 -0
- package/dist/types/migrate/migrations/2025-09-24T13:00:00_connections_tenant_index.d.ts +11 -0
- package/dist/types/migrate/migrations/2025-09-24T13:30:00_remove_redundant_user_organizations_tenant_index.d.ts +12 -0
- package/dist/types/migrate/migrations/2025-10-16T12:00:00_tenant_settings.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-10-17T10:00:00_merge_tenant_settings_into_tenants.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-10-27T14:00:00_create_invites_table.d.ts +10 -0
- package/dist/types/migrate/migrations/2025-11-03T10:00:00_add_log_id_to_logs.d.ts +11 -0
- package/dist/types/migrate/migrations/2025-11-28T10:00:00_add_location_info_to_logs.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-12-03T19:45:12_add_password_history.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-12-09T10:00:00_connection_display_name.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-12-12T10:00:00_client_connections.d.ts +4 -0
- package/dist/types/migrate/migrations/2025-12-19T10:00:00_actions.d.ts +3 -0
- package/dist/types/migrate/migrations/2025-12-20T10:00:00_add_is_system_column.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-01-07T10:00:00_connections_composite_key.d.ts +11 -0
- package/dist/types/migrate/migrations/2026-01-10T10:00:00_login_session_state.d.ts +18 -0
- package/dist/types/migrate/migrations/2026-01-14T10:00:00_roles_resource_servers_metadata.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-01-15T10:00:00_session_add_timestamp_columns.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-01-22T10:00:00_session_cleanup_and_ulid.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-01-28T10:00:00_oidc_profile_claims.d.ts +16 -0
- package/dist/types/migrate/migrations/2026-01-28T11:00:00_preferred_username.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-01-28T12:00:00_user_address.d.ts +14 -0
- package/dist/types/migrate/migrations/2026-01-28T13:00:00_authparams_max_age.d.ts +7 -0
- package/dist/types/migrate/migrations/2026-01-28T14:00:00_auth0_conformant.d.ts +3 -0
- package/dist/types/migrate/migrations/2026-01-30T10:00:00_universal_login_templates.d.ts +3 -0
- package/dist/types/migrate/migrations/2026-02-04T10:00:00_custom_text.d.ts +3 -0
- package/dist/types/migrate/migrations/2026-02-04T11:00:00_guardian_mfa.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-02-25T10:00:00_add_template_id_to_hooks.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-02-25T11:00:00_hooks_cleanup.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-02-25T12:00:00_unique_username_provider.d.ts +15 -0
- package/dist/types/migrate/migrations/2026-03-04T10:00:00_add_login_id_to_refresh_tokens.d.ts +3 -0
- package/dist/types/migrate/migrations/2026-03-11T10:00:00_refresh_tokens_replace_session_id_with_login_id.d.ts +3 -0
- package/dist/types/migrate/migrations/2026-03-12T10:00:00_idle_expires_at_ts_indexes.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-03-15T10:00:00_add_connection_to_login_sessions.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-03-21T10:00:00_mfa_enrollments.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-03-22T10:00:00_add_otp_to_codes.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-03-28T10:00:00_rename_mfa_enrollments_to_authentication_methods.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-03T10:00:00_create_outbox_events.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-04-03T11:00:00_add_outbox_claim_columns.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-04-08T10:00:00_add_outbox_claim_index.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-04-12T10:00:00_add_code_hooks.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-13T10:00:00_create_actions.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-14T10:00:00_outbox_dead_letter.d.ts +13 -0
- package/dist/types/migrate/migrations/2026-04-14T11:00:00_user_registration_completed_at.d.ts +19 -0
- package/dist/types/migrate/migrations/2026-04-14T12:00:00_outbox_dead_lettered_tenant_index.d.ts +13 -0
- package/dist/types/migrate/migrations/2026-04-18T10:00:00_add_auth_strategy_to_login_sessions.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-04-20T10:00:00_login_sessions_auth_params.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-20T11:00:00_login_sessions_auth_params_backfill.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-20T12:00:00_relax_login_sessions_authparams.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-21T10:00:00_drop_login_sessions_hoisted_authparams.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-22T10:00:00_refresh_tokens_revoked_at.d.ts +9 -0
- package/dist/types/migrate/migrations/2026-04-24T10:00:00_client_registration_tokens.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-24T10:00:00_planetscale_redundant_indexes_cleanup.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-04-28T10:00:00_client_user_linking_mode.d.ts +9 -0
- package/dist/types/migrate/migrations/2026-04-29T10:00:00_hooks_metadata.d.ts +13 -0
- package/dist/types/migrate/migrations/2026-05-05T10:00:00_refresh_tokens_rotation.d.ts +22 -0
- package/dist/types/migrate/migrations/2026-05-05T20:00:00_organization_connections.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-05-06T10:00:00_log_streams.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-06T11:00:00_tenants_attack_protection.d.ts +10 -0
- package/dist/types/migrate/migrations/2026-05-06T12:00:00_tenants_default_client_id.d.ts +12 -0
- package/dist/types/migrate/migrations/2026-05-09T00:00:00_email_templates.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-10T10:00:00_create_action_versions.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-11T10:00:00_branding_dark_mode.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-12T10:00:00_create_action_executions.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-12T11:00:00_client_disable_sign_ups.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-13T10:00:00_move_disable_signup_to_connection.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-13T11:00:00_actions_is_system_inherit.d.ts +16 -0
- package/dist/types/migrate/migrations/2026-05-13T12:00:00_collapse_auth0_source_into_db_connection.d.ts +4 -0
- package/dist/types/migrate/migrations/2026-05-14T10:00:00_migration_sources.d.ts +4 -0
- package/dist/types/migrate/migrations/index.d.ts +341 -0
- package/dist/types/src/actionExecutions/create.d.ts +4 -0
- package/dist/types/src/actionExecutions/get.d.ts +4 -0
- package/dist/types/src/actionExecutions/index.d.ts +4 -0
- package/dist/types/src/actionVersions/index.d.ts +4 -0
- package/dist/types/src/actions/create.d.ts +4 -0
- package/dist/types/src/actions/get.d.ts +4 -0
- package/dist/types/src/actions/index.d.ts +4 -0
- package/dist/types/src/actions/list.d.ts +5 -0
- package/dist/types/src/actions/remove.d.ts +3 -0
- package/dist/types/src/actions/update.d.ts +4 -0
- package/dist/types/src/analytics/index.d.ts +4 -0
- package/dist/types/src/authenticationMethods/create.d.ts +4 -0
- package/dist/types/src/authenticationMethods/get.d.ts +4 -0
- package/dist/types/src/authenticationMethods/getByCredentialId.d.ts +4 -0
- package/dist/types/src/authenticationMethods/index.d.ts +4 -0
- package/dist/types/src/authenticationMethods/list.d.ts +4 -0
- package/dist/types/src/authenticationMethods/remove.d.ts +3 -0
- package/dist/types/src/authenticationMethods/update.d.ts +4 -0
- package/dist/types/src/branding/get.d.ts +4 -0
- package/dist/types/src/branding/index.d.ts +4 -0
- package/dist/types/src/branding/set.d.ts +4 -0
- package/dist/types/src/cleanup.d.ts +16 -0
- package/dist/types/src/clientConnections/addClientToConnection.d.ts +3 -0
- package/dist/types/src/clientConnections/index.d.ts +4 -0
- package/dist/types/src/clientConnections/listByClient.d.ts +4 -0
- package/dist/types/src/clientConnections/listByConnection.d.ts +3 -0
- package/dist/types/src/clientConnections/removeClientFromConnection.d.ts +3 -0
- package/dist/types/src/clientConnections/updateByClient.d.ts +3 -0
- package/dist/types/src/clientGrants/create.d.ts +4 -0
- package/dist/types/src/clientGrants/get.d.ts +4 -0
- package/dist/types/src/clientGrants/index.d.ts +4 -0
- package/dist/types/src/clientGrants/list.d.ts +4 -0
- package/dist/types/src/clientGrants/remove.d.ts +3 -0
- package/dist/types/src/clientGrants/update.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/create.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/get.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/getByHash.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/index.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/listByClient.d.ts +4 -0
- package/dist/types/src/clientRegistrationTokens/markUsed.d.ts +3 -0
- package/dist/types/src/clientRegistrationTokens/remove.d.ts +3 -0
- package/dist/types/src/clientRegistrationTokens/revoke.d.ts +3 -0
- package/dist/types/src/clientRegistrationTokens/revokeByClient.d.ts +3 -0
- package/dist/types/src/clientRegistrationTokens/row-mapper.d.ts +17 -0
- package/dist/types/src/clients/create.d.ts +4 -0
- package/dist/types/src/clients/get.d.ts +4 -0
- package/dist/types/src/clients/getByClientId.d.ts +4 -0
- package/dist/types/src/clients/index.d.ts +4 -0
- package/dist/types/src/clients/list.d.ts +8 -0
- package/dist/types/src/clients/remove.d.ts +3 -0
- package/dist/types/src/clients/update.d.ts +4 -0
- package/dist/types/src/codes/consume.d.ts +3 -0
- package/dist/types/src/codes/create.d.ts +20 -0
- package/dist/types/src/codes/get.d.ts +4 -0
- package/dist/types/src/codes/index.d.ts +4 -0
- package/dist/types/src/codes/list.d.ts +4 -0
- package/dist/types/src/codes/remove.d.ts +3 -0
- package/dist/types/src/codes/used.d.ts +3 -0
- package/dist/types/src/connections/create.d.ts +4 -0
- package/dist/types/src/connections/get.d.ts +4 -0
- package/dist/types/src/connections/index.d.ts +4 -0
- package/dist/types/src/connections/list.d.ts +4 -0
- package/dist/types/src/connections/remove.d.ts +3 -0
- package/dist/types/src/connections/transform.d.ts +17 -0
- package/dist/types/src/connections/update.d.ts +4 -0
- package/dist/types/src/customDomains/create.d.ts +4 -0
- package/dist/types/src/customDomains/get.d.ts +18 -0
- package/dist/types/src/customDomains/getByDomain.d.ts +28 -0
- package/dist/types/src/customDomains/index.d.ts +4 -0
- package/dist/types/src/customDomains/list.d.ts +28 -0
- package/dist/types/src/customDomains/remove.d.ts +3 -0
- package/dist/types/src/customDomains/update.d.ts +4 -0
- package/dist/types/src/customText/index.d.ts +4 -0
- package/dist/types/src/db.d.ts +892 -0
- package/dist/types/src/emailProvideres/create.d.ts +4 -0
- package/dist/types/src/emailProvideres/get.d.ts +4 -0
- package/dist/types/src/emailProvideres/index.d.ts +4 -0
- package/dist/types/src/emailProvideres/remove.d.ts +3 -0
- package/dist/types/src/emailProvideres/update.d.ts +4 -0
- package/dist/types/src/emailTemplates/create.d.ts +4 -0
- package/dist/types/src/emailTemplates/get.d.ts +4 -0
- package/dist/types/src/emailTemplates/index.d.ts +4 -0
- package/dist/types/src/emailTemplates/list.d.ts +4 -0
- package/dist/types/src/emailTemplates/remove.d.ts +4 -0
- package/dist/types/src/emailTemplates/row.d.ts +4 -0
- package/dist/types/src/emailTemplates/update.d.ts +4 -0
- package/dist/types/src/flows/create.d.ts +4 -0
- package/dist/types/src/flows/get.d.ts +4 -0
- package/dist/types/src/flows/index.d.ts +4 -0
- package/dist/types/src/flows/list.d.ts +4 -0
- package/dist/types/src/flows/remove.d.ts +3 -0
- package/dist/types/src/flows/update.d.ts +4 -0
- package/dist/types/src/forms/create.d.ts +4 -0
- package/dist/types/src/forms/get.d.ts +4 -0
- package/dist/types/src/forms/index.d.ts +4 -0
- package/dist/types/src/forms/list.d.ts +5 -0
- package/dist/types/src/forms/remove.d.ts +3 -0
- package/dist/types/src/forms/update.d.ts +4 -0
- package/dist/types/src/helpers/filter.d.ts +4 -0
- package/dist/types/src/helpers/parse.d.ts +26 -0
- package/dist/types/src/helpers/remove-nulls.d.ts +1 -0
- package/dist/types/src/helpers/stringify.d.ts +40 -0
- package/dist/types/src/hook-code/create.d.ts +4 -0
- package/dist/types/src/hook-code/get.d.ts +4 -0
- package/dist/types/src/hook-code/index.d.ts +4 -0
- package/dist/types/src/hook-code/remove.d.ts +3 -0
- package/dist/types/src/hook-code/update.d.ts +4 -0
- package/dist/types/src/hooks/create.d.ts +4 -0
- package/dist/types/src/hooks/get.d.ts +4 -0
- package/dist/types/src/hooks/index.d.ts +4 -0
- package/dist/types/src/hooks/list.d.ts +4 -0
- package/dist/types/src/hooks/remove.d.ts +3 -0
- package/dist/types/src/hooks/update.d.ts +4 -0
- package/dist/types/src/index.d.ts +7 -0
- package/dist/types/src/invites/create.d.ts +4 -0
- package/dist/types/src/invites/get.d.ts +4 -0
- package/dist/types/src/invites/index.d.ts +4 -0
- package/dist/types/src/invites/list.d.ts +4 -0
- package/dist/types/src/invites/remove.d.ts +3 -0
- package/dist/types/src/invites/update.d.ts +4 -0
- package/dist/types/src/keys/create.d.ts +4 -0
- package/dist/types/src/keys/index.d.ts +4 -0
- package/dist/types/src/keys/list.d.ts +8 -0
- package/dist/types/src/keys/update.d.ts +4 -0
- package/dist/types/src/log-streams/index.d.ts +4 -0
- package/dist/types/src/loginSessions/create.d.ts +58 -0
- package/dist/types/src/loginSessions/get.d.ts +4 -0
- package/dist/types/src/loginSessions/index.d.ts +4 -0
- package/dist/types/src/loginSessions/remove.d.ts +3 -0
- package/dist/types/src/loginSessions/update.d.ts +4 -0
- package/dist/types/src/logs/create.d.ts +4 -0
- package/dist/types/src/logs/get.d.ts +4 -0
- package/dist/types/src/logs/index.d.ts +4 -0
- package/dist/types/src/logs/list.d.ts +44 -0
- package/dist/types/src/logs/logs.d.ts +3 -0
- package/dist/types/src/migrationSources/index.d.ts +4 -0
- package/dist/types/src/organization-connections/index.d.ts +4 -0
- package/dist/types/src/organizations/create.d.ts +4 -0
- package/dist/types/src/organizations/get.d.ts +4 -0
- package/dist/types/src/organizations/index.d.ts +4 -0
- package/dist/types/src/organizations/list.d.ts +4 -0
- package/dist/types/src/organizations/remove.d.ts +3 -0
- package/dist/types/src/organizations/update.d.ts +4 -0
- package/dist/types/src/outbox/claimEvents.d.ts +3 -0
- package/dist/types/src/outbox/cleanup.d.ts +3 -0
- package/dist/types/src/outbox/create.d.ts +4 -0
- package/dist/types/src/outbox/deadLetter.d.ts +8 -0
- package/dist/types/src/outbox/getByIds.d.ts +4 -0
- package/dist/types/src/outbox/getUnprocessed.d.ts +4 -0
- package/dist/types/src/outbox/index.d.ts +4 -0
- package/dist/types/src/outbox/listFailed.d.ts +4 -0
- package/dist/types/src/outbox/markProcessed.d.ts +3 -0
- package/dist/types/src/outbox/markRetry.d.ts +3 -0
- package/dist/types/src/outbox/replay.d.ts +12 -0
- package/dist/types/src/passwords/Password.d.ts +7 -0
- package/dist/types/src/passwords/create.d.ts +12 -0
- package/dist/types/src/passwords/get.d.ts +4 -0
- package/dist/types/src/passwords/index.d.ts +4 -0
- package/dist/types/src/passwords/list.d.ts +4 -0
- package/dist/types/src/passwords/update.d.ts +4 -0
- package/dist/types/src/promptSettings/get.d.ts +4 -0
- package/dist/types/src/promptSettings/index.d.ts +4 -0
- package/dist/types/src/promptSettings/set.d.ts +4 -0
- package/dist/types/src/refreshTokens/create.d.ts +4 -0
- package/dist/types/src/refreshTokens/get.d.ts +4 -0
- package/dist/types/src/refreshTokens/getByLookup.d.ts +4 -0
- package/dist/types/src/refreshTokens/index.d.ts +4 -0
- package/dist/types/src/refreshTokens/list.d.ts +4 -0
- package/dist/types/src/refreshTokens/remove.d.ts +3 -0
- package/dist/types/src/refreshTokens/revokeByLoginSession.d.ts +3 -0
- package/dist/types/src/refreshTokens/revokeFamily.d.ts +3 -0
- package/dist/types/src/refreshTokens/update.d.ts +4 -0
- package/dist/types/src/resourceServers/create.d.ts +4 -0
- package/dist/types/src/resourceServers/get.d.ts +4 -0
- package/dist/types/src/resourceServers/index.d.ts +4 -0
- package/dist/types/src/resourceServers/list.d.ts +4 -0
- package/dist/types/src/resourceServers/remove.d.ts +3 -0
- package/dist/types/src/resourceServers/update.d.ts +4 -0
- package/dist/types/src/role-permissions/assign.d.ts +4 -0
- package/dist/types/src/role-permissions/index.d.ts +14 -0
- package/dist/types/src/role-permissions/list.d.ts +13 -0
- package/dist/types/src/role-permissions/remove.d.ts +4 -0
- package/dist/types/src/roles/create.d.ts +6 -0
- package/dist/types/src/roles/get.d.ts +4 -0
- package/dist/types/src/roles/index.d.ts +4 -0
- package/dist/types/src/roles/list.d.ts +4 -0
- package/dist/types/src/roles/remove.d.ts +3 -0
- package/dist/types/src/roles/update.d.ts +4 -0
- package/dist/types/src/sessions/create.d.ts +4 -0
- package/dist/types/src/sessions/get.d.ts +4 -0
- package/dist/types/src/sessions/index.d.ts +4 -0
- package/dist/types/src/sessions/list.d.ts +4 -0
- package/dist/types/src/sessions/remove.d.ts +3 -0
- package/dist/types/src/sessions/update.d.ts +4 -0
- package/dist/types/src/stats/index.d.ts +4 -0
- package/dist/types/src/tenants/create.d.ts +4 -0
- package/dist/types/src/tenants/get.d.ts +4 -0
- package/dist/types/src/tenants/index.d.ts +4 -0
- package/dist/types/src/tenants/list.d.ts +352 -0
- package/dist/types/src/tenants/remove.d.ts +3 -0
- package/dist/types/src/tenants/update.d.ts +4 -0
- package/dist/types/src/tenants/utils.d.ts +3 -0
- package/dist/types/src/themes/create.d.ts +4 -0
- package/dist/types/src/themes/get.d.ts +4 -0
- package/dist/types/src/themes/index.d.ts +4 -0
- package/dist/types/src/themes/remove.d.ts +3 -0
- package/dist/types/src/themes/update.d.ts +4 -0
- package/dist/types/src/universalLoginTemplates/delete.d.ts +3 -0
- package/dist/types/src/universalLoginTemplates/get.d.ts +4 -0
- package/dist/types/src/universalLoginTemplates/index.d.ts +4 -0
- package/dist/types/src/universalLoginTemplates/set.d.ts +4 -0
- package/dist/types/src/user-organizations/create.d.ts +4 -0
- package/dist/types/src/user-organizations/get.d.ts +4 -0
- package/dist/types/src/user-organizations/index.d.ts +4 -0
- package/dist/types/src/user-organizations/list.d.ts +6 -0
- package/dist/types/src/user-organizations/listUserOrganizations.d.ts +6 -0
- package/dist/types/src/user-organizations/remove.d.ts +3 -0
- package/dist/types/src/user-organizations/update.d.ts +4 -0
- package/dist/types/src/user-permissions/adapter.d.ts +4 -0
- package/dist/types/src/user-permissions/create.d.ts +4 -0
- package/dist/types/src/user-permissions/index.d.ts +10 -0
- package/dist/types/src/user-permissions/list.d.ts +5 -0
- package/dist/types/src/user-permissions/remove.d.ts +8 -0
- package/dist/types/src/user-roles/adapter.d.ts +4 -0
- package/dist/types/src/user-roles/create.d.ts +3 -0
- package/dist/types/src/user-roles/index.d.ts +7 -0
- package/dist/types/src/user-roles/list.d.ts +4 -0
- package/dist/types/src/user-roles/remove.d.ts +3 -0
- package/dist/types/src/users/create.d.ts +4 -0
- package/dist/types/src/users/get.d.ts +4 -0
- package/dist/types/src/users/index.d.ts +4 -0
- package/dist/types/src/users/list.d.ts +4 -0
- package/dist/types/src/users/remove.d.ts +3 -0
- package/dist/types/src/users/unlink.d.ts +3 -0
- package/dist/types/src/users/update.d.ts +4 -0
- package/dist/types/src/users/user-to-identity.d.ts +2 -0
- package/dist/types/src/utils/dateConversion.d.ts +46 -0
- package/dist/types/src/utils/entity-id.d.ts +14 -0
- package/dist/types/src/utils/flatten.d.ts +8 -0
- package/dist/types/src/utils/getCountAsInt.d.ts +1 -0
- package/dist/types/src/utils/ulid.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { EmailTemplate, EmailTemplateName } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function get(db: Kysely<Database>): (tenant_id: string, templateName: EmailTemplateName) => Promise<EmailTemplate | null>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EmailTemplate, EmailTemplateName } from "@authhero/adapter-interfaces";
|
|
2
|
+
import { Kysely } from "kysely";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function update(db: Kysely<Database>): (tenant_id: string, templateName: EmailTemplateName, patch: Partial<EmailTemplate>) => Promise<boolean>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { ListFlowsResponse, ListParams } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function list(db: Kysely<Database>): (tenant_id: string, params?: ListParams) => Promise<ListFlowsResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Flow, FlowInsert } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function update(db: Kysely<Database>): (tenant_id: string, flow_id: string, flow: Partial<FlowInsert>) => Promise<Flow | null>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { ListFormsResponse } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { ListParams } from "@authhero/adapter-interfaces";
|
|
4
|
+
import { Database } from "../db";
|
|
5
|
+
export declare function list(db: Kysely<Database>): (tenant_id: string, params?: ListParams) => Promise<ListFormsResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely, SelectQueryBuilder } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
export declare function sanitizeLuceneQuery(query: string, allowedFields: string[]): string;
|
|
4
|
+
export declare function luceneFilter<TB extends keyof Database>(db: Kysely<Database>, qb: SelectQueryBuilder<Database, TB, {}>, query: string, searchableColumns: string[]): SelectQueryBuilder<Database, TB, {}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a JSON string if defined, otherwise return the default value.
|
|
3
|
+
* This is useful for parsing JSON strings from database storage.
|
|
4
|
+
*/
|
|
5
|
+
export declare function parseJsonIfDefined<T>(value: string | null | undefined, defaultValue: T): T;
|
|
6
|
+
/**
|
|
7
|
+
* Parse a JSON metadata blob from the database. Returns the parsed value
|
|
8
|
+
* only if it's a plain object (rejects arrays, primitives, and parse errors)
|
|
9
|
+
* — those would be corruption or legacy rows we don't want to crash on.
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseJsonObjectIfDefined(value: string | null | undefined): Record<string, unknown> | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Parse multiple JSON string properties of an object.
|
|
14
|
+
* Properties that are undefined or null will use their default values.
|
|
15
|
+
*
|
|
16
|
+
* @param obj - The source object containing JSON string properties to parse
|
|
17
|
+
* @param propertyDefaults - Map of property names to their default values
|
|
18
|
+
* @param target - The target object to write parsed values to (defaults to a new object based on obj)
|
|
19
|
+
* @returns The target object with parsed properties
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const source = { flags: '{"enabled":true}', sessions: null, name: "Test" };
|
|
23
|
+
* const result = parseJsonProperties(source, { flags: {}, sessions: {} });
|
|
24
|
+
* // result = { flags: {enabled: true}, sessions: {}, name: "Test" }
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseJsonProperties<T extends Record<string, any>>(obj: T, propertyDefaults: Partial<Record<keyof T, any>>, target?: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeNullProperties<T = any>(obj: unknown): T;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stringify a value to JSON if it's defined, otherwise return undefined.
|
|
3
|
+
* This is useful for converting objects to JSON strings for database storage.
|
|
4
|
+
*/
|
|
5
|
+
export declare function stringifyIfDefined<T>(value: T | undefined): string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Stringify multiple properties of an object to JSON strings.
|
|
8
|
+
* Only properties that are defined will be stringified.
|
|
9
|
+
*
|
|
10
|
+
* @param obj - The source object containing properties to stringify
|
|
11
|
+
* @param properties - Array of property names to stringify
|
|
12
|
+
* @param target - The target object to write stringified values to (defaults to a new object based on obj)
|
|
13
|
+
* @returns The target object with stringified properties
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const source = { flags: { enabled: true }, sessions: { timeout: 300 }, name: "Test" };
|
|
17
|
+
* const result = stringifyProperties(source, ['flags', 'sessions']);
|
|
18
|
+
* // result = { flags: '{"enabled":true}', sessions: '{"timeout":300}', name: "Test" }
|
|
19
|
+
*/
|
|
20
|
+
export declare function stringifyProperties<T extends Record<string, any>>(obj: T, properties: (keyof T)[], target?: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* Convert boolean properties to integers (1 for true, 0 for false).
|
|
23
|
+
* Only properties that are defined will be converted.
|
|
24
|
+
*
|
|
25
|
+
* @param source - The source object containing boolean properties to convert
|
|
26
|
+
* @param properties - Array of property names to convert
|
|
27
|
+
* @param target - The target object to write integer values to (defaults to source)
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* const source = { enabled: true, active: false, name: "Test" };
|
|
31
|
+
* const result = {};
|
|
32
|
+
* booleanToInt(source, ['enabled', 'active'], result);
|
|
33
|
+
* // result = { enabled: 1, active: 0 }
|
|
34
|
+
*/
|
|
35
|
+
export declare function booleanToInt<T extends Record<string, any>>(source: Partial<T>, properties: (keyof T)[], target?: any): void;
|
|
36
|
+
/**
|
|
37
|
+
* Remove undefined and null properties from an object.
|
|
38
|
+
* This keeps the SQL payload clean by only including defined values.
|
|
39
|
+
*/
|
|
40
|
+
export declare function removeUndefinedAndNull<T extends Record<string, any>>(obj: T): Partial<T>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { HookCodeInsert } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function update(db: Kysely<Database>): (tenant_id: string, id: string, hookCode: Partial<HookCodeInsert>) => Promise<boolean>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { ListHooksResponse, ListParams } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function list(db: Kysely<Database>): (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "./db";
|
|
3
|
+
import { DataAdapters } from "@authhero/adapter-interfaces";
|
|
4
|
+
export { migrateToLatest, migrateDown } from "../migrate/migrate";
|
|
5
|
+
export default function createAdapters(db: Kysely<Database>, databaseOptions?: {
|
|
6
|
+
useTransactions: boolean;
|
|
7
|
+
}): DataAdapters;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
import { ListInvitesResponse, ListParams } from "@authhero/adapter-interfaces";
|
|
4
|
+
export declare function list(db: Kysely<Database>): (tenantId: string, params?: ListParams) => Promise<ListInvitesResponse>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
import { ListParams, SigningKey, Totals } from "@authhero/adapter-interfaces";
|
|
4
|
+
interface ListKeysResponse extends Totals {
|
|
5
|
+
signingKeys: SigningKey[];
|
|
6
|
+
}
|
|
7
|
+
export declare function list(db: Kysely<Database>): (params?: ListParams) => Promise<ListKeysResponse>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { LoginSessionInsert, LoginSessionState } from "@authhero/adapter-interfaces";
|
|
2
|
+
import { Kysely } from "kysely";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function create(db: Kysely<Database>): (tenant_id: string, login: LoginSessionInsert) => Promise<{
|
|
5
|
+
csrf_token: string;
|
|
6
|
+
authParams: {
|
|
7
|
+
client_id: string;
|
|
8
|
+
act_as?: string | undefined;
|
|
9
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
10
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
11
|
+
redirect_uri?: string | undefined;
|
|
12
|
+
audience?: string | undefined;
|
|
13
|
+
organization?: string | undefined;
|
|
14
|
+
state?: string | undefined;
|
|
15
|
+
nonce?: string | undefined;
|
|
16
|
+
scope?: string | undefined;
|
|
17
|
+
prompt?: string | undefined;
|
|
18
|
+
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
19
|
+
code_challenge?: string | undefined;
|
|
20
|
+
username?: string | undefined;
|
|
21
|
+
ui_locales?: string | undefined;
|
|
22
|
+
max_age?: number | undefined;
|
|
23
|
+
acr_values?: string | undefined;
|
|
24
|
+
claims?: {
|
|
25
|
+
userinfo?: Record<string, {
|
|
26
|
+
essential?: boolean | undefined;
|
|
27
|
+
value?: unknown;
|
|
28
|
+
values?: unknown[] | undefined;
|
|
29
|
+
} | null> | undefined;
|
|
30
|
+
id_token?: Record<string, {
|
|
31
|
+
essential?: boolean | undefined;
|
|
32
|
+
value?: unknown;
|
|
33
|
+
values?: unknown[] | undefined;
|
|
34
|
+
} | null> | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
vendor_id?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
expires_at: string;
|
|
39
|
+
state: LoginSessionState;
|
|
40
|
+
id: string;
|
|
41
|
+
created_at: string;
|
|
42
|
+
updated_at: string;
|
|
43
|
+
auth0Client?: string | undefined;
|
|
44
|
+
deleted_at?: string | undefined;
|
|
45
|
+
ip?: string | undefined;
|
|
46
|
+
useragent?: string | undefined;
|
|
47
|
+
session_id?: string | undefined;
|
|
48
|
+
authorization_url?: string | undefined;
|
|
49
|
+
state_data?: string | undefined;
|
|
50
|
+
failure_reason?: string | undefined;
|
|
51
|
+
user_id?: string | undefined;
|
|
52
|
+
auth_connection?: string | undefined;
|
|
53
|
+
auth_strategy?: {
|
|
54
|
+
strategy: string;
|
|
55
|
+
strategy_type: string;
|
|
56
|
+
} | undefined;
|
|
57
|
+
authenticated_at?: string | undefined;
|
|
58
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LoginSession } from "@authhero/adapter-interfaces";
|
|
2
|
+
import { Kysely } from "kysely";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function update(db: Kysely<Database>): (tenant_id: string, login_id: string, login: Partial<LoginSession>) => Promise<boolean>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { ListParams } from "@authhero/adapter-interfaces";
|
|
3
|
+
import { Database } from "../db";
|
|
4
|
+
export declare function listLogs(db: Kysely<Database>): (tenant_id: string, params?: ListParams) => Promise<{
|
|
5
|
+
logs: {
|
|
6
|
+
type: "fn" | "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" | "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" | "i" | "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" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "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";
|
|
7
|
+
date: string;
|
|
8
|
+
isMobile: boolean;
|
|
9
|
+
log_id: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
ip?: string | undefined;
|
|
12
|
+
user_agent?: string | undefined;
|
|
13
|
+
details?: any;
|
|
14
|
+
user_id?: string | undefined;
|
|
15
|
+
user_name?: string | undefined;
|
|
16
|
+
connection?: string | undefined;
|
|
17
|
+
connection_id?: string | undefined;
|
|
18
|
+
client_id?: string | undefined;
|
|
19
|
+
client_name?: string | undefined;
|
|
20
|
+
audience?: string | undefined;
|
|
21
|
+
scope?: string | undefined;
|
|
22
|
+
strategy?: string | undefined;
|
|
23
|
+
strategy_type?: string | undefined;
|
|
24
|
+
hostname?: string | undefined;
|
|
25
|
+
auth0_client?: {
|
|
26
|
+
name: string;
|
|
27
|
+
version: string;
|
|
28
|
+
env?: {
|
|
29
|
+
node?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
location_info?: {
|
|
33
|
+
country_code: string;
|
|
34
|
+
city_name: string;
|
|
35
|
+
latitude: string;
|
|
36
|
+
longitude: string;
|
|
37
|
+
time_zone: string;
|
|
38
|
+
continent_code: string;
|
|
39
|
+
} | undefined;
|
|
40
|
+
}[];
|
|
41
|
+
start: number;
|
|
42
|
+
limit: number;
|
|
43
|
+
length: number;
|
|
44
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
import { Organization, OrganizationInsert } from "@authhero/adapter-interfaces";
|
|
4
|
+
export declare function create(db: Kysely<Database>): (tenantId: string, organization: OrganizationInsert) => Promise<Organization>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
import { ListOrganizationsResponse, ListParams } from "@authhero/adapter-interfaces";
|
|
4
|
+
export declare function list(db: Kysely<Database>): (tenantId: string, params?: ListParams) => Promise<ListOrganizationsResponse>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
import { OrganizationInsert } from "@authhero/adapter-interfaces";
|
|
4
|
+
export declare function update(db: Kysely<Database>): (tenantId: string, id: string, params: Partial<OrganizationInsert>) => Promise<boolean>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Kysely } from "kysely";
|
|
2
|
+
import { Database } from "../db";
|
|
3
|
+
/**
|
|
4
|
+
* Move an outbox event to dead-letter state. `processed_at` is also set so the
|
|
5
|
+
* relay stops considering it, while `dead_lettered_at` and `final_error`
|
|
6
|
+
* remain available for the management API's failed-events endpoints.
|
|
7
|
+
*/
|
|
8
|
+
export declare function deadLetterOutboxEvent(db: Kysely<Database>): (id: string, finalError: string) => Promise<void>;
|