/** * Ory APIs * # Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) | * * The version of the OpenAPI document: v1.22.66 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import type { RequestArgs } from './base'; import { BaseAPI } from './base'; /** * Contains information on an device verification */ export interface AcceptDeviceUserCodeRequest { 'user_code'?: string; } export interface AcceptOAuth2ConsentRequest { 'context'?: object; /** * GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. */ 'grant_access_token_audience'?: Array; /** * GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. */ 'grant_scope'?: Array; /** * Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. */ 'remember'?: boolean; /** * RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. */ 'remember_for'?: number; 'session'?: AcceptOAuth2ConsentRequestSession; } export interface AcceptOAuth2ConsentRequestSession { /** * AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! */ 'access_token'?: any; /** * IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session\'id payloads are readable by anyone that has access to the ID Challenge. Use with care! */ 'id_token'?: any; } export interface AcceptOAuth2LoginRequest { /** * ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two-factor authentication. */ 'acr'?: string; /** * AMR sets the Authentication Methods References value for this authentication session. You can use it to specify the method a user used to authenticate. For example, if the acr indicates a user used two-factor authentication, the amr can express they used a software-secured key. */ 'amr'?: Array; 'context'?: object; /** * Extend OAuth2 authentication session lifespan If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. */ 'extend_session_lifespan'?: boolean; /** * ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client\'s configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. */ 'force_subject_identifier'?: string; /** * IdentityProviderSessionID is the session ID of the end-user that authenticated. If specified, we will use this value to propagate the logout. */ 'identity_provider_session_id'?: string; /** * Remember, if set to true, tells Ory Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, they will not be asked to log in again. */ 'remember'?: boolean; /** * RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered for the duration of the browser session (using a session cookie). */ 'remember_for'?: number; /** * Subject is the user ID of the end-user that authenticated. */ 'subject': string; } export interface AccountExperienceColors { 'ax_background_default'?: string; 'brand_100'?: string; 'brand_200'?: string; 'brand_300'?: string; 'brand_400'?: string; 'brand_50'?: string; 'brand_500'?: string; 'brand_600'?: string; 'brand_700'?: string; 'brand_800'?: string; 'brand_900'?: string; 'brand_950'?: string; 'button_identifier_background_default'?: string; 'button_identifier_background_hover'?: string; 'button_identifier_border_border_default'?: string; 'button_identifier_border_border_hover'?: string; 'button_identifier_foreground_default'?: string; 'button_identifier_foreground_hover'?: string; 'button_link_brand_brand'?: string; 'button_link_brand_brand_hover'?: string; 'button_link_default_primary'?: string; 'button_link_default_primary_hover'?: string; 'button_link_default_secondary'?: string; 'button_link_default_secondary_hover'?: string; 'button_link_disabled_disabled'?: string; 'button_primary_background_default'?: string; 'button_primary_background_disabled'?: string; 'button_primary_background_hover'?: string; 'button_primary_border_default'?: string; 'button_primary_border_disabled'?: string; 'button_primary_border_hover'?: string; 'button_primary_foreground_default'?: string; 'button_primary_foreground_disabled'?: string; 'button_primary_foreground_hover'?: string; 'button_secondary_background_default'?: string; 'button_secondary_background_disabled'?: string; 'button_secondary_background_hover'?: string; 'button_secondary_border_default'?: string; 'button_secondary_border_disabled'?: string; 'button_secondary_border_hover'?: string; 'button_secondary_foreground_default'?: string; 'button_secondary_foreground_disabled'?: string; 'button_secondary_foreground_hover'?: string; 'button_social_background_default'?: string; 'button_social_background_disabled'?: string; 'button_social_background_generic_provider'?: string; 'button_social_background_hover'?: string; 'button_social_border_default'?: string; 'button_social_border_disabled'?: string; 'button_social_border_generic_provider'?: string; 'button_social_border_hover'?: string; 'button_social_foreground_default'?: string; 'button_social_foreground_disabled'?: string; 'button_social_foreground_generic_provider'?: string; 'button_social_foreground_hover'?: string; 'checkbox_background_checked'?: string; 'checkbox_background_default'?: string; 'checkbox_border_checkbox_border_checked'?: string; 'checkbox_border_checkbox_border_default'?: string; 'checkbox_foreground_checked'?: string; 'checkbox_foreground_default'?: string; 'form_background_default'?: string; 'form_border_default'?: string; 'input_background_default'?: string; 'input_background_disabled'?: string; 'input_background_hover'?: string; 'input_border_default'?: string; 'input_border_disabled'?: string; 'input_border_focus'?: string; 'input_border_hover'?: string; 'input_foreground_disabled'?: string; 'input_foreground_primary'?: string; 'input_foreground_secondary'?: string; 'input_foreground_tertiary'?: string; 'interface_background_brand_primary'?: string; 'interface_background_brand_primary_hover'?: string; 'interface_background_brand_secondary'?: string; 'interface_background_brand_secondary_hover'?: string; 'interface_background_default_inverted'?: string; 'interface_background_default_inverted_hover'?: string; 'interface_background_default_none'?: string; 'interface_background_default_primary'?: string; 'interface_background_default_primary_hover'?: string; 'interface_background_default_secondary'?: string; 'interface_background_default_secondary_hover'?: string; 'interface_background_default_tertiary'?: string; 'interface_background_default_tertiary_hover'?: string; 'interface_background_disabled_disabled'?: string; 'interface_background_validation_danger'?: string; 'interface_background_validation_success'?: string; 'interface_background_validation_warning'?: string; 'interface_border_brand_brand'?: string; 'interface_border_default_inverted'?: string; 'interface_border_default_none'?: string; 'interface_border_default_primary'?: string; 'interface_border_disabled_disabled'?: string; 'interface_border_validation_danger'?: string; 'interface_border_validation_success'?: string; 'interface_border_validation_warning'?: string; 'interface_foreground_brand_on_primary'?: string; 'interface_foreground_brand_on_secondary'?: string; 'interface_foreground_brand_primary'?: string; 'interface_foreground_brand_secondary'?: string; 'interface_foreground_default_inverted'?: string; 'interface_foreground_default_primary'?: string; 'interface_foreground_default_secondary'?: string; 'interface_foreground_default_tertiary'?: string; 'interface_foreground_disabled_disabled'?: string; 'interface_foreground_disabled_on_disabled'?: string; 'interface_foreground_validation_danger'?: string; 'interface_foreground_validation_success'?: string; 'interface_foreground_validation_warning'?: string; 'ory_background_default'?: string; 'ory_border_default'?: string; 'ory_foreground_default'?: string; 'radio_background_checked'?: string; 'radio_background_default'?: string; 'radio_border_checked'?: string; 'radio_border_default'?: string; 'radio_foreground_checked'?: string; 'radio_foreground_default'?: string; 'toggle_background_checked'?: string; 'toggle_background_default'?: string; 'toggle_border_checked'?: string; 'toggle_border_default'?: string; 'toggle_foreground_checked'?: string; 'toggle_foreground_default'?: string; 'ui_100'?: string; 'ui_200'?: string; 'ui_300'?: string; 'ui_400'?: string; 'ui_50'?: string; 'ui_500'?: string; 'ui_600'?: string; 'ui_700'?: string; 'ui_800'?: string; 'ui_900'?: string; 'ui_950'?: string; 'ui_black'?: string; 'ui_danger'?: string; 'ui_success'?: string; 'ui_transparent'?: string; 'ui_warning'?: string; 'ui_white'?: string; } export interface AccountExperienceConfiguration { /** * The URL to the project\'s Contact page. */ 'contact_url'?: string; 'default_locale': string; 'default_redirect_url': string; 'enabled_locales': Array; 'error_ui_url': string; 'favicon_dark_url'?: string; 'favicon_light_url'?: string; 'hide_ory_branding': boolean; 'hide_registration_link': boolean; /** * force_default AccountExperienceLocaleBehaviorForceDefault respect_accept_language AccountExperienceLocaleBehaviorRespectAcceptLanguage */ 'locale_behavior': AccountExperienceConfigurationLocaleBehaviorEnum; 'login_ui_url': string; 'logo_dark_url'?: string; 'logo_light_url'?: string; 'name': string; /** * The URL to the project\'s Privacy Policy page. */ 'privacy_policy_url'?: string; 'recovery_enabled': boolean; 'recovery_ui_url': string; 'registration_enabled': boolean; 'registration_ui_url': string; 'settings_ui_url': string; 'stylesheet'?: string; /** * The URL to the project\'s Terms of Service page. */ 'terms_of_service_url'?: string; 'translations': Array; 'verification_enabled': boolean; 'verification_ui_url': string; } export declare const AccountExperienceConfigurationLocaleBehaviorEnum: { readonly ForceDefault: "force_default"; readonly RespectAcceptLanguage: "respect_accept_language"; readonly UnknownDefaultOpenApi: "11184809"; }; export type AccountExperienceConfigurationLocaleBehaviorEnum = typeof AccountExperienceConfigurationLocaleBehaviorEnum[keyof typeof AccountExperienceConfigurationLocaleBehaviorEnum]; export interface AddProjectToWorkspaceBody { /** * The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production stage Staging dev Development */ 'environment': AddProjectToWorkspaceBodyEnvironmentEnum; /** * The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. */ 'project_subscription': AddProjectToWorkspaceBodyProjectSubscriptionEnum; } export declare const AddProjectToWorkspaceBodyEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type AddProjectToWorkspaceBodyEnvironmentEnum = typeof AddProjectToWorkspaceBodyEnvironmentEnum[keyof typeof AddProjectToWorkspaceBodyEnvironmentEnum]; export declare const AddProjectToWorkspaceBodyProjectSubscriptionEnum: { readonly Migrate: "migrate"; readonly Ignore: "ignore"; readonly UnknownDefaultOpenApi: "11184809"; }; export type AddProjectToWorkspaceBodyProjectSubscriptionEnum = typeof AddProjectToWorkspaceBodyProjectSubscriptionEnum[keyof typeof AddProjectToWorkspaceBodyProjectSubscriptionEnum]; /** * Create Identity and Import Lookup Secret Credentials */ export interface AdminIdentityImportCredentialsLookupSecret { 'config'?: AdminIdentityImportCredentialsLookupSecretConfig; } /** * Create Identity and Import Lookup Secret Credentials Configuration */ export interface AdminIdentityImportCredentialsLookupSecretConfig { /** * Codes is a list of \"lookup secret\" codes configured for the user. */ 'codes'?: Array; } /** * RevokeImportedApiKeyRequest revokes an imported API key by its key_id. */ export interface AdminRevokeImportedApiKeyBody { /** * Optional free-text explanation. Only allowed when reason is PRIVILEGE_WITHDRAWN. */ 'description'?: string; 'reason'?: RevocationReason; } /** * RevokeIssuedApiKeyRequest revokes an issued API key by its key_id. */ export interface AdminRevokeIssuedApiKeyBody { /** * Optional free-text explanation. Only allowed when reason is PRIVILEGE_WITHDRAWN. */ 'description'?: string; 'reason'?: RevocationReason; } /** * RotateIssuedApiKeyRequest is the request for AdminRotateIssuedApiKey. Rotation is a custom method (AIP-136) that swaps an active key for a new one with a fresh secret and key_id, then revokes the old key. It is not a partial update, so it does not carry an update_mask. Mutable fields use presence-based semantics: an absent field inherits from the old key, while a present field (including an explicitly empty value) overrides. */ export interface AdminRotateIssuedApiKeyBody { 'ip_restriction'?: IPRestriction; /** * metadata for the new API key. Absent (nil) inherits from the old key; present (including empty Struct) overrides. */ 'metadata'?: object; /** * name for the new API key. Absent (HasName() == false) inherits from the old key; present (including empty string) overrides. */ 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; /** * scopes for the new API key. Absent (nil slice) inherits from the old key; present (including empty list) overrides. */ 'scopes'?: Array; 'visibility'?: KeyVisibility; } /** * ImportedApiKey represents an API key imported from an external system. The raw key is hashed (SHA-512/256) and stored. The original key is never retained. */ export interface AdminUpdateImportedApiKeyRequest { 'actor_id'?: string; 'create_time'?: string; 'expire_time'?: string; 'ip_restriction'?: IPRestriction; 'last_used_time'?: string; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; /** * revocation_description provides free-form context for a revocation. Only set when revocation_reason is PRIVILEGE_WITHDRAWN. JSON API change: field was formerly revocation_reason_text. Field number 13 is unchanged so the change is wire-compatible for binary proto encoding. */ 'revocation_description'?: string; 'revocation_reason'?: RevocationReason; 'scopes'?: Array; 'status'?: KeyStatus; 'update_time'?: string; 'visibility'?: KeyVisibility; } /** * IssuedApiKey represents an API key issued (generated) by Talos. Root keys are opaque v1 format tokens stored in the database. Derived tokens (JWT/Macaroon) are created via DeriveToken and are stateless (not stored). */ export interface AdminUpdateIssuedApiKeyRequest { 'actor_id'?: string; 'create_time'?: string; 'expire_time'?: string; 'ip_restriction'?: IPRestriction; 'last_used_time'?: string; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; /** * revocation_description provides free-form context for a revocation. Only set when revocation_reason is PRIVILEGE_WITHDRAWN. JSON API change: field was formerly revocation_reason_text. Field number 13 is unchanged so the change is wire-compatible for binary proto encoding. */ 'revocation_description'?: string; 'revocation_reason'?: RevocationReason; 'scopes'?: Array; 'status'?: KeyStatus; 'update_time'?: string; 'visibility'?: KeyVisibility; } export interface Any { [key: string]: any; '@type'?: string; } export interface Attribute { 'key'?: string; 'value'?: string; } export interface AttributeFilter { 'attribute'?: string; 'condition'?: AttributeFilterConditionEnum; 'value'?: string; } export declare const AttributeFilterConditionEnum: { readonly Equals: "equals"; readonly NotEquals: "not_equals"; readonly Contains: "contains"; readonly NotContains: "not_contains"; readonly Regex: "regex"; readonly NotRegex: "not_regex"; readonly Set: "set"; readonly NotSet: "not_set"; readonly UnknownDefaultOpenApi: "11184809"; }; export type AttributeFilterConditionEnum = typeof AttributeFilterConditionEnum[keyof typeof AttributeFilterConditionEnum]; export interface AttributesCountDatapoint { /** * Count of the attribute value for given key */ 'count': number; /** * Name of the attribute value for given key */ 'name': string; } /** * The authenticator assurance level can be one of \"aal1\", \"aal2\", or \"aal3\". A higher number means that it is harder for an attacker to compromise the account. Generally, \"aal1\" implies that one authentication factor was used while AAL2 implies that two factors (e.g. password + TOTP) have been used. To learn more about these levels please head over to: https://www.ory.com/kratos/docs/concepts/credentials */ export declare const AuthenticatorAssuranceLevel: { readonly Aal0: "aal0"; readonly Aal1: "aal1"; readonly Aal2: "aal2"; readonly Aal3: "aal3"; readonly UnknownDefaultOpenApi: "11184809"; }; export type AuthenticatorAssuranceLevel = typeof AuthenticatorAssuranceLevel[keyof typeof AuthenticatorAssuranceLevel]; export interface BasicOrganization { /** * DefaultRegion sets the default region for identities provisioned into this organization, when the identity does not specify a region explictly. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'default_region'?: BasicOrganizationDefaultRegionEnum; /** * The list of organization\'s domains. */ 'domains': Array; /** * The organization\'s ID. */ 'id': string; /** * The organization\'s human-readable label. */ 'label': string; /** * SessionLifespan overrides the project-level session lifespan for sessions issued for this organization. A Go duration string between 1m and 8760h. A null (or zero) value means the project default applies. */ 'session_lifespan'?: string; } export declare const BasicOrganizationDefaultRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type BasicOrganizationDefaultRegionEnum = typeof BasicOrganizationDefaultRegionEnum[keyof typeof BasicOrganizationDefaultRegionEnum]; /** * Batch Check Permission Body */ export interface BatchCheckPermissionBody { 'tuples'?: Array; } /** * Batch Check Permission Result */ export interface BatchCheckPermissionResult { /** * An array of check results. The order aligns with the input order. */ 'results': Array; } /** * BatchCreateImportedApiKeysErrorCode classifies per-item batch import failures. - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_UNSPECIFIED: No error (import succeeded) - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_INVALID_ARGUMENT: The key data is malformed or missing required fields - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_ALREADY_EXISTS: A key with this identifier already exists - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_FAILED_PRECONDITION: State conflict prevents the import - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_INTERNAL: Server error during import - BATCH_CREATE_IMPORTED_API_KEYS_ERROR_RESOURCE_EXHAUSTED: Per-tenant quota cap reached */ export declare const BatchCreateImportedApiKeysErrorCode: { readonly BatchCreateImportedApiKeysErrorUnspecified: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_UNSPECIFIED"; readonly BatchCreateImportedApiKeysErrorInvalidArgument: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_INVALID_ARGUMENT"; readonly BatchCreateImportedApiKeysErrorAlreadyExists: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_ALREADY_EXISTS"; readonly BatchCreateImportedApiKeysErrorFailedPrecondition: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_FAILED_PRECONDITION"; readonly BatchCreateImportedApiKeysErrorInternal: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_INTERNAL"; readonly BatchCreateImportedApiKeysErrorResourceExhausted: "BATCH_CREATE_IMPORTED_API_KEYS_ERROR_RESOURCE_EXHAUSTED"; readonly UnknownDefaultOpenApi: "11184809"; }; export type BatchCreateImportedApiKeysErrorCode = typeof BatchCreateImportedApiKeysErrorCode[keyof typeof BatchCreateImportedApiKeysErrorCode]; /** * BatchCreateImportedApiKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys. */ export interface BatchCreateImportedApiKeysRequest { 'requests'?: Array; } /** * BatchCreateImportedApiKeysResponse returns per-item results and summary counters. */ export interface BatchCreateImportedApiKeysResponse { 'failure_count'?: number; 'results'?: Array; 'success_count'?: number; } /** * BatchCreateImportedApiKeysResult contains the result for one key in a batch import request. */ export interface BatchCreateImportedApiKeysResult { 'error_code'?: BatchCreateImportedApiKeysErrorCode; 'error_message'?: string; 'imported_api_key'?: ImportedApiKey; 'index'?: number; } /** * Patch identities response */ export interface BatchPatchIdentitiesResponse { /** * The patch responses for the individual identities. */ 'identities'?: Array; } export interface BatchVerifyApiKeysRequest { 'requests'?: Array; } export interface BatchVerifyApiKeysResponse { 'results'?: Array; } export interface BillingPeriodBucket { 'base_invoices'?: Array; 'billing_period'?: TimeInterval; 'usage_invoice'?: Invoice; } export interface CheckOplSyntaxResult { /** * The list of syntax errors */ 'errors'?: Array; } /** * The content of the allowed field is mirrored in the HTTP status code. */ export interface CheckPermissionResult { /** * whether the relation tuple is allowed */ 'allowed': boolean; } /** * Check Permission Result With Error */ export interface CheckPermissionResultWithError { /** * whether the relation tuple is allowed */ 'allowed': boolean; /** * any error generated while checking the relation tuple */ 'error'?: string; } export interface CloudAccount { /** * BreakGlass is true when the identity\'s recovery address has break-glass recovery enabled for the identity\'s current organization. */ 'break_glass'?: boolean; 'email': string; 'email_verified': boolean; 'id': string; 'name': string; 'organization_id'?: string | null; } /** * @type ContinueWith */ export type ContinueWith = { action: 'redirect_browser_to'; } & ContinueWithRedirectBrowserTo | { action: 'set_ory_session_token'; } & ContinueWithSetOrySessionToken | { action: 'show_pin_entry_ui'; } & ContinueWithDeviceAuthnPinEntryUi | { action: 'show_recovery_ui'; } & ContinueWithRecoveryUi | { action: 'show_settings_ui'; } & ContinueWithSettingsUi | { action: 'show_verification_ui'; } & ContinueWithVerificationUi; /** * Returned after a PIN-protected DeviceAuthn enrollment or secret rotation. It carries the one-time HPKE-sealed pin_secret, which the device opens with the transport private key it generated for this enrollment and binds to the user\'s PIN. The plaintext secret never leaves the device; the server only ever stores its at-rest ciphertext. The enrolled key\'s client_key_id is not included: it is the SHA-256 fingerprint of the device\'s own public key, which the device derives locally. Non-PIN keys need no client action at all and therefore produce no continue_with. */ export interface ContinueWithDeviceAuthnPinEntryUi { /** * Action will always be `show_pin_entry_ui` show_pin_entry_ui ContinueWithActionShowPINEntryUIString */ 'action': ContinueWithDeviceAuthnPinEntryUiActionEnum; /** * The one-time HPKE-sealed pin_secret material the device opens to bind the user\'s PIN after a PIN-protected DeviceAuthn enrollment or secret rotation. */ 'data': ContinueWithDeviceAuthnPinEntryUiData; } export declare const ContinueWithDeviceAuthnPinEntryUiActionEnum: { readonly ShowPinEntryUi: "show_pin_entry_ui"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithDeviceAuthnPinEntryUiActionEnum = typeof ContinueWithDeviceAuthnPinEntryUiActionEnum[keyof typeof ContinueWithDeviceAuthnPinEntryUiActionEnum]; /** * Contains the encapsulated key and the sealed ciphertext that the device opens with the X25519 transport private key it generated for this enrollment or rotation. Open it with HPKE (RFC 9180) using the suite DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM, the ASCII info string \"ory/deviceauthn/pin-secret/v1\", and the key\'s client_key_id (its ASCII hex form) as the AAD. */ export interface ContinueWithDeviceAuthnPinEntryUiData { /** * The base64-encoded HPKE ciphertext of the sealed pin_secret. */ 'ciphertext': string; /** * The base64-encoded HPKE encapsulated key (the `enc` output of the seal operation). */ 'enc': string; } /** * Indicates, that the UI flow could be continued by showing a recovery ui */ export interface ContinueWithRecoveryUi { /** * Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString */ 'action': ContinueWithRecoveryUiActionEnum; 'flow': ContinueWithRecoveryUiFlow; } export declare const ContinueWithRecoveryUiActionEnum: { readonly ShowRecoveryUi: "show_recovery_ui"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithRecoveryUiActionEnum = typeof ContinueWithRecoveryUiActionEnum[keyof typeof ContinueWithRecoveryUiActionEnum]; export interface ContinueWithRecoveryUiFlow { /** * The ID of the recovery flow */ 'id': string; /** * The URL of the recovery flow If this value is set, redirect the user\'s browser to this URL. This value is typically unset for native clients / API flows. */ 'url'?: string; } /** * Indicates, that the UI flow could be continued by showing a recovery ui */ export interface ContinueWithRedirectBrowserTo { /** * Action will always be `redirect_browser_to` redirect_browser_to ContinueWithActionRedirectBrowserToString */ 'action': ContinueWithRedirectBrowserToActionEnum; /** * The URL to redirect the browser to */ 'redirect_browser_to': string; } export declare const ContinueWithRedirectBrowserToActionEnum: { readonly RedirectBrowserTo: "redirect_browser_to"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithRedirectBrowserToActionEnum = typeof ContinueWithRedirectBrowserToActionEnum[keyof typeof ContinueWithRedirectBrowserToActionEnum]; /** * Indicates that a session was issued, and the application should use this token for authenticated requests */ export interface ContinueWithSetOrySessionToken { /** * Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString */ 'action': ContinueWithSetOrySessionTokenActionEnum; /** * Token is the token of the session */ 'ory_session_token': string; } export declare const ContinueWithSetOrySessionTokenActionEnum: { readonly SetOrySessionToken: "set_ory_session_token"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithSetOrySessionTokenActionEnum = typeof ContinueWithSetOrySessionTokenActionEnum[keyof typeof ContinueWithSetOrySessionTokenActionEnum]; /** * Indicates, that the UI flow could be continued by showing a settings ui */ export interface ContinueWithSettingsUi { /** * Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString */ 'action': ContinueWithSettingsUiActionEnum; 'flow': ContinueWithSettingsUiFlow; } export declare const ContinueWithSettingsUiActionEnum: { readonly ShowSettingsUi: "show_settings_ui"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithSettingsUiActionEnum = typeof ContinueWithSettingsUiActionEnum[keyof typeof ContinueWithSettingsUiActionEnum]; export interface ContinueWithSettingsUiFlow { /** * The ID of the settings flow */ 'id': string; /** * The URL of the settings flow If this value is set, redirect the user\'s browser to this URL. This value is typically unset for native clients / API flows. */ 'url'?: string; } /** * Indicates, that the UI flow could be continued by showing a verification ui */ export interface ContinueWithVerificationUi { /** * Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString */ 'action': ContinueWithVerificationUiActionEnum; 'flow': ContinueWithVerificationUiFlow; } export declare const ContinueWithVerificationUiActionEnum: { readonly ShowVerificationUi: "show_verification_ui"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ContinueWithVerificationUiActionEnum = typeof ContinueWithVerificationUiActionEnum[keyof typeof ContinueWithVerificationUiActionEnum]; export interface ContinueWithVerificationUiFlow { /** * The ID of the verification flow */ 'id': string; /** * The URL of the verification flow If this value is set, redirect the user\'s browser to this URL. This value is typically unset for native clients / API flows. */ 'url'?: string; /** * The address that should be verified in this flow */ 'verifiable_address': string; } /** * A Message\'s Status */ export declare const CourierMessageStatus: { readonly Queued: "queued"; readonly Sent: "sent"; readonly Processing: "processing"; readonly Abandoned: "abandoned"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CourierMessageStatus = typeof CourierMessageStatus[keyof typeof CourierMessageStatus]; /** * It can either be `email` or `phone` */ export declare const CourierMessageType: { readonly Email: "email"; readonly Phone: "phone"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CourierMessageType = typeof CourierMessageType[keyof typeof CourierMessageType]; /** * Create Custom Hostname Request Body */ export interface CreateCustomDomainBody { /** * The domain where cookies will be set. Has to be a parent domain of the custom hostname to work. */ 'cookie_domain'?: string; /** * CORS Allowed origins for the custom hostname. */ 'cors_allowed_origins'?: Array; /** * CORS Enabled for the custom hostname. */ 'cors_enabled'?: boolean; /** * The base URL where the custom user interface will be exposed. */ 'custom_ui_base_url'?: string; /** * The custom hostname where the API will be exposed. */ 'hostname'?: string; } /** * Create Event Stream Request Body */ export interface CreateEventStreamBody { /** * The HTTPS endpoint URL to send events to. Required if type is https. */ 'https_endpoint'?: string; /** * The AWS IAM role ARN to assume when publishing to the SNS topic. Required if type is sns. */ 'role_arn'?: string; /** * The status of the event stream. Defaults to active. A paused stream is created but does not forward any events until it is set to active. */ 'status'?: CreateEventStreamBodyStatusEnum; /** * The AWS SNS topic ARN. Required if type is sns. */ 'topic_arn'?: string; /** * The type of the event stream (AWS SNS or HTTPS webhook). */ 'type': CreateEventStreamBodyTypeEnum; } export declare const CreateEventStreamBodyStatusEnum: { readonly Active: "active"; readonly Paused: "paused"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateEventStreamBodyStatusEnum = typeof CreateEventStreamBodyStatusEnum[keyof typeof CreateEventStreamBodyStatusEnum]; export declare const CreateEventStreamBodyTypeEnum: { readonly Sns: "sns"; readonly Https: "https"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateEventStreamBodyTypeEnum = typeof CreateEventStreamBodyTypeEnum[keyof typeof CreateEventStreamBodyTypeEnum]; /** * Contains a list of all available FedCM providers. */ export interface CreateFedcmFlowResponse { 'csrf_token'?: string; 'providers'?: Array; } /** * Create Identity Body */ export interface CreateIdentityBody { 'credentials'?: IdentityWithCredentials; /** * ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. */ 'external_id'?: string; /** * Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. */ 'metadata_admin'?: any; /** * Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. */ 'metadata_public'?: any; 'organization_id'?: string | null; /** * RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. */ 'recovery_addresses'?: Array; /** * Region is the Ory Network region this identity will be created in. Optional; defaults to the project home region if omitted. Only effective on the Ory Network. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'region'?: CreateIdentityBodyRegionEnum; /** * SchemaID is the ID of the JSON Schema to be used for validating the identity\'s traits. */ 'schema_id': string; /** * State is the identity\'s state. active StateActive inactive StateInactive */ 'state'?: CreateIdentityBodyStateEnum; /** * Traits represent an identity\'s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. */ 'traits': object; /** * VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. */ 'verifiable_addresses'?: Array; } export declare const CreateIdentityBodyRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateIdentityBodyRegionEnum = typeof CreateIdentityBodyRegionEnum[keyof typeof CreateIdentityBodyRegionEnum]; export declare const CreateIdentityBodyStateEnum: { readonly Active: "active"; readonly Inactive: "inactive"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateIdentityBodyStateEnum = typeof CreateIdentityBodyStateEnum[keyof typeof CreateIdentityBodyStateEnum]; export interface CreateInviteResponse { /** * A list of all invites for this resource */ 'all_invites': Array; 'created_invite': MemberInvite; } /** * Create JSON Web Key Set Request Body */ export interface CreateJsonWebKeySet { /** * JSON Web Key Algorithm The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. */ 'alg': string; /** * JSON Web Key ID The Key ID of the key to be created. */ 'kid': string; /** * JSON Web Key Use The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Valid values are \"enc\" and \"sig\". */ 'use': string; } export interface CreateOnboardingLinkResponse { /** * The onboarding to redirect the user to for organization setup. */ 'onboarding_portal_token': string; } export interface CreateOrganizationOnboardingPortalLinkBody { /** * AppleMapper specifies the JSONNet code snippet which uses Apple\'s profile information to hydrate the identity\'s data. */ 'apple_mapper_url'?: string; /** * Auth0Mapper specifies the JSONNet code snippet which uses Auth0\'s profile information to hydrate the identity\'s data. */ 'auth0_mapper_url'?: string; 'custom_hostname_id'?: string | null; /** * Feature flag to enable SCIM configuration */ 'enable_scim': boolean; /** * Feature flag to enable SSO configuration */ 'enable_sso': boolean; 'expires_at'?: string; /** * FacebookMapper specifies the JSONNet code snippet which uses Facebook\'s profile information to hydrate the identity\'s data. */ 'facebook_mapper_url'?: string; /** * GenericOIDCMapper specifies the JSONNet code snippet which uses the OIDC Provider\'s profile information to hydrate the identity\'s data. */ 'generic_oidc_mapper_url'?: string; /** * GithubMapper specifies the JSONNet code snippet which uses GitHub\'s profile information to hydrate the identity\'s data. */ 'github_mapper_url'?: string; /** * GitLabMapper specifies the JSONNet code snippet which uses GitLab\'s profile information to hydrate the identity\'s data. */ 'gitlab_mapper_url'?: string; /** * GoogleMapper specifies the JSONNet code snippet which uses Google\'s profile information to hydrate the identity\'s data. */ 'google_mapper_url'?: string; /** * MicrosoftMapper specifies the JSONNet code snippet which uses Microsoft\'s profile information to hydrate the identity\'s data. */ 'microsoft_mapper_url'?: string; /** * NetIDMapper specifies the JSONNet code snippet which uses NetID\'s profile information to hydrate the identity\'s data. */ 'netid_mapper_url'?: string; /** * Proxy ACS URL if overriding with a customer-controlled URL */ 'proxy_acs_url'?: string; /** * Proxy OIDC Redirect URL if overriding with a customer-controlled URL */ 'proxy_oidc_redirect_url'?: string; /** * SAML Audience Override if overriding with a customer-controlled one */ 'proxy_saml_audience_override'?: string; /** * Proxy SCIM Server URL if overriding with a customer-controlled URL */ 'proxy_scim_server_url'?: string; /** * SAMLMapper specifies the JSONNet code snippet which uses the SAML Provider\'s profile information to hydrate the identity\'s data. */ 'saml_mapper_url'?: string; /** * SCIMMapper specifies the JSONNet code snippet which uses the SCIM Provider\'s profile information to hydrate the identity\'s data. */ 'scim_mapper_url'?: string; } export interface CreateProjectApiKeyBody { 'expires_at'?: string; /** * The Token Name A descriptive name for the token. */ 'name': string; } /** * Create Project Request Body */ export interface CreateProjectBody { /** * The environment of the project. prod Production stage Staging dev Development */ 'environment': CreateProjectBodyEnvironmentEnum; /** * Home Region The home region of the project. This is the region where the project will be created. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'home_region'?: CreateProjectBodyHomeRegionEnum; /** * The name of the project to be created */ 'name': string; /** * The workspace to create the project in. */ 'workspace_id'?: string; } export declare const CreateProjectBodyEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectBodyEnvironmentEnum = typeof CreateProjectBodyEnvironmentEnum[keyof typeof CreateProjectBodyEnvironmentEnum]; export declare const CreateProjectBodyHomeRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectBodyHomeRegionEnum = typeof CreateProjectBodyHomeRegionEnum[keyof typeof CreateProjectBodyHomeRegionEnum]; /** * Create a Project Branding */ export interface CreateProjectBranding { 'favicon_type'?: string; 'favicon_url'?: string; 'logo_type'?: string; 'logo_url'?: string; 'name'?: string; 'theme'?: ProjectBrandingColors; } /** * Create Project MemberInvite Request Body */ export interface CreateProjectMemberInviteBody { /** * The email address to invite. */ 'invitee_email': string; /** * The role the invited member will hold. Defaults to developer if omitted. Only developer and viewer are valid; project ownership cannot be assigned via invite. developer ProjectMemberRoleDeveloper viewer ProjectMemberRoleViewer */ 'role'?: CreateProjectMemberInviteBodyRoleEnum; } export declare const CreateProjectMemberInviteBodyRoleEnum: { readonly Developer: "developer"; readonly Viewer: "viewer"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectMemberInviteBodyRoleEnum = typeof CreateProjectMemberInviteBodyRoleEnum[keyof typeof CreateProjectMemberInviteBodyRoleEnum]; /** * Create project (normalized) request payload */ export interface CreateProjectNormalizedPayload { /** * Holds the URL to the account experience\'s Contact page. This governs the \"contact_url\" setting. */ 'account_experience_contact_url'?: string; /** * The Account Experience\'s Custom Translations Contains all Custom Translations for this project. */ 'account_experience_custom_translations'?: Array; /** * Holds the default locale for the account experience. This governs the \"default_locale\" setting. */ 'account_experience_default_locale'?: string; /** * The Account Experience\'s Enabled Locales This governs the locales that are available in the account experience. This governs the \"enabled_locales\" setting. */ 'account_experience_enabled_locales'?: Array; /** * Holds the URL to the account experience\'s dark theme favicon (currently unused). This governs the \"favicon_dark\" setting. */ 'account_experience_favicon_dark'?: string; /** * Holds the URL to the account experience\'s favicon. This governs the \"favicon_light\" setting. */ 'account_experience_favicon_light'?: string; /** * Whether to hide the Ory branding badge on the account experience. This governs the \"hide_ory_branding\" setting. */ 'account_experience_hide_ory_branding'?: boolean; /** * Whether to hide the registration link on the account experience login card. This governs the \"hide_registration_link\" setting. */ 'account_experience_hide_registration_link'?: boolean; /** * Holds the URL to the account experience\'s language behavior. Can be one of: `respect_accept_language`: Respect the `Accept-Language` header. `force_default`: Force the default language. This governs the \"locale_behavior\" setting. */ 'account_experience_locale_behavior'?: string; /** * Holds the URL to the account experience\'s dark theme logo (currently unused). This governs the \"logo_dark\" setting. */ 'account_experience_logo_dark'?: string; /** * Holds the URL to the account experience\'s logo. This governs the \"logo_light\" setting. */ 'account_experience_logo_light'?: string; /** * Holds the URL to the account experience\'s Privacy Policy page. This governs the \"privacy_policy_url\" setting. */ 'account_experience_privacy_policy_url'?: string; /** * Holds the URL to the account experience\'s Terms of Service page. This governs the \"terms_of_service_url\" setting. */ 'account_experience_terms_of_service_url'?: string; /** * Holds the URL to the account experience\'s dark theme variables. This governs the \"theme_variables_dark\" setting. */ 'account_experience_theme_variables_dark'?: string; /** * Holds the URL to the account experience\'s light theme variables. This governs the \"theme_variables_light\" setting. */ 'account_experience_theme_variables_light'?: string; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; /** * Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. This governs the \"disable_welcome_screen\" setting. */ 'disable_account_experience_welcome_screen'?: boolean; /** * Whether the new account experience is enabled and reachable. This governs the \"enable_ax_v2\" setting. */ 'enable_ax_v2'?: boolean; /** * prod Production stage Staging dev Development */ 'environment': CreateProjectNormalizedPayloadEnvironmentEnum; /** * eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'home_region'?: CreateProjectNormalizedPayloadHomeRegionEnum; /** * A list of custom claims which are allowed to be added top level to the Access Token. They cannot override reserved claims. This governs the \"oauth2.allowed_top_level_claims\" setting. */ 'hydra_oauth2_allowed_top_level_claims'?: Array; /** * Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. */ 'hydra_oauth2_client_credentials_default_grant_allowed_scope'?: boolean; /** * Configures how often a non-interactive device should poll the OAuth 2.0 Device Authorization Grant token endpoint. Purely informational — the value is reported to the device in the \"interval\" response field of the device authorization response. Hydra defaults to 5s when this is left empty. This is an Enterprise feature. This governs the \"oauth2.device_authorization.token_polling_interval\" setting. */ 'hydra_oauth2_device_authorization_token_polling_interval'?: string; /** * Picks a preset for the OAuth 2.0 Device Authorization Grant user_code length and character set. \"high\" produces the longest codes (most resistant to brute force); \"low\" the shortest (easiest for the end user to read and enter). Leave empty to keep Hydra\'s default preset. This is an Enterprise feature. This governs the \"oauth2.device_authorization.user_code.entropy_preset\" setting. */ 'hydra_oauth2_device_authorization_user_code_entropy_preset'?: CreateProjectNormalizedPayloadHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum; /** * Set to true if you want to omit the `nbf` (not valid before) claim in the access token. This governs the \"oauth2.exclude_not_before_claim\" setting. */ 'hydra_oauth2_exclude_not_before_claim'?: boolean; /** * Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. */ 'hydra_oauth2_grant_jwt_iat_optional'?: boolean; /** * Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. */ 'hydra_oauth2_grant_jwt_jti_optional'?: boolean; /** * Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. */ 'hydra_oauth2_grant_jwt_max_ttl'?: string; /** * Configures whether the audience (`aud`) claim from the assertion JSON Web Token (JWT) in the JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) is omitted from the resulting access token. When set to `true` (the default for new projects), the audience values from the inbound assertion JWT are not granted in the access token. Set to `false` to copy the assertion audience into the access token (the legacy behavior). This governs the \"oauth2.grant.jwt.omit_assertion_audience\" setting. */ 'hydra_oauth2_grant_jwt_omit_assertion_audience'?: boolean; /** * Configures the OAuth2 Grant Refresh Token Rotation Grace Period If set to `null` or `\"0s\"`, the graceful refresh token rotation is disabled. This governs the \"oauth2.grant.refresh_token.rotation_grace_period\" setting. */ 'hydra_oauth2_grant_refresh_token_rotation_grace_period'?: string; /** * Configures the OAuth2 Grant Refresh Token Rotation Grace Reuse Count. The maximum number of times a refresh token can be reused within the grace period. If set to `null` or `0`, the limit is disabled. This governs the \"oauth2.grant.refresh_token.rotation_grace_reuse_count\" setting. */ 'hydra_oauth2_grant_refresh_token_rotation_grace_reuse_count'?: number; /** * Set to false if you don\'t want to mirror custom claims under \'ext\'. This governs the \"oauth2.mirror_top_level_claims\" setting. */ 'hydra_oauth2_mirror_top_level_claims'?: boolean; /** * Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. */ 'hydra_oauth2_pkce_enforced'?: boolean; /** * Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. */ 'hydra_oauth2_pkce_enforced_for_public_clients'?: boolean; /** * Set to true to keep custom claims that are not promoted to the top level in the \'ext\' claim. Only applies when mirror_top_level_claims is false. This governs the \"oauth2.preserve_ext_claims\" setting. */ 'hydra_oauth2_preserve_ext_claims'?: boolean; /** * Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. */ 'hydra_oauth2_refresh_token_hook'?: string; /** * Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. This governs the \"oauth2.token_hook.url\" setting. */ 'hydra_oauth2_token_hook'?: string; /** * Sets a per-project Access Token, Refresh Token, and Authorization Code prefix. The literal \"%s\" is replaced at issuance time with the token kind: \"at\" (access token), \"rt\" (refresh token), or \"ac\" (authorization code). For example, \"acme_%s_\" yields \"acme_at_…\", \"acme_rt_…\", and \"acme_ac_…\". Must be a fmt.Sprintf template with exactly one \"%s\" substitution. The rendered prefix may contain only ASCII letters, digits, and underscores — no other \"%\" directives (\"%d\", \"%%\", positional or width-flagged verbs), no hyphens, dots, slashes, whitespace, quotes, or non-ASCII characters. Leave empty to keep the default \"ory_%s_\" prefix. This is an Enterprise feature. This governs the \"oauth2.token_prefix\" setting. */ 'hydra_oauth2_token_prefix'?: string; /** * The OpenID Connect Dynamic Client Registration specification has no concept of whitelisting OAuth 2.0 Scope. If you want to expose Dynamic Client Registration, you should set the default scope enabled for newly registered clients. Keep in mind that users can overwrite this default by setting the \"scope\" key in the registration payload, effectively disabling the concept of whitelisted scopes. This governs the \"oidc.dynamic_client_registration.default_scope\" setting. */ 'hydra_oidc_dynamic_client_registration_default_scope'?: Array; /** * Configures OpenID Connect Dynamic Client Registration. This governs the \"oidc.dynamic_client_registration.enabled\" setting. */ 'hydra_oidc_dynamic_client_registration_enabled'?: boolean; /** * Configures OpenID Connect Discovery and overwrites the pairwise algorithm This governs the \"oidc.subject_identifiers.pairwise_salt\" setting. */ 'hydra_oidc_subject_identifiers_pairwise_salt'?: string; /** * Configures OpenID Connect Discovery and overwrites the list of Subject Identifier Algorithms to enable. This governs the \"oidc.subject_identifiers.supported_types\" setting. */ 'hydra_oidc_subject_identifiers_supported_types'?: Array; /** * Configures the Ory Hydra Cookie Secret This governs the \"secrets.cookie\" setting. */ 'hydra_secrets_cookie'?: Array; /** * Configures the Ory Hydra Pagination Secret This governs the \"secrets.pagination\" setting. */ 'hydra_secrets_pagination'?: Array; /** * Configures the Ory Hydra System Secret This governs the \"secrets.system\" setting. */ 'hydra_secrets_system'?: Array; /** * Configures the Ory Hydra Cookie Same Site Legacy Workaround This governs the \"serve.cookies.same_site_legacy_workaround\" setting. */ 'hydra_serve_cookies_same_site_legacy_workaround'?: boolean; /** * Configures the Ory Hydra Cookie Same Site Mode This governs the \"serve.cookies.same_site_mode\" setting. */ 'hydra_serve_cookies_same_site_mode'?: string; /** * Defines access token type This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt */ 'hydra_strategies_access_token'?: CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum; /** * Define the claim to use as the scope in the access token. This governs the \"strategies.jwt.scope_claim\" setting. list: The scope claim is an array of strings named `scope`: `{ \"scope\": [\"read\", \"write\"] }` string: The scope claim is a space delimited list of strings named `scp`: `{ \"scp\": \"read write\" }` both: The scope claim is both a space delimited list and an array of strings named `scope` and `scp`: `{ \"scope\": [\"read\", \"write\"], \"scp\": \"read write\" }` list OAuth2JWTScopeClaimList string OAuth2JWTScopeClaimString both OAuth2JWTScopeClaimBoth */ 'hydra_strategies_jwt_scope_claim'?: CreateProjectNormalizedPayloadHydraStrategiesJwtScopeClaimEnum; /** * Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes This governs the \"strategies.scope\" setting. exact Oauth2ScopeStrategyExact wildcard Oauth2ScopeStrategyWildcard */ 'hydra_strategies_scope'?: CreateProjectNormalizedPayloadHydraStrategiesScopeEnum; /** * This governs the \"ttl.access_token\" setting. */ 'hydra_ttl_access_token'?: string; /** * Configures how long refresh tokens are valid. Set to -1 for refresh tokens to never expire. This is not recommended! This governs the \"ttl.auth_code\" setting. */ 'hydra_ttl_auth_code'?: string; /** * Configures how long the device_code and user_code in the OAuth 2.0 Device Authorization Grant remain valid. Larger values mean more database storage; shorter values mean users have less time to complete the second-device verification. Hydra defaults to 10m when this is left empty. This is an Enterprise feature. This governs the \"ttl.device_user_code\" setting. */ 'hydra_ttl_device_user_code'?: string; /** * This governs the \"ttl.id_token\" setting. */ 'hydra_ttl_id_token'?: string; /** * Configures how long a user login and consent flow may take. This governs the \"ttl.login_consent_request\" setting. */ 'hydra_ttl_login_consent_request'?: string; /** * Configures how long refresh tokens are valid. Set to -1 for refresh tokens to never expire. This is not recommended! This governs the \"ttl.refresh_token\" setting. */ 'hydra_ttl_refresh_token'?: string; /** * Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.consent\" setting. */ 'hydra_urls_consent'?: string; /** * Sets the URL the user is redirected to after successfully completing the OAuth 2.0 Device Authorization Grant user verification step. Defaults to the Ory Account Experience fallback page if left empty. This is an Enterprise feature. This governs the \"urls.device.success\" setting. */ 'hydra_urls_device_success'?: string; /** * Sets the URL of the user verification page for the OAuth 2.0 Device Authorization Grant (RFC 8628). End users are redirected to this URL to enter the user_code shown on their device. Defaults to the Ory Account Experience fallback page if left empty. This is an Enterprise feature. This governs the \"urls.device.verification\" setting. */ 'hydra_urls_device_verification'?: string; /** * Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.error\" setting. */ 'hydra_urls_error'?: string; /** * Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.login\" setting. */ 'hydra_urls_login'?: string; /** * Sets the logout endpoint. Defaults to the Ory Account Experience if left empty. This governs the \"urls.logout\" setting. */ 'hydra_urls_logout'?: string; /** * When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. This governs the \"urls.post_logout_redirect\" setting. */ 'hydra_urls_post_logout_redirect'?: string; /** * Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.registration\" setting. */ 'hydra_urls_registration'?: string; /** * This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. This governs the \"urls.self.issuer\" setting. */ 'hydra_urls_self_issuer'?: string; /** * A list of JSON Web Keys that should be exposed at that endpoint. This is usually the public key for verifying OpenID Connect ID Tokens. However, you might want to add additional keys here as well. This governs the \"webfinger.jwks.broadcast_keys\" setting. */ 'hydra_webfinger_jwks_broadcast_keys'?: Array; /** * Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. This governs the \"webfinger.oidc_discovery.auth_url\" setting. */ 'hydra_webfinger_oidc_discovery_auth_url'?: string; /** * Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. This governs the \"webfinger.oidc_discovery.client_registration_url\" setting. */ 'hydra_webfinger_oidc_discovery_client_registration_url'?: string; /** * Override the OAuth 2.0 Device Authorization Endpoint URL that is advertised in the OpenID Connect discovery document (/.well-known/openid-configuration). Defaults to the project\'s public base URL + /oauth2/device/auth. This is an Enterprise feature. This governs the \"webfinger.oidc_discovery.device_authorization_url\" setting. */ 'hydra_webfinger_oidc_discovery_device_authorization_url'?: string; /** * Configures OpenID Connect Discovery and overwrites the JWKS URL. This governs the \"webfinger.oidc_discovery.jwks_url\" setting. */ 'hydra_webfinger_oidc_discovery_jwks_url'?: string; /** * Configures OpenID Connect Discovery and overwrites a list of supported claims to be broadcasted. Claim \"sub\" is always included. This governs the \"webfinger.oidc_discovery.supported_claims\" setting. */ 'hydra_webfinger_oidc_discovery_supported_claims'?: Array; /** * Configures OpenID Connect Discovery and overwrites the scope OAuth 2.0 Clients may request. Scope `offline`, `offline_access`, and `openid` are always included. This governs the \"webfinger.oidc_discovery.supported_scope\" setting. */ 'hydra_webfinger_oidc_discovery_supported_scope'?: Array; /** * Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. This governs the \"webfinger.oidc_discovery.token_url\" setting. */ 'hydra_webfinger_oidc_discovery_token_url'?: string; /** * Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra\'s userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. This governs the \"webfinger.oidc_discovery.userinfo_url\" setting. */ 'hydra_webfinger_oidc_discovery_userinfo_url'?: string; /** * The revision ID. */ 'id'?: string; /** * The Revisions\' Keto Namespace Configuration The string is a URL pointing to an OPL file with the configuration. This governs the \"namespaces.location\" setting. */ 'keto_namespace_configuration'?: string; 'keto_namespaces'?: Array; /** * Configures Keto\'s pagination secrets. This governs the \"secrets.pagination\" setting. */ 'keto_secrets_pagination'?: Array; /** * Configures the Ory Kratos Cookie SameSite Attribute This governs the \"cookies.same_site\" setting. */ 'kratos_cookies_same_site'?: string; 'kratos_courier_channels'?: Array; /** * The delivery strategy to use when sending emails This governs the \"courier.delivery_strategy\" setting. `smtp`: Use SMTP server `http`: Use the built in HTTP client to send the email to some remote service */ 'kratos_courier_delivery_strategy'?: string; /** * The location of the API key to use in the HTTP email sending service\'s authentication `header`: Send the key value pair as a header `cookie`: Send the key value pair as a cookie This governs the \"courier.http.request_config.auth.config.in\" setting. */ 'kratos_courier_http_request_config_auth_api_key_in'?: string; /** * The name of the API key to use in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.name\" setting. */ 'kratos_courier_http_request_config_auth_api_key_name'?: string; /** * The value of the API key to use in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.value\" setting. */ 'kratos_courier_http_request_config_auth_api_key_value'?: string; /** * The password to use for basic auth in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.password\" setting. */ 'kratos_courier_http_request_config_auth_basic_auth_password'?: string; /** * The user to use for basic auth in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.user\" setting. */ 'kratos_courier_http_request_config_auth_basic_auth_user'?: string; /** * The authentication type to use while contacting the remote HTTP email sending service This governs the \"courier.http.request_config.auth.type\" setting. `basic_auth`: Use Basic Authentication `api_key`: Use API Key Authentication in a header or cookie */ 'kratos_courier_http_request_config_auth_type'?: string; /** * The Jsonnet template to generate the body to send to the remote HTTP email sending service Should be valid Jsonnet and base64 encoded This governs the \"courier.http.request_config.body\" setting. */ 'kratos_courier_http_request_config_body'?: string; /** * Any additional headers to send to the remote HTTP email sending service This governs the \"courier.http.request_config.headers\" setting. */ 'kratos_courier_http_request_config_headers'?: object; /** * The http METHOD to use when calling the remote HTTP email sending service This governs the \"courier.http.request_config.method\" setting. */ 'kratos_courier_http_request_config_method'?: string; /** * The URL of the remote HTTP email sending service This governs the \"courier.http.request_config.url\" setting. */ 'kratos_courier_http_request_config_url'?: string; /** * Configures the Ory Kratos SMTP Connection URI This governs the \"courier.smtp.connection_uri\" setting. */ 'kratos_courier_smtp_connection_uri'?: string; /** * Configures the Ory Kratos SMTP From Address This governs the \"courier.smtp.from_address\" setting. */ 'kratos_courier_smtp_from_address'?: string; /** * Configures the Ory Kratos SMTP From Name This governs the \"courier.smtp.from_name\" setting. */ 'kratos_courier_smtp_from_name'?: string; /** * Configures the Ory Kratos SMTP Connection Headers This governs the \"courier.smtp.headers\" setting. */ 'kratos_courier_smtp_headers'?: object; /** * Configures the local_name to use in SMTP connections This governs the \"courier.smtp.local_name\" setting. */ 'kratos_courier_smtp_local_name'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.templates.login_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_login_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.templates.login_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_login_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.templates.login_code.valid.email.subject\" setting. */ 'kratos_courier_templates_login_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.templates.login_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_login_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.templates.recovery_code.invalid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.templates.recovery_code.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.templates.recovery_code.invalid.email.subject\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template This governs the \"courier.templates.recovery_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template This governs the \"courier.templates.recovery_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Subject Template This governs the \"courier.templates.recovery_code.valid.email.subject\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Body HTML Template This governs the \"courier.templates.recovery.invalid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template This governs the \"courier.templates.recovery.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Subject Template This governs the \"courier.templates.recovery.invalid.email.subject\" setting. */ 'kratos_courier_templates_recovery_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Recovery Email Body HTML Template This governs the \"courier.templates.recovery.valid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Recovery Email Body Plaintext Template This governs the \"courier.templates.recovery.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Recovery Email Subject Template This governs the \"courier.templates.recovery.valid.email.subject\" setting. */ 'kratos_courier_templates_recovery_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Body HTML Template This governs the \"courier.templates.registration_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_registration_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template This governs the \"courier.templates.registration_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_registration_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Subject Template This governs the \"courier.templates.registration_code.valid.email.subject\" setting. */ 'kratos_courier_templates_registration_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Registration via Code SMS Body Plaintext Template This governs the \"courier.templates.registration_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_registration_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Body HTML Template This governs the \"courier.templates.verifiable_address_changed.email.body.html\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_body_html'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Body Plaintext Template This governs the \"courier.templates.verifiable_address_changed.email.body.plaintext\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_body_plaintext'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Subject Template This governs the \"courier.templates.verifiable_address_changed.email.subject\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_subject'?: string; /** * Configures the Ory Kratos Verifiable Address Changed SMS Body Plaintext Template This governs the \"courier.templates.verifiable_address_changed.sms.body.plaintext\" setting. */ 'kratos_courier_templates_verifiable_address_changed_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template This governs the \"courier.templates.verification_code.invalid.email.body.html\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template This governs the \"courier.templates.verification_code.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Subject Template This governs the \"courier.templates.verification_code.invalid.email.subject\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Body HTML Template This governs the \"courier.templates.verification_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_verification_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template This governs the \"courier.templates.verification_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Subject Template This governs the \"courier.templates.verification_code.valid.email.subject\" setting. */ 'kratos_courier_templates_verification_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext This governs the \"courier.templates.verification_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification Email Body HTML Template This governs the \"courier.templates.verification.invalid.email.body.html\" setting. */ 'kratos_courier_templates_verification_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Verification Email Body Plaintext Template This governs the \"courier.templates.verification.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification Email Subject Template This governs the \"courier.templates.verification.invalid.email.subject\" setting. */ 'kratos_courier_templates_verification_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification Email Body HTML Template This governs the \"courier.templates.verification.valid.email.body.html\" setting. */ 'kratos_courier_templates_verification_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Verification Email Body Plaintext Template This governs the \"courier.templates.verification.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Verification Email Subject Template This governs the \"courier.templates.verification.valid.email.subject\" setting. */ 'kratos_courier_templates_verification_valid_email_subject'?: string; /** * Configures the Ory Kratos Session caching feature flag This governs the \"feature_flags.cacheable_sessions\" setting. */ 'kratos_feature_flags_cacheable_sessions'?: boolean; /** * Configures the Ory Kratos Session caching max-age feature flag This governs the \"feature_flags.cacheable_sessions_max_age\" setting. */ 'kratos_feature_flags_cacheable_sessions_max_age'?: string; /** * This governs the \"feature_flags.choose_recovery_address\" setting. */ 'kratos_feature_flags_choose_recovery_address'?: boolean; /** * Configures the Ory Kratos Faster Session Extend setting If enabled allows faster session extension by skipping the session lookup and returning 201 instead of 200. Disabling this feature will be deprecated in the future. This governs the \"feature_flags.faster_session_extend\" setting. */ 'kratos_feature_flags_faster_session_extend'?: boolean; /** * Always include show_verification_ui in continue_with If true, restores the legacy behavior of always including `show_verification_ui` in the registration flow\'s `continue_with` when verification is enabled. If set to false, `show_verification_ui` is only set in `continue_with` if the `show_verification_ui` hook is used. This flag will be removed in the future. This governs the \"feature_flags.legacy_continue_with_verification_ui\" setting. */ 'kratos_feature_flags_legacy_continue_with_verification_ui'?: boolean; /** * Controls whether the UI nodes in an OIDC registration flow have group \"oidc\" in case required fields are not returned by the OIDC provider. If set to true, the UI nodes will have group \"oidc\" and the flow will be considered successful if the user completes the flow. This is the legacy behavior. This governs the \"feature_flags.legacy_oidc_registration_node_group\" setting. */ 'kratos_feature_flags_legacy_oidc_registration_node_group'?: boolean; /** * Return a form error if the login identifier is not verified If true, the login flow will return a form error if the login identifier is not verified, which restores legacy behavior. If this value is false, the `continue_with` array will contain a `show_verification_ui` hook instead. This flag is deprecated and will be removed in the future. This governs the \"feature_flags.legacy_require_verified_login_error\" setting. */ 'kratos_feature_flags_legacy_require_verified_login_error'?: boolean; /** * Configures the group for the password method in the registration flow. If true, it sets the password method group value to \"password\" if it is the only method available. This is the legacy behavior. If false is, it sets the password method group value to \"default\". This governs the \"feature_flags.password_profile_registration_node_group\" setting. */ 'kratos_feature_flags_password_profile_registration_node_group'?: boolean; /** * Render an address picker on the code refresh login screen If true, a code-strategy refresh (privileged re-authentication) login renders a \"Send code to
\" button per available code address instead of re-asking for the identifier. The identity is already fixed by the active session, so re-entering the identifier is unnecessary. It is safe to toggle this back and forth. This governs the \"feature_flags.refresh_login_choose_address\" setting. */ 'kratos_feature_flags_refresh_login_choose_address'?: boolean; /** * Configures the Ory Kratos Session use_continue_with_transitions flag This governs the \"feature_flags.use_continue_with_transitions\" setting. */ 'kratos_feature_flags_use_continue_with_transitions'?: boolean; 'kratos_identity_schemas'?: Array; /** * Configures the OAuth2 Provider Integration HTTP Headers This governs the \"oauth2_provider.headers\" setting. */ 'kratos_oauth2_provider_headers'?: object; /** * Kratos OAuth2 Provider Override Return To Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. This governs the \"oauth2_provider.override_return_to\" setting. */ 'kratos_oauth2_provider_override_return_to'?: boolean; /** * The Revisions\' OAuth2 Provider Integration URL This governs the \"oauth2_provider.url\" setting. */ 'kratos_oauth2_provider_url'?: string; /** * Configures the default read consistency level for identity APIs The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` Defaults to \"strong\" for new and existing projects. This feature is in preview. Use with caution. This governs the \"preview.default_read_consistency_level\" setting. */ 'kratos_preview_default_read_consistency_level'?: string; /** * Configures the Ory Kratos Cipher Secret This governs the \"secrets.cipher\" setting. */ 'kratos_secrets_cipher'?: Array; /** * Configures the Ory Kratos Cookie Secret This governs the \"secrets.cookie\" setting. */ 'kratos_secrets_cookie'?: Array; /** * Configures the Ory Kratos Default Secret This governs the \"secrets.default\" setting. */ 'kratos_secrets_default'?: Array; /** * Configures the Ory Kratos Pagination Secret This governs the \"secrets.pagination\" setting. */ 'kratos_secrets_pagination'?: Array; /** * Configures if account enumeration should be mitigated when using identifier first login. This governs the \"security.account_enumeration.mitigate\" setting. */ 'kratos_security_account_enumeration_mitigate'?: boolean; /** * Configures the Ory Kratos Allowed Return URLs This governs the \"selfservice.allowed_return_urls\" setting. */ 'kratos_selfservice_allowed_return_urls'?: Array; /** * Configures the Ory Kratos Default Return URL This governs the \"selfservice.default_browser_return_url\" setting. */ 'kratos_selfservice_default_browser_return_url'?: string; /** * Configures the Ory Kratos Error UI URL This governs the \"selfservice.flows.error.ui_url\" setting. */ 'kratos_selfservice_flows_error_ui_url'?: string; /** * Configures the Ory Kratos Login After Code Default Return URL This governs the \"selfservice.flows.login.after.code.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_code_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login Default Return URL This governs the \"selfservice.flows.login.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Lookup Secret Default Return URL This governs the \"selfservice.flows.login.after.lookup_secret.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After OIDC Default Return URL This governs the \"selfservice.flows.login.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Passkey Default Return URL This governs the \"selfservice.flows.login.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Password Default Return URL This governs the \"selfservice.flows.login.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After TOTP Default Return URL This governs the \"selfservice.flows.login.after.totp.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_totp_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After WebAuthn Default Return URL This governs the \"selfservice.flows.login.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_webauthn_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login Lifespan This governs the \"selfservice.flows.login.lifespan\" setting. */ 'kratos_selfservice_flows_login_lifespan'?: string; /** * Configures the Ory Kratos Login Flow Style This governs the \"selfservice.flows.login.style\" setting. Possible values are \"unified\" and \"identifier_first\". */ 'kratos_selfservice_flows_login_style'?: string; /** * Configures the Ory Kratos Login UI URL This governs the \"selfservice.flows.login.ui_url\" setting. */ 'kratos_selfservice_flows_login_ui_url'?: string; /** * Configures the Ory Kratos Logout Default Return URL This governs the \"selfservice.flows.logout.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_logout_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Recovery Default Return URL This governs the \"selfservice.flows.recovery.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_recovery_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Recovery Enabled Setting This governs the \"selfservice.flows.recovery.enabled\" setting. */ 'kratos_selfservice_flows_recovery_enabled'?: boolean; /** * Configures the Ory Kratos Recovery Lifespan This governs the \"selfservice.flows.recovery.lifespan\" setting. */ 'kratos_selfservice_flows_recovery_lifespan'?: string; /** * Configures whether to notify unknown recipients of a Ory Kratos recovery flow This governs the \"selfservice.flows.recovery.notify_unknown_recipients\" setting. */ 'kratos_selfservice_flows_recovery_notify_unknown_recipients'?: boolean; /** * Configures the Ory Kratos Recovery UI URL This governs the \"selfservice.flows.recovery.ui_url\" setting. */ 'kratos_selfservice_flows_recovery_ui_url'?: string; /** * Configures the Ory Kratos Recovery strategy to use (\"link\" or \"code\") This governs the \"selfservice.flows.recovery.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode */ 'kratos_selfservice_flows_recovery_use'?: CreateProjectNormalizedPayloadKratosSelfserviceFlowsRecoveryUseEnum; /** * Configures the Ory Kratos Registration After Code Default Return URL This governs the \"selfservice.flows.registration.after.code.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_code_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration Default Return URL This governs the \"selfservice.flows.registration.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After OIDC Default Return URL This governs the \"selfservice.flows.registration.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Passkey Default Return URL This governs the \"selfservice.flows.registration.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Password Default Return URL This governs the \"selfservice.flows.registration.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Webauthn Default Return URL This governs the \"selfservice.flows.registration.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url'?: string; /** * Disable two-step registration Two-step registration is a significantly improved sign up flow and recommended when using more than one sign up methods. To revert to one-step registration, set this to `true`. This governs the \"selfservice.flows.registration.enable_legacy_one_step\" setting. */ 'kratos_selfservice_flows_registration_enable_legacy_one_step'?: boolean; /** * Configures the Whether Ory Kratos Registration is Enabled This governs the \"selfservice.flows.registration.enabled\" setting.0 */ 'kratos_selfservice_flows_registration_enabled'?: boolean; /** * Configures the Ory Kratos Registration Lifespan This governs the \"selfservice.flows.registration.lifespan\" setting. */ 'kratos_selfservice_flows_registration_lifespan'?: string; /** * Configures the Ory Kratos Registration Login Hints Shows helpful information when a user tries to sign up with a duplicate account. This governs the \"selfservice.flows.registration.login_hints\" setting. */ 'kratos_selfservice_flows_registration_login_hints'?: boolean; /** * Configures the Ory Kratos Registration UI URL This governs the \"selfservice.flows.registration.ui_url\" setting. */ 'kratos_selfservice_flows_registration_ui_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL This governs the \"selfservice.flows.settings.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets This governs the \"selfservice.flows.settings.after.lookup_secret.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In This governs the \"selfservice.flows.settings.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Passkey This governs the \"selfservice.flows.settings.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Passwords This governs the \"selfservice.flows.settings.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Profiles This governs the \"selfservice.flows.settings.after.profile.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_profile_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating TOTP This governs the \"selfservice.flows.settings.after.totp.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_totp_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn This governs the \"selfservice.flows.settings.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Lifespan This governs the \"selfservice.flows.settings.lifespan\" setting. */ 'kratos_selfservice_flows_settings_lifespan'?: string; /** * Configures the Ory Kratos Settings Privileged Session Max Age This governs the \"selfservice.flows.settings.privileged_session_max_age\" setting. */ 'kratos_selfservice_flows_settings_privileged_session_max_age'?: string; /** * Configures the Ory Kratos Settings Required AAL This governs the \"selfservice.flows.settings.required_aal\" setting. */ 'kratos_selfservice_flows_settings_required_aal'?: string; /** * Configures the Ory Kratos Settings UI URL This governs the \"selfservice.flows.settings.ui_url\" setting. */ 'kratos_selfservice_flows_settings_ui_url'?: string; /** * Configures the Ory Kratos Verification Default Return URL This governs the \"selfservice.flows.verification.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_verification_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Verification Enabled Setting This governs the \"selfservice.flows.verification.enabled\" setting. */ 'kratos_selfservice_flows_verification_enabled'?: boolean; /** * Configures the Ory Kratos Verification Lifespan This governs the \"selfservice.flows.verification.lifespan\" setting. */ 'kratos_selfservice_flows_verification_lifespan'?: string; /** * Configures whether to notify unknown recipients of a Ory Kratos verification flow This governs the \"selfservice.flows.verification.notify_unknown_recipients\" setting. */ 'kratos_selfservice_flows_verification_notify_unknown_recipients'?: boolean; /** * Configures the Ory Kratos Verification UI URL This governs the \"selfservice.flows.verification.ui_url\" setting. */ 'kratos_selfservice_flows_verification_ui_url'?: string; /** * Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode */ 'kratos_selfservice_flows_verification_use'?: CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum; /** * Configures the CAPTCHA allowed domains list This governs the \"selfservice.methods.captcha.config.allowed_domains\" setting. */ 'kratos_selfservice_methods_captcha_config_allowed_domains'?: Array; /** * Configures whether to use BYO or managed widget Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.byo\" setting. */ 'kratos_selfservice_methods_captcha_config_byo'?: boolean; /** * Configures the Cloudflare Turnstile site secret for Ory BYO CAPTCHA protection The site secret is private and will be never be shared with the client. This key is write only and the value will not be returned in response to a read request. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.secret\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_byo_secret'?: string; /** * Configures the Cloudflare Turnstile site key for Ory BYO CAPTCHA protection The site key is public and will be shared with the client. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.sitekey\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_byo_sitekey'?: string; /** * Configures the Cloudflare Turnstile site secret for managed CAPTCHA protection The site secret is private and will be never be shared with the client. This key is write only and the value will not be returned in response to a read request. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.secret\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_secret'?: string; /** * Configures the Cloudflare Turnstile site key for managed CAPTCHA protection The site key is public and will be shared with the client. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.sitekey\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_sitekey'?: string; /** * Configures legacy CAPTCHA node injection behavior Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.legacy_inject_node\" setting. */ 'kratos_selfservice_methods_captcha_config_legacy_inject_node'?: boolean; /** * Configures the Ory Kratos Self-Service Methods\' Captcha Enabled Setting Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.enabled\" setting. */ 'kratos_selfservice_methods_captcha_enabled'?: boolean; /** * Configures the Ory Kratos Code Method\'s lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. */ 'kratos_selfservice_methods_code_config_lifespan'?: string; /** * Configures the maximum number of attempts to submit a one-time code in kratos. This governs the \"selfservice.methods.code.max_submissions\" setting. */ 'kratos_selfservice_methods_code_config_max_submissions'?: number; /** * Enables a fallback method required in certain legacy use cases. This governs the \"selfservice.methods.code.config.missing_credential_fallback_enabled\" setting. */ 'kratos_selfservice_methods_code_config_missing_credential_fallback_enabled'?: boolean; /** * Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. */ 'kratos_selfservice_methods_code_enabled'?: boolean; /** * Configures whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. */ 'kratos_selfservice_methods_code_mfa_enabled'?: boolean; /** * Configures whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. */ 'kratos_selfservice_methods_code_passwordless_enabled'?: boolean; /** * This setting allows the code method to always login a user with code if they have registered with another authentication method such as password or social sign in. This governs the \"selfservice.methods.code.passwordless_login_fallback_enabled\" setting. */ 'kratos_selfservice_methods_code_passwordless_login_fallback_enabled'?: boolean; /** * Configures the allow-list of Android app signing-certificate digests that a device key may be bound to. This governs the \"selfservice.methods.deviceauthn.config.android_app_ids\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_android_app_ids'?: Array; /** * Configures whether device authentication may be used as the sole first factor. When enabled, a confirmed device key with PIN or platform user verification can complete an AAL2 login in a single submission, without a password or code. Defaults to false, which keeps device keys usable only as a second factor (step-up). This governs the \"selfservice.methods.deviceauthn.config.first_factor\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_first_factor'?: boolean; /** * Configures whether Ory Kratos Device authentication accepts relaxed attestations for testing Only allowed on development projects and forced off otherwise. Keys enrolled under relaxation are short-lived and refused once this is turned off. This governs the \"selfservice.methods.deviceauthn.config.insecure_allow_relaxed_attestation\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_insecure_allow_relaxed_attestation'?: boolean; /** * Configures the allow-list of Apple App IDs that a device key may be bound to. This governs the \"selfservice.methods.deviceauthn.config.ios_app_ids\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_ios_app_ids'?: Array; /** * Configures whether an iOS biometric device key may be used as the sole first factor. Apple App Attest cannot prove biometric gating, so iOS keys with \"platform\" user verification count as a first factor only with this explicit opt-in. Android keys are unaffected, as their user verification is attestation-verified. Defaults to false. This governs the \"selfservice.methods.deviceauthn.config.ios_biometric_first_factor\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_ios_biometric_first_factor'?: boolean; /** * Configures the number of consecutive wrong-PIN attempts before a device key is locked. Defaults to 5; must be between 1 and 10. Once locked, the key\'s pin_secret is invalidated and the key can no longer be used to log in until the user rotates its secret through the fallback login. This governs the \"selfservice.methods.deviceauthn.config.pin_max_attempts\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_pin_max_attempts'?: number; /** * Configures whether Ory Kratos Device authentication is enabled This governs the \"selfservice.methods.deviceauthn.enabled\" setting. */ 'kratos_selfservice_methods_deviceauthn_enabled'?: boolean; /** * Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. */ 'kratos_selfservice_methods_link_config_base_url'?: string; /** * Configures the Ory Kratos Link Method\'s lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. */ 'kratos_selfservice_methods_link_config_lifespan'?: string; /** * Configures whether Ory Kratos Link Method is enabled This governs the \"selfservice.methods.link.enabled\" setting. */ 'kratos_selfservice_methods_link_enabled'?: boolean; /** * Configures whether Ory Kratos TOTP Lookup Secret is enabled This governs the \"selfservice.methods.lookup_secret.enabled\" setting. */ 'kratos_selfservice_methods_lookup_secret_enabled'?: boolean; /** * Configures the Ory Kratos Third Party / OpenID Connect base redirect URI This governs the \"selfservice.methods.oidc.config.base_redirect_uri\" setting. */ 'kratos_selfservice_methods_oidc_config_base_redirect_uri'?: string; 'kratos_selfservice_methods_oidc_config_providers'?: Array; /** * Configures whether Ory Kratos allows auto-linking of OIDC credentials without a subject This governs the \"selfservice.methods.oidc.enable_auto_link_policy\" setting. */ 'kratos_selfservice_methods_oidc_enable_auto_link_policy'?: boolean; /** * Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled This governs the \"selfservice.methods.oidc.enabled\" setting. */ 'kratos_selfservice_methods_oidc_enabled'?: boolean; /** * Configures the Ory Kratos Passkey RP Display Name This governs the \"selfservice.methods.passkey.config.rp.display_name\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_display_name'?: string; /** * Configures the Ory Kratos Passkey RP ID This governs the \"selfservice.methods.passkey.config.rp.id\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_id'?: string; /** * Configures the Ory Kratos Passkey RP Origins This governs the \"selfservice.methods.passkey.config.rp.origins\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_origins'?: Array; /** * Configures whether Ory Kratos Passkey authentication is enabled This governs the \"selfservice.methods.passkey.enabled\" setting. */ 'kratos_selfservice_methods_passkey_enabled'?: boolean; /** * Configures whether Ory Kratos Password HIBP Checks is enabled This governs the \"selfservice.methods.password.config.haveibeenpwned_enabled\" setting. */ 'kratos_selfservice_methods_password_config_haveibeenpwned_enabled'?: boolean; /** * Configures whether Ory Kratos Password should disable the similarity policy. This governs the \"selfservice.methods.password.config.identifier_similarity_check_enabled\" setting. */ 'kratos_selfservice_methods_password_config_identifier_similarity_check_enabled'?: boolean; /** * Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors This governs the \"selfservice.methods.password.config.ignore_network_errors\" setting. */ 'kratos_selfservice_methods_password_config_ignore_network_errors'?: boolean; /** * Configures Ory Kratos Password Max Breaches Detection This governs the \"selfservice.methods.password.config.max_breaches\" setting. */ 'kratos_selfservice_methods_password_config_max_breaches'?: number; /** * Configures the minimum length of passwords. This governs the \"selfservice.methods.password.config.min_password_length\" setting. */ 'kratos_selfservice_methods_password_config_min_password_length'?: number; /** * Configures whether Ory Kratos Password Method is enabled This governs the \"selfservice.methods.password.enabled\" setting. */ 'kratos_selfservice_methods_password_enabled'?: boolean; /** * Configures whether Ory Kratos Profile Method is enabled This governs the \"selfservice.methods.profile.enabled\" setting. */ 'kratos_selfservice_methods_profile_enabled'?: boolean; 'kratos_selfservice_methods_saml_config_providers'?: Array; /** * Configures whether Ory Kratos SAML Login is enabled This governs the \"selfservice.methods.saml.enabled\" setting. */ 'kratos_selfservice_methods_saml_enabled'?: boolean; /** * Configures Ory Kratos TOTP Issuer This governs the \"selfservice.methods.totp.config.issuer\" setting. */ 'kratos_selfservice_methods_totp_config_issuer'?: string; /** * Configures whether Ory Kratos TOTP Method is enabled This governs the \"selfservice.methods.totp.enabled\" setting. */ 'kratos_selfservice_methods_totp_enabled'?: boolean; /** * Configures whether Ory Kratos Webauthn is used for passwordless flows This governs the \"selfservice.methods.webauthn.config.passwordless\" setting. */ 'kratos_selfservice_methods_webauthn_config_passwordless'?: boolean; /** * Configures the Ory Kratos Webauthn RP Display Name This governs the \"selfservice.methods.webauthn.config.rp.display_name\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_display_name'?: string; /** * Configures the Ory Kratos Webauthn RP Icon This governs the \"selfservice.methods.webauthn.config.rp.icon\" setting. Deprecated: This value will be ignored due to security considerations. */ 'kratos_selfservice_methods_webauthn_config_rp_icon'?: string; /** * Configures the Ory Kratos Webauthn RP ID This governs the \"selfservice.methods.webauthn.config.rp.id\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_id'?: string; /** * Configures the Ory Kratos Webauthn RP Origins This governs the \"selfservice.methods.webauthn.config.rp.origins\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_origins'?: Array; /** * Configures whether Ory Kratos Webauthn is enabled This governs the \"selfservice.methods.webauthn.enabled\" setting. */ 'kratos_selfservice_methods_webauthn_enabled'?: boolean; /** * Configures the Ory Kratos Session Cookie Persistent Attribute This governs the \"session.cookie.persistent\" setting. */ 'kratos_session_cookie_persistent'?: boolean; /** * Configures the Ory Kratos Session Cookie SameSite Attribute This governs the \"session.cookie.same_site\" setting. */ 'kratos_session_cookie_same_site'?: string; /** * Configures the Ory Kratos Session Lifespan This governs the \"session.lifespan\" setting. */ 'kratos_session_lifespan'?: string; /** * Configures the Ory Kratos Session Whoami AAL requirement This governs the \"session.whoami.required_aal\" setting. */ 'kratos_session_whoami_required_aal'?: string; 'kratos_session_whoami_tokenizer_templates'?: Array; /** * The project\'s name. */ 'name': string; 'organizations'?: Array; /** * The Revision\'s Project ID */ 'project_id'?: string; 'project_revision_hooks'?: Array; 'scim_clients'?: Array; /** * Configures the CORS Allowed Origins on admin APIs This governs the \"serve.admin.cors.allowed_origins\" setting. */ 'serve_admin_cors_allowed_origins'?: Array; /** * Enable CORS headers on all admin APIs This governs the \"serve.admin.cors.enabled\" setting. */ 'serve_admin_cors_enabled'?: boolean; /** * Configures the CORS Allowed Origins on public APIs This governs the \"serve.public.cors.allowed_origins\" setting. */ 'serve_public_cors_allowed_origins'?: Array; /** * Enable CORS headers on all public APIs This governs the \"serve.public.cors.enabled\" setting. */ 'serve_public_cors_enabled'?: boolean; /** * Whether the project should employ strict security measures. Setting this to true is recommended for going into production. */ 'strict_security'?: boolean; /** * Talos cache enabled. When true, API key verification results are cached. Revoked keys may be accepted until the cached entry expires. When false, every verification reads the database and revocations take effect immediately. */ 'talos_cache_enabled'?: boolean; /** * Talos cache TTL controls how long API key verification results are cached. */ 'talos_cache_ttl'?: string; /** * Talos API keys default TTL. */ 'talos_credentials_api_keys_default_ttl'?: string; /** * Talos API keys max TTL. */ 'talos_credentials_api_keys_max_ttl'?: string; /** * Talos API keys prefix (current). */ 'talos_credentials_api_keys_prefix_current'?: string; /** * Talos API keys public prefix (current). */ 'talos_credentials_api_keys_prefix_public_current'?: string; /** * Talos API keys public prefix (retired). Previously active public API key prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_api_keys_prefix_public_retired'?: Array; /** * Talos API keys prefix (retired). Previously active API key prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_api_keys_prefix_retired'?: Array; /** * Talos derived tokens default TTL (applies to both JWT and macaroon tokens). */ 'talos_credentials_derived_tokens_default_ttl'?: string; /** * Talos derived tokens JWT signing key ID (kid). */ 'talos_credentials_derived_tokens_jwt_signing_key_id'?: string; /** * Talos derived tokens JWT signing key URLs. */ 'talos_credentials_derived_tokens_jwt_signing_keys_urls'?: Array; /** * Talos derived tokens macaroon prefix (current). */ 'talos_credentials_derived_tokens_macaroon_prefix_current'?: string; /** * Talos derived tokens macaroon prefix (retired). Previously active macaroon prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_derived_tokens_macaroon_prefix_retired'?: Array; /** * Talos credentials issuer URL. */ 'talos_credentials_issuer'?: string; /** * Talos credentials retired issuer URLs (deprecated). Deprecated: values-only view of talos_credentials_issuer_retired_entries, kept so already-released SDKs that decode this field as an array of strings keep working. It is output only: reads are derived from the entries field and writes to it are ignored. Use talos_credentials_issuer_retired_entries instead. */ 'talos_credentials_issuer_retired'?: Array; /** * TalosRetiredValues is the list of retired values — retired HMAC secrets or retired issuer URLs — for a Talos project. A retired value stays valid for verification until its optional expiry passes, so operators can bound how long an old credential keeps working after a rotation instead of keeping it forever. Legacy bare-string entries are accepted on write and normalized to the object form. */ 'talos_credentials_issuer_retired_entries'?: Array; /** * Talos rate limit enabled. When true, server-side rate limiting is enforced for API key verifications. */ 'talos_rate_limit_enabled'?: boolean; /** * TalosSecretsHMACCurrent stores the current HMAC symmetric key as a plain secret string. */ 'talos_secrets_hmac_current'?: string; /** * TalosSecretsHMACRetired stores previously active HMAC symmetric keys as an array of strings (deprecated). Deprecated: values-only view of talos_secrets_hmac_retired_entries, kept so already-released SDKs that decode this field as an array of strings keep working. It is output only and writes to it are ignored. HMAC secrets are server-managed and redacted on output, so this field is always empty on the wire. Use talos_secrets_hmac_retired_entries instead. */ 'talos_secrets_hmac_retired'?: Array; /** * TalosRetiredValues is the list of retired values — retired HMAC secrets or retired issuer URLs — for a Talos project. A retired value stays valid for verification until its optional expiry passes, so operators can bound how long an old credential keeps working after a rotation instead of keeping it forever. Legacy bare-string entries are accepted on write and normalized to the object form. */ 'talos_secrets_hmac_retired_entries'?: Array; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; 'workspace_id'?: string; } export declare const CreateProjectNormalizedPayloadEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadEnvironmentEnum = typeof CreateProjectNormalizedPayloadEnvironmentEnum[keyof typeof CreateProjectNormalizedPayloadEnvironmentEnum]; export declare const CreateProjectNormalizedPayloadHomeRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadHomeRegionEnum = typeof CreateProjectNormalizedPayloadHomeRegionEnum[keyof typeof CreateProjectNormalizedPayloadHomeRegionEnum]; export declare const CreateProjectNormalizedPayloadHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum: { readonly High: "high"; readonly Medium: "medium"; readonly Low: "low"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum = typeof CreateProjectNormalizedPayloadHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum[keyof typeof CreateProjectNormalizedPayloadHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum]; export declare const CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum: { readonly Opaque: "opaque"; readonly Jwt: "jwt"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum = typeof CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum[keyof typeof CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum]; export declare const CreateProjectNormalizedPayloadHydraStrategiesJwtScopeClaimEnum: { readonly List: "list"; readonly String: "string"; readonly Both: "both"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadHydraStrategiesJwtScopeClaimEnum = typeof CreateProjectNormalizedPayloadHydraStrategiesJwtScopeClaimEnum[keyof typeof CreateProjectNormalizedPayloadHydraStrategiesJwtScopeClaimEnum]; export declare const CreateProjectNormalizedPayloadHydraStrategiesScopeEnum: { readonly Exact: "exact"; readonly Wildcard: "wildcard"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadHydraStrategiesScopeEnum = typeof CreateProjectNormalizedPayloadHydraStrategiesScopeEnum[keyof typeof CreateProjectNormalizedPayloadHydraStrategiesScopeEnum]; export declare const CreateProjectNormalizedPayloadKratosSelfserviceFlowsRecoveryUseEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadKratosSelfserviceFlowsRecoveryUseEnum = typeof CreateProjectNormalizedPayloadKratosSelfserviceFlowsRecoveryUseEnum[keyof typeof CreateProjectNormalizedPayloadKratosSelfserviceFlowsRecoveryUseEnum]; export declare const CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum = typeof CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum[keyof typeof CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum]; /** * Create Recovery Code for Identity Request Body */ export interface CreateRecoveryCodeForIdentityBody { /** * Code Expires In The recovery code will expire after that amount of time has passed. Defaults to the configuration value of `selfservice.methods.code.config.lifespan`. */ 'expires_in'?: string; /** * The flow type can either be `api` or `browser`. */ 'flow_type'?: string; /** * Identity to Recover The identity\'s ID you wish to recover. */ 'identity_id': string; } /** * Create Recovery Link for Identity Request Body */ export interface CreateRecoveryLinkForIdentityBody { /** * Link Expires In The recovery link will expire after that amount of time has passed. Defaults to the configuration value of `selfservice.methods.code.config.lifespan`. */ 'expires_in'?: string; /** * Identity to Recover The identity\'s ID you wish to recover. */ 'identity_id': string; } /** * Create Relationship Request Body */ export interface CreateRelationshipBody { /** * Namespace to query */ 'namespace'?: string; /** * Object to query */ 'object'?: string; /** * Relation to query */ 'relation'?: string; /** * SubjectID to query Either SubjectSet or SubjectID can be provided. */ 'subject_id'?: string; 'subject_set'?: SubjectSet; } export interface CreateSubscriptionBody { /** * usd USD eur Euro */ 'currency'?: CreateSubscriptionBodyCurrencyEnum; /** * monthly Monthly yearly Yearly */ 'interval': CreateSubscriptionBodyIntervalEnum; 'plan': string; 'provision_first_project': string; 'return_to'?: string; } export declare const CreateSubscriptionBodyCurrencyEnum: { readonly Usd: "usd"; readonly Eur: "eur"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateSubscriptionBodyCurrencyEnum = typeof CreateSubscriptionBodyCurrencyEnum[keyof typeof CreateSubscriptionBodyCurrencyEnum]; export declare const CreateSubscriptionBodyIntervalEnum: { readonly Monthly: "monthly"; readonly Yearly: "yearly"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateSubscriptionBodyIntervalEnum = typeof CreateSubscriptionBodyIntervalEnum[keyof typeof CreateSubscriptionBodyIntervalEnum]; export interface CreateSubscriptionCommon { /** * usd USD eur Euro */ 'currency'?: CreateSubscriptionCommonCurrencyEnum; /** * monthly Monthly yearly Yearly */ 'interval': CreateSubscriptionCommonIntervalEnum; 'plan': string; 'return_to'?: string; } export declare const CreateSubscriptionCommonCurrencyEnum: { readonly Usd: "usd"; readonly Eur: "eur"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateSubscriptionCommonCurrencyEnum = typeof CreateSubscriptionCommonCurrencyEnum[keyof typeof CreateSubscriptionCommonCurrencyEnum]; export declare const CreateSubscriptionCommonIntervalEnum: { readonly Monthly: "monthly"; readonly Yearly: "yearly"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateSubscriptionCommonIntervalEnum = typeof CreateSubscriptionCommonIntervalEnum[keyof typeof CreateSubscriptionCommonIntervalEnum]; export interface CreateTestLoginFlowBody { /** * ID of the OIDC provider to test. Must match a provider configured on the project that serves this request. */ 'provider_id': string; } /** * Request body for starting a dry-run OIDC test login flow from an onboarding portal link. */ export interface CreateTestLoginFlowFromOnboardingPortalLinkBody { /** * ID of the OIDC provider to test. Must match a provider configured on the link\'s organization. */ 'provider_id': string; } export interface CreateVerifiableCredentialRequestBody { 'format'?: string; 'proof'?: VerifiableCredentialProof; 'types'?: Array; } export interface CreateWorkspaceApiKeyBody { 'expires_at'?: string; /** * The API Key Name A descriptive name for the API key. */ 'name': string; } export interface CreateWorkspaceBody { /** * The name of the workspace */ 'name': string; } /** * Create Workspace Invite Request Body */ export interface CreateWorkspaceMemberInviteBody { /** * A email to invite */ 'invitee_email': string; /** * The role the user will have in the workspace owner WorkspaceMemberRoleOwner developer WorkspaceMemberRoleDeveloper viewer WorkspaceMemberRoleViewer */ 'role': CreateWorkspaceMemberInviteBodyRoleEnum; } export declare const CreateWorkspaceMemberInviteBodyRoleEnum: { readonly Owner: "owner"; readonly Developer: "developer"; readonly Viewer: "viewer"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateWorkspaceMemberInviteBodyRoleEnum = typeof CreateWorkspaceMemberInviteBodyRoleEnum[keyof typeof CreateWorkspaceMemberInviteBodyRoleEnum]; export interface CreateWorkspaceOrganizationBody { 'generic_oidc_provider'?: GenericOIDCProvider; } export interface CreateWorkspaceSubscriptionBody { /** * usd USD eur Euro */ 'currency'?: CreateWorkspaceSubscriptionBodyCurrencyEnum; /** * monthly Monthly yearly Yearly */ 'interval': CreateWorkspaceSubscriptionBodyIntervalEnum; 'plan': string; 'return_to'?: string; } export declare const CreateWorkspaceSubscriptionBodyCurrencyEnum: { readonly Usd: "usd"; readonly Eur: "eur"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateWorkspaceSubscriptionBodyCurrencyEnum = typeof CreateWorkspaceSubscriptionBodyCurrencyEnum[keyof typeof CreateWorkspaceSubscriptionBodyCurrencyEnum]; export declare const CreateWorkspaceSubscriptionBodyIntervalEnum: { readonly Monthly: "monthly"; readonly Yearly: "yearly"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CreateWorkspaceSubscriptionBodyIntervalEnum = typeof CreateWorkspaceSubscriptionBodyIntervalEnum[keyof typeof CreateWorkspaceSubscriptionBodyIntervalEnum]; /** * Includes information about the supported verifiable credentials. */ export interface CredentialSupportedDraft00 { /** * OpenID Connect Verifiable Credentials Cryptographic Binding Methods Supported Contains a list of cryptographic binding methods supported for signing the proof. */ 'cryptographic_binding_methods_supported'?: Array; /** * OpenID Connect Verifiable Credentials Cryptographic Suites Supported Contains a list of cryptographic suites methods supported for signing the proof. */ 'cryptographic_suites_supported'?: Array; /** * OpenID Connect Verifiable Credentials Format Contains the format that is supported by this authorization server. */ 'format'?: string; /** * OpenID Connect Verifiable Credentials Types Contains the types of verifiable credentials supported. */ 'types'?: Array; } /** * Custom Hostname */ export interface CustomDomain { 'cookie_domain'?: string; 'cors_allowed_origins'?: Array; 'cors_enabled'?: boolean; 'created_at'?: string; 'custom_ui_base_url'?: string; 'hostname'?: string; 'id'?: string; 'ssl_status'?: CustomDomainSslStatusEnum; 'updated_at'?: string; 'verification_errors'?: Array; 'verification_status'?: string; } export declare const CustomDomainSslStatusEnum: { readonly Initializing: "initializing"; readonly PendingValidation: "pending_validation"; readonly Deleted: "deleted"; readonly PendingIssuance: "pending_issuance"; readonly PendingDeployment: "pending_deployment"; readonly PendingDeletion: "pending_deletion"; readonly PendingExpiration: "pending_expiration"; readonly Expired: "expired"; readonly Active: "active"; readonly InitializingTimedOut: "initializing_timed_out"; readonly ValidationTimedOut: "validation_timed_out"; readonly IssuanceTimedOut: "issuance_timed_out"; readonly DeploymentTimedOut: "deployment_timed_out"; readonly DeletionTimedOut: "deletion_timed_out"; readonly PendingCleanup: "pending_cleanup"; readonly StagingDeployment: "staging_deployment"; readonly StagingActive: "staging_active"; readonly Deactivating: "deactivating"; readonly Inactive: "inactive"; readonly BackupIssued: "backup_issued"; readonly HoldingDeployment: "holding_deployment"; readonly Empty: ""; readonly UnknownDefaultOpenApi: "11184809"; }; export type CustomDomainSslStatusEnum = typeof CustomDomainSslStatusEnum[keyof typeof CustomDomainSslStatusEnum]; /** * CustomerPortalAvailability describes whether the Stripe customer portal is available for the logged-in user (or a workspace they access). */ export interface CustomerPortalAvailability { /** * Whether the customer portal is available. */ 'available': boolean; /** * Optional reason why the portal is unavailable. Populated only when `available` is false. For debugging and support purposes — frontend consumers should not parse or depend on specific values. no_stripe_customer CustomerPortalReasonNoStripeCustomer no_subscription CustomerPortalReasonNoSubscription */ 'reason'?: CustomerPortalAvailabilityReasonEnum; } export declare const CustomerPortalAvailabilityReasonEnum: { readonly NoStripeCustomer: "no_stripe_customer"; readonly NoSubscription: "no_subscription"; readonly UnknownDefaultOpenApi: "11184809"; }; export type CustomerPortalAvailabilityReasonEnum = typeof CustomerPortalAvailabilityReasonEnum[keyof typeof CustomerPortalAvailabilityReasonEnum]; /** * Deleted Session Count */ export interface DeleteMySessionsCount { /** * The number of sessions that were revoked. */ 'count'?: number; } export interface DeriveTokenRequest { 'algorithm'?: TokenAlgorithm; 'credential'?: string; /** * custom_claims is a JSON object whose entries are merged into the JWT payload (or macaroon caveats) at signing time. Reserved JWT claims (iss, sub, aud, exp, nbf, iat, jti) are rejected. Total serialized size is capped at 4KB. */ 'custom_claims'?: object; 'scopes'?: Array; /** * ttl sets the expiry as a duration from now. Encoded as a google.protobuf.Duration (string ending in \"s\", e.g. \"3600s\"). Accepted bounds: 1s to 315360000s (~10 years). If unset or zero, the project default TTL applies. For convenience, the server also accepts Go-style duration strings (\"24h\", \"30m\", \"1h30m\") and an extended unit set (\"1d\", \"1w\", \"1mo\", \"1y\"; approximations: 1mo = 30d, 1y = 365d). Clients should prefer the standard Duration encoding for portability. */ 'ttl'?: string; } export interface DeriveTokenResponse { 'token'?: Token; } /** * Schema: https://source.android.com/docs/security/features/keystore/attestation#schema */ export interface DeviceAuthnAndroidAuthorizationList { 'active_date_time'?: number; 'algorithm'?: number; 'application_id'?: Array; 'attestation_application_id'?: Array; 'attestation_id_brand'?: Array; 'attestation_id_device'?: Array; 'attestation_id_imei'?: Array; 'attestation_id_manufacturer'?: Array; 'attestation_id_meid'?: Array; 'attestation_id_model'?: Array; 'attestation_id_product'?: Array; 'attestation_id_serial'?: Array; 'auth_timeout'?: number; 'boot_patch_level'?: number; 'creation_date_time'?: number; 'digest'?: Array; 'ec_curve'?: number; 'key_size'?: number; 'origin'?: number; 'origination_expire_date_time'?: number; 'os_patch_level'?: number; 'os_version'?: number; 'purpose'?: Array; 'root_of_trust'?: DeviceAuthnAndroidRootOfTrust; 'usage_expire_date_time'?: number; 'user_auth_type'?: number; 'vendor_patch_level'?: number; } /** * Schema: https://source.android.com/docs/security/features/keystore/attestation#schema */ export interface DeviceAuthnAndroidKeyDescription { 'attestation_security_level'?: number; 'attestation_version'?: number; 'keymaster_security_level'?: number; 'keymaster_version'?: number; 'software_enforced'?: DeviceAuthnAndroidAuthorizationList; 'tee_enforced'?: DeviceAuthnAndroidAuthorizationList; } export interface DeviceAuthnAndroidRootOfTrust { 'device_locked'?: boolean; 'verified_boot_hash'?: Array; 'verified_boot_key'?: Array; 'verified_boot_state'?: number; } /** * Exactly one of `android` or `ios` is set, matching the key\'s device_type. */ export interface DeviceAuthnAttestation { 'android'?: DeviceAuthnAndroidKeyDescription; 'ios'?: DeviceAuthnIOSAttestation; } /** * Defined in https://developer.apple.com/documentation/devicecheck/validating-apps-that-connect-to-your-server#Verify-the-attestation . */ export interface DeviceAuthnIOSAttStmt { /** * X5c is the leaf-first certificate chain encoded as base64(DER), per the JOSE convention defined in RFC 7515 §4.1.6. */ 'x5c'?: Array>; } /** * Defined in https://developer.apple.com/documentation/devicecheck/validating-apps-that-connect-to-your-server#Verify-the-attestation . */ export interface DeviceAuthnIOSAttestation { 'att_stmt'?: DeviceAuthnIOSAttStmt; 'auth_data'?: Array; 'fmt'?: string; } /** * Represents a hardware-backed signing key enrolled from a mobile device. The private key resides inside the device and never exists on the server. To list the identity\'s enrolled keys, fetch a settings flow: each key\'s remove button (a `ui.nodes` entry named `deviceauthn_remove` in group `deviceauthn`) carries the key, with its PIN state redacted, in the node label\'s `context`. */ export interface DeviceAuthnKey { 'attestation'?: DeviceAuthnAttestation; /** * The key\'s stable id, unique per identity. Submit it as the `client_key_id` when logging in with the key, deleting it, or rotating its pin_secret. The device can also compute the id without reading it back from the server: it is the lowercase-hex SHA-256 of `public_key` (the key\'s PKIX, ASN.1 DER encoding). Keys enrolled before the server derived the id keep their original client-chosen value, so prefer reading this field over recomputing it for older keys. */ 'client_key_id'?: string; /** * When the key was enrolled. Only used for troubleshooting and UI. */ 'created_at'?: string; /** * A human-readable name for the device, helping the user tell this key apart from others. */ 'device_name'?: string; 'device_type'?: DeviceType; 'pin'?: PINConfig; /** * The device\'s public key (an elliptic-curve key on P-224, P-256, P-384, or P-521 in version 1) in PKIX, ASN.1 DER (SubjectPublicKeyInfo) form, base64-encoded. Signatures are verified against this key. */ 'public_key'?: string; /** * Set only when the key\'s attestation chain was accepted under relaxed rules (software roots, expired certificates, software security level) rather than strict hardware attestation. Such keys are refused at login after this time, or immediately once relaxed attestation is turned off. Absent for hardware-attested keys that pass strict validation. */ 'relaxed_attestation_expires_at'?: string; 'state'?: KeyState; 'user_verification'?: UserVerification; /** * The cryptography version of the key. Version 1 uses ECDSA with SHA-256 on an elliptic curve (P-224, P-256, P-384, or P-521); further versions are reserved for future signature suites. */ 'version'?: number; } /** * # Ory\'s OAuth 2.0 Device Authorization API */ export interface DeviceAuthorization { /** * The device verification code. */ 'device_code'?: string; /** * The lifetime in seconds of the \"device_code\" and \"user_code\". */ 'expires_in'?: number; /** * The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default. */ 'interval'?: number; /** * The end-user verification code. */ 'user_code'?: string; /** * The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent. */ 'verification_uri'?: string; /** * A verification URI that includes the \"user_code\" (or other information with the same function as the \"user_code\"), which is designed for non-textual transmission. */ 'verification_uri_complete'?: string; } /** * \"Android\" and \"iOS\" use different attestation and signature encodings. */ export declare const DeviceType: { readonly ANDROID: "Android"; readonly IOS: "iOS"; readonly UnknownDefaultOpenApi: "11184809"; }; export type DeviceType = typeof DeviceType[keyof typeof DeviceType]; export interface DeviceUserAuthRequest { /** * ID is the identifier (\"device challenge\") of the device grant request. It is used to identify the session. */ 'challenge': string; 'client'?: OAuth2Client; 'handled_at'?: string; /** * RequestURL is the original Device Authorization URL requested. */ 'request_url'?: string; /** * RequestedAudience contains the access token audience as requested by the OAuth 2.0 Client. */ 'requested_access_token_audience'?: Array; /** * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. */ 'requested_scope'?: Array; } /** * ElementsConfiguration is the subset of a project\'s configuration that Ory Elements consumes to customize its behavior and appearance. It mirrors the `ProjectConfiguration` type in `@ory/elements-react` and intentionally omits account-experience-only fields (stylesheet, locales, translations, favicons). */ export interface ElementsConfiguration { /** * The URL to the project\'s Contact page. */ 'contact_url'?: string; /** * The default redirect URL. */ 'default_redirect_url': string; /** * The URL for the error UI. */ 'error_ui_url': string; /** * Whether to hide the Ory branding badge. */ 'hide_ory_branding': boolean; /** * Whether to hide the \"Sign up\" link on the login card footer. */ 'hide_registration_link': boolean; /** * The URL for the login UI. */ 'login_ui_url': string; /** * The URL for the dark logo. */ 'logo_dark_url'?: string; /** * The URL for the light logo on the auth card. */ 'logo_light_url'?: string; /** * The name of the project displayed on the auth card. */ 'name': string; /** * The URL to the project\'s Privacy Policy page. */ 'privacy_policy_url'?: string; /** * Whether recovery is enabled. */ 'recovery_enabled': boolean; /** * The URL for the recovery UI. */ 'recovery_ui_url': string; /** * Whether registration is enabled. */ 'registration_enabled': boolean; /** * The URL for the registration UI. */ 'registration_ui_url': string; /** * The URL for the settings UI. */ 'settings_ui_url': string; /** * The URL to the project\'s Terms of Service page. */ 'terms_of_service_url'?: string; /** * Whether verification is enabled. */ 'verification_enabled': boolean; /** * The URL for the verification UI. */ 'verification_ui_url': string; } /** * Contains the data of the email template, including the subject and body in HTML and plaintext variants */ export interface EmailTemplateData { 'body': EmailTemplateDataBody; 'subject': string; } export interface EmailTemplateDataBody { 'html': string; 'plaintext': string; } export interface ErrorAuthenticatorAssuranceLevelNotSatisfied { 'error'?: GenericError; /** * Points to where to redirect the user to next. */ 'redirect_browser_to'?: string; } export interface ErrorBrowserLocationChangeRequired { 'error'?: ErrorGeneric; /** * Points to where to redirect the user to next. */ 'redirect_browser_to'?: string; } /** * Is sent when a flow is replaced by a different flow of the same class */ export interface ErrorFlowReplaced { 'error'?: GenericError; /** * The flow ID that should be used for the new flow as it contains the correct messages. */ 'use_flow_id'?: string; } /** * The standard Ory JSON API error format. */ export interface ErrorGeneric { 'error': GenericErrorContent; } /** * Error */ export interface ErrorOAuth2 { /** * Error */ 'error'?: string; /** * Error Debug Information Only available in dev mode. */ 'error_debug'?: string; /** * Error Description */ 'error_description'?: string; /** * Error Hint Helps the user identify the error cause. */ 'error_hint'?: string; /** * HTTP Status Code */ 'status_code'?: number; } /** * Event Stream */ export interface EventStream { 'created_at'?: string; 'https_endpoint'?: string | null; 'id'?: string; 'role_arn'?: string; /** * The status of the event stream. A paused event stream does not forward any events until it is set back to active. */ 'status'?: EventStreamStatusEnum; 'topic_arn'?: string; 'type'?: string; 'updated_at'?: string; } export declare const EventStreamStatusEnum: { readonly Active: "active"; readonly Paused: "paused"; readonly UnknownDefaultOpenApi: "11184809"; }; export type EventStreamStatusEnum = typeof EventStreamStatusEnum[keyof typeof EventStreamStatusEnum]; export interface ExpandedPermissionTree { /** * The children of the node, possibly none. */ 'children'?: Array; 'tuple'?: Relationship; /** * The type of the node. union TreeNodeUnion exclusion TreeNodeExclusion intersection TreeNodeIntersection leaf TreeNodeLeaf tuple_to_subject_set TreeNodeTupleToSubjectSet computed_subject_set TreeNodeComputedSubjectSet not TreeNodeNot unspecified TreeNodeUnspecified */ 'type': ExpandedPermissionTreeTypeEnum; } export declare const ExpandedPermissionTreeTypeEnum: { readonly Union: "union"; readonly Exclusion: "exclusion"; readonly Intersection: "intersection"; readonly Leaf: "leaf"; readonly TupleToSubjectSet: "tuple_to_subject_set"; readonly ComputedSubjectSet: "computed_subject_set"; readonly Not: "not"; readonly Unspecified: "unspecified"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ExpandedPermissionTreeTypeEnum = typeof ExpandedPermissionTreeTypeEnum[keyof typeof ExpandedPermissionTreeTypeEnum]; export interface FlowError { /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at'?: string; 'error'?: object; /** * ID of the error container. */ 'id': string; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at'?: string; } /** * Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. */ export interface GenericError { /** * The status code */ 'code'?: number; /** * Debug information This field is often not exposed to protect against leaking sensitive information. */ 'debug'?: string; /** * Further error details */ 'details'?: any; 'error'?: GenericErrorContent; /** * The error ID Useful when trying to identify various errors in application logic. */ 'id'?: string; /** * Error message The error\'s message. */ 'message': string; /** * A human-readable reason for the error */ 'reason'?: string; /** * The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID. */ 'request'?: string; /** * The status description */ 'status'?: string; } /** * Error response */ export interface GenericErrorContent { /** * Debug contains debug information. This is usually not available and has to be enabled. */ 'debug'?: string; /** * Name is the error name. */ 'error'?: string; /** * Description contains further information on the nature of the error. */ 'error_description'?: string; /** * ID is a unique error ID. feature_not_available ErrFeatureNotAvailable quota_exceeded ErrQuotaExceeded */ 'id'?: GenericErrorContentIdEnum; /** * Message contains the error message. */ 'message'?: string; /** * Code represents the error status code (404, 403, 401, ...). */ 'status_code'?: number; } export declare const GenericErrorContentIdEnum: { readonly FeatureNotAvailable: "feature_not_available"; readonly QuotaExceeded: "quota_exceeded"; readonly UnknownDefaultOpenApi: "11184809"; }; export type GenericErrorContentIdEnum = typeof GenericErrorContentIdEnum[keyof typeof GenericErrorContentIdEnum]; export interface GenericOIDCProvider { /** * The client_id of the OIDC provider. */ 'client_id': string; /** * The client_secret of the OIDC provider. */ 'client_secret': string; /** * The issuer URL of the OIDC provider. */ 'issuer_url': string; } export interface GenericUsage { 'additional_price': string; /** * IncludedUsage is the number of included items. */ 'included_usage': number; } /** * Response of the getAttributesCount endpoint */ export interface GetAttributesCount { /** * The list of data points. */ 'data': Array; } export interface GetJWKSResponse { 'jwks'?: GetJWKSResponseJwks; } /** * A JSON Web Key Set (RFC 7517). Contains a single field `keys`, an array of JWK objects. */ export interface GetJWKSResponseJwks { /** * Array of JWK objects. Each key has at minimum `kty` (key type) and `kid` (key ID) plus key-type-specific material (e.g. `x`/`crv` for OKP/Ed25519, `n`/`e` for RSA). */ 'keys': Array; } export interface GetJWKSResponseJwksKeysInner { 'alg'?: string; 'crv'?: string; 'e'?: string; 'kid': string; 'kty': string; 'n'?: string; 'use'?: string; 'x'?: string; 'y'?: string; } /** * Ory Identity Schema Location */ export interface GetManagedIdentitySchemaLocation { 'location'?: string; } /** * Response of the getIdentityCount endpoint */ export interface GetMetricsCount { /** * The total count */ 'count': number; /** * Helper field to identify the service used for this response */ 'service_name': string; } /** * Response of the getMetricsEventAttributes endpoint */ export interface GetMetricsEventAttributes { /** * The list of data points. */ 'events': Array; } /** * Response of the getMetricsEventTypes endpoint */ export interface GetMetricsEventTypes { /** * The list of data points. */ 'events': Array; } export interface GetOrganizationResponse { 'organization': Organization; } /** * getOrganizationsByHostnameResponse is the list of B2B SSO organizations for the project resolved from the request host. */ export interface GetOrganizationsByHostnameResponse { /** * Organizations is the list of organizations for the project. */ 'organizations': Array; } /** * Response of the getProjectEvents endpoint */ export interface GetProjectEvents { /** * The list of data points. */ 'events': Array; /** * Pagination token to be included in next page request */ 'page_token'?: string; } /** * Body of the getProjectEvents endpoint */ export interface GetProjectEventsBody { /** * The event name to query for */ 'event_name'?: string; /** * Event attribute filters */ 'filters'?: Array; /** * The start RFC3339 date of the time window */ 'from': string; /** * Maximum number of events to return */ 'page_size'?: number; /** * Pagination token to fetch next page, empty if first page */ 'page_token'?: string; /** * The end RFC3339 date of the time window */ 'to': string; } /** * Response of the getMetrics endpoint */ export interface GetProjectMetrics { /** * The list of data points. */ 'data': Array; } /** * Response of the getSessionActivity endpoint */ export interface GetSessionActivity { /** * The list of data points. */ 'data': Array; } export interface GetVersion200Response { /** * The version of Ory Kratos. */ 'version': string; } export interface HealthNotReadyStatus { /** * Errors contains a list of errors that caused the not ready status. */ 'errors'?: { [key: string]: string; }; } export interface HealthStatus { /** * Status always contains \"ok\". */ 'status'?: string; } /** * IPRestriction defines IP-based access controls for an API key. When allowed_cidrs is non-empty, only requests from IPs matching at least one CIDR range are permitted. Empty allowed_cidrs means no IP restriction (all IPs allowed). IP restrictions apply to root API key and imported key verification only; derived tokens (JWT/macaroon) are stateless and not subject to IP checks. */ export interface IPRestriction { /** * allowed_cidrs is a list of CIDR ranges that are allowed to use this key. Supports both IPv4 (e.g., \"10.0.0.0/8\") and IPv6 (e.g., \"2001:db8::/32\"). If empty, all IPs are allowed (no restriction). */ 'allowed_cidrs'?: Array; } /** * An [identity](https://www.ory.com/docs/kratos/concepts/identity-user-model) represents a (human) user in Ory. */ export interface Identity { /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at'?: string; /** * Credentials represents all credentials that can be used for authenticating this identity. */ 'credentials'?: { [key: string]: IdentityCredentials; }; /** * ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. */ 'external_id'?: string; /** * ID is the identity\'s unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. */ 'id': string; /** * NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- */ 'metadata_admin'?: object | null; /** * NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- */ 'metadata_public'?: object | null; 'organization_id'?: string | null; /** * RecoveryAddresses contains all the addresses that can be used to recover an identity. */ 'recovery_addresses'?: Array; /** * Region is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'region'?: IdentityRegionEnum; /** * SchemaID is the ID of the JSON Schema to be used for validating the identity\'s traits. */ 'schema_id': string; /** * SchemaURL is the URL of the endpoint where the identity\'s traits schema can be fetched from. format: url */ 'schema_url': string; /** * State is the identity\'s state. This value has currently no effect. active StateActive inactive StateInactive */ 'state'?: IdentityStateEnum; 'state_changed_at'?: string; /** * Traits represent an identity\'s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. */ 'traits': any; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at'?: string; /** * VerifiableAddresses contains all the addresses that can be verified by the user. */ 'verifiable_addresses'?: Array; } export declare const IdentityRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type IdentityRegionEnum = typeof IdentityRegionEnum[keyof typeof IdentityRegionEnum]; export declare const IdentityStateEnum: { readonly Active: "active"; readonly Inactive: "inactive"; readonly UnknownDefaultOpenApi: "11184809"; }; export type IdentityStateEnum = typeof IdentityStateEnum[keyof typeof IdentityStateEnum]; /** * Credentials represents a specific credential type */ export interface IdentityCredentials { 'config'?: object; /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at'?: string; /** * Identifiers represent a list of unique identifiers this credential type matches. */ 'identifiers'?: Array; /** * Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML deviceauthn CredentialsTypeDeviceAuthn identifier_first CredentialsTypeIdentifierFirst link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode */ 'type'?: IdentityCredentialsTypeEnum; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at'?: string; /** * Version refers to the version of the credential. Useful when changing the config schema. */ 'version'?: number; } export declare const IdentityCredentialsTypeEnum: { readonly Password: "password"; readonly Oidc: "oidc"; readonly Totp: "totp"; readonly LookupSecret: "lookup_secret"; readonly Webauthn: "webauthn"; readonly Code: "code"; readonly Passkey: "passkey"; readonly Profile: "profile"; readonly Saml: "saml"; readonly Deviceauthn: "deviceauthn"; readonly IdentifierFirst: "identifier_first"; readonly LinkRecovery: "link_recovery"; readonly CodeRecovery: "code_recovery"; readonly UnknownDefaultOpenApi: "11184809"; }; export type IdentityCredentialsTypeEnum = typeof IdentityCredentialsTypeEnum[keyof typeof IdentityCredentialsTypeEnum]; /** * CredentialsCode represents a one time login/registration code */ export interface IdentityCredentialsCode { 'addresses'?: Array; } export interface IdentityCredentialsCodeAddress { /** * The address for this code */ 'address'?: string; 'channel'?: string; } /** * Recovery codes can be used once and are invalidated after use. */ export interface IdentityCredentialsLookupSecretCode { /** * A recovery code */ 'code'?: string; 'used_at'?: string; } export interface IdentityCredentialsOidc { 'providers'?: Array; } export interface IdentityCredentialsOidcProvider { 'initial_access_token'?: string; 'initial_id_token'?: string; 'initial_refresh_token'?: string; 'organization'?: string; 'provider'?: string; 'subject'?: string; 'use_auto_link'?: boolean; } export interface IdentityCredentialsPassword { /** * HashedPassword is a hash-representation of the password. */ 'hashed_password'?: string; /** * UsePasswordMigrationHook is set to true if the password should be migrated using the password migration hook. If set, and the HashedPassword is empty, a webhook will be called during login to migrate the password. */ 'use_password_migration_hook'?: boolean; } export interface IdentityCredentialsWebAuthn { 'added_at'?: string; 'attestation'?: IdentityCredentialsWebAuthnAttestation; 'attestation_type'?: string; 'authenticator'?: IdentityCredentialsWebAuthnAuthenticator; 'display_name'?: string; 'flags'?: IdentityCredentialsWebAuthnFlags; 'id'?: Array; 'is_passwordless'?: boolean; 'public_key'?: Array; 'transport'?: Array; } export interface IdentityCredentialsWebAuthnAttestation { 'authenticator_data'?: Array; 'client_dataJSON'?: Array; 'client_data_hash'?: Array; 'object'?: Array; 'public_key_algorithm'?: number; } export interface IdentityCredentialsWebAuthnAuthenticator { 'aaguid'?: Array; 'clone_warning'?: boolean; 'sign_count'?: number; } export interface IdentityCredentialsWebAuthnFlags { 'backup_eligible'?: boolean; 'backup_state'?: boolean; 'user_present'?: boolean; 'user_verified'?: boolean; } /** * Payload for patching an identity */ export interface IdentityPatch { 'create'?: CreateIdentityBody; /** * The ID of this patch. The patch ID is optional. If specified, the ID will be returned in the response, so consumers of this API can correlate the response with the patch. */ 'patch_id'?: string; } /** * Response for a single identity patch */ export interface IdentityPatchResponse { /** * The action for this specific patch create ActionCreate Create this identity. error ActionError Error indicates that the patch failed. */ 'action'?: IdentityPatchResponseActionEnum; /** * From https://go.dev/wiki/CodeReviewComments#receiver-type: > Can function or methods, either concurrently or when called from this method, be mutating the receiver? A value type creates a copy of the receiver when the method is invoked, so outside updates will not be applied to this receiver. If changes must be visible in the original receiver, the receiver must be a pointer. > If the receiver is a struct, array or slice and any of its elements is a pointer to something that might be mutating, > prefer a pointer receiver, as it will make the intention clearer to the reader. > Don’t mix receiver types. Choose either pointers or struct types for all available methods. */ 'error'?: any; /** * The identity ID payload of this patch */ 'identity'?: string; /** * The ID of this patch response, if an ID was specified in the patch. */ 'patch_id'?: string; } export declare const IdentityPatchResponseActionEnum: { readonly Create: "create"; readonly Error: "error"; readonly UnknownDefaultOpenApi: "11184809"; }; export type IdentityPatchResponseActionEnum = typeof IdentityPatchResponseActionEnum[keyof typeof IdentityPatchResponseActionEnum]; /** * An Identity JSON Schema Container */ export interface IdentitySchemaContainer { /** * The ID of the Identity JSON Schema */ 'id': string; /** * The actual Identity JSON Schema */ 'schema': object; } export interface IdentitySchemaPreset { /** * Schema is the Identity JSON Schema */ 'schema': object; /** * URL is the preset identifier */ 'url': string; } /** * Create Identity and Import Credentials */ export interface IdentityWithCredentials { 'lookup_secret'?: AdminIdentityImportCredentialsLookupSecret; 'oidc'?: IdentityWithCredentialsOidc; 'passkey'?: IdentityWithCredentialsPasskey; 'password'?: IdentityWithCredentialsPassword; 'saml'?: IdentityWithCredentialsSaml; 'totp'?: IdentityWithCredentialsTotp; 'webauthn'?: IdentityWithCredentialsWebAuthn; } /** * Create Identity and Import Social Sign In Credentials */ export interface IdentityWithCredentialsOidc { 'config'?: IdentityWithCredentialsOidcConfig; } export interface IdentityWithCredentialsOidcConfig { /** * A list of OpenID Connect Providers */ 'providers'?: Array; } /** * Create Identity and Import Social Sign In Credentials Configuration */ export interface IdentityWithCredentialsOidcConfigProvider { 'organization'?: string | null; /** * The OpenID Connect provider to link the subject to. Usually something like `google` or `github`. */ 'provider': string; /** * The subject (`sub`) of the OpenID Connect connection. Usually the `sub` field of the ID Token. */ 'subject': string; /** * If set, this credential allows the user to sign in using the OpenID Connect provider without setting the subject first. */ 'use_auto_link'?: boolean; } /** * Create Identity and Import Passkey Credentials */ export interface IdentityWithCredentialsPasskey { 'config'?: IdentityWithCredentialsPasskeyConfig; } /** * Create Identity and Import Passkey Credentials Configuration */ export interface IdentityWithCredentialsPasskeyConfig { 'credentials'?: Array; /** * UserHandle is the user handle of the webauthn credential. */ 'user_handle'?: Array; } /** * Create Identity and Import Password Credentials */ export interface IdentityWithCredentialsPassword { 'config'?: IdentityWithCredentialsPasswordConfig; } /** * Create Identity and Import Password Credentials Configuration */ export interface IdentityWithCredentialsPasswordConfig { /** * The hashed password in [PHC format](https://www.ory.com/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) */ 'hashed_password'?: string; /** * The password in plain text if no hash is available. */ 'password'?: string; /** * If set to true, the password will be migrated using the password migration hook. */ 'use_password_migration_hook'?: boolean; } /** * Payload to import SAML credentials */ export interface IdentityWithCredentialsSaml { 'config'?: IdentityWithCredentialsSamlConfig; } /** * Payload of SAML providers */ export interface IdentityWithCredentialsSamlConfig { /** * A list of SAML Providers */ 'providers'?: Array; } /** * Payload of specific SAML provider */ export interface IdentityWithCredentialsSamlConfigProvider { 'organization'?: string | null; /** * The SAML provider to link the subject to. */ 'provider': string; /** * The unique subject of the SAML connection. This value must be immutable at the source. */ 'subject': string; } /** * Create Identity and Import TOTP 2FA Credentials */ export interface IdentityWithCredentialsTotp { 'config'?: IdentityWithCredentialsTotpConfig; } /** * Create Identity and Import TOTP 2FA Credentials Configuration */ export interface IdentityWithCredentialsTotpConfig { /** * TOTPURL is the TOTP URL For more details see: https://github.com/google/google-authenticator/wiki/Key-Uri-Format */ 'totp_url'?: string; } /** * Create Identity and Import WebAuthn Credentials */ export interface IdentityWithCredentialsWebAuthn { 'config'?: IdentityWithCredentialsWebAuthnConfig; } /** * Create Identity and Import WebAuthn Credentials Configuration */ export interface IdentityWithCredentialsWebAuthnConfig { 'credentials'?: Array; /** * UserHandle is the user handle of the webauthn credential. */ 'user_handle'?: Array; } /** * Example: { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"example-provider\", \"environment\": \"staging\"} } */ export interface ImportApiKeyRequest { /** * actor_id is the identifier of the entity that owns this imported key. Required so every imported key is traceable to an actor for revocation and audit queries. */ 'actor_id'?: string; 'ip_restriction'?: IPRestriction; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; 'raw_key'?: string; 'request_id'?: string; 'scopes'?: Array; /** * ttl sets the expiry as a duration from now. Encoded as a google.protobuf.Duration (string ending in \"s\", e.g. \"3600s\"). Accepted bounds: 1s to 315360000s (~10 years). If unset or zero, the project default TTL applies. For convenience, the server also accepts Go-style duration strings (\"24h\", \"30m\", \"1h30m\") and an extended unit set (\"1d\", \"1w\", \"1mo\", \"1y\"; approximations: 1mo = 30d, 1y = 365d). Clients should prefer the standard Duration encoding for portability. */ 'ttl'?: string; 'visibility'?: KeyVisibility; } /** * ImportedApiKey represents an API key imported from an external system. The raw key is hashed (SHA-512/256) and stored. The original key is never retained. */ export interface ImportedApiKey { 'actor_id'?: string; 'create_time'?: string; 'expire_time'?: string; 'ip_restriction'?: IPRestriction; 'key_id'?: string; 'last_used_time'?: string; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; /** * revocation_description provides free-form context for a revocation. Only set when revocation_reason is PRIVILEGE_WITHDRAWN. JSON API change: field was formerly revocation_reason_text. Field number 13 is unchanged so the change is wire-compatible for binary proto encoding. */ 'revocation_description'?: string; 'revocation_reason'?: RevocationReason; 'scopes'?: Array; 'status'?: KeyStatus; 'update_time'?: string; 'visibility'?: KeyVisibility; } /** * Get Project Branding Request Body */ export interface InternalGetProjectBrandingBody { 'hostname'?: string; } /** * Is Account Experience Enabled For Project Request Body */ export interface InternalIsAXWelcomeScreenEnabledForProjectBody { /** * Path is the path of the request. */ 'path': string; /** * ProjectSlug is the project\'s slug. */ 'project_slug': string; } export interface InternalIsOwnerForProjectBySlug { /** * ProjectID is the project\'s ID. */ 'project_id': string; } /** * Is Owner For Project By Slug Request Body */ export interface InternalIsOwnerForProjectBySlugBody { /** * Namespace is the namespace of the subject. */ 'namespace': InternalIsOwnerForProjectBySlugBodyNamespaceEnum; /** * OrganizationID is the organization\'s ID. */ 'organization_id'?: string; /** * ProjectScope is the project_id resolved from the API key. */ 'project_scope'?: string; /** * ProjectSlug is the project\'s slug. */ 'project_slug': string; /** * Subject is the subject acting (user or API key). */ 'subject': string; } export declare const InternalIsOwnerForProjectBySlugBodyNamespaceEnum: { readonly User: "User"; readonly ApiKey: " ApiKey"; readonly UnknownDefaultOpenApi: "11184809"; }; export type InternalIsOwnerForProjectBySlugBodyNamespaceEnum = typeof InternalIsOwnerForProjectBySlugBodyNamespaceEnum[keyof typeof InternalIsOwnerForProjectBySlugBodyNamespaceEnum]; /** * Introspection contains an access token\'s session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) */ export interface IntrospectedOAuth2Token { /** * Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token\'s \"active\" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a \"true\" value return for the \"active\" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). */ 'active': boolean; /** * Audience contains a list of the token\'s intended audiences. */ 'aud'?: Array; /** * ID is a client identifier for the OAuth 2.0 client that requested this token. */ 'client_id'?: string; /** * Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire. */ 'exp'?: number; /** * Extra is arbitrary data set by the session. */ 'ext'?: { [key: string]: any; }; /** * Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued. */ 'iat'?: number; /** * IssuerURL is a string representing the issuer of this token */ 'iss'?: string; /** * NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before. */ 'nbf'?: number; /** * ObfuscatedSubject is set when the subject identifier algorithm was set to \"pairwise\" during authorization. It is the `sub` value of the ID Token that was issued. */ 'obfuscated_subject'?: string; /** * Scope is a JSON string containing a space-separated list of scopes associated with this token. */ 'scope'?: string; /** * Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token. */ 'sub'?: string; /** * TokenType is the introspected token\'s type, typically `Bearer`. */ 'token_type'?: string; /** * TokenUse is the introspected token\'s use, for example `access_token` or `refresh_token`. */ 'token_use'?: string; /** * Username is a human-readable identifier for the resource owner who authorized this token. */ 'username'?: string; } /** * Invite Token Body */ export interface InviteTokenBody { /** * Invite Token The Invite Token. format: uuid */ 'invite_token': string; } export interface Invoice { /** * The ID of the invoice. */ 'id': string; 'invoiced_at': string; /** * Type is the type of the invoice. usage InvoiceTypeUsage base InvoiceTypeBase */ 'type': InvoiceTypeEnum; 'updated_at'?: string; 'v1'?: InvoiceDataV1; } export declare const InvoiceTypeEnum: { readonly Usage: "usage"; readonly Base: "base"; readonly UnknownDefaultOpenApi: "11184809"; }; export type InvoiceTypeEnum = typeof InvoiceTypeEnum[keyof typeof InvoiceTypeEnum]; export interface InvoiceDataV1 { 'billing_period': TimeInterval; /** * The currency of the invoice. */ 'currency': string; /** * Deleted is true if the invoice has been soft-deleted. */ 'deleted'?: boolean; /** * The items that are part of this invoice. */ 'items': Array; /** * The plan that this invoice is based on, in the format \"Name@version\". */ 'plan'?: string; 'stripe_invoice_item'?: string; /** * The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview) */ 'stripe_invoice_status'?: string; /** * An optional link to the invoice on Stripe. */ 'stripe_link'?: string; /** * The subtitle of the invoice. */ 'subtitle'?: string; 'tax'?: TaxLineItem; /** * The title of the invoice. */ 'title': string; 'total_in_cent': number; } export interface IsOwnerForProjectBySlug { /** * ProjectSlug is the project\'s slug. */ 'ProjectSlug': string; /** * Subject is the subject from the API key. */ 'Subject': string; } export interface IssueApiKeyRequest { 'actor_id'?: string; 'ip_restriction'?: IPRestriction; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; 'request_id'?: string; 'scopes'?: Array; /** * ttl sets the expiry as a duration from now. Encoded as a google.protobuf.Duration (string ending in \"s\", e.g. \"3600s\"). Accepted bounds: 1s to 315360000s (~10 years). If unset or zero, the project default TTL applies. For convenience, the server also accepts Go-style duration strings (\"24h\", \"30m\", \"1h30m\") and an extended unit set (\"1d\", \"1w\", \"1mo\", \"1y\"; approximations: 1mo = 30d, 1y = 365d). Clients should prefer the standard Duration encoding for portability. */ 'ttl'?: string; 'visibility'?: KeyVisibility; } export interface IssueApiKeyResponse { 'issued_api_key'?: IssuedApiKey; 'secret'?: string; } /** * IssuedApiKey represents an API key issued (generated) by Talos. Root keys are opaque v1 format tokens stored in the database. Derived tokens (JWT/Macaroon) are created via DeriveToken and are stateless (not stored). */ export interface IssuedApiKey { 'actor_id'?: string; 'create_time'?: string; 'expire_time'?: string; 'ip_restriction'?: IPRestriction; 'key_id'?: string; 'last_used_time'?: string; /** * metadata is a free-form JSON object for caller-defined attributes (e.g., source, environment, tags). Values may be strings, numbers, booleans, arrays, objects, or null. Total serialized size is capped at 4KB. AIP-148 metadata field. */ 'metadata'?: object; 'name'?: string; 'rate_limit_policy'?: RateLimitPolicy; /** * revocation_description provides free-form context for a revocation. Only set when revocation_reason is PRIVILEGE_WITHDRAWN. JSON API change: field was formerly revocation_reason_text. Field number 13 is unchanged so the change is wire-compatible for binary proto encoding. */ 'revocation_description'?: string; 'revocation_reason'?: RevocationReason; 'scopes'?: Array; 'status'?: KeyStatus; 'update_time'?: string; 'visibility'?: KeyVisibility; } /** * A JSONPatch document as defined by RFC 6902 */ export interface JsonPatch { /** * This field is used together with operation \"move\" and uses JSON Pointer notation. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). */ 'from'?: string; /** * The operation to be performed. One of \"add\", \"remove\", \"replace\", \"move\", \"copy\", or \"test\". */ 'op': JsonPatchOpEnum; /** * The path to the target path. Uses JSON pointer notation. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). */ 'path': string; /** * The value to be used within the operations. Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). */ 'value'?: any; } export declare const JsonPatchOpEnum: { readonly Add: "add"; readonly Remove: "remove"; readonly Replace: "replace"; readonly Move: "move"; readonly Copy: "copy"; readonly Test: "test"; readonly UnknownDefaultOpenApi: "11184809"; }; export type JsonPatchOpEnum = typeof JsonPatchOpEnum[keyof typeof JsonPatchOpEnum]; export interface JsonWebKey { /** * The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. */ 'alg': string; 'crv'?: string; 'd'?: string; 'dp'?: string; 'dq'?: string; 'e'?: string; 'k'?: string; /** * The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. */ 'kid': string; /** * The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. */ 'kty': string; 'n'?: string; 'p'?: string; 'q'?: string; 'qi'?: string; /** * Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). */ 'use': string; 'x'?: string; /** * The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. */ 'x5c'?: Array; 'y'?: string; } /** * JSON Web Key Set */ export interface JsonWebKeySet { /** * List of JSON Web Keys The value of the \"keys\" parameter is an array of JSON Web Key (JWK) values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. */ 'keys'?: Array; } export interface KetoNamespace { 'id'?: number; 'name'?: string; } /** * Only a \"confirmed\" key can be used to authenticate. A \"locked\" key was disabled after too many wrong-PIN attempts; rotating its pin_secret unlocks it. */ export declare const KeyState: { readonly Initial: "initial"; readonly Confirmed: "confirmed"; readonly Locked: "locked"; readonly UnknownDefaultOpenApi: "11184809"; }; export type KeyState = typeof KeyState[keyof typeof KeyState]; /** * KeyStatus represents the lifecycle state of an API key. - KEY_STATUS_UNSPECIFIED: Default zero value. Never returned by the server. Treated as ACTIVE for backward compatibility but should not be relied on. - KEY_STATUS_ACTIVE: The key is valid and can be used to authenticate. - KEY_STATUS_REVOKED: The key was revoked and can no longer authenticate. On the API key object, the revocation_reason field carries the cause (set via the admin and self-revocation flows). Verification responses do not include this status: a revoked key fails verification with error_code VERIFICATION_ERROR_REVOKED. - KEY_STATUS_EXPIRED: The key passed its expire_time. Verification fails with VERIFICATION_ERROR_EXPIRED. The transition is computed at read time and not persisted. */ export declare const KeyStatus: { readonly KeyStatusUnspecified: "KEY_STATUS_UNSPECIFIED"; readonly KeyStatusActive: "KEY_STATUS_ACTIVE"; readonly KeyStatusRevoked: "KEY_STATUS_REVOKED"; readonly KeyStatusExpired: "KEY_STATUS_EXPIRED"; readonly UnknownDefaultOpenApi: "11184809"; }; export type KeyStatus = typeof KeyStatus[keyof typeof KeyStatus]; /** * KeyVisibility distinguishes public (client-safe) keys from secret (server-only) keys. Public keys use a different configurable prefix for visual distinction. Both types share the same scope/permission system — visibility is about exposure safety. - KEY_VISIBILITY_UNSPECIFIED: Treated as SECRET */ export declare const KeyVisibility: { readonly KeyVisibilityUnspecified: "KEY_VISIBILITY_UNSPECIFIED"; readonly KeyVisibilitySecret: "KEY_VISIBILITY_SECRET"; readonly KeyVisibilityPublic: "KEY_VISIBILITY_PUBLIC"; readonly UnknownDefaultOpenApi: "11184809"; }; export type KeyVisibility = typeof KeyVisibility[keyof typeof KeyVisibility]; /** * For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ export interface KeysetPaginationRequestParameters { /** * Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_size'?: number; /** * Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_token'?: string; } /** * The `Link` HTTP header contains multiple links (`first`, `next`) formatted as: `; rel=\"first\"` For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ export interface KeysetPaginationResponseHeaders { /** * The Link HTTP Header The `Link` header contains a comma-delimited list of links to the following pages: first: The first page of results. next: The next page of results. Pages are omitted if they do not exist. For example, if there is no next page, the `next` link is omitted. Examples: ; rel=\"next\" */ 'link'?: string; } export interface LineItemV1 { 'amount_in_cent'?: number; 'description'?: string; /** * Each line item can have sub-items to create a hierarchy. */ 'items'?: Array; 'quantity'?: number; 'title'?: string; 'unit_price'?: string; } /** * Event Stream List */ export interface ListEventStreams { 'event_streams'?: Array; } export interface ListImportedApiKeysResponse { 'imported_api_keys'?: Array; 'next_page_token'?: string; } export interface ListInvoicesResponse { 'buckets': Array; 'has_next_page': boolean; 'next_page_token': string; } export interface ListIssuedApiKeysResponse { 'issued_api_keys'?: Array; 'next_page_token'?: string; } /** * B2B SSO Organization List */ export interface ListOrganizationsResponse { 'has_next_page': boolean; 'next_page_token': string; /** * The list of organizations */ 'organizations': Array; } export interface ListWorkspaceProjects { 'has_next_page': boolean; 'next_page': string; 'projects': Array; } export interface ListWorkspaces { 'has_next_page': boolean; 'next_page_token': string; 'workspaces': Array; } /** * This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. */ export interface LoginFlow { /** * The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML deviceauthn CredentialsTypeDeviceAuthn identifier_first CredentialsTypeIdentifierFirst link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode */ 'active'?: LoginFlowActiveEnum; /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at'?: string; /** * ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. */ 'expires_at': string; /** * ID represents the flow\'s unique ID. When performing the login flow, this represents the id in the login UI\'s query parameter: http:///?flow= */ 'id': string; /** * IdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or converted to another flow. */ 'identity_schema'?: string; /** * IssuedAt is the time (UTC) when the flow started. */ 'issued_at': string; /** * Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. */ 'oauth2_login_challenge'?: string; 'oauth2_login_request'?: OAuth2LoginRequest; 'organization_id'?: string | null; /** * Refresh stores whether this login flow should enforce re-authentication. */ 'refresh'?: boolean; /** * RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL\'s path or query for example. */ 'request_url': string; 'requested_aal'?: AuthenticatorAssuranceLevel; /** * ReturnTo contains the requested return_to URL. */ 'return_to'?: string; /** * SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. */ 'session_token_exchange_code'?: string; /** * State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. */ 'state': any; 'test_context'?: LoginFlowTestContext; /** * TransientPayload is used to pass data from the login to hooks and email templates */ 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. */ 'type': string; 'ui': UiContainer; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at'?: string; } export declare const LoginFlowActiveEnum: { readonly Password: "password"; readonly Oidc: "oidc"; readonly Totp: "totp"; readonly LookupSecret: "lookup_secret"; readonly Webauthn: "webauthn"; readonly Code: "code"; readonly Passkey: "passkey"; readonly Profile: "profile"; readonly Saml: "saml"; readonly Deviceauthn: "deviceauthn"; readonly IdentifierFirst: "identifier_first"; readonly LinkRecovery: "link_recovery"; readonly CodeRecovery: "code_recovery"; readonly UnknownDefaultOpenApi: "11184809"; }; export type LoginFlowActiveEnum = typeof LoginFlowActiveEnum[keyof typeof LoginFlowActiveEnum]; /** * The experimental state represents the state of a login flow. This field is EXPERIMENTAL and subject to change! */ export declare const LoginFlowState: { readonly ChooseMethod: "choose_method"; readonly SentEmail: "sent_email"; readonly PassedChallenge: "passed_challenge"; readonly UnknownDefaultOpenApi: "11184809"; }; export type LoginFlowState = typeof LoginFlowState[keyof typeof LoginFlowState]; /** * Admin-test extension of a login flow. Populated only for flows created by the admin test endpoint; included in the flow\'s API response so the admin UI can render the pre-scoped provider and (once captured) the debug round-trip result. */ export interface LoginFlowTestContext { 'debug_payload'?: LoginFlowTestDebugPayload; /** * The ID of the OIDC provider this test flow targets. */ 'provider_id': string; } /** * Contains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast radius of the debug payload leaking through audit logs or admin browsers. */ export interface LoginFlowTestDebugPayload { 'error'?: LoginFlowTestStepError; /** * Claims extracted from the ID token. */ 'id_token_claims'?: { [key: string]: any; }; /** * Input JSON that was fed into the Jsonnet mapper. */ 'jsonnet_input'?: { [key: string]: any; }; /** * URL of the Jsonnet mapper that was executed on the claims. */ 'jsonnet_mapper_url'?: string; /** * Output JSON returned by the Jsonnet mapper. */ 'jsonnet_output'?: { [key: string]: any; }; /** * Anything the Jsonnet mapper wrote to standard error. */ 'jsonnet_stderr'?: string; /** * Identity-schema validation errors produced from the mapped traits. */ 'schema_validation_errors'?: Array; /** * Claims returned from the provider\'s userinfo endpoint, if any. */ 'userinfo'?: { [key: string]: any; }; } /** * One identity-schema validation failure recorded while evaluating the traits produced by the Jsonnet mapper. */ export interface LoginFlowTestSchemaValidationError { /** * Human-readable description of the validation failure. */ 'message'?: string; /** * JSON pointer to the field that failed validation. */ 'path'?: string; } /** * Populated when any step (token exchange, claims decode, Jsonnet evaluation, schema validation) cannot complete. */ export interface LoginFlowTestStepError { /** * Human-readable message describing the failure. */ 'message'?: string; /** * Short classification of the failure cause (for example, \"access_denied\" or \"traits_invalid\"). */ 'reason'?: string; /** * Machine-readable identifier of the failed step (for example, \"token_exchange\" or \"schema_validate\"). */ 'step'?: string; } /** * Logout Flow */ export interface LogoutFlow { /** * LogoutToken can be used to perform logout using AJAX. */ 'logout_token': string; /** * LogoutURL can be opened in a browser to sign the user out. format: uri */ 'logout_url': string; } /** * Body for the bulk session management endpoint. Exactly one of `identities` or `sessions` must be provided. To operate on every session in the network, pass `identities: [\"*\"]` — the wildcard must appear alone, never mixed with explicit IDs. */ export interface ManageSessionsBody { /** * Action to perform on the matching sessions. disable ManageSessionsActionDisable delete ManageSessionsActionDelete */ 'action': ManageSessionsBodyActionEnum; /** * Identity IDs whose sessions should be disabled or deleted, or `[\"*\"]` to operate on every session in the network. Mutually exclusive with `sessions`. */ 'identities'?: Array; /** * Session IDs to disable or delete. Mutually exclusive with `identities`. The wildcard `[\"*\"]` is not accepted in this field — pass `identities: [\"*\"]` to scope the operation to every session in the network. */ 'sessions'?: Array; } export declare const ManageSessionsBodyActionEnum: { readonly Disable: "disable"; readonly Delete: "delete"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ManageSessionsBodyActionEnum = typeof ManageSessionsBodyActionEnum[keyof typeof ManageSessionsBodyActionEnum]; /** * Response body for the bulk session management endpoint. Reports how many rows the call processed and, for the wildcard variant, whether the network still has matching rows left. Explicit-IDs requests always return `more: false`. Wildcard callers drain the network by re-issuing the same request while `more` is `true`. */ export interface ManageSessionsResponse { /** * True when the call reached the per-call batch limit and additional matching rows may remain. Always false for explicit-IDs requests. */ 'more'?: boolean; /** * Number of sessions processed in this call. For `disable`, counts only sessions that were active before the call (already-inactive sessions are skipped). For `delete`, counts every matching row removed. */ 'processed'?: number; } /** * Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system. */ export interface ManagedIdentitySchema { /** * The gcs file name This is a randomly generated name which is used to uniquely identify the file on the blob storage */ 'blob_name': string; /** * The publicly accessible url of the schema */ 'blob_url': string; /** * The Content Hash Contains a hash of the schema\'s content. */ 'content_hash'?: string; /** * The Schema\'s Creation Date */ 'created_at': string; /** * The schema\'s ID. */ 'id': string; /** * The schema name This is set by the user and is for them to easily recognise their schema */ 'name': string; /** * Last Time Schema was Updated */ 'updated_at': string; } /** * Ory Identity Schema Validation Result */ export interface ManagedIdentitySchemaValidationResult { 'message'?: string; 'valid'?: boolean; } export interface MemberInvite { /** * The Project\'s Revision Creation Date */ 'created_at': string; /** * The invite\'s ID. */ 'id': string; /** * The invitee\'s email */ 'invitee_email': string; 'invitee_id'?: string | null; /** * The invite owner\'s email Usually the project\'s owner email */ 'owner_email': string; /** * The invite owner\'s ID Usually the project\'s owner */ 'owner_id': string; 'project_id'?: string | null; 'role'?: string | null; /** * The invite\'s status Keeps track of the invites status such as pending, accepted, declined, expired pending PENDING accepted ACCEPTED declined DECLINED expired EXPIRED cancelled CANCELLED removed REMOVED */ 'status': MemberInviteStatusEnum; /** * Last Time Project\'s Revision was Updated */ 'updated_at': string; 'workspace_id'?: string | null; } export declare const MemberInviteStatusEnum: { readonly Pending: "pending"; readonly Accepted: "accepted"; readonly Declined: "declined"; readonly Expired: "expired"; readonly Cancelled: "cancelled"; readonly Removed: "removed"; readonly UnknownDefaultOpenApi: "11184809"; }; export type MemberInviteStatusEnum = typeof MemberInviteStatusEnum[keyof typeof MemberInviteStatusEnum]; export interface Message { 'body': string; 'channel'?: string; /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at': string; /** * Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state. */ 'dispatches'?: Array; 'id': string; 'recipient': string; 'send_count': number; 'status': CourierMessageStatus; 'subject': string; /** * recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid verifiable_address_changed TypeVerifiableAddressChanged authenticator_key_added TypeAuthenticatorKeyAdded */ 'template_type': MessageTemplateTypeEnum; 'type': CourierMessageType; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at': string; } export declare const MessageTemplateTypeEnum: { readonly RecoveryInvalid: "recovery_invalid"; readonly RecoveryValid: "recovery_valid"; readonly RecoveryCodeInvalid: "recovery_code_invalid"; readonly RecoveryCodeValid: "recovery_code_valid"; readonly VerificationInvalid: "verification_invalid"; readonly VerificationValid: "verification_valid"; readonly VerificationCodeInvalid: "verification_code_invalid"; readonly VerificationCodeValid: "verification_code_valid"; readonly Stub: "stub"; readonly LoginCodeValid: "login_code_valid"; readonly RegistrationCodeValid: "registration_code_valid"; readonly VerifiableAddressChanged: "verifiable_address_changed"; readonly AuthenticatorKeyAdded: "authenticator_key_added"; readonly UnknownDefaultOpenApi: "11184809"; }; export type MessageTemplateTypeEnum = typeof MessageTemplateTypeEnum[keyof typeof MessageTemplateTypeEnum]; /** * MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured */ export interface MessageDispatch { /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at': string; 'error'?: object; /** * The ID of this message dispatch */ 'id': string; /** * The ID of the message being dispatched */ 'message_id': string; /** * The status of this dispatch Either \"failed\" or \"success\" failed CourierMessageDispatchStatusFailed success CourierMessageDispatchStatusSuccess */ 'status': MessageDispatchStatusEnum; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at': string; } export declare const MessageDispatchStatusEnum: { readonly Failed: "failed"; readonly Success: "success"; readonly UnknownDefaultOpenApi: "11184809"; }; export type MessageDispatchStatusEnum = typeof MessageDispatchStatusEnum[keyof typeof MessageDispatchStatusEnum]; /** * Represents a single datapoint/bucket of a time series */ export interface MetricsDatapoint { /** * The count of events that occured in this time */ 'count': number; /** * The time of the bucket */ 'time': string; } export interface Namespace { /** * Name of the namespace. */ 'name'?: string; } export interface NeedsPrivilegedSessionError { 'error'?: GenericError; /** * Points to where to redirect the user to next. */ 'redirect_browser_to': string; } export interface NormalizedProject { /** * The Project\'s Creation Date */ 'created_at': string; 'current_revision': NormalizedProjectRevision; /** * The environment of the project. prod Production stage Staging dev Development */ 'environment': NormalizedProjectEnvironmentEnum; /** * The project\'s data home region. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'home_region': NormalizedProjectHomeRegionEnum; /** * The FQDN hostnames this project listens on */ 'hosts': Array; /** * The project\'s ID. */ 'id': string; /** * The project\'s slug */ 'slug': string; /** * The state of the project. running Running halted Halted deleted Deleted */ 'state': NormalizedProjectStateEnum; 'subscription_id'?: string | null; 'subscription_plan'?: string | null; /** * Last Time Project was Updated */ 'updated_at': string; 'workspace'?: Workspace; 'workspace_id': string | null; } export declare const NormalizedProjectEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectEnvironmentEnum = typeof NormalizedProjectEnvironmentEnum[keyof typeof NormalizedProjectEnvironmentEnum]; export declare const NormalizedProjectHomeRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectHomeRegionEnum = typeof NormalizedProjectHomeRegionEnum[keyof typeof NormalizedProjectHomeRegionEnum]; export declare const NormalizedProjectStateEnum: { readonly Running: "running"; readonly Halted: "halted"; readonly Deleted: "deleted"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectStateEnum = typeof NormalizedProjectStateEnum[keyof typeof NormalizedProjectStateEnum]; export interface NormalizedProjectRevision { /** * Holds the URL to the account experience\'s Contact page. This governs the \"contact_url\" setting. */ 'account_experience_contact_url'?: string; /** * The Account Experience\'s Custom Translations Contains all Custom Translations for this project. */ 'account_experience_custom_translations'?: Array; /** * Holds the default locale for the account experience. This governs the \"default_locale\" setting. */ 'account_experience_default_locale'?: string; /** * The Account Experience\'s Enabled Locales This governs the locales that are available in the account experience. This governs the \"enabled_locales\" setting. */ 'account_experience_enabled_locales'?: Array; /** * Holds the URL to the account experience\'s dark theme favicon (currently unused). This governs the \"favicon_dark\" setting. */ 'account_experience_favicon_dark'?: string; /** * Holds the URL to the account experience\'s favicon. This governs the \"favicon_light\" setting. */ 'account_experience_favicon_light'?: string; /** * Whether to hide the Ory branding badge on the account experience. This governs the \"hide_ory_branding\" setting. */ 'account_experience_hide_ory_branding'?: boolean; /** * Whether to hide the registration link on the account experience login card. This governs the \"hide_registration_link\" setting. */ 'account_experience_hide_registration_link'?: boolean; /** * Holds the URL to the account experience\'s language behavior. Can be one of: `respect_accept_language`: Respect the `Accept-Language` header. `force_default`: Force the default language. This governs the \"locale_behavior\" setting. */ 'account_experience_locale_behavior'?: string; /** * Holds the URL to the account experience\'s dark theme logo (currently unused). This governs the \"logo_dark\" setting. */ 'account_experience_logo_dark'?: string; /** * Holds the URL to the account experience\'s logo. This governs the \"logo_light\" setting. */ 'account_experience_logo_light'?: string; /** * Holds the URL to the account experience\'s Privacy Policy page. This governs the \"privacy_policy_url\" setting. */ 'account_experience_privacy_policy_url'?: string; /** * Holds the URL to the account experience\'s Terms of Service page. This governs the \"terms_of_service_url\" setting. */ 'account_experience_terms_of_service_url'?: string; /** * Holds the URL to the account experience\'s dark theme variables. This governs the \"theme_variables_dark\" setting. */ 'account_experience_theme_variables_dark'?: string; /** * Holds the URL to the account experience\'s light theme variables. This governs the \"theme_variables_light\" setting. */ 'account_experience_theme_variables_light'?: string; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; /** * Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. This governs the \"disable_welcome_screen\" setting. */ 'disable_account_experience_welcome_screen'?: boolean; /** * Whether the new account experience is enabled and reachable. This governs the \"enable_ax_v2\" setting. */ 'enable_ax_v2'?: boolean; /** * A list of custom claims which are allowed to be added top level to the Access Token. They cannot override reserved claims. This governs the \"oauth2.allowed_top_level_claims\" setting. */ 'hydra_oauth2_allowed_top_level_claims'?: Array; /** * Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. */ 'hydra_oauth2_client_credentials_default_grant_allowed_scope'?: boolean; /** * Configures how often a non-interactive device should poll the OAuth 2.0 Device Authorization Grant token endpoint. Purely informational — the value is reported to the device in the \"interval\" response field of the device authorization response. Hydra defaults to 5s when this is left empty. This is an Enterprise feature. This governs the \"oauth2.device_authorization.token_polling_interval\" setting. */ 'hydra_oauth2_device_authorization_token_polling_interval'?: string; /** * Picks a preset for the OAuth 2.0 Device Authorization Grant user_code length and character set. \"high\" produces the longest codes (most resistant to brute force); \"low\" the shortest (easiest for the end user to read and enter). Leave empty to keep Hydra\'s default preset. This is an Enterprise feature. This governs the \"oauth2.device_authorization.user_code.entropy_preset\" setting. */ 'hydra_oauth2_device_authorization_user_code_entropy_preset'?: NormalizedProjectRevisionHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum; /** * Set to true if you want to omit the `nbf` (not valid before) claim in the access token. This governs the \"oauth2.exclude_not_before_claim\" setting. */ 'hydra_oauth2_exclude_not_before_claim'?: boolean; /** * Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. */ 'hydra_oauth2_grant_jwt_iat_optional'?: boolean; /** * Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. */ 'hydra_oauth2_grant_jwt_jti_optional'?: boolean; /** * Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. */ 'hydra_oauth2_grant_jwt_max_ttl'?: string; /** * Configures whether the audience (`aud`) claim from the assertion JSON Web Token (JWT) in the JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) is omitted from the resulting access token. When set to `true` (the default for new projects), the audience values from the inbound assertion JWT are not granted in the access token. Set to `false` to copy the assertion audience into the access token (the legacy behavior). This governs the \"oauth2.grant.jwt.omit_assertion_audience\" setting. */ 'hydra_oauth2_grant_jwt_omit_assertion_audience'?: boolean; /** * Configures the OAuth2 Grant Refresh Token Rotation Grace Period If set to `null` or `\"0s\"`, the graceful refresh token rotation is disabled. This governs the \"oauth2.grant.refresh_token.rotation_grace_period\" setting. */ 'hydra_oauth2_grant_refresh_token_rotation_grace_period'?: string; /** * Configures the OAuth2 Grant Refresh Token Rotation Grace Reuse Count. The maximum number of times a refresh token can be reused within the grace period. If set to `null` or `0`, the limit is disabled. This governs the \"oauth2.grant.refresh_token.rotation_grace_reuse_count\" setting. */ 'hydra_oauth2_grant_refresh_token_rotation_grace_reuse_count'?: number; /** * Set to false if you don\'t want to mirror custom claims under \'ext\'. This governs the \"oauth2.mirror_top_level_claims\" setting. */ 'hydra_oauth2_mirror_top_level_claims'?: boolean; /** * Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. */ 'hydra_oauth2_pkce_enforced'?: boolean; /** * Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. */ 'hydra_oauth2_pkce_enforced_for_public_clients'?: boolean; /** * Set to true to keep custom claims that are not promoted to the top level in the \'ext\' claim. Only applies when mirror_top_level_claims is false. This governs the \"oauth2.preserve_ext_claims\" setting. */ 'hydra_oauth2_preserve_ext_claims'?: boolean; /** * Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. */ 'hydra_oauth2_refresh_token_hook'?: string; /** * Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. This governs the \"oauth2.token_hook.url\" setting. */ 'hydra_oauth2_token_hook'?: string; /** * Sets a per-project Access Token, Refresh Token, and Authorization Code prefix. The literal \"%s\" is replaced at issuance time with the token kind: \"at\" (access token), \"rt\" (refresh token), or \"ac\" (authorization code). For example, \"acme_%s_\" yields \"acme_at_…\", \"acme_rt_…\", and \"acme_ac_…\". Must be a fmt.Sprintf template with exactly one \"%s\" substitution. The rendered prefix may contain only ASCII letters, digits, and underscores — no other \"%\" directives (\"%d\", \"%%\", positional or width-flagged verbs), no hyphens, dots, slashes, whitespace, quotes, or non-ASCII characters. Leave empty to keep the default \"ory_%s_\" prefix. This is an Enterprise feature. This governs the \"oauth2.token_prefix\" setting. */ 'hydra_oauth2_token_prefix'?: string; /** * The OpenID Connect Dynamic Client Registration specification has no concept of whitelisting OAuth 2.0 Scope. If you want to expose Dynamic Client Registration, you should set the default scope enabled for newly registered clients. Keep in mind that users can overwrite this default by setting the \"scope\" key in the registration payload, effectively disabling the concept of whitelisted scopes. This governs the \"oidc.dynamic_client_registration.default_scope\" setting. */ 'hydra_oidc_dynamic_client_registration_default_scope'?: Array; /** * Configures OpenID Connect Dynamic Client Registration. This governs the \"oidc.dynamic_client_registration.enabled\" setting. */ 'hydra_oidc_dynamic_client_registration_enabled'?: boolean; /** * Configures OpenID Connect Discovery and overwrites the pairwise algorithm This governs the \"oidc.subject_identifiers.pairwise_salt\" setting. */ 'hydra_oidc_subject_identifiers_pairwise_salt'?: string; /** * Configures OpenID Connect Discovery and overwrites the list of Subject Identifier Algorithms to enable. This governs the \"oidc.subject_identifiers.supported_types\" setting. */ 'hydra_oidc_subject_identifiers_supported_types'?: Array; /** * Configures the Ory Hydra Cookie Secret This governs the \"secrets.cookie\" setting. */ 'hydra_secrets_cookie'?: Array; /** * Configures the Ory Hydra Pagination Secret This governs the \"secrets.pagination\" setting. */ 'hydra_secrets_pagination'?: Array; /** * Configures the Ory Hydra System Secret This governs the \"secrets.system\" setting. */ 'hydra_secrets_system'?: Array; /** * Configures the Ory Hydra Cookie Same Site Legacy Workaround This governs the \"serve.cookies.same_site_legacy_workaround\" setting. */ 'hydra_serve_cookies_same_site_legacy_workaround'?: boolean; /** * Configures the Ory Hydra Cookie Same Site Mode This governs the \"serve.cookies.same_site_mode\" setting. */ 'hydra_serve_cookies_same_site_mode'?: string; /** * Defines access token type This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt */ 'hydra_strategies_access_token'?: NormalizedProjectRevisionHydraStrategiesAccessTokenEnum; /** * Define the claim to use as the scope in the access token. This governs the \"strategies.jwt.scope_claim\" setting. list: The scope claim is an array of strings named `scope`: `{ \"scope\": [\"read\", \"write\"] }` string: The scope claim is a space delimited list of strings named `scp`: `{ \"scp\": \"read write\" }` both: The scope claim is both a space delimited list and an array of strings named `scope` and `scp`: `{ \"scope\": [\"read\", \"write\"], \"scp\": \"read write\" }` list OAuth2JWTScopeClaimList string OAuth2JWTScopeClaimString both OAuth2JWTScopeClaimBoth */ 'hydra_strategies_jwt_scope_claim'?: NormalizedProjectRevisionHydraStrategiesJwtScopeClaimEnum; /** * Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes This governs the \"strategies.scope\" setting. exact Oauth2ScopeStrategyExact wildcard Oauth2ScopeStrategyWildcard */ 'hydra_strategies_scope'?: NormalizedProjectRevisionHydraStrategiesScopeEnum; /** * This governs the \"ttl.access_token\" setting. */ 'hydra_ttl_access_token'?: string; /** * Configures how long refresh tokens are valid. Set to -1 for refresh tokens to never expire. This is not recommended! This governs the \"ttl.auth_code\" setting. */ 'hydra_ttl_auth_code'?: string; /** * Configures how long the device_code and user_code in the OAuth 2.0 Device Authorization Grant remain valid. Larger values mean more database storage; shorter values mean users have less time to complete the second-device verification. Hydra defaults to 10m when this is left empty. This is an Enterprise feature. This governs the \"ttl.device_user_code\" setting. */ 'hydra_ttl_device_user_code'?: string; /** * This governs the \"ttl.id_token\" setting. */ 'hydra_ttl_id_token'?: string; /** * Configures how long a user login and consent flow may take. This governs the \"ttl.login_consent_request\" setting. */ 'hydra_ttl_login_consent_request'?: string; /** * Configures how long refresh tokens are valid. Set to -1 for refresh tokens to never expire. This is not recommended! This governs the \"ttl.refresh_token\" setting. */ 'hydra_ttl_refresh_token'?: string; /** * Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.consent\" setting. */ 'hydra_urls_consent'?: string; /** * Sets the URL the user is redirected to after successfully completing the OAuth 2.0 Device Authorization Grant user verification step. Defaults to the Ory Account Experience fallback page if left empty. This is an Enterprise feature. This governs the \"urls.device.success\" setting. */ 'hydra_urls_device_success'?: string; /** * Sets the URL of the user verification page for the OAuth 2.0 Device Authorization Grant (RFC 8628). End users are redirected to this URL to enter the user_code shown on their device. Defaults to the Ory Account Experience fallback page if left empty. This is an Enterprise feature. This governs the \"urls.device.verification\" setting. */ 'hydra_urls_device_verification'?: string; /** * Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.error\" setting. */ 'hydra_urls_error'?: string; /** * Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.login\" setting. */ 'hydra_urls_login'?: string; /** * Sets the logout endpoint. Defaults to the Ory Account Experience if left empty. This governs the \"urls.logout\" setting. */ 'hydra_urls_logout'?: string; /** * When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. This governs the \"urls.post_logout_redirect\" setting. */ 'hydra_urls_post_logout_redirect'?: string; /** * Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. Defaults to the Ory Account Experience if left empty. This governs the \"urls.registration\" setting. */ 'hydra_urls_registration'?: string; /** * This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. This governs the \"urls.self.issuer\" setting. */ 'hydra_urls_self_issuer'?: string; /** * A list of JSON Web Keys that should be exposed at that endpoint. This is usually the public key for verifying OpenID Connect ID Tokens. However, you might want to add additional keys here as well. This governs the \"webfinger.jwks.broadcast_keys\" setting. */ 'hydra_webfinger_jwks_broadcast_keys'?: Array; /** * Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. This governs the \"webfinger.oidc_discovery.auth_url\" setting. */ 'hydra_webfinger_oidc_discovery_auth_url'?: string; /** * Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. This governs the \"webfinger.oidc_discovery.client_registration_url\" setting. */ 'hydra_webfinger_oidc_discovery_client_registration_url'?: string; /** * Override the OAuth 2.0 Device Authorization Endpoint URL that is advertised in the OpenID Connect discovery document (/.well-known/openid-configuration). Defaults to the project\'s public base URL + /oauth2/device/auth. This is an Enterprise feature. This governs the \"webfinger.oidc_discovery.device_authorization_url\" setting. */ 'hydra_webfinger_oidc_discovery_device_authorization_url'?: string; /** * Configures OpenID Connect Discovery and overwrites the JWKS URL. This governs the \"webfinger.oidc_discovery.jwks_url\" setting. */ 'hydra_webfinger_oidc_discovery_jwks_url'?: string; /** * Configures OpenID Connect Discovery and overwrites a list of supported claims to be broadcasted. Claim \"sub\" is always included. This governs the \"webfinger.oidc_discovery.supported_claims\" setting. */ 'hydra_webfinger_oidc_discovery_supported_claims'?: Array; /** * Configures OpenID Connect Discovery and overwrites the scope OAuth 2.0 Clients may request. Scope `offline`, `offline_access`, and `openid` are always included. This governs the \"webfinger.oidc_discovery.supported_scope\" setting. */ 'hydra_webfinger_oidc_discovery_supported_scope'?: Array; /** * Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. This governs the \"webfinger.oidc_discovery.token_url\" setting. */ 'hydra_webfinger_oidc_discovery_token_url'?: string; /** * Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra\'s userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. This governs the \"webfinger.oidc_discovery.userinfo_url\" setting. */ 'hydra_webfinger_oidc_discovery_userinfo_url'?: string; /** * The revision ID. */ 'id'?: string; /** * The Revisions\' Keto Namespace Configuration The string is a URL pointing to an OPL file with the configuration. This governs the \"namespaces.location\" setting. */ 'keto_namespace_configuration'?: string; 'keto_namespaces'?: Array; /** * Configures Keto\'s pagination secrets. This governs the \"secrets.pagination\" setting. */ 'keto_secrets_pagination'?: Array; /** * Configures the Ory Kratos Cookie SameSite Attribute This governs the \"cookies.same_site\" setting. */ 'kratos_cookies_same_site'?: string; 'kratos_courier_channels'?: Array; /** * The delivery strategy to use when sending emails This governs the \"courier.delivery_strategy\" setting. `smtp`: Use SMTP server `http`: Use the built in HTTP client to send the email to some remote service */ 'kratos_courier_delivery_strategy'?: string; /** * The location of the API key to use in the HTTP email sending service\'s authentication `header`: Send the key value pair as a header `cookie`: Send the key value pair as a cookie This governs the \"courier.http.request_config.auth.config.in\" setting. */ 'kratos_courier_http_request_config_auth_api_key_in'?: string; /** * The name of the API key to use in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.name\" setting. */ 'kratos_courier_http_request_config_auth_api_key_name'?: string; /** * The value of the API key to use in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.value\" setting. */ 'kratos_courier_http_request_config_auth_api_key_value'?: string; /** * The password to use for basic auth in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.password\" setting. */ 'kratos_courier_http_request_config_auth_basic_auth_password'?: string; /** * The user to use for basic auth in the HTTP email sending service\'s authentication This governs the \"courier.http.request_config.auth.config.user\" setting. */ 'kratos_courier_http_request_config_auth_basic_auth_user'?: string; /** * The authentication type to use while contacting the remote HTTP email sending service This governs the \"courier.http.request_config.auth.type\" setting. `basic_auth`: Use Basic Authentication `api_key`: Use API Key Authentication in a header or cookie */ 'kratos_courier_http_request_config_auth_type'?: string; /** * The Jsonnet template to generate the body to send to the remote HTTP email sending service Should be valid Jsonnet and base64 encoded This governs the \"courier.http.request_config.body\" setting. */ 'kratos_courier_http_request_config_body'?: string; /** * Any additional headers to send to the remote HTTP email sending service This governs the \"courier.http.request_config.headers\" setting. */ 'kratos_courier_http_request_config_headers'?: object; /** * The http METHOD to use when calling the remote HTTP email sending service This governs the \"courier.http.request_config.method\" setting. */ 'kratos_courier_http_request_config_method'?: string; /** * The URL of the remote HTTP email sending service This governs the \"courier.http.request_config.url\" setting. */ 'kratos_courier_http_request_config_url'?: string; /** * Configures the Ory Kratos SMTP Connection URI This governs the \"courier.smtp.connection_uri\" setting. */ 'kratos_courier_smtp_connection_uri'?: string; /** * Configures the Ory Kratos SMTP From Address This governs the \"courier.smtp.from_address\" setting. */ 'kratos_courier_smtp_from_address'?: string; /** * Configures the Ory Kratos SMTP From Name This governs the \"courier.smtp.from_name\" setting. */ 'kratos_courier_smtp_from_name'?: string; /** * Configures the Ory Kratos SMTP Connection Headers This governs the \"courier.smtp.headers\" setting. */ 'kratos_courier_smtp_headers'?: object; /** * Configures the local_name to use in SMTP connections This governs the \"courier.smtp.local_name\" setting. */ 'kratos_courier_smtp_local_name'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.templates.login_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_login_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.templates.login_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_login_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.templates.login_code.valid.email.subject\" setting. */ 'kratos_courier_templates_login_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.templates.login_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_login_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.templates.recovery_code.invalid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.templates.recovery_code.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.templates.recovery_code.invalid.email.subject\" setting. */ 'kratos_courier_templates_recovery_code_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template This governs the \"courier.templates.recovery_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template This governs the \"courier.templates.recovery_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Recovery via Code Email Subject Template This governs the \"courier.templates.recovery_code.valid.email.subject\" setting. */ 'kratos_courier_templates_recovery_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Body HTML Template This governs the \"courier.templates.recovery.invalid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template This governs the \"courier.templates.recovery.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery Email Subject Template This governs the \"courier.templates.recovery.invalid.email.subject\" setting. */ 'kratos_courier_templates_recovery_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Recovery Email Body HTML Template This governs the \"courier.templates.recovery.valid.email.body.html\" setting. */ 'kratos_courier_templates_recovery_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Recovery Email Body Plaintext Template This governs the \"courier.templates.recovery.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_recovery_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Recovery Email Subject Template This governs the \"courier.templates.recovery.valid.email.subject\" setting. */ 'kratos_courier_templates_recovery_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Body HTML Template This governs the \"courier.templates.registration_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_registration_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template This governs the \"courier.templates.registration_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_registration_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Registration via Code Email Subject Template This governs the \"courier.templates.registration_code.valid.email.subject\" setting. */ 'kratos_courier_templates_registration_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Registration via Code SMS Body Plaintext Template This governs the \"courier.templates.registration_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_registration_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Body HTML Template This governs the \"courier.templates.verifiable_address_changed.email.body.html\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_body_html'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Body Plaintext Template This governs the \"courier.templates.verifiable_address_changed.email.body.plaintext\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_body_plaintext'?: string; /** * Configures the Ory Kratos Verifiable Address Changed Email Subject Template This governs the \"courier.templates.verifiable_address_changed.email.subject\" setting. */ 'kratos_courier_templates_verifiable_address_changed_email_subject'?: string; /** * Configures the Ory Kratos Verifiable Address Changed SMS Body Plaintext Template This governs the \"courier.templates.verifiable_address_changed.sms.body.plaintext\" setting. */ 'kratos_courier_templates_verifiable_address_changed_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template This governs the \"courier.templates.verification_code.invalid.email.body.html\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template This governs the \"courier.templates.verification_code.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification via Code Email Subject Template This governs the \"courier.templates.verification_code.invalid.email.subject\" setting. */ 'kratos_courier_templates_verification_code_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Body HTML Template This governs the \"courier.templates.verification_code.valid.email.body.html\" setting. */ 'kratos_courier_templates_verification_code_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template This governs the \"courier.templates.verification_code.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Verification via Code Email Subject Template This governs the \"courier.templates.verification_code.valid.email.subject\" setting. */ 'kratos_courier_templates_verification_code_valid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext This governs the \"courier.templates.verification_code.valid.sms.body.plaintext\" setting. */ 'kratos_courier_templates_verification_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification Email Body HTML Template This governs the \"courier.templates.verification.invalid.email.body.html\" setting. */ 'kratos_courier_templates_verification_invalid_email_body_html'?: string; /** * Configures the Ory Kratos Invalid Verification Email Body Plaintext Template This governs the \"courier.templates.verification.invalid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_invalid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Verification Email Subject Template This governs the \"courier.templates.verification.invalid.email.subject\" setting. */ 'kratos_courier_templates_verification_invalid_email_subject'?: string; /** * Configures the Ory Kratos Valid Verification Email Body HTML Template This governs the \"courier.templates.verification.valid.email.body.html\" setting. */ 'kratos_courier_templates_verification_valid_email_body_html'?: string; /** * Configures the Ory Kratos Valid Verification Email Body Plaintext Template This governs the \"courier.templates.verification.valid.email.body.plaintext\" setting. */ 'kratos_courier_templates_verification_valid_email_body_plaintext'?: string; /** * Configures the Ory Kratos Valid Verification Email Subject Template This governs the \"courier.templates.verification.valid.email.subject\" setting. */ 'kratos_courier_templates_verification_valid_email_subject'?: string; /** * Configures the Ory Kratos Session caching feature flag This governs the \"feature_flags.cacheable_sessions\" setting. */ 'kratos_feature_flags_cacheable_sessions'?: boolean; /** * Configures the Ory Kratos Session caching max-age feature flag This governs the \"feature_flags.cacheable_sessions_max_age\" setting. */ 'kratos_feature_flags_cacheable_sessions_max_age'?: string; /** * This governs the \"feature_flags.choose_recovery_address\" setting. */ 'kratos_feature_flags_choose_recovery_address'?: boolean; /** * Configures the Ory Kratos Faster Session Extend setting If enabled allows faster session extension by skipping the session lookup and returning 201 instead of 200. Disabling this feature will be deprecated in the future. This governs the \"feature_flags.faster_session_extend\" setting. */ 'kratos_feature_flags_faster_session_extend'?: boolean; /** * Always include show_verification_ui in continue_with If true, restores the legacy behavior of always including `show_verification_ui` in the registration flow\'s `continue_with` when verification is enabled. If set to false, `show_verification_ui` is only set in `continue_with` if the `show_verification_ui` hook is used. This flag will be removed in the future. This governs the \"feature_flags.legacy_continue_with_verification_ui\" setting. */ 'kratos_feature_flags_legacy_continue_with_verification_ui'?: boolean; /** * Controls whether the UI nodes in an OIDC registration flow have group \"oidc\" in case required fields are not returned by the OIDC provider. If set to true, the UI nodes will have group \"oidc\" and the flow will be considered successful if the user completes the flow. This is the legacy behavior. This governs the \"feature_flags.legacy_oidc_registration_node_group\" setting. */ 'kratos_feature_flags_legacy_oidc_registration_node_group'?: boolean; /** * Return a form error if the login identifier is not verified If true, the login flow will return a form error if the login identifier is not verified, which restores legacy behavior. If this value is false, the `continue_with` array will contain a `show_verification_ui` hook instead. This flag is deprecated and will be removed in the future. This governs the \"feature_flags.legacy_require_verified_login_error\" setting. */ 'kratos_feature_flags_legacy_require_verified_login_error'?: boolean; /** * Configures the group for the password method in the registration flow. If true, it sets the password method group value to \"password\" if it is the only method available. This is the legacy behavior. If false is, it sets the password method group value to \"default\". This governs the \"feature_flags.password_profile_registration_node_group\" setting. */ 'kratos_feature_flags_password_profile_registration_node_group'?: boolean; /** * Render an address picker on the code refresh login screen If true, a code-strategy refresh (privileged re-authentication) login renders a \"Send code to
\" button per available code address instead of re-asking for the identifier. The identity is already fixed by the active session, so re-entering the identifier is unnecessary. It is safe to toggle this back and forth. This governs the \"feature_flags.refresh_login_choose_address\" setting. */ 'kratos_feature_flags_refresh_login_choose_address'?: boolean; /** * Configures the Ory Kratos Session use_continue_with_transitions flag This governs the \"feature_flags.use_continue_with_transitions\" setting. */ 'kratos_feature_flags_use_continue_with_transitions'?: boolean; 'kratos_identity_schemas'?: Array; /** * Configures the OAuth2 Provider Integration HTTP Headers This governs the \"oauth2_provider.headers\" setting. */ 'kratos_oauth2_provider_headers'?: object; /** * Kratos OAuth2 Provider Override Return To Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. This governs the \"oauth2_provider.override_return_to\" setting. */ 'kratos_oauth2_provider_override_return_to'?: boolean; /** * The Revisions\' OAuth2 Provider Integration URL This governs the \"oauth2_provider.url\" setting. */ 'kratos_oauth2_provider_url'?: string; /** * Configures the default read consistency level for identity APIs The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` Defaults to \"strong\" for new and existing projects. This feature is in preview. Use with caution. This governs the \"preview.default_read_consistency_level\" setting. */ 'kratos_preview_default_read_consistency_level'?: string; /** * Configures the Ory Kratos Cipher Secret This governs the \"secrets.cipher\" setting. */ 'kratos_secrets_cipher'?: Array; /** * Configures the Ory Kratos Cookie Secret This governs the \"secrets.cookie\" setting. */ 'kratos_secrets_cookie'?: Array; /** * Configures the Ory Kratos Default Secret This governs the \"secrets.default\" setting. */ 'kratos_secrets_default'?: Array; /** * Configures the Ory Kratos Pagination Secret This governs the \"secrets.pagination\" setting. */ 'kratos_secrets_pagination'?: Array; /** * Configures if account enumeration should be mitigated when using identifier first login. This governs the \"security.account_enumeration.mitigate\" setting. */ 'kratos_security_account_enumeration_mitigate'?: boolean; /** * Configures the Ory Kratos Allowed Return URLs This governs the \"selfservice.allowed_return_urls\" setting. */ 'kratos_selfservice_allowed_return_urls'?: Array; /** * Configures the Ory Kratos Default Return URL This governs the \"selfservice.default_browser_return_url\" setting. */ 'kratos_selfservice_default_browser_return_url'?: string; /** * Configures the Ory Kratos Error UI URL This governs the \"selfservice.flows.error.ui_url\" setting. */ 'kratos_selfservice_flows_error_ui_url'?: string; /** * Configures the Ory Kratos Login After Code Default Return URL This governs the \"selfservice.flows.login.after.code.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_code_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login Default Return URL This governs the \"selfservice.flows.login.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Lookup Secret Default Return URL This governs the \"selfservice.flows.login.after.lookup_secret.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After OIDC Default Return URL This governs the \"selfservice.flows.login.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Passkey Default Return URL This governs the \"selfservice.flows.login.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After Password Default Return URL This governs the \"selfservice.flows.login.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After TOTP Default Return URL This governs the \"selfservice.flows.login.after.totp.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_totp_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login After WebAuthn Default Return URL This governs the \"selfservice.flows.login.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_login_after_webauthn_default_browser_return_url'?: string; /** * Configures the Ory Kratos Login Lifespan This governs the \"selfservice.flows.login.lifespan\" setting. */ 'kratos_selfservice_flows_login_lifespan'?: string; /** * Configures the Ory Kratos Login Flow Style This governs the \"selfservice.flows.login.style\" setting. Possible values are \"unified\" and \"identifier_first\". */ 'kratos_selfservice_flows_login_style'?: string; /** * Configures the Ory Kratos Login UI URL This governs the \"selfservice.flows.login.ui_url\" setting. */ 'kratos_selfservice_flows_login_ui_url'?: string; /** * Configures the Ory Kratos Logout Default Return URL This governs the \"selfservice.flows.logout.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_logout_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Recovery Default Return URL This governs the \"selfservice.flows.recovery.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_recovery_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Recovery Enabled Setting This governs the \"selfservice.flows.recovery.enabled\" setting. */ 'kratos_selfservice_flows_recovery_enabled'?: boolean; /** * Configures the Ory Kratos Recovery Lifespan This governs the \"selfservice.flows.recovery.lifespan\" setting. */ 'kratos_selfservice_flows_recovery_lifespan'?: string; /** * Configures whether to notify unknown recipients of a Ory Kratos recovery flow This governs the \"selfservice.flows.recovery.notify_unknown_recipients\" setting. */ 'kratos_selfservice_flows_recovery_notify_unknown_recipients'?: boolean; /** * Configures the Ory Kratos Recovery UI URL This governs the \"selfservice.flows.recovery.ui_url\" setting. */ 'kratos_selfservice_flows_recovery_ui_url'?: string; /** * Configures the Ory Kratos Recovery strategy to use (\"link\" or \"code\") This governs the \"selfservice.flows.recovery.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode */ 'kratos_selfservice_flows_recovery_use'?: NormalizedProjectRevisionKratosSelfserviceFlowsRecoveryUseEnum; /** * Configures the Ory Kratos Registration After Code Default Return URL This governs the \"selfservice.flows.registration.after.code.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_code_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration Default Return URL This governs the \"selfservice.flows.registration.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After OIDC Default Return URL This governs the \"selfservice.flows.registration.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Passkey Default Return URL This governs the \"selfservice.flows.registration.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Password Default Return URL This governs the \"selfservice.flows.registration.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Registration After Webauthn Default Return URL This governs the \"selfservice.flows.registration.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url'?: string; /** * Disable two-step registration Two-step registration is a significantly improved sign up flow and recommended when using more than one sign up methods. To revert to one-step registration, set this to `true`. This governs the \"selfservice.flows.registration.enable_legacy_one_step\" setting. */ 'kratos_selfservice_flows_registration_enable_legacy_one_step'?: boolean; /** * Configures the Whether Ory Kratos Registration is Enabled This governs the \"selfservice.flows.registration.enabled\" setting.0 */ 'kratos_selfservice_flows_registration_enabled'?: boolean; /** * Configures the Ory Kratos Registration Lifespan This governs the \"selfservice.flows.registration.lifespan\" setting. */ 'kratos_selfservice_flows_registration_lifespan'?: string; /** * Configures the Ory Kratos Registration Login Hints Shows helpful information when a user tries to sign up with a duplicate account. This governs the \"selfservice.flows.registration.login_hints\" setting. */ 'kratos_selfservice_flows_registration_login_hints'?: boolean; /** * Configures the Ory Kratos Registration UI URL This governs the \"selfservice.flows.registration.ui_url\" setting. */ 'kratos_selfservice_flows_registration_ui_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL This governs the \"selfservice.flows.settings.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets This governs the \"selfservice.flows.settings.after.lookup_secret.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In This governs the \"selfservice.flows.settings.after.oidc.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_oidc_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Passkey This governs the \"selfservice.flows.settings.after.passkey.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_passkey_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Passwords This governs the \"selfservice.flows.settings.after.password.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_password_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating Profiles This governs the \"selfservice.flows.settings.after.profile.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_profile_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating TOTP This governs the \"selfservice.flows.settings.after.totp.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_totp_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn This governs the \"selfservice.flows.settings.after.webauthn.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url'?: string; /** * Configures the Ory Kratos Settings Lifespan This governs the \"selfservice.flows.settings.lifespan\" setting. */ 'kratos_selfservice_flows_settings_lifespan'?: string; /** * Configures the Ory Kratos Settings Privileged Session Max Age This governs the \"selfservice.flows.settings.privileged_session_max_age\" setting. */ 'kratos_selfservice_flows_settings_privileged_session_max_age'?: string; /** * Configures the Ory Kratos Settings Required AAL This governs the \"selfservice.flows.settings.required_aal\" setting. */ 'kratos_selfservice_flows_settings_required_aal'?: string; /** * Configures the Ory Kratos Settings UI URL This governs the \"selfservice.flows.settings.ui_url\" setting. */ 'kratos_selfservice_flows_settings_ui_url'?: string; /** * Configures the Ory Kratos Verification Default Return URL This governs the \"selfservice.flows.verification.after.default_browser_return_url\" setting. */ 'kratos_selfservice_flows_verification_after_default_browser_return_url'?: string; /** * Configures the Ory Kratos Verification Enabled Setting This governs the \"selfservice.flows.verification.enabled\" setting. */ 'kratos_selfservice_flows_verification_enabled'?: boolean; /** * Configures the Ory Kratos Verification Lifespan This governs the \"selfservice.flows.verification.lifespan\" setting. */ 'kratos_selfservice_flows_verification_lifespan'?: string; /** * Configures whether to notify unknown recipients of a Ory Kratos verification flow This governs the \"selfservice.flows.verification.notify_unknown_recipients\" setting. */ 'kratos_selfservice_flows_verification_notify_unknown_recipients'?: boolean; /** * Configures the Ory Kratos Verification UI URL This governs the \"selfservice.flows.verification.ui_url\" setting. */ 'kratos_selfservice_flows_verification_ui_url'?: string; /** * Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode */ 'kratos_selfservice_flows_verification_use'?: NormalizedProjectRevisionKratosSelfserviceFlowsVerificationUseEnum; /** * Configures the CAPTCHA allowed domains list This governs the \"selfservice.methods.captcha.config.allowed_domains\" setting. */ 'kratos_selfservice_methods_captcha_config_allowed_domains'?: Array; /** * Configures whether to use BYO or managed widget Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.byo\" setting. */ 'kratos_selfservice_methods_captcha_config_byo'?: boolean; /** * Configures the Cloudflare Turnstile site secret for Ory BYO CAPTCHA protection The site secret is private and will be never be shared with the client. This key is write only and the value will not be returned in response to a read request. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.secret\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_byo_secret'?: string; /** * Configures the Cloudflare Turnstile site key for Ory BYO CAPTCHA protection The site key is public and will be shared with the client. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.sitekey\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_byo_sitekey'?: string; /** * Configures the Cloudflare Turnstile site secret for managed CAPTCHA protection The site secret is private and will be never be shared with the client. This key is write only and the value will not be returned in response to a read request. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.secret\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_secret'?: string; /** * Configures the Cloudflare Turnstile site key for managed CAPTCHA protection The site key is public and will be shared with the client. Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.cf_turnstile.sitekey\" setting. */ 'kratos_selfservice_methods_captcha_config_cf_turnstile_sitekey'?: string; /** * Configures legacy CAPTCHA node injection behavior Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.config.legacy_inject_node\" setting. */ 'kratos_selfservice_methods_captcha_config_legacy_inject_node'?: boolean; /** * Configures the Ory Kratos Self-Service Methods\' Captcha Enabled Setting Reach out to your account manager to enable this feature. This governs the \"selfservice.methods.captcha.enabled\" setting. */ 'kratos_selfservice_methods_captcha_enabled'?: boolean; /** * Configures the Ory Kratos Code Method\'s lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. */ 'kratos_selfservice_methods_code_config_lifespan'?: string; /** * Configures the maximum number of attempts to submit a one-time code in kratos. This governs the \"selfservice.methods.code.max_submissions\" setting. */ 'kratos_selfservice_methods_code_config_max_submissions'?: number; /** * Enables a fallback method required in certain legacy use cases. This governs the \"selfservice.methods.code.config.missing_credential_fallback_enabled\" setting. */ 'kratos_selfservice_methods_code_config_missing_credential_fallback_enabled'?: boolean; /** * Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. */ 'kratos_selfservice_methods_code_enabled'?: boolean; /** * Configures whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. */ 'kratos_selfservice_methods_code_mfa_enabled'?: boolean; /** * Configures whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. */ 'kratos_selfservice_methods_code_passwordless_enabled'?: boolean; /** * This setting allows the code method to always login a user with code if they have registered with another authentication method such as password or social sign in. This governs the \"selfservice.methods.code.passwordless_login_fallback_enabled\" setting. */ 'kratos_selfservice_methods_code_passwordless_login_fallback_enabled'?: boolean; /** * Configures the allow-list of Android app signing-certificate digests that a device key may be bound to. This governs the \"selfservice.methods.deviceauthn.config.android_app_ids\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_android_app_ids'?: Array; /** * Configures whether device authentication may be used as the sole first factor. When enabled, a confirmed device key with PIN or platform user verification can complete an AAL2 login in a single submission, without a password or code. Defaults to false, which keeps device keys usable only as a second factor (step-up). This governs the \"selfservice.methods.deviceauthn.config.first_factor\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_first_factor'?: boolean; /** * Configures whether Ory Kratos Device authentication accepts relaxed attestations for testing Only allowed on development projects and forced off otherwise. Keys enrolled under relaxation are short-lived and refused once this is turned off. This governs the \"selfservice.methods.deviceauthn.config.insecure_allow_relaxed_attestation\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_insecure_allow_relaxed_attestation'?: boolean; /** * Configures the allow-list of Apple App IDs that a device key may be bound to. This governs the \"selfservice.methods.deviceauthn.config.ios_app_ids\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_ios_app_ids'?: Array; /** * Configures whether an iOS biometric device key may be used as the sole first factor. Apple App Attest cannot prove biometric gating, so iOS keys with \"platform\" user verification count as a first factor only with this explicit opt-in. Android keys are unaffected, as their user verification is attestation-verified. Defaults to false. This governs the \"selfservice.methods.deviceauthn.config.ios_biometric_first_factor\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_ios_biometric_first_factor'?: boolean; /** * Configures the number of consecutive wrong-PIN attempts before a device key is locked. Defaults to 5; must be between 1 and 10. Once locked, the key\'s pin_secret is invalidated and the key can no longer be used to log in until the user rotates its secret through the fallback login. This governs the \"selfservice.methods.deviceauthn.config.pin_max_attempts\" setting. */ 'kratos_selfservice_methods_deviceauthn_config_pin_max_attempts'?: number; /** * Configures whether Ory Kratos Device authentication is enabled This governs the \"selfservice.methods.deviceauthn.enabled\" setting. */ 'kratos_selfservice_methods_deviceauthn_enabled'?: boolean; /** * Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. */ 'kratos_selfservice_methods_link_config_base_url'?: string; /** * Configures the Ory Kratos Link Method\'s lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. */ 'kratos_selfservice_methods_link_config_lifespan'?: string; /** * Configures whether Ory Kratos Link Method is enabled This governs the \"selfservice.methods.link.enabled\" setting. */ 'kratos_selfservice_methods_link_enabled'?: boolean; /** * Configures whether Ory Kratos TOTP Lookup Secret is enabled This governs the \"selfservice.methods.lookup_secret.enabled\" setting. */ 'kratos_selfservice_methods_lookup_secret_enabled'?: boolean; /** * Configures the Ory Kratos Third Party / OpenID Connect base redirect URI This governs the \"selfservice.methods.oidc.config.base_redirect_uri\" setting. */ 'kratos_selfservice_methods_oidc_config_base_redirect_uri'?: string; 'kratos_selfservice_methods_oidc_config_providers'?: Array; /** * Configures whether Ory Kratos allows auto-linking of OIDC credentials without a subject This governs the \"selfservice.methods.oidc.enable_auto_link_policy\" setting. */ 'kratos_selfservice_methods_oidc_enable_auto_link_policy'?: boolean; /** * Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled This governs the \"selfservice.methods.oidc.enabled\" setting. */ 'kratos_selfservice_methods_oidc_enabled'?: boolean; /** * Configures the Ory Kratos Passkey RP Display Name This governs the \"selfservice.methods.passkey.config.rp.display_name\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_display_name'?: string; /** * Configures the Ory Kratos Passkey RP ID This governs the \"selfservice.methods.passkey.config.rp.id\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_id'?: string; /** * Configures the Ory Kratos Passkey RP Origins This governs the \"selfservice.methods.passkey.config.rp.origins\" setting. */ 'kratos_selfservice_methods_passkey_config_rp_origins'?: Array; /** * Configures whether Ory Kratos Passkey authentication is enabled This governs the \"selfservice.methods.passkey.enabled\" setting. */ 'kratos_selfservice_methods_passkey_enabled'?: boolean; /** * Configures whether Ory Kratos Password HIBP Checks is enabled This governs the \"selfservice.methods.password.config.haveibeenpwned_enabled\" setting. */ 'kratos_selfservice_methods_password_config_haveibeenpwned_enabled'?: boolean; /** * Configures whether Ory Kratos Password should disable the similarity policy. This governs the \"selfservice.methods.password.config.identifier_similarity_check_enabled\" setting. */ 'kratos_selfservice_methods_password_config_identifier_similarity_check_enabled'?: boolean; /** * Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors This governs the \"selfservice.methods.password.config.ignore_network_errors\" setting. */ 'kratos_selfservice_methods_password_config_ignore_network_errors'?: boolean; /** * Configures Ory Kratos Password Max Breaches Detection This governs the \"selfservice.methods.password.config.max_breaches\" setting. */ 'kratos_selfservice_methods_password_config_max_breaches'?: number; /** * Configures the minimum length of passwords. This governs the \"selfservice.methods.password.config.min_password_length\" setting. */ 'kratos_selfservice_methods_password_config_min_password_length'?: number; /** * Configures whether Ory Kratos Password Method is enabled This governs the \"selfservice.methods.password.enabled\" setting. */ 'kratos_selfservice_methods_password_enabled'?: boolean; /** * Configures whether Ory Kratos Profile Method is enabled This governs the \"selfservice.methods.profile.enabled\" setting. */ 'kratos_selfservice_methods_profile_enabled'?: boolean; 'kratos_selfservice_methods_saml_config_providers'?: Array; /** * Configures whether Ory Kratos SAML Login is enabled This governs the \"selfservice.methods.saml.enabled\" setting. */ 'kratos_selfservice_methods_saml_enabled'?: boolean; /** * Configures Ory Kratos TOTP Issuer This governs the \"selfservice.methods.totp.config.issuer\" setting. */ 'kratos_selfservice_methods_totp_config_issuer'?: string; /** * Configures whether Ory Kratos TOTP Method is enabled This governs the \"selfservice.methods.totp.enabled\" setting. */ 'kratos_selfservice_methods_totp_enabled'?: boolean; /** * Configures whether Ory Kratos Webauthn is used for passwordless flows This governs the \"selfservice.methods.webauthn.config.passwordless\" setting. */ 'kratos_selfservice_methods_webauthn_config_passwordless'?: boolean; /** * Configures the Ory Kratos Webauthn RP Display Name This governs the \"selfservice.methods.webauthn.config.rp.display_name\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_display_name'?: string; /** * Configures the Ory Kratos Webauthn RP Icon This governs the \"selfservice.methods.webauthn.config.rp.icon\" setting. Deprecated: This value will be ignored due to security considerations. */ 'kratos_selfservice_methods_webauthn_config_rp_icon'?: string; /** * Configures the Ory Kratos Webauthn RP ID This governs the \"selfservice.methods.webauthn.config.rp.id\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_id'?: string; /** * Configures the Ory Kratos Webauthn RP Origins This governs the \"selfservice.methods.webauthn.config.rp.origins\" setting. */ 'kratos_selfservice_methods_webauthn_config_rp_origins'?: Array; /** * Configures whether Ory Kratos Webauthn is enabled This governs the \"selfservice.methods.webauthn.enabled\" setting. */ 'kratos_selfservice_methods_webauthn_enabled'?: boolean; /** * Configures the Ory Kratos Session Cookie Persistent Attribute This governs the \"session.cookie.persistent\" setting. */ 'kratos_session_cookie_persistent'?: boolean; /** * Configures the Ory Kratos Session Cookie SameSite Attribute This governs the \"session.cookie.same_site\" setting. */ 'kratos_session_cookie_same_site'?: string; /** * Configures the Ory Kratos Session Lifespan This governs the \"session.lifespan\" setting. */ 'kratos_session_lifespan'?: string; /** * Configures the Ory Kratos Session Whoami AAL requirement This governs the \"session.whoami.required_aal\" setting. */ 'kratos_session_whoami_required_aal'?: string; 'kratos_session_whoami_tokenizer_templates'?: Array; /** * The project\'s name. */ 'name': string; 'organizations'?: Array; /** * The Revision\'s Project ID */ 'project_id'?: string; 'project_revision_hooks'?: Array; 'scim_clients'?: Array; /** * Configures the CORS Allowed Origins on admin APIs This governs the \"serve.admin.cors.allowed_origins\" setting. */ 'serve_admin_cors_allowed_origins'?: Array; /** * Enable CORS headers on all admin APIs This governs the \"serve.admin.cors.enabled\" setting. */ 'serve_admin_cors_enabled'?: boolean; /** * Configures the CORS Allowed Origins on public APIs This governs the \"serve.public.cors.allowed_origins\" setting. */ 'serve_public_cors_allowed_origins'?: Array; /** * Enable CORS headers on all public APIs This governs the \"serve.public.cors.enabled\" setting. */ 'serve_public_cors_enabled'?: boolean; /** * Whether the project should employ strict security measures. Setting this to true is recommended for going into production. */ 'strict_security'?: boolean; /** * Talos cache enabled. When true, API key verification results are cached. Revoked keys may be accepted until the cached entry expires. When false, every verification reads the database and revocations take effect immediately. */ 'talos_cache_enabled'?: boolean; /** * Talos cache TTL controls how long API key verification results are cached. */ 'talos_cache_ttl'?: string; /** * Talos API keys default TTL. */ 'talos_credentials_api_keys_default_ttl'?: string; /** * Talos API keys max TTL. */ 'talos_credentials_api_keys_max_ttl'?: string; /** * Talos API keys prefix (current). */ 'talos_credentials_api_keys_prefix_current'?: string; /** * Talos API keys public prefix (current). */ 'talos_credentials_api_keys_prefix_public_current'?: string; /** * Talos API keys public prefix (retired). Previously active public API key prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_api_keys_prefix_public_retired'?: Array; /** * Talos API keys prefix (retired). Previously active API key prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_api_keys_prefix_retired'?: Array; /** * Talos derived tokens default TTL (applies to both JWT and macaroon tokens). */ 'talos_credentials_derived_tokens_default_ttl'?: string; /** * Talos derived tokens JWT signing key ID (kid). */ 'talos_credentials_derived_tokens_jwt_signing_key_id'?: string; /** * Talos derived tokens JWT signing key URLs. */ 'talos_credentials_derived_tokens_jwt_signing_keys_urls'?: Array; /** * Talos derived tokens macaroon prefix (current). */ 'talos_credentials_derived_tokens_macaroon_prefix_current'?: string; /** * Talos derived tokens macaroon prefix (retired). Previously active macaroon prefixes kept for verification of outstanding tokens. The first element of this list was the most recently retired active prefix. */ 'talos_credentials_derived_tokens_macaroon_prefix_retired'?: Array; /** * Talos credentials issuer URL. */ 'talos_credentials_issuer'?: string; /** * Talos credentials retired issuer URLs (deprecated). Deprecated: values-only view of talos_credentials_issuer_retired_entries, kept so already-released SDKs that decode this field as an array of strings keep working. It is output only: reads are derived from the entries field and writes to it are ignored. Use talos_credentials_issuer_retired_entries instead. */ 'talos_credentials_issuer_retired'?: Array; /** * TalosRetiredValues is the list of retired values — retired HMAC secrets or retired issuer URLs — for a Talos project. A retired value stays valid for verification until its optional expiry passes, so operators can bound how long an old credential keeps working after a rotation instead of keeping it forever. Legacy bare-string entries are accepted on write and normalized to the object form. */ 'talos_credentials_issuer_retired_entries'?: Array; /** * Talos rate limit enabled. When true, server-side rate limiting is enforced for API key verifications. */ 'talos_rate_limit_enabled'?: boolean; /** * TalosSecretsHMACCurrent stores the current HMAC symmetric key as a plain secret string. */ 'talos_secrets_hmac_current'?: string; /** * TalosSecretsHMACRetired stores previously active HMAC symmetric keys as an array of strings (deprecated). Deprecated: values-only view of talos_secrets_hmac_retired_entries, kept so already-released SDKs that decode this field as an array of strings keep working. It is output only and writes to it are ignored. HMAC secrets are server-managed and redacted on output, so this field is always empty on the wire. Use talos_secrets_hmac_retired_entries instead. */ 'talos_secrets_hmac_retired'?: Array; /** * TalosRetiredValues is the list of retired values — retired HMAC secrets or retired issuer URLs — for a Talos project. A retired value stays valid for verification until its optional expiry passes, so operators can bound how long an old credential keeps working after a rotation instead of keeping it forever. Legacy bare-string entries are accepted on write and normalized to the object form. */ 'talos_secrets_hmac_retired_entries'?: Array; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; } export declare const NormalizedProjectRevisionHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum: { readonly High: "high"; readonly Medium: "medium"; readonly Low: "low"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum = typeof NormalizedProjectRevisionHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum[keyof typeof NormalizedProjectRevisionHydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum]; export declare const NormalizedProjectRevisionHydraStrategiesAccessTokenEnum: { readonly Opaque: "opaque"; readonly Jwt: "jwt"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionHydraStrategiesAccessTokenEnum = typeof NormalizedProjectRevisionHydraStrategiesAccessTokenEnum[keyof typeof NormalizedProjectRevisionHydraStrategiesAccessTokenEnum]; export declare const NormalizedProjectRevisionHydraStrategiesJwtScopeClaimEnum: { readonly List: "list"; readonly String: "string"; readonly Both: "both"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionHydraStrategiesJwtScopeClaimEnum = typeof NormalizedProjectRevisionHydraStrategiesJwtScopeClaimEnum[keyof typeof NormalizedProjectRevisionHydraStrategiesJwtScopeClaimEnum]; export declare const NormalizedProjectRevisionHydraStrategiesScopeEnum: { readonly Exact: "exact"; readonly Wildcard: "wildcard"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionHydraStrategiesScopeEnum = typeof NormalizedProjectRevisionHydraStrategiesScopeEnum[keyof typeof NormalizedProjectRevisionHydraStrategiesScopeEnum]; export declare const NormalizedProjectRevisionKratosSelfserviceFlowsRecoveryUseEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionKratosSelfserviceFlowsRecoveryUseEnum = typeof NormalizedProjectRevisionKratosSelfserviceFlowsRecoveryUseEnum[keyof typeof NormalizedProjectRevisionKratosSelfserviceFlowsRecoveryUseEnum]; export declare const NormalizedProjectRevisionKratosSelfserviceFlowsVerificationUseEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionKratosSelfserviceFlowsVerificationUseEnum = typeof NormalizedProjectRevisionKratosSelfserviceFlowsVerificationUseEnum[keyof typeof NormalizedProjectRevisionKratosSelfserviceFlowsVerificationUseEnum]; export interface NormalizedProjectRevisionCourierChannel { /** * The Channel\'s public ID */ 'channel_id': string; /** * The creation date */ 'created_at'?: string; /** * API key location Can either be \"header\" or \"query\" */ 'request_config_auth_config_api_key_in'?: string; /** * API key name Only used if the auth type is api_key */ 'request_config_auth_config_api_key_name'?: string; /** * API key value Only used if the auth type is api_key */ 'request_config_auth_config_api_key_value'?: string; /** * Basic Auth Password Only used if the auth type is basic_auth */ 'request_config_auth_config_basic_auth_password'?: string; /** * Basic Auth Username Only used if the auth type is basic_auth */ 'request_config_auth_config_basic_auth_user'?: string; /** * HTTP Auth Method to use for the HTTP call Can either be basic_auth or api_key basic_auth CourierChannelAuthTypeBasicAuth api_key CourierChannelAuthTypeApiKey */ 'request_config_auth_type'?: NormalizedProjectRevisionCourierChannelRequestConfigAuthTypeEnum; /** * URI pointing to the JsonNet template used for HTTP body payload generation. */ 'request_config_body': string; /** * NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- */ 'request_config_headers'?: object | null; /** * The HTTP method to use (GET, POST, etc) for the HTTP call */ 'request_config_method': string; 'request_config_url'?: string; /** * Last upate time */ 'updated_at'?: string; } export declare const NormalizedProjectRevisionCourierChannelRequestConfigAuthTypeEnum: { readonly BasicAuth: "basic_auth"; readonly ApiKey: "api_key"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionCourierChannelRequestConfigAuthTypeEnum = typeof NormalizedProjectRevisionCourierChannelRequestConfigAuthTypeEnum[keyof typeof NormalizedProjectRevisionCourierChannelRequestConfigAuthTypeEnum]; export interface NormalizedProjectRevisionHook { /** * The Hooks Config Key */ 'config_key': string; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; /** * The Hook Type */ 'hook': string; /** * ID of the entry */ 'id'?: string; /** * The recipients to be notified in case of a change of the users verified email addresses. Possible values are: \"all\", \"all_verified\", \"removed\" (only notify about removed email addresses) */ 'notify_previous_addresses_config_recipients'?: string; /** * The Revision\'s ID this schema belongs to */ 'project_revision_id'?: string; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; /** * Whether to send the API Key in the HTTP Header or as a HTTP Cookie */ 'web_hook_config_auth_api_key_in'?: string; /** * The name of the api key */ 'web_hook_config_auth_api_key_name'?: string; /** * The value of the api key */ 'web_hook_config_auth_api_key_value'?: string; /** * The password to be sent in the HTTP Basic Auth Header */ 'web_hook_config_auth_basic_auth_password'?: string; /** * The username to be sent in the HTTP Basic Auth Header */ 'web_hook_config_auth_basic_auth_user'?: string; /** * HTTP Auth Method to use for the Web-Hook */ 'web_hook_config_auth_type'?: string; /** * URI pointing to the JsonNet template used for Web-Hook payload generation. Only used for those HTTP methods, which support HTTP body payloads. */ 'web_hook_config_body'?: string; /** * If enabled allows the web hook to interrupt / abort the self-service flow. It only applies to certain flows (registration/verification/login/settings) and requires a valid response format. */ 'web_hook_config_can_interrupt'?: boolean; /** * The HTTP method to use (GET, POST, etc) for the Web-Hook */ 'web_hook_config_method'?: string; /** * Whether to ignore the Web Hook response */ 'web_hook_config_response_ignore'?: boolean; /** * Whether to parse the Web Hook response */ 'web_hook_config_response_parse'?: boolean; /** * The URL the Web-Hook should call */ 'web_hook_config_url'?: string; } export interface NormalizedProjectRevisionIdentitySchema { /** * The Project\'s Revision Creation Date */ 'created_at'?: string; /** * The unique ID of this entry. */ 'id'?: string; 'identity_schema'?: ManagedIdentitySchema; 'identity_schema_id'?: string | null; /** * The imported (named) ID of the Identity Schema referenced in the Ory Kratos config. */ 'import_id'?: string; /** * The ImportURL can be used to import an Identity Schema from a bse64 encoded string. In the future, this key also support HTTPS and other sources! If you import an Ory Kratos configuration, this would be akin to the `identity.schemas.#.url` key. The configuration will always return the import URL when you fetch it from the API. */ 'import_url'?: string; /** * If true sets the default schema for identities Only one schema can ever be the default schema. If you try to add two schemas with default to true, the request will fail. */ 'is_default'?: boolean; /** * Use a preset instead of a custom identity schema. */ 'preset'?: string; /** * The Revision\'s ID this schema belongs to */ 'project_revision_id'?: string; 'selfservice_selectable'?: boolean; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; } export interface NormalizedProjectRevisionSAMLProvider { 'audience_override_base_url'?: string | null; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; 'id'?: string; /** * Label represents an optional label which can be used in the UI generation. */ 'label'?: string; /** * Mapper specifies the JSONNet code snippet which uses the OpenID Connect Provider\'s data (e.g. GitHub or Google profile information) to hydrate the identity\'s data. */ 'mapper_url'?: string; 'organization_id'?: string | null; /** * The Revision\'s ID this schema belongs to */ 'project_revision_id'?: string; /** * ID is the provider\'s ID */ 'provider_id'?: string; 'proxy_acs_url'?: string | null; 'proxy_saml_audience_override'?: string | null; /** * RawIDPMetadataXML is the raw XML metadata of the IDP. */ 'raw_idp_metadata_xml'?: string; /** * State indicates the state of the provider Only providers with state `enabled` will be used for authentication enabled ThirdPartyProviderStateEnabled disabled ThirdPartyProviderStateDisabled */ 'state'?: NormalizedProjectRevisionSAMLProviderStateEnum; /** * UpdateIdentityOnLogin controls whether the identity is updated from SAML claims on each login. Possible values are \"never\" (default) and \"automatic\". never UpdateIdentityOnLoginNever UpdateIdentityOnLoginNever disables identity updates on login (default). automatic UpdateIdentityOnLoginAutomatic UpdateIdentityOnLoginAutomatic re-runs the Jsonnet claims mapper on every login and updates the identity\'s traits and metadata automatically. */ 'update_identity_on_login'?: NormalizedProjectRevisionSAMLProviderUpdateIdentityOnLoginEnum; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; /** * Valid to dates of all signing certs associated with the SAML connection */ 'valid_to'?: Array; } export declare const NormalizedProjectRevisionSAMLProviderStateEnum: { readonly Enabled: "enabled"; readonly Disabled: "disabled"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionSAMLProviderStateEnum = typeof NormalizedProjectRevisionSAMLProviderStateEnum[keyof typeof NormalizedProjectRevisionSAMLProviderStateEnum]; export declare const NormalizedProjectRevisionSAMLProviderUpdateIdentityOnLoginEnum: { readonly Never: "never"; readonly Automatic: "automatic"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionSAMLProviderUpdateIdentityOnLoginEnum = typeof NormalizedProjectRevisionSAMLProviderUpdateIdentityOnLoginEnum[keyof typeof NormalizedProjectRevisionSAMLProviderUpdateIdentityOnLoginEnum]; /** * SCIMClient represents a SCIM client configuration to be used by an external identity provider. */ export interface NormalizedProjectRevisionScimClient { /** * The secret that the client uses in the authorization header to authenticate itself. */ 'authorization_header_secret': string; /** * The unique ID of the SCIM server. */ 'client_id': string; /** * The SCIM client\'s creation time */ 'created_at'?: string; 'id'?: string; /** * The SCIM server\'s label */ 'label': string; /** * Mapper specifies the JSONNet code snippet which uses the SCIM provider\'s data to hydrate the identity\'s data. */ 'mapper_url': string; /** * OrganizationID is the organization ID for this SCIM server. */ 'organization_id': string; 'proxy_scim_server_url'?: string | null; /** * State indicates the state of the SCIM server Only servers with state `enabled` will be available for SCIM provisioning. enabled ThirdPartyProviderStateEnabled disabled ThirdPartyProviderStateDisabled */ 'state'?: NormalizedProjectRevisionScimClientStateEnum; /** * Last time the SCIM client was updated */ 'updated_at'?: string; } export declare const NormalizedProjectRevisionScimClientStateEnum: { readonly Enabled: "enabled"; readonly Disabled: "disabled"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionScimClientStateEnum = typeof NormalizedProjectRevisionScimClientStateEnum[keyof typeof NormalizedProjectRevisionScimClientStateEnum]; export interface NormalizedProjectRevisionThirdPartyProvider { /** * AAL2ACRValues lists upstream OIDC `acr` claim values that should elevate the resulting Kratos session to AAL2. Empty means the upstream `acr` claim is ignored when deciding session AAL. */ 'aal2_acr_values'?: Array; /** * AAL2AMRValues lists upstream OIDC `amr` claim values that should elevate the resulting Kratos session to AAL2 when any of them appears in the upstream `amr` array. Empty means the upstream `amr` claim is ignored when deciding session AAL. */ 'aal2_amr_values'?: Array; /** * AccountLinkingMode controls how account conflicts are resolved for this provider. Possible values are `confirm_with_existing_credential` (default) and `automatic`. `automatic` silently links accounts when the provider verifies email ownership. Only supported for `apple` and `google` providers. automatic AccountLinkingModeAutomatic AccountLinkingModeAutomatic silently links accounts if the provider verifies email ownership. confirm_with_existing_credential AccountLinkingModeConfirmWithExistingCredential AccountLinkingModeConfirmWithExistingCredential requires the user to confirm the account linking by providing an existing credential. */ 'account_linking_mode'?: NormalizedProjectRevisionThirdPartyProviderAccountLinkingModeEnum; /** * AdditionalIDTokenAudiences is a list of additional audiences allowed in the ID Token. This is only relevant in OIDC flows that submit an IDToken instead of using the callback from the OIDC provider. */ 'additional_id_token_audiences'?: Array; 'apple_private_key'?: string | null; /** * Apple Private Key Identifier Sign In with Apple Private Key Identifier needed for generating a JWT token for client secret */ 'apple_private_key_id'?: string; /** * Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret */ 'apple_team_id'?: string; /** * AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. */ 'auth_url'?: string; /** * Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. */ 'azure_tenant'?: string; 'claims_source'?: string | null; /** * ClientID is the application\'s Client ID. */ 'client_id'?: string; 'client_secret'?: string | null; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; 'fedcm_config_url'?: string | null; 'id'?: string; /** * IssuerURL is the OpenID Connect Server URL. You can leave this empty if `provider` is not set to `generic`. If set, neither `auth_url` nor `token_url` are required. */ 'issuer_url'?: string; /** * Label represents an optional label which can be used in the UI generation. */ 'label'?: string; /** * Mapper specifies the JSONNet code snippet which uses the OpenID Connect Provider\'s data (e.g. GitHub or Google profile information) to hydrate the identity\'s data. */ 'mapper_url'?: string; 'net_id_token_origin_header'?: string | null; 'organization_id'?: string | null; 'pkce'?: NormalizedProjectRevisionThirdPartyProviderPkceEnum | null; /** * The Revision\'s ID this provider belongs to */ 'project_revision_id'?: string; /** * Provider is either \"generic\" for a generic OAuth 2.0 / OpenID Connect Provider or one of: generic google github gitlab microsoft discord slack facebook vk yandex apple */ 'provider'?: string; /** * ID is the provider\'s ID */ 'provider_id'?: string; /** * Proxy OIDC Redirect URL if overriding with a customer-controlled URL */ 'proxy_oidc_redirect_url'?: string; 'requested_claims'?: object; /** * Scope specifies optional requested permissions. */ 'scope'?: Array; /** * State indicates the state of the provider Only providers with state `enabled` will be used for authentication enabled ThirdPartyProviderStateEnabled disabled ThirdPartyProviderStateDisabled */ 'state'?: NormalizedProjectRevisionThirdPartyProviderStateEnum; 'subject_source'?: string | null; /** * TokenURL is the token url, typically something like: https://example.org/oauth2/token Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. */ 'token_url'?: string; /** * UpdateIdentityOnLogin controls whether the identity is updated from OIDC claims on each login. Possible values are \"never\" (default) and \"automatic\". never UpdateIdentityOnLoginNever UpdateIdentityOnLoginNever disables identity updates on login (default). automatic UpdateIdentityOnLoginAutomatic UpdateIdentityOnLoginAutomatic re-runs the Jsonnet claims mapper on every login and updates the identity\'s traits and metadata automatically. */ 'update_identity_on_login'?: NormalizedProjectRevisionThirdPartyProviderUpdateIdentityOnLoginEnum; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; } export declare const NormalizedProjectRevisionThirdPartyProviderAccountLinkingModeEnum: { readonly Automatic: "automatic"; readonly ConfirmWithExistingCredential: "confirm_with_existing_credential"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionThirdPartyProviderAccountLinkingModeEnum = typeof NormalizedProjectRevisionThirdPartyProviderAccountLinkingModeEnum[keyof typeof NormalizedProjectRevisionThirdPartyProviderAccountLinkingModeEnum]; export declare const NormalizedProjectRevisionThirdPartyProviderPkceEnum: { readonly Auto: "auto"; readonly Never: "never"; readonly Force: "force"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionThirdPartyProviderPkceEnum = typeof NormalizedProjectRevisionThirdPartyProviderPkceEnum[keyof typeof NormalizedProjectRevisionThirdPartyProviderPkceEnum]; export declare const NormalizedProjectRevisionThirdPartyProviderStateEnum: { readonly Enabled: "enabled"; readonly Disabled: "disabled"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionThirdPartyProviderStateEnum = typeof NormalizedProjectRevisionThirdPartyProviderStateEnum[keyof typeof NormalizedProjectRevisionThirdPartyProviderStateEnum]; export declare const NormalizedProjectRevisionThirdPartyProviderUpdateIdentityOnLoginEnum: { readonly Never: "never"; readonly Automatic: "automatic"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionThirdPartyProviderUpdateIdentityOnLoginEnum = typeof NormalizedProjectRevisionThirdPartyProviderUpdateIdentityOnLoginEnum[keyof typeof NormalizedProjectRevisionThirdPartyProviderUpdateIdentityOnLoginEnum]; export interface NormalizedProjectRevisionTokenizerTemplate { /** * Claims mapper URL */ 'claims_mapper_url'?: string; /** * The Project\'s Revision Creation Date */ 'created_at'?: string; /** * The revision ID. */ 'id'?: string; /** * JSON Web Key URL */ 'jwks_url'?: string; /** * The unique key of the template */ 'key'?: string; /** * The Revision\'s ID this schema belongs to */ 'project_revision_id'?: string; /** * Subject source for the tokenizer Can be either id or external_id or empty */ 'subject_source'?: NormalizedProjectRevisionTokenizerTemplateSubjectSourceEnum; /** * Token time to live */ 'ttl'?: string; /** * Last Time Project\'s Revision was Updated */ 'updated_at'?: string; } export declare const NormalizedProjectRevisionTokenizerTemplateSubjectSourceEnum: { readonly Id: "id"; readonly ExternalId: "external_id"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NormalizedProjectRevisionTokenizerTemplateSubjectSourceEnum = typeof NormalizedProjectRevisionTokenizerTemplateSubjectSourceEnum[keyof typeof NormalizedProjectRevisionTokenizerTemplateSubjectSourceEnum]; /** * `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. */ export declare const NullValue: { readonly NullValue: "NULL_VALUE"; readonly UnknownDefaultOpenApi: "11184809"; }; export type NullValue = typeof NullValue[keyof typeof NullValue]; /** * OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. */ export interface OAuth2Client { /** * OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.com/docs/oauth2-oidc/jwt-access-token Setting the strategy here overrides the global setting in `strategies.access_token`. */ 'access_token_strategy'?: string; /** * OAuth 2.0 Client Allowed CORS Origins One or more URLs (scheme://host[:port]) which are allowed to make CORS requests to the /oauth/token endpoint. If this array is empty, the server\'s CORS origin configuration (`CORS_ALLOWED_ORIGINS`) will be used instead. If this array is set, the allowed origins are appended to the server\'s CORS origin configuration. Be aware that environment variable `CORS_ENABLED` MUST be set to `true` for this to work. */ 'allowed_cors_origins'?: Array; /** * OAuth 2.0 Client Audience An allow-list defining the audiences this client is allowed to request tokens for. An audience limits the applicability of an OAuth 2.0 Access Token to, for example, certain API endpoints. The value is a list of URLs. URLs MUST NOT contain whitespaces. */ 'audience'?: Array; 'authorization_code_grant_access_token_lifespan'?: string | null; 'authorization_code_grant_id_token_lifespan'?: string | null; 'authorization_code_grant_refresh_token_lifespan'?: string | null; /** * OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. */ 'backchannel_logout_session_required'?: boolean; /** * OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. */ 'backchannel_logout_uri'?: string; 'client_credentials_grant_access_token_lifespan'?: string | null; /** * OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. */ 'client_id'?: string; /** * OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. */ 'client_name'?: string; /** * OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. */ 'client_secret'?: string; /** * OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. */ 'client_secret_expires_at'?: number; /** * OAuth 2.0 Client URI ClientURI is a URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. */ 'client_uri'?: string; /** * OAuth 2.0 Client Contact An array of strings representing ways to contact people responsible for this client, typically email addresses. */ 'contacts'?: Array; /** * OAuth 2.0 Client Creation Date CreatedAt returns the timestamp of the client\'s creation. */ 'created_at'?: string; 'device_authorization_grant_access_token_lifespan'?: string | null; 'device_authorization_grant_id_token_lifespan'?: string | null; 'device_authorization_grant_refresh_token_lifespan'?: string | null; /** * OpenID Connect Front-Channel Logout Session Required Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. */ 'frontchannel_logout_session_required'?: boolean; /** * OpenID Connect Front-Channel Logout URI RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. */ 'frontchannel_logout_uri'?: string; /** * OAuth 2.0 Client Grant Types An array of OAuth 2.0 grant types the client is allowed to use. Can be one of: Client Credentials Grant: `client_credentials` Authorization Code Grant: `authorization_code` OpenID Connect Implicit Grant (deprecated!): `implicit` Refresh Token Grant: `refresh_token` OAuth 2.0 Token Exchange: `urn:ietf:params:oauth:grant-type:jwt-bearer` OAuth 2.0 Device Code Grant: `urn:ietf:params:oauth:grant-type:device_code` */ 'grant_types'?: Array; 'implicit_grant_access_token_lifespan'?: string | null; 'implicit_grant_id_token_lifespan'?: string | null; 'jwks'?: JsonWebKeySet; /** * OAuth 2.0 Client JSON Web Key Set URL URL for the Client\'s JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client\'s encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key\'s intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. */ 'jwks_uri'?: string; 'jwt_bearer_grant_access_token_lifespan'?: string | null; /** * OAuth 2.0 Client Logo URI A URL string referencing the client\'s logo. */ 'logo_uri'?: string; 'metadata'?: object; /** * OAuth 2.0 Client Owner Owner is a string identifying the owner of the OAuth 2.0 Client. */ 'owner'?: string; /** * OAuth 2.0 Client Policy URI PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data. */ 'policy_uri'?: string; /** * Allowed Post-Redirect Logout URIs Array of URLs supplied by the RP to which it MAY request that the End-User\'s User Agent be redirected using the post_logout_redirect_uri parameter after a logout has been performed. */ 'post_logout_redirect_uris'?: Array; /** * OAuth 2.0 Client Redirect URIs RedirectURIs is an array of allowed redirect urls for the client. */ 'redirect_uris'?: Array; 'refresh_token_grant_access_token_lifespan'?: string | null; 'refresh_token_grant_id_token_lifespan'?: string | null; 'refresh_token_grant_refresh_token_lifespan'?: string | null; /** * OpenID Connect Dynamic Client Registration Access Token RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. It is sent when creating a client using Dynamic Client Registration. */ 'registration_access_token'?: string; /** * OpenID Connect Dynamic Client Registration URL RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. */ 'registration_client_uri'?: string; /** * OpenID Connect Request Object Signing Algorithm JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm. */ 'request_object_signing_alg'?: string; /** * OpenID Connect Request URIs Array of request_uri values that are pre-registered by the RP for use at the OP. Servers MAY cache the contents of the files referenced by these URIs and not retrieve them at the time they are used in a request. OPs can require that request_uri values used be pre-registered with the require_request_uri_registration discovery parameter. */ 'request_uris'?: Array; /** * OAuth 2.0 Client Response Types An array of the OAuth 2.0 response type strings that the client can use at the authorization endpoint. Possible values are: `code` for Authorization Code Grant. `token` or `id_token` or `token id_token` for OpenID Connect Implicit Grant (not recommended). `code token` or `code id_token` or `code token id_token` for OpenID Connect Hybrid Flow (not recommended). */ 'response_types'?: Array; /** * OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. */ 'scope'?: string; /** * OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. */ 'sector_identifier_uri'?: string; /** * SkipConsent skips the consent screen for this client. This field can only be set from the admin API. */ 'skip_consent'?: boolean; /** * SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. */ 'skip_logout_consent'?: boolean; /** * OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. */ 'subject_type'?: string; /** * OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. */ 'token_endpoint_auth_method'?: string; /** * OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. */ 'token_endpoint_auth_signing_alg'?: string; /** * OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. */ 'tos_uri'?: string; /** * OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update. */ 'updated_at'?: string; /** * OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. */ 'userinfo_signed_response_alg'?: string; } /** * Lifespans of different token types issued for this OAuth 2.0 Client. */ export interface OAuth2ClientTokenLifespans { 'authorization_code_grant_access_token_lifespan'?: string | null; 'authorization_code_grant_id_token_lifespan'?: string | null; 'authorization_code_grant_refresh_token_lifespan'?: string | null; 'client_credentials_grant_access_token_lifespan'?: string | null; 'device_authorization_grant_access_token_lifespan'?: string | null; 'device_authorization_grant_id_token_lifespan'?: string | null; 'device_authorization_grant_refresh_token_lifespan'?: string | null; 'implicit_grant_access_token_lifespan'?: string | null; 'implicit_grant_id_token_lifespan'?: string | null; 'jwt_bearer_grant_access_token_lifespan'?: string | null; 'refresh_token_grant_access_token_lifespan'?: string | null; 'refresh_token_grant_id_token_lifespan'?: string | null; 'refresh_token_grant_refresh_token_lifespan'?: string | null; } export interface OAuth2ConsentRequest { /** * ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication. */ 'acr'?: string; /** * AMR is the Authentication Methods References value for this authentication session. You can use it to specify the method a user used to authenticate. For example, if the acr indicates a user used two factor authentication, the amr can express they used a software-secured key. */ 'amr'?: Array; /** * Challenge is used to retrieve/accept/deny the consent request. */ 'challenge': string; 'client'?: OAuth2Client; /** * ConsentRequestID is the ID of the consent request. */ 'consent_request_id'?: string; 'context'?: object; /** * LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app. */ 'login_challenge'?: string; /** * LoginSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It\'s value can generally be used to associate consecutive login requests by a certain user. */ 'login_session_id'?: string; 'oidc_context'?: OAuth2ConsentRequestOpenIDConnectContext; /** * RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. */ 'request_url'?: string; /** * RequestedAudience contains the access token audience as requested by the OAuth 2.0 Client. */ 'requested_access_token_audience'?: Array; /** * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. */ 'requested_scope'?: Array; /** * Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the consent request using the usual API call. */ 'skip'?: boolean; /** * Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. */ 'subject'?: string; } export interface OAuth2ConsentRequestOpenIDConnectContext { /** * ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. OpenID Connect defines it as follows: > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter. */ 'acr_values'?: Array; /** * Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. The defined values are: page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display. The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display. */ 'display'?: string; /** * IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User\'s current or past authenticated session with the Client. */ 'id_token_hint_claims'?: { [key: string]: any; }; /** * LoginHint hints about the login identifier the End-User might use to log in (if necessary). This hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier) and then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a phone number in the format specified for the phone_number Claim. The use of this parameter is optional. */ 'login_hint'?: string; /** * UILocales is the End-User\'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested locales are not supported by the OpenID Provider. */ 'ui_locales'?: Array; } /** * A completed OAuth 2.0 Consent Session. */ export interface OAuth2ConsentSession { 'consent_request'?: OAuth2ConsentRequest; /** * ConsentRequestID is the identifier of the consent request that initiated this consent session. */ 'consent_request_id'?: string; 'context'?: object; /** * Audience Granted GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. */ 'grant_access_token_audience'?: Array; /** * Scope Granted GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. */ 'grant_scope'?: Array; 'handled_at'?: string; /** * Remember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope. */ 'remember'?: boolean; /** * Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. */ 'remember_for'?: number; 'session'?: AcceptOAuth2ConsentRequestSession; } export interface OAuth2LoginRequest { /** * ID is the identifier of the login request. */ 'challenge': string; 'client': OAuth2Client; 'oidc_context'?: OAuth2ConsentRequestOpenIDConnectContext; /** * RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. */ 'request_url': string; /** * RequestedAudience contains the access token audience as requested by the OAuth 2.0 Client. */ 'requested_access_token_audience'?: Array; /** * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. */ 'requested_scope'?: Array; /** * SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It\'s value can generally be used to associate consecutive login requests by a certain user. */ 'session_id'?: string; /** * Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. */ 'skip': boolean; /** * Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. */ 'subject': string; } export interface OAuth2LogoutRequest { /** * Challenge is used to retrieve/accept/deny the logout request. */ 'challenge'?: string; 'client'?: OAuth2Client; 'expires_at'?: string; /** * RequestURL is the original Logout URL requested. */ 'request_url'?: string; 'requested_at'?: string; /** * RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client. */ 'rp_initiated'?: boolean; /** * SessionID is the login session ID that was requested to log out. */ 'sid'?: string; /** * Subject is the user for whom the logout was requested. */ 'subject'?: string; } /** * Contains a redirect URL used to complete a login, consent, or logout request. */ export interface OAuth2RedirectTo { /** * RedirectURL is the URL which you should redirect the user\'s browser to once the authentication process is completed. */ 'redirect_to': string; } /** * OAuth2 Token Exchange Result */ export interface OAuth2TokenExchange { /** * The access token issued by the authorization server. */ 'access_token'?: string; /** * The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. */ 'expires_in'?: number; /** * To retrieve a refresh token request the id_token scope. */ 'id_token'?: string; /** * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. */ 'refresh_token'?: string; /** * The scope of the access token */ 'scope'?: string; /** * The type of the token issued */ 'token_type'?: string; } /** * Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others. */ export interface OidcConfiguration { /** * OAuth 2.0 Authorization Endpoint URL */ 'authorization_endpoint': string; /** * OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP */ 'backchannel_logout_session_supported'?: boolean; /** * OpenID Connect Back-Channel Logout Supported Boolean value specifying whether the OP supports back-channel logout, with true indicating support. */ 'backchannel_logout_supported'?: boolean; /** * OpenID Connect Claims Parameter Parameter Supported Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. */ 'claims_parameter_supported'?: boolean; /** * OpenID Connect Supported Claims JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. */ 'claims_supported'?: Array; /** * OAuth 2.0 PKCE Supported Code Challenge Methods JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server. */ 'code_challenge_methods_supported'?: Array; /** * OpenID Connect Verifiable Credentials Endpoint Contains the URL of the Verifiable Credentials Endpoint. */ 'credentials_endpoint_draft_00'?: string; /** * OpenID Connect Verifiable Credentials Supported JSON array containing a list of the Verifiable Credentials supported by this authorization server. */ 'credentials_supported_draft_00'?: Array; /** * OAuth 2.0 Device Authorization Endpoint URL */ 'device_authorization_endpoint': string; /** * OpenID Connect End-Session Endpoint URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP. */ 'end_session_endpoint'?: string; /** * OpenID Connect Front-Channel Logout Session Required Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify the RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also included in ID Tokens issued by the OP. */ 'frontchannel_logout_session_supported'?: boolean; /** * OpenID Connect Front-Channel Logout Supported Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support. */ 'frontchannel_logout_supported'?: boolean; /** * OAuth 2.0 Supported Grant Types JSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports. */ 'grant_types_supported'?: Array; /** * OpenID Connect Default ID Token Signing Algorithms Algorithm used to sign OpenID Connect ID Tokens. */ 'id_token_signed_response_alg': Array; /** * OpenID Connect Supported ID Token Signing Algorithms JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. */ 'id_token_signing_alg_values_supported': Array; /** * OpenID Connect Issuer URL An URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier. If IssuerURL discovery is supported , this value MUST be identical to the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL. */ 'issuer': string; /** * OpenID Connect Well-Known JSON Web Keys URL URL of the OP\'s JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate signatures from the OP. The JWK Set MAY also contain the Server\'s encryption key(s), which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key\'s intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. */ 'jwks_uri': string; /** * OpenID Connect Dynamic Client Registration Endpoint URL */ 'registration_endpoint'?: string; /** * OpenID Connect Supported Request Object Signing Algorithms JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). */ 'request_object_signing_alg_values_supported'?: Array; /** * OpenID Connect Request Parameter Supported Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. */ 'request_parameter_supported'?: boolean; /** * OpenID Connect Request URI Parameter Supported Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. */ 'request_uri_parameter_supported'?: boolean; /** * OpenID Connect Requires Request URI Registration Boolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter. */ 'require_request_uri_registration'?: boolean; /** * OAuth 2.0 Supported Response Modes JSON array containing a list of the OAuth 2.0 response_mode values that this OP supports. */ 'response_modes_supported'?: Array; /** * OAuth 2.0 Supported Response Types JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values. */ 'response_types_supported': Array; /** * OAuth 2.0 Token Revocation URL URL of the authorization server\'s OAuth 2.0 revocation endpoint. */ 'revocation_endpoint'?: string; /** * OAuth 2.0 Supported Scope Values JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used */ 'scopes_supported'?: Array; /** * OpenID Connect Supported Subject Types JSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public. */ 'subject_types_supported': Array; /** * OAuth 2.0 Token Endpoint URL */ 'token_endpoint': string; /** * OAuth 2.0 Supported Client Authentication Methods JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 */ 'token_endpoint_auth_methods_supported'?: Array; /** * OpenID Connect Userinfo URL URL of the OP\'s UserInfo Endpoint. */ 'userinfo_endpoint'?: string; /** * OpenID Connect User Userinfo Signing Algorithm Algorithm used to sign OpenID Connect Userinfo Responses. */ 'userinfo_signed_response_alg': Array; /** * OpenID Connect Supported Userinfo Signing Algorithm JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. */ 'userinfo_signing_alg_values_supported'?: Array; } /** * OpenID Connect Userinfo */ export interface OidcUserInfo { /** * End-User\'s birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform\'s date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. */ 'birthdate'?: string; /** * End-User\'s preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7. */ 'email'?: string; /** * True if the End-User\'s e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. */ 'email_verified'?: boolean; /** * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters. */ 'family_name'?: string; /** * End-User\'s gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable. */ 'gender'?: string; /** * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters. */ 'given_name'?: string; /** * End-User\'s locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well. */ 'locale'?: string; /** * Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used. */ 'middle_name'?: string; /** * End-User\'s full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User\'s locale and preferences. */ 'name'?: string; /** * Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael. */ 'nickname'?: string; /** * End-User\'s preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678. */ 'phone_number'?: string; /** * True if the End-User\'s phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format. */ 'phone_number_verified'?: boolean; /** * URL of the End-User\'s profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User. */ 'picture'?: string; /** * Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace. */ 'preferred_username'?: string; /** * URL of the End-User\'s profile page. The contents of this Web page SHOULD be about the End-User. */ 'profile'?: string; /** * Subject - Identifier for the End-User at the IssuerURL. */ 'sub'?: string; /** * Time the End-User\'s information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time. */ 'updated_at'?: number; /** * URL of the End-User\'s Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with. */ 'website'?: string; /** * String from zoneinfo [zoneinfo] time zone database representing the End-User\'s time zone. For example, Europe/Paris or America/Los_Angeles. */ 'zoneinfo'?: string; } export interface OnboardingPortalLink { /** * AppleMapper specifies the JSONNet code snippet which uses Apple\'s profile information to hydrate the identity\'s data. */ 'apple_mapper_url'?: string; /** * Auth0Mapper specifies the JSONNet code snippet which uses Auth0\'s profile information to hydrate the identity\'s data. */ 'auth0_mapper_url'?: string; /** * The onboarding portal link\'s creation date */ 'created_at'?: string; 'custom_hostname_id'?: string | null; /** * Feature flag to enable SCIM configuration */ 'enable_scim'?: boolean; /** * Feature flag to enable SSO configuration */ 'enable_sso'?: boolean; /** * The onboarding portal link\'s expiry date */ 'expires_at': string; /** * FacebookMapper specifies the JSONNet code snippet which uses Facebook\'s profile information to hydrate the identity\'s data. */ 'facebook_mapper_url'?: string; /** * GenericOIDCMapper specifies the JSONNet code snippet which uses the OIDC Provider\'s profile information to hydrate the identity\'s data. */ 'generic_oidc_mapper_url'?: string; /** * GithubMapper specifies the JSONNet code snippet which uses GitHub\'s profile information to hydrate the identity\'s data. */ 'github_mapper_url'?: string; /** * GitLabMapper specifies the JSONNet code snippet which uses GitLab\'s profile information to hydrate the identity\'s data. */ 'gitlab_mapper_url'?: string; /** * GoogleMapper specifies the JSONNet code snippet which uses Google\'s profile information to hydrate the identity\'s data. */ 'google_mapper_url'?: string; /** * The onboarding portal link\'s ID. */ 'id': string; /** * MicrosoftMapper specifies the JSONNet code snippet which uses Microsoft\'s profile information to hydrate the identity\'s data. */ 'microsoft_mapper_url'?: string; /** * NetIDMapper specifies the JSONNet code snippet which uses NetID\'s profile information to hydrate the identity\'s data. */ 'netid_mapper_url'?: string; /** * The onboarding portal link\'s organization ID */ 'organization_id': string; /** * The onboarding portal link\'s project ID */ 'project_id': string; /** * Proxy ACS URL if overriding with a customer-controlled URL */ 'proxy_acs_url'?: string; /** * Proxy OIDC Redirect URL if overriding with a customer-controlled URL */ 'proxy_oidc_redirect_url'?: string; /** * SAML Audience Override if overriding with a customer-controlled one */ 'proxy_saml_audience_override'?: string; /** * Proxy SCIM Server URL if overriding with a customer-controlled URL */ 'proxy_scim_server_url'?: string; /** * SAMLMapper specifies the JSONNet code snippet which uses the SAML Provider\'s profile information to hydrate the identity\'s data. */ 'saml_mapper_url'?: string; /** * SCIMMapper specifies the JSONNet code snippet which uses the SCIM Provider\'s profile information to hydrate the identity\'s data. */ 'scim_mapper_url'?: string; /** * The onboarding portal link\'s value */ 'value': string; } export interface OnboardingPortalOrganization { /** * AppleMapper specifies the JSONNet code snippet which uses Apple\'s profile information to hydrate the identity\'s data. */ 'apple_mapper_url'?: string; /** * Auth0Mapper specifies the JSONNet code snippet which uses Auth0\'s profile information to hydrate the identity\'s data. */ 'auth0_mapper_url'?: string; 'base_url': string; /** * FacebookMapper specifies the JSONNet code snippet which uses Facebook\'s profile information to hydrate the identity\'s data. */ 'facebook_mapper_url'?: string; /** * GenericOIDCMapper specifies the JSONNet code snippet which uses the OIDC Provider\'s profile information to hydrate the identity\'s data. */ 'generic_oidc_mapper_url'?: string; /** * GithubMapper specifies the JSONNet code snippet which uses GitHub\'s profile information to hydrate the identity\'s data. */ 'github_mapper_url'?: string; /** * GitLabMapper specifies the JSONNet code snippet which uses GitLab\'s profile information to hydrate the identity\'s data. */ 'gitlab_mapper_url'?: string; /** * GoogleMapper specifies the JSONNet code snippet which uses Google\'s profile information to hydrate the identity\'s data. */ 'google_mapper_url'?: string; 'kratos_selfservice_methods_oidc_config_providers': Array; 'kratos_selfservice_methods_saml_config_providers': Array; /** * MicrosoftMapper specifies the JSONNet code snippet which uses Microsoft\'s profile information to hydrate the identity\'s data. */ 'microsoft_mapper_url'?: string; /** * NetIDMapper specifies the JSONNet code snippet which uses NetID\'s profile information to hydrate the identity\'s data. */ 'netid_mapper_url'?: string; 'oidc_sso_enabled'?: boolean; 'organization_id': string; /** * Organization Label */ 'organization_label'?: string; /** * Proxy ACS URL if overriding with a customer-controlled URL */ 'proxy_acs_url'?: string; /** * Proxy OIDC Redirect URL if overriding with a customer-controlled URL */ 'proxy_oidc_redirect_url'?: string; /** * SAML Audience Override if overriding with a customer-controlled one */ 'proxy_saml_audience_override'?: string; /** * Proxy SCIM Server URL if overriding with a customer-controlled URL */ 'proxy_scim_server_url'?: string; 'revision_id': string; /** * SAMLMapper specifies the JSONNet code snippet which uses the SAML Provider\'s profile information to hydrate the identity\'s data. */ 'saml_mapper_url'?: string; 'saml_sso_enabled'?: boolean; 'scim_clients': Array; 'scim_enabled': boolean; /** * SCIMMapper specifies the JSONNet code snippet which uses the SCIM Provider\'s profile information to hydrate the identity\'s data. */ 'scim_mapper_url'?: string; 'sso_enabled': boolean; } /** * Response body for a dry-run OIDC test login flow created from an onboarding portal link. Only the flow ID is part of the API contract. */ export interface OnboardingPortalTestLoginFlow { /** * ID of the created test login flow. Append this as the `flow` query parameter on the test sign-in UI URL. */ 'id': string; } /** * B2B SSO Organization */ export interface Organization { 'created_at': string; /** * DefaultRegion sets the default region for identities provisioned into this organization, when the identity does not specify a region explictly. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'default_region'?: OrganizationDefaultRegionEnum; /** * The list of organization\'s domains. */ 'domains': Array; /** * The organization\'s ID. */ 'id': string; /** * The organization\'s human-readable label. */ 'label': string; /** * SessionLifespan overrides the project-level session lifespan for sessions issued for this organization. A Go duration string between 1m and 8760h. A null (or zero) value means the project default applies. */ 'session_lifespan'?: string; } export declare const OrganizationDefaultRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type OrganizationDefaultRegionEnum = typeof OrganizationDefaultRegionEnum[keyof typeof OrganizationDefaultRegionEnum]; /** * Create B2B SSO Organization Request Body */ export interface OrganizationBody { /** * DefaultRegion is the default Ory region for identities provisioned into this organization via JIT. Must be inside the project\'s home region. Empty (or omitted) means the organization has no default region: each identity provisioned via JIT is then homed in the gateway region of the request that created it, constrained by the project\'s home region. On update, an empty string clears the value. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'default_region'?: OrganizationBodyDefaultRegionEnum; /** * Domains contains the list of organization\'s domains. */ 'domains'?: Array; /** * Label contains the organization\'s label. */ 'label'?: string; /** * SessionLifespan overrides the project-level session.lifespan for sessions issued for this organization. A Go duration string between 1m and 8760h (e.g. \"1h\", \"24h\"). Send \"\" to clear and inherit the project default. Omit to leave the existing value unchanged on update. */ 'session_lifespan'?: string; } export declare const OrganizationBodyDefaultRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type OrganizationBodyDefaultRegionEnum = typeof OrganizationBodyDefaultRegionEnum[keyof typeof OrganizationBodyDefaultRegionEnum]; export interface OrganizationByHostname { /** * Domains are the organization\'s SSO domains. */ 'domains': Array; /** * ID is the organization\'s unique identifier. */ 'id': string; } export interface OrganizationOnboardingPortalLinksResponse { 'links': Array; } /** * The pin_secret field holds only the at-rest ciphertext; the plaintext exists transiently in server memory during verification and is invalidated once the key locks. */ export interface PINConfig { /** * When the pin_secret was first issued. */ 'created_at'?: string; /** * The number of consecutive wrong-PIN attempts so far; the key locks when it reaches the configured maximum (pin_max_attempts, default 5). */ 'failed_attempts'?: number; /** * The at-rest ciphertext of the pin_secret. It never leaves the server and is cleared once the key locks. */ 'pin_secret'?: string; /** * When the pin_secret was last rotated. Omitted if the secret was never rotated. */ 'rotated_at'?: string; } export interface ParseError { 'end'?: SourcePosition; 'message'?: string; 'start'?: SourcePosition; } /** * Patch Identities Body */ export interface PatchIdentitiesBody { /** * Identities holds the list of patches to apply required */ 'identities'?: Array; } export interface PatchWorkspaceMemberBody { /** * Whether to enable break-glass recovery for this member. */ 'break_glass'?: boolean; } /** * Perform Native Logout Request Body */ export interface PerformNativeLogoutBody { /** * The Session Token Invalidate this session token. */ 'session_token': string; } /** * Get Permissions on Project Request Parameters */ export interface PermissionsOnWorkspace { 'permissions'?: { [key: string]: boolean; }; } export interface Plan { /** * Name is the name of the plan. */ 'name': string; /** * Version is the version of the plan. The combination of `name@version` must be unique. */ 'version': number; } export interface PlanDetails { /** * BaseFeeMonthly is the monthly base fee for the plan. */ 'base_fee_monthly': number; /** * BaseFeeYearly is the yearly base fee for the plan. */ 'base_fee_yearly': number; /** * Custom is true if the plan is custom. This means it will be hidden from the pricing page. */ 'custom': boolean; /** * Description is the description of the plan. */ 'description': string; 'development_features': { [key: string]: Usage; }; 'features': { [key: string]: Usage; }; /** * Latest is true if the plan is the latest version of a plan and should be available for self-service usage. */ 'latest'?: boolean; /** * Name is the name of the plan. */ 'name': string; 'production_features': { [key: string]: Usage; }; 'staging_features': { [key: string]: Usage; }; /** * Version is the version of the plan. The combination of `name@version` must be unique. */ 'version': number; /** * YearlyOnly is true if the plan only supports yearly billing. */ 'yearly_only': boolean; } /** * Check Permission using Post Request Body */ export interface PostCheckPermissionBody { /** * Namespace to query */ 'namespace'?: string; /** * Object to query */ 'object'?: string; /** * Relation to query */ 'relation'?: string; /** * SubjectID to query Either SubjectSet or SubjectID can be provided. */ 'subject_id'?: string; 'subject_set'?: SubjectSet; } /** * Post Check Permission Or Error Body */ export interface PostCheckPermissionOrErrorBody { /** * Namespace to query */ 'namespace'?: string; /** * Object to query */ 'object'?: string; /** * Relation to query */ 'relation'?: string; /** * SubjectID to query Either SubjectSet or SubjectID can be provided. */ 'subject_id'?: string; 'subject_set'?: SubjectSet; } export interface Project { 'cors_admin'?: ProjectCors; 'cors_public'?: ProjectCors; /** * The environment of the project. prod Production stage Staging dev Development */ 'environment': ProjectEnvironmentEnum; /** * The project home region. This is used to set where the project data is stored and where the project\'s endpoints are located. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'home_region': ProjectHomeRegionEnum; /** * The project\'s ID. */ 'id': string; /** * The name of the project. */ 'name': string; /** * The organizations of the project. Organizations are used to group users and enforce certain restrictions like usage of SSO. */ 'organizations': Array; /** * The configuration revision ID. */ 'revision_id': string; 'services': ProjectServices; /** * The project\'s slug */ 'slug': string; /** * The state of the project. running Running halted Halted deleted Deleted */ 'state': ProjectStateEnum; 'workspace_id'?: string | null; } export declare const ProjectEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectEnvironmentEnum = typeof ProjectEnvironmentEnum[keyof typeof ProjectEnvironmentEnum]; export declare const ProjectHomeRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectHomeRegionEnum = typeof ProjectHomeRegionEnum[keyof typeof ProjectHomeRegionEnum]; export declare const ProjectStateEnum: { readonly Running: "running"; readonly Halted: "halted"; readonly Deleted: "deleted"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectStateEnum = typeof ProjectStateEnum[keyof typeof ProjectStateEnum]; export interface ProjectApiKey { /** * The token\'s creation date */ 'created_at'?: string; 'expires_at'?: string; /** * The token\'s ID. */ 'id': string; /** * The last characters of the token\'s value. Lets you tell API keys apart in the UI without revealing the full value. Empty for keys created before this was introduced. */ 'last_characters'?: string; /** * The Token\'s Name Set this to help you remember, for example, where you use the token. */ 'name': string; /** * The token\'s owner */ 'owner_id': string; /** * The Token\'s Project ID */ 'project_id'?: string; /** * The token\'s last update date */ 'updated_at'?: string; /** * The token\'s value */ 'value'?: string; } export interface ProjectBranding { /** * The Customization Creation Date */ 'created_at': string; 'default_theme': ProjectBrandingTheme; /** * The customization ID. */ 'id': string; /** * The Project\'s ID this customization is associated with */ 'project_id': string; 'themes': Array; /** * Last Time Branding was Updated */ 'updated_at': string; } export interface ProjectBrandingColors { /** * AccentDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'accent_default_color'?: string; /** * AccentDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'accent_disabled_color'?: string; /** * AccentEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'accent_emphasis_color'?: string; /** * AccentMutedColor is a hex color code used by the Ory Account Experience theme. */ 'accent_muted_color'?: string; /** * AccentSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'accent_subtle_color'?: string; /** * BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme. */ 'background_canvas_color'?: string; /** * BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'background_subtle_color'?: string; /** * BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme. */ 'background_surface_color'?: string; /** * BorderDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'border_default_color'?: string; /** * ErrorDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'error_default_color'?: string; /** * ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'error_emphasis_color'?: string; /** * ErrorMutedColor is a hex color code used by the Ory Account Experience theme. */ 'error_muted_color'?: string; /** * ErrorSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'error_subtle_color'?: string; /** * ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_default_color'?: string; /** * ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_disabled_color'?: string; /** * ForegroundMutedColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_muted_color'?: string; /** * ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_accent_color'?: string; /** * ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_dark_color'?: string; /** * ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_disabled_color'?: string; /** * ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_subtle_color'?: string; /** * InputBackgroundColor is a hex color code used by the Ory Account Experience theme. */ 'input_background_color'?: string; /** * InputDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'input_disabled_color'?: string; /** * InputPlaceholderColor is a hex color code used by the Ory Account Experience theme. */ 'input_placeholder_color'?: string; /** * InputTextColor is a hex color code used by the Ory Account Experience theme. */ 'input_text_color'?: string; /** * Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme. */ 'primary_color'?: string; /** * Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme. */ 'secondary_color'?: string; /** * SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'success_emphasis_color'?: string; /** * TextDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'text_default_color'?: string; /** * TextDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'text_disabled_color'?: string; } export interface ProjectBrandingTheme { /** * AccentDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'accent_default_color'?: string; /** * AccentDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'accent_disabled_color'?: string; /** * AccentEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'accent_emphasis_color'?: string; /** * AccentMutedColor is a hex color code used by the Ory Account Experience theme. */ 'accent_muted_color'?: string; /** * AccentSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'accent_subtle_color'?: string; /** * BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme. */ 'background_canvas_color'?: string; /** * BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'background_subtle_color'?: string; /** * BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme. */ 'background_surface_color'?: string; /** * BorderDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'border_default_color'?: string; /** * The Customization Creation Date. */ 'created_at': string; /** * ErrorDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'error_default_color'?: string; /** * ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'error_emphasis_color'?: string; /** * ErrorMutedColor is a hex color code used by the Ory Account Experience theme. */ 'error_muted_color'?: string; /** * ErrorSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'error_subtle_color'?: string; /** * Favicon Type The Favicon mime type. */ 'favicon_type'?: string; /** * Favicon URL Favicon can be an https:// or base64:// URL. If the URL is not allowed, the favicon will be stored inside the Ory Network storage bucket. */ 'favicon_url'?: string; /** * ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_default_color'?: string; /** * ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_disabled_color'?: string; /** * ForegroundMutedColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_muted_color'?: string; /** * ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_accent_color'?: string; /** * ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_dark_color'?: string; /** * ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_on_disabled_color'?: string; /** * ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme. */ 'foreground_subtle_color'?: string; /** * The customization theme ID. */ 'id': string; /** * InputBackgroundColor is a hex color code used by the Ory Account Experience theme. */ 'input_background_color'?: string; /** * InputDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'input_disabled_color'?: string; /** * InputPlaceholderColor is a hex color code used by the Ory Account Experience theme. */ 'input_placeholder_color'?: string; /** * InputTextColor is a hex color code used by the Ory Account Experience theme. */ 'input_text_color'?: string; /** * Logo Type The Logo mime type. */ 'logo_type'?: string; /** * Logo URL Logo can be an https:// or base64:// URL. If the URL is not allowed, the logo will be stored inside the Ory Network storage bucket. */ 'logo_url'?: string; /** * The customization theme name. */ 'name': string; /** * Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme. */ 'primary_color'?: string; /** * The ProjectBranding ID this customization is associated with. */ 'project_branding_id': string; /** * Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme. */ 'secondary_color'?: string; /** * SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme. */ 'success_emphasis_color'?: string; /** * TextDefaultColor is a hex color code used by the Ory Account Experience theme. */ 'text_default_color'?: string; /** * TextDisabledColor is a hex color code used by the Ory Account Experience theme. */ 'text_disabled_color'?: string; /** * Last Time Branding was Updated. */ 'updated_at': string; } export interface ProjectCors { /** * Whether CORS is enabled for this endpoint. */ 'enabled'?: boolean; /** * The allowed origins. Use `*` to allow all origins. A wildcard can also be used in the subdomain, i.e. `https://_*.example.com` will allow all origins on all subdomains of `example.com`. */ 'origins'?: Array; } export interface ProjectEventsDatapoint { /** * Event attributes with details */ 'attributes': Array; /** * Name of the event */ 'name': string; /** * Time of occurence */ 'timestamp': string; } export interface ProjectHost { /** * The project\'s host. */ 'host': string; /** * The mapping\'s ID. */ 'id': string; /** * The Revision\'s Project ID */ 'project_id': string; } export interface ProjectMember { /** * BreakGlass is true when the identity\'s recovery address has break-glass recovery enabled for the identity\'s current organization. */ 'break_glass'?: boolean; 'email': string; 'email_verified': boolean; 'id': string; 'name': string; 'organization_id'?: string | null; /** * The member\'s role on the project. owner has full control, developer can read and write, viewer is read-only. */ 'role': ProjectMemberRoleEnum; /** * Whether the member has access through the project directly or through workspace membership. */ 'source'?: ProjectMemberSourceEnum; } export declare const ProjectMemberRoleEnum: { readonly Owner: "owner"; readonly Developer: "developer"; readonly Viewer: "viewer"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectMemberRoleEnum = typeof ProjectMemberRoleEnum[keyof typeof ProjectMemberRoleEnum]; export declare const ProjectMemberSourceEnum: { readonly Project: "project"; readonly Workspace: "workspace"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectMemberSourceEnum = typeof ProjectMemberSourceEnum[keyof typeof ProjectMemberSourceEnum]; export interface ProjectMetadata { /** * The Project\'s Creation Date */ 'created_at': string; /** * The environment of the project. prod Production stage Staging dev Development */ 'environment': ProjectMetadataEnvironmentEnum; /** * The project\'s data home region eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'home_region': ProjectMetadataHomeRegionEnum; /** * The FQDN hostnames this project listens on */ 'hosts': Array; /** * The project\'s ID. */ 'id': string; /** * The project\'s name if set */ 'name': string; /** * The project\'s slug */ 'slug': string; /** * The state of the project. running Running halted Halted deleted Deleted */ 'state': ProjectMetadataStateEnum; 'subscription_id'?: string | null; 'subscription_plan'?: string | null; /** * Last Time Project was Updated */ 'updated_at': string; 'workspace'?: Workspace; 'workspace_id'?: string | null; } export declare const ProjectMetadataEnvironmentEnum: { readonly Prod: "prod"; readonly Stage: "stage"; readonly Dev: "dev"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectMetadataEnvironmentEnum = typeof ProjectMetadataEnvironmentEnum[keyof typeof ProjectMetadataEnvironmentEnum]; export declare const ProjectMetadataHomeRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectMetadataHomeRegionEnum = typeof ProjectMetadataHomeRegionEnum[keyof typeof ProjectMetadataHomeRegionEnum]; export declare const ProjectMetadataStateEnum: { readonly Running: "running"; readonly Halted: "halted"; readonly Deleted: "deleted"; readonly UnknownDefaultOpenApi: "11184809"; }; export type ProjectMetadataStateEnum = typeof ProjectMetadataStateEnum[keyof typeof ProjectMetadataStateEnum]; export interface ProjectServiceAccountExperience { 'config': object; } export interface ProjectServiceIdentity { 'config': object; } export interface ProjectServiceOAuth2 { 'config': object; } export interface ProjectServicePermission { 'config': object; } export interface ProjectServiceTalos { 'config': object; } export interface ProjectServices { 'account_experience'?: ProjectServiceAccountExperience; 'identity'?: ProjectServiceIdentity; 'oauth2'?: ProjectServiceOAuth2; 'permission'?: ProjectServicePermission; 'talos'?: ProjectServiceTalos; } export interface Provider { /** * The RP\'s client identifier, issued by the IdP. */ 'client_id'?: string; /** * A full path of the IdP config file. */ 'config_url'?: string; /** * By specifying one of domain_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account. */ 'domain_hint'?: string; /** * Array of strings that specifies the user information (\"name\", \" email\", \"picture\") that RP needs IdP to share with them. Note: Field API is supported by Chrome 132 and later. */ 'fields'?: Array; /** * By specifying one of login_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account. */ 'login_hint'?: string; /** * A random string to ensure the response is issued for this specific request. Prevents replay attacks. */ 'nonce'?: string; /** * Custom object that allows to specify additional key-value parameters: scope: A string value containing additional permissions that RP needs to request, for example \" drive.readonly calendar.readonly\" nonce: A random string to ensure the response is issued for this specific request. Prevents replay attacks. Other custom key-value parameters. Note: parameters is supported from Chrome 132. */ 'parameters'?: { [key: string]: string; }; } export interface QuotaUsage { /** * The additional price per unit in cents. */ 'additional_price': string; 'can_use_more': boolean; /** * production_projects ProductionProjects staging_projects StagingProjects development_projects DevelopmentProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams event_stream_events EventStreamEvents sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport zendesk_support_on_call ZendeskSupportOnCall project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding credit Credit data_location_global DataLocationGlobal data_location_us DataLocationUS data_location_asiane DataLocationAsiaNorthEast m2m_token_issuance M2MTokenIssuance permission_checks PermissionChecks captcha Captcha captcha_byo CaptchaBYO hide_ory_branding HideOryBranding identity_search_api IdentitySearchAPI saml_sp SAMLSP saml_idp SAMLIDP auto_link_policy AutoLinkPolicy scim_clients SCIMClients default_smtp_email_customization DefaultSMTPEmailCustomization onboarding_portal OnboardingPortal console_organization_sso ConsoleOrganizationSSO talos_api_keys TalosAPIKeys talos_rate_limit TalosRateLimit talos_cache TalosCache graceful_refresh_token_count GracefulRefreshTokenCount hydra_token_prefix HydraTokenPrefix hydra_device_authorization HydraDeviceAuthorization deviceauthn Deviceauthn allow_insecure_origins AllowInsecureOrigins AllowInsecureOrigins grandfathers a project past strict wildcard enforcement (CORS origins + return URLs). Override-only; never sold. update_self_service_registration_rate_limit_tier RateLimitTierUpdateSelfServiceRegistration Self-service rate limits update_self_service_recovery_rate_limit_tier RateLimitTierUpdateSelfServiceRecovery update_self_service_settings_rate_limit_tier RateLimitTierUpdateSelfServiceSettings update_self_service_verification_rate_limit_tier RateLimitTierUpdateSelfServiceVerification identities_create_rate_limit_tier RateLimitTierIdentitiesCreate identities_import_rate_limit_tier RateLimitTierIdentitiesImport fed_cm_parameters_rate_limit_tier RateLimitTierFedCMParameters data_location_regional DataLocationRegional Required Features rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect create_recovery_admin_rate_limit_tier RateLimitTierCreateAdminRecovery scim_rate_limit_tier RateLimitTierSCIM hydra_admin_high_rate_limit_tier RateLimitTierHydraAdminHigh Bucket-specific rate limit tiers hydra_admin_medium_rate_limit_tier RateLimitTierHydraAdminMedium hydra_admin_low_rate_limit_tier RateLimitTierHydraAdminLow hydra_public_high_rate_limit_tier RateLimitTierHydraPublicHigh hydra_public_medium_rate_limit_tier RateLimitTierHydraPublicMedium hydra_public_low_rate_limit_tier RateLimitTierHydraPublicLow keto_admin_low_rate_limit_tier RateLimitTierKetoAdminLow keto_admin_medium_rate_limit_tier RateLimitTierKetoAdminMedium keto_public_high_rate_limit_tier RateLimitTierKetoPublicHigh kratos_admin_high_rate_limit_tier RateLimitTierKratosAdminHigh kratos_admin_medium_rate_limit_tier RateLimitTierKratosAdminMedium kratos_admin_low_rate_limit_tier RateLimitTierKratosAdminLow kratos_public_high_rate_limit_tier RateLimitTierKratosPublicHigh kratos_public_medium_rate_limit_tier RateLimitTierKratosPublicMedium kratos_public_low_rate_limit_tier RateLimitTierKratosPublicLow polis_public_high_rate_limit_tier RateLimitTierPolisPublicHigh polis_public_medium_rate_limit_tier RateLimitTierPolisPublicMedium talos_admin_high_rate_limit_tier RateLimitTierTalosAdminHigh talos_admin_medium_rate_limit_tier RateLimitTierTalosAdminMedium talos_admin_low_rate_limit_tier RateLimitTierTalosAdminLow talos_public_high_rate_limit_tier RateLimitTierTalosPublicHigh talos_public_low_rate_limit_tier RateLimitTierTalosPublicLow unassigned_rate_limit_tier RateLimitTierUnassigned */ 'feature': QuotaUsageFeatureEnum; 'feature_available': boolean; 'included': number; 'is_unlimited': boolean; 'used': number; } export declare const QuotaUsageFeatureEnum: { readonly ProductionProjects: "production_projects"; readonly StagingProjects: "staging_projects"; readonly DevelopmentProjects: "development_projects"; readonly DailyActiveUsers: "daily_active_users"; readonly CustomDomains: "custom_domains"; readonly EventStreams: "event_streams"; readonly EventStreamEvents: "event_stream_events"; readonly Sla: "sla"; readonly CollaboratorSeats: "collaborator_seats"; readonly EdgeCache: "edge_cache"; readonly BrandingThemes: "branding_themes"; readonly ZendeskSupport: "zendesk_support"; readonly ZendeskSupportOnCall: "zendesk_support_on_call"; readonly ProjectMetrics: "project_metrics"; readonly ProjectMetricsTimeWindow: "project_metrics_time_window"; readonly ProjectMetricsEventsHistory: "project_metrics_events_history"; readonly Organizations: "organizations"; readonly RopGrant: "rop_grant"; readonly ConciergeOnboarding: "concierge_onboarding"; readonly Credit: "credit"; readonly DataLocationGlobal: "data_location_global"; readonly DataLocationUs: "data_location_us"; readonly DataLocationAsiane: "data_location_asiane"; readonly M2mTokenIssuance: "m2m_token_issuance"; readonly PermissionChecks: "permission_checks"; readonly Captcha: "captcha"; readonly CaptchaByo: "captcha_byo"; readonly HideOryBranding: "hide_ory_branding"; readonly IdentitySearchApi: "identity_search_api"; readonly SamlSp: "saml_sp"; readonly SamlIdp: "saml_idp"; readonly AutoLinkPolicy: "auto_link_policy"; readonly ScimClients: "scim_clients"; readonly DefaultSmtpEmailCustomization: "default_smtp_email_customization"; readonly OnboardingPortal: "onboarding_portal"; readonly ConsoleOrganizationSso: "console_organization_sso"; readonly TalosApiKeys: "talos_api_keys"; readonly TalosRateLimit: "talos_rate_limit"; readonly TalosCache: "talos_cache"; readonly GracefulRefreshTokenCount: "graceful_refresh_token_count"; readonly HydraTokenPrefix: "hydra_token_prefix"; readonly HydraDeviceAuthorization: "hydra_device_authorization"; readonly Deviceauthn: "deviceauthn"; readonly AllowInsecureOrigins: "allow_insecure_origins"; readonly UpdateSelfServiceRegistrationRateLimitTier: "update_self_service_registration_rate_limit_tier"; readonly UpdateSelfServiceRecoveryRateLimitTier: "update_self_service_recovery_rate_limit_tier"; readonly UpdateSelfServiceSettingsRateLimitTier: "update_self_service_settings_rate_limit_tier"; readonly UpdateSelfServiceVerificationRateLimitTier: "update_self_service_verification_rate_limit_tier"; readonly IdentitiesCreateRateLimitTier: "identities_create_rate_limit_tier"; readonly IdentitiesImportRateLimitTier: "identities_import_rate_limit_tier"; readonly FedCmParametersRateLimitTier: "fed_cm_parameters_rate_limit_tier"; readonly DataLocationRegional: "data_location_regional"; readonly RateLimitTier: "rate_limit_tier"; readonly SessionRateLimitTier: "session_rate_limit_tier"; readonly IdentitiesListRateLimitTier: "identities_list_rate_limit_tier"; readonly PermissionChecksRateLimitTier: "permission_checks_rate_limit_tier"; readonly Oauth2IntrospectRateLimitTier: "oauth2_introspect_rate_limit_tier"; readonly CreateRecoveryAdminRateLimitTier: "create_recovery_admin_rate_limit_tier"; readonly ScimRateLimitTier: "scim_rate_limit_tier"; readonly HydraAdminHighRateLimitTier: "hydra_admin_high_rate_limit_tier"; readonly HydraAdminMediumRateLimitTier: "hydra_admin_medium_rate_limit_tier"; readonly HydraAdminLowRateLimitTier: "hydra_admin_low_rate_limit_tier"; readonly HydraPublicHighRateLimitTier: "hydra_public_high_rate_limit_tier"; readonly HydraPublicMediumRateLimitTier: "hydra_public_medium_rate_limit_tier"; readonly HydraPublicLowRateLimitTier: "hydra_public_low_rate_limit_tier"; readonly KetoAdminLowRateLimitTier: "keto_admin_low_rate_limit_tier"; readonly KetoAdminMediumRateLimitTier: "keto_admin_medium_rate_limit_tier"; readonly KetoPublicHighRateLimitTier: "keto_public_high_rate_limit_tier"; readonly KratosAdminHighRateLimitTier: "kratos_admin_high_rate_limit_tier"; readonly KratosAdminMediumRateLimitTier: "kratos_admin_medium_rate_limit_tier"; readonly KratosAdminLowRateLimitTier: "kratos_admin_low_rate_limit_tier"; readonly KratosPublicHighRateLimitTier: "kratos_public_high_rate_limit_tier"; readonly KratosPublicMediumRateLimitTier: "kratos_public_medium_rate_limit_tier"; readonly KratosPublicLowRateLimitTier: "kratos_public_low_rate_limit_tier"; readonly PolisPublicHighRateLimitTier: "polis_public_high_rate_limit_tier"; readonly PolisPublicMediumRateLimitTier: "polis_public_medium_rate_limit_tier"; readonly TalosAdminHighRateLimitTier: "talos_admin_high_rate_limit_tier"; readonly TalosAdminMediumRateLimitTier: "talos_admin_medium_rate_limit_tier"; readonly TalosAdminLowRateLimitTier: "talos_admin_low_rate_limit_tier"; readonly TalosPublicHighRateLimitTier: "talos_public_high_rate_limit_tier"; readonly TalosPublicLowRateLimitTier: "talos_public_low_rate_limit_tier"; readonly UnassignedRateLimitTier: "unassigned_rate_limit_tier"; readonly UnknownDefaultOpenApi: "11184809"; }; export type QuotaUsageFeatureEnum = typeof QuotaUsageFeatureEnum[keyof typeof QuotaUsageFeatureEnum]; export interface RFC6749ErrorJson { 'error'?: string; 'error_debug'?: string; 'error_description'?: string; 'error_hint'?: string; 'status_code'?: number; } /** * RateLimitPolicy describes the rate limit policy for an API key. In OSS mode, this policy is informational and meant to be consumed by upstream gateways (Envoy, Cloudflare, etc.) for enforcement. In commercial mode, Talos enforces rate limits using in-memory or Redis backends, both powered by the GCRA (Generic Cell Rate Algorithm). Compliant with draft-ietf-httpapi-ratelimit-headers-10. */ export interface RateLimitPolicy { /** * quota is the number of requests allowed per window. */ 'quota'?: string; 'unit'?: string; /** * window is the time window for the quota. Common values: 60s (1 minute), 3600s (1 hour), 86400s (1 day). */ 'window'?: string; } /** * Used when an administrator creates a recovery code for an identity. */ export interface RecoveryCodeForIdentity { /** * Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. */ 'expires_at'?: string; /** * RecoveryCode is the code that can be used to recover the account */ 'recovery_code': string; /** * RecoveryLink with flow This link opens the recovery UI with an empty `code` field. */ 'recovery_link': string; } /** * This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery) */ export interface RecoveryFlow { /** * Active, if set, contains the recovery method that is being used. It is initially not set. */ 'active'?: string; /** * Contains possible actions that could follow this flow */ 'continue_with'?: Array; /** * ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. */ 'expires_at': string; /** * ID represents the request\'s unique ID. When performing the recovery flow, this represents the id in the recovery ui\'s query parameter: http://?request= */ 'id': string; /** * IssuedAt is the time (UTC) when the request occurred. */ 'issued_at': string; /** * RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL\'s path or query for example. */ 'request_url': string; /** * ReturnTo contains the requested return_to URL. */ 'return_to'?: string; /** * State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. */ 'state': any; /** * TransientPayload is used to pass data from the recovery flow to hooks and email templates */ 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. */ 'type': string; 'ui': UiContainer; } /** * The experimental state represents the state of a recovery flow. This field is EXPERIMENTAL and subject to change! */ export declare const RecoveryFlowState: { readonly ChooseMethod: "choose_method"; readonly SentEmail: "sent_email"; readonly PassedChallenge: "passed_challenge"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RecoveryFlowState = typeof RecoveryFlowState[keyof typeof RecoveryFlowState]; export interface RecoveryIdentityAddress { 'break_glass_for_organization'?: string | null; /** * CreatedAt is a helper struct field for gobuffalo.pop. */ 'created_at'?: string; 'id'?: string; /** * UpdatedAt is a helper struct field for gobuffalo.pop. */ 'updated_at'?: string; 'value': string; 'via': string; } /** * Used when an administrator creates a recovery link for an identity. */ export interface RecoveryLinkForIdentity { /** * Recovery Link Expires At The timestamp when the recovery link expires. */ 'expires_at'?: string; /** * Recovery Link This link can be used to recover the account. */ 'recovery_link': string; } export interface RegistrationFlow { /** * Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML deviceauthn CredentialsTypeDeviceAuthn identifier_first CredentialsTypeIdentifierFirst link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode */ 'active'?: RegistrationFlowActiveEnum; /** * ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. */ 'expires_at': string; /** * ID represents the flow\'s unique ID. When performing the registration flow, this represents the id in the registration ui\'s query parameter: http:///?flow= */ 'id': string; /** * IdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or converted to another flow. */ 'identity_schema'?: string; /** * IssuedAt is the time (UTC) when the flow occurred. */ 'issued_at': string; /** * Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. */ 'oauth2_login_challenge'?: string; 'oauth2_login_request'?: OAuth2LoginRequest; 'organization_id'?: string | null; /** * RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL\'s path or query for example. */ 'request_url': string; /** * ReturnTo contains the requested return_to URL. */ 'return_to'?: string; /** * SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the flow. */ 'session_token_exchange_code'?: string; /** * State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. */ 'state': any; /** * TransientPayload is used to pass data from the registration to a webhook */ 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. */ 'type': string; 'ui': UiContainer; } export declare const RegistrationFlowActiveEnum: { readonly Password: "password"; readonly Oidc: "oidc"; readonly Totp: "totp"; readonly LookupSecret: "lookup_secret"; readonly Webauthn: "webauthn"; readonly Code: "code"; readonly Passkey: "passkey"; readonly Profile: "profile"; readonly Saml: "saml"; readonly Deviceauthn: "deviceauthn"; readonly IdentifierFirst: "identifier_first"; readonly LinkRecovery: "link_recovery"; readonly CodeRecovery: "code_recovery"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RegistrationFlowActiveEnum = typeof RegistrationFlowActiveEnum[keyof typeof RegistrationFlowActiveEnum]; /** * The experimental state represents the state of a registration flow. This field is EXPERIMENTAL and subject to change! */ export declare const RegistrationFlowState: { readonly ChooseMethod: "choose_method"; readonly SentEmail: "sent_email"; readonly PassedChallenge: "passed_challenge"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RegistrationFlowState = typeof RegistrationFlowState[keyof typeof RegistrationFlowState]; export interface RejectOAuth2Request { /** * The error should follow the OAuth2 error format (e.g. `invalid_request`, `login_required`). Defaults to `request_denied`. */ 'error'?: string; /** * Debug contains information to help resolve the problem as a developer. Usually not exposed to the public but only in the server logs. */ 'error_debug'?: string; /** * Description of the error in a human readable format. */ 'error_description'?: string; /** * Hint to help resolve the error. */ 'error_hint'?: string; /** * Represents the HTTP status code of the error (e.g. 401 or 403) Defaults to 400 */ 'status_code'?: number; } /** * Relation Query */ export interface RelationQuery { /** * Namespace to query */ 'namespace'?: string; /** * Object to query */ 'object'?: string; /** * Relation to query */ 'relation'?: string; /** * SubjectID to query Either SubjectSet or SubjectID can be provided. */ 'subject_id'?: string; 'subject_set'?: SubjectSet; } /** * Relationship */ export interface Relationship { /** * Namespace of the Relation Tuple */ 'namespace': string; /** * Object of the Relation Tuple */ 'object': string; /** * Relation of the Relation Tuple */ 'relation': string; /** * SubjectID of the Relation Tuple Either SubjectSet or SubjectID can be provided. */ 'subject_id'?: string; 'subject_set'?: SubjectSet; } /** * Relationship Namespace List */ export interface RelationshipNamespaces { 'namespaces'?: Array; } /** * Payload for patching a relationship */ export interface RelationshipPatch { 'action'?: RelationshipPatchActionEnum; 'relation_tuple'?: Relationship; } export declare const RelationshipPatchActionEnum: { readonly Insert: "insert"; readonly Delete: "delete"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RelationshipPatchActionEnum = typeof RelationshipPatchActionEnum[keyof typeof RelationshipPatchActionEnum]; /** * Paginated Relationship List */ export interface Relationships { /** * The opaque token to provide in a subsequent request to get the next page. It is the empty string iff this is the last page. */ 'next_page_token'?: string; 'relation_tuples'?: Array; } export interface RevisionAccountExperienceCustomTranslation { /** * The locale (e.g. \"en\", \"de\") */ 'locale': string; /** * The URL where the i18n json can be found */ 'translations': string; } /** * RevocationReason provides structured revocation reasons inspired by RFC 5280. Used in both admin and self-revocation flows. - REVOCATION_REASON_UNSPECIFIED: Default zero value. Use a specific reason; UNSPECIFIED is rejected by admin and self-revocation endpoints. - REVOCATION_REASON_KEY_COMPROMISE: The key was leaked or believed to be in the hands of an unauthorized party. - REVOCATION_REASON_AFFILIATION_CHANGED: The owning actor\'s relationship with the issuer changed (e.g., role change, departure). - REVOCATION_REASON_SUPERSEDED: A new key has replaced this one as part of a rotation. - REVOCATION_REASON_PRIVILEGE_WITHDRAWN: Admin-only. The actor\'s privilege to use this key was withdrawn by an operator. Self-revocation requests using this reason are rejected with InvalidArgument. Pair with `description` on the admin revoke requests to record the operator-supplied justification. */ export declare const RevocationReason: { readonly RevocationReasonUnspecified: "REVOCATION_REASON_UNSPECIFIED"; readonly RevocationReasonKeyCompromise: "REVOCATION_REASON_KEY_COMPROMISE"; readonly RevocationReasonAffiliationChanged: "REVOCATION_REASON_AFFILIATION_CHANGED"; readonly RevocationReasonSuperseded: "REVOCATION_REASON_SUPERSEDED"; readonly RevocationReasonPrivilegeWithdrawn: "REVOCATION_REASON_PRIVILEGE_WITHDRAWN"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RevocationReason = typeof RevocationReason[keyof typeof RevocationReason]; export interface RotateIssuedApiKeyResponse { 'issued_api_key'?: IssuedApiKey; 'old_issued_api_key'?: IssuedApiKey; 'secret'?: string; } /** * Rotate Talos key request body */ export interface RotateTalosKeyBody { /** * Rotation mode. Use \"graceful\" to keep the old key for verification of existing tokens, or \"revoke\" to discard it immediately. */ 'mode'?: RotateTalosKeyBodyModeEnum; } export declare const RotateTalosKeyBodyModeEnum: { readonly Graceful: "graceful"; readonly Revoke: "revoke"; readonly UnknownDefaultOpenApi: "11184809"; }; export type RotateTalosKeyBodyModeEnum = typeof RotateTalosKeyBodyModeEnum[keyof typeof RotateTalosKeyBodyModeEnum]; export interface SchemaPatch { /** * The json schema */ 'data': object; /** * The user defined schema name */ 'name': string; } /** * SelfRevokeApiKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession. */ export interface SelfRevokeApiKeyRequest { 'credential'?: string; 'reason'?: RevocationReason; } /** * Is sent when a flow is expired */ export interface SelfServiceFlowExpiredError { 'error'?: GenericError; /** * When the flow has expired */ 'expired_at'?: string; /** * A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years. */ 'since'?: number; /** * The flow ID that should be used for the new flow as it contains the correct messages. */ 'use_flow_id'?: string; } /** * A Session */ export interface Session { /** * Active state. If false the session is no longer active. */ 'active'?: boolean; /** * The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code challenge was completed). */ 'authenticated_at'?: string; /** * A list of authenticators which were used to authenticate the session. */ 'authentication_methods'?: Array; 'authenticator_assurance_level'?: AuthenticatorAssuranceLevel; /** * Devices has history of all endpoints where the session was used */ 'devices'?: Array; /** * The Session Expiry When this session expires at. */ 'expires_at'?: string; /** * Session ID */ 'id': string; 'identity'?: Identity; /** * The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`. */ 'issued_at'?: string; /** * Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize_as` query parameter was set to a valid tokenize template during calls to `/session/whoami`. */ 'tokenized'?: string; } export interface SessionActivityDatapoint { /** * Country of the events */ 'country': string; /** * Number of events that failed in the given timeframe */ 'failed': number; /** * Number of events that succeeded in the given timeframe */ 'succeeded': number; } /** * A singular authenticator used during authentication / login. */ export interface SessionAuthenticationMethod { 'aal'?: AuthenticatorAssuranceLevel; /** * When the authentication challenge was completed. */ 'completed_at'?: string; /** * The method used in this authenticator. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile saml CredentialsTypeSAML deviceauthn CredentialsTypeDeviceAuthn identifier_first CredentialsTypeIdentifierFirst link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode */ 'method'?: SessionAuthenticationMethodMethodEnum; /** * The Organization id used for authentication */ 'organization'?: string; /** * OIDC or SAML provider id used for authentication */ 'provider'?: string; /** * UpstreamACR is the `acr` claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an `acr` claim. */ 'upstream_acr'?: string; /** * UpstreamAMR is the `amr` claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an `amr` claim. */ 'upstream_amr'?: Array; } export declare const SessionAuthenticationMethodMethodEnum: { readonly Password: "password"; readonly Oidc: "oidc"; readonly Totp: "totp"; readonly LookupSecret: "lookup_secret"; readonly Webauthn: "webauthn"; readonly Code: "code"; readonly Passkey: "passkey"; readonly Profile: "profile"; readonly Saml: "saml"; readonly Deviceauthn: "deviceauthn"; readonly IdentifierFirst: "identifier_first"; readonly LinkRecovery: "link_recovery"; readonly CodeRecovery: "code_recovery"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SessionAuthenticationMethodMethodEnum = typeof SessionAuthenticationMethodMethodEnum[keyof typeof SessionAuthenticationMethodMethodEnum]; /** * Device corresponding to a Session */ export interface SessionDevice { /** * Device record ID */ 'id': string; /** * IPAddress of the client */ 'ip_address'?: string; /** * Geo Location corresponding to the IP Address */ 'location'?: string; /** * UserAgent of the client */ 'user_agent'?: string; } /** * Update Custom Hostname Body */ export interface SetCustomDomainBody { /** * The domain where cookies will be set. Has to be a parent domain of the custom hostname to work. */ 'cookie_domain'?: string; /** * CORS Allowed origins for the custom hostname. */ 'cors_allowed_origins'?: Array; /** * CORS Enabled for the custom hostname. */ 'cors_enabled'?: boolean; /** * The custom UI base URL where the UI will be exposed. */ 'custom_ui_base_url'?: string; /** * The custom hostname where the API will be exposed. */ 'hostname'?: string; } /** * All fields are optional. Omitted fields keep their current value, so a caller can change only the status (pause/resume) without resubmitting the destination. This matters because secrets such as the password in an HTTPS endpoint URL are redacted in API responses, and resubmitting the redacted value would overwrite the real one. */ export interface SetEventStreamBody { /** * The HTTPS endpoint URL to send events to. When omitted, the current value is kept. */ 'https_endpoint'?: string; /** * The AWS IAM role ARN to assume when publishing to the SNS topic. When omitted, the current value is kept. */ 'role_arn'?: string; /** * The desired status of the event stream. When omitted, the current status is kept. */ 'status'?: SetEventStreamBodyStatusEnum; /** * The AWS SNS topic ARN. When omitted, the current value is kept. */ 'topic_arn'?: string; /** * The type of the event stream (AWS SNS or HTTPS webhook). When omitted, the current type and its destination settings are kept. */ 'type'?: SetEventStreamBodyTypeEnum; } export declare const SetEventStreamBodyStatusEnum: { readonly Active: "active"; readonly Paused: "paused"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SetEventStreamBodyStatusEnum = typeof SetEventStreamBodyStatusEnum[keyof typeof SetEventStreamBodyStatusEnum]; export declare const SetEventStreamBodyTypeEnum: { readonly Sns: "sns"; readonly Https: "https"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SetEventStreamBodyTypeEnum = typeof SetEventStreamBodyTypeEnum[keyof typeof SetEventStreamBodyTypeEnum]; export interface SetOrganizationFromOnboardingPortalLinkBody { 'kratos_selfservice_methods_oidc_config_providers'?: Array; 'kratos_selfservice_methods_saml_config_providers'?: Array; 'revision_id': string; 'scim_clients'?: Array; } export interface SetProject { 'cors_admin': ProjectCors; 'cors_public': ProjectCors; /** * The name of the project. */ 'name': string; /** * The organizations that are part of this project. */ 'organizations': Array; 'services': ProjectServices; } export interface SetProjectBrandingThemeBody { /** * Favicon Type */ 'favicon_type'?: string; /** * Favicon URL */ 'favicon_url'?: string; /** * Logo type */ 'logo_type'?: string; /** * Logo URL */ 'logo_url'?: string; /** * Branding name */ 'name'?: string; 'theme'?: ProjectBrandingColors; } /** * This flow is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings) */ export interface SettingsFlow { /** * Active, if set, contains the registration method that is being used. It is initially not set. */ 'active'?: string; /** * Contains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user\'s registration. */ 'continue_with'?: Array; /** * ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated. */ 'expires_at': string; /** * ID represents the flow\'s unique ID. When performing the settings flow, this represents the id in the settings ui\'s query parameter: http://?flow= */ 'id': string; 'identity': Identity; /** * IssuedAt is the time (UTC) when the flow occurred. */ 'issued_at': string; 'organization_id'?: string | null; /** * RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL\'s path or query for example. */ 'request_url': string; /** * ReturnTo contains the requested return_to URL. */ 'return_to'?: string; /** * State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. */ 'state': any; /** * TransientPayload is used to pass data from the settings flow to hooks and email templates */ 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. */ 'type': string; 'ui': UiContainer; } /** * The experimental state represents the state of a settings flow. This field is EXPERIMENTAL and subject to change! */ export declare const SettingsFlowState: { readonly ShowForm: "show_form"; readonly Success: "success"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SettingsFlowState = typeof SettingsFlowState[keyof typeof SettingsFlowState]; export interface SourcePosition { 'Line'?: number; 'column'?: number; } export interface Status { 'code'?: number; 'details'?: Array; 'message'?: string; } export interface SubjectSet { /** * Namespace of the Subject Set */ 'namespace': string; /** * Object of the Subject Set */ 'object': string; /** * Relation of the Subject Set */ 'relation': string; } export interface Subscription { 'created_at': string; /** * The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro */ 'currency': SubscriptionCurrencyEnum; /** * The currently active interval of the subscription monthly Monthly yearly Yearly */ 'current_interval': SubscriptionCurrentIntervalEnum; /** * The currently active plan of the subscription */ 'current_plan': string; 'current_plan_details'?: PlanDetails; /** * The ID of the stripe customer */ 'customer_id': string; /** * The ID of the subscription */ 'id': string; 'interval_changes_to': string | null; 'ongoing_stripe_checkout_id'?: string | null; /** * Until when the subscription is payed */ 'payed_until': string; 'plan_changes_at'?: string; 'plan_changes_to': string | null; /** * For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` status. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal status, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn\'t generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription\'s status unchanged. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. */ 'status': string; 'stripe_checkout_expires_at'?: string; 'updated_at': string; } export declare const SubscriptionCurrencyEnum: { readonly Usd: "usd"; readonly Eur: "eur"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SubscriptionCurrencyEnum = typeof SubscriptionCurrencyEnum[keyof typeof SubscriptionCurrencyEnum]; export declare const SubscriptionCurrentIntervalEnum: { readonly Monthly: "monthly"; readonly Yearly: "yearly"; readonly UnknownDefaultOpenApi: "11184809"; }; export type SubscriptionCurrentIntervalEnum = typeof SubscriptionCurrentIntervalEnum[keyof typeof SubscriptionCurrentIntervalEnum]; /** * The Response for Registration Flows via API */ export interface SuccessfulCodeExchangeResponse { 'session': Session; /** * The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! */ 'session_token'?: string; } /** * The Response for Login Flows via API */ export interface SuccessfulNativeLogin { /** * Contains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user\'s registration or the token of the session. */ 'continue_with'?: Array; 'session': Session; /** * The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! */ 'session_token'?: string; } /** * The Response for Registration Flows via API */ export interface SuccessfulNativeRegistration { /** * Contains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user\'s registration or the token of the session. */ 'continue_with'?: Array; 'identity': Identity; 'session'?: Session; /** * The Session Token This field is only set when the session hook is configured as a post-registration hook. A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! */ 'session_token'?: string; } export interface SuccessfulProjectUpdate { 'project': Project; /** * Import Warnings Not all configuration items can be imported to the Ory Network. For example, setting the port does not make sense because the Ory Network provides the runtime and networking. This field contains warnings where configuration keys were found but can not be imported. These keys will be ignored by the Ory Network. This field will help you understand why certain configuration keys might not be respected! */ 'warnings': Array; } /** * TalosRetiredValue is one entry of an Ory Talos retired-value array (retired HMAC secrets or retired issuer URLs). Retired values stay valid for verification during rotation. */ export interface TalosRetiredValue { /** * Optional RFC 3339 UTC timestamp after which Talos stops accepting this retired value during verification. Omit to never expire. */ 'expires_at'?: string; /** * The retired secret or issuer URL. */ 'value': string; } export interface TaxLineItem { 'amount_in_cent'?: number; 'title'?: string; } export interface TimeInterval { /** * The end of the time period. */ 'end': string; /** * The start of the time period. */ 'start': string; } export interface Token { /** * claims is the decoded token payload. For JWT, this contains the standard claims (iss, sub, aud, exp, iat, jti) plus custom claims. For macaroons, this lists the caveats. The shape is backend-dependent and should be treated as opaque diagnostic data. */ 'claims'?: object; 'expire_time'?: string; 'scopes'?: Array; /** * The encoded token string. JWT tokens are signed JWS in compact serialization (header.payload.signature). Macaroons are base64-encoded binary blobs. */ 'token'?: string; } /** * - TOKEN_ALGORITHM_JWT: JWT with EdDSA (self-contained, signed) - TOKEN_ALGORITHM_MACAROON: Macaroon with HMAC (self-contained, caveat-based) */ export declare const TokenAlgorithm: { readonly TokenAlgorithmUnspecified: "TOKEN_ALGORITHM_UNSPECIFIED"; readonly TokenAlgorithmJwt: "TOKEN_ALGORITHM_JWT"; readonly TokenAlgorithmMacaroon: "TOKEN_ALGORITHM_MACAROON"; readonly UnknownDefaultOpenApi: "11184809"; }; export type TokenAlgorithm = typeof TokenAlgorithm[keyof typeof TokenAlgorithm]; export interface TokenPagination { /** * Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_size'?: number; /** * Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_token'?: string; } export interface TokenPaginationHeaders { /** * The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). in: header */ 'link'?: string; /** * The total number of clients. in: header */ 'x-total-count'?: string; } /** * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ export interface TokenPaginationRequestParameters { /** * Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_size'?: number; /** * Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ 'page_token'?: string; } /** * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ export interface TokenPaginationResponseHeaders { /** * The Link HTTP Header The `Link` header contains a comma-delimited list of links to the following pages: first: The first page of results. next: The next page of results. prev: The previous page of results. last: The last page of results. Pages are omitted if they do not exist. For example, if there is no next page, the `next` link is omitted. Examples: ; rel=\"first\",; rel=\"next\",; rel=\"prev\",; rel=\"last\" */ 'link'?: string; /** * The X-Total-Count HTTP Header The `X-Total-Count` header contains the total number of items in the collection. */ 'x-total-count'?: number; } /** * Trust OAuth2 JWT Bearer Grant Type Issuer Request Body */ export interface TrustOAuth2JwtGrantIssuer { /** * The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. */ 'allow_any_subject'?: boolean; /** * The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". */ 'expires_at': string; /** * The \"issuer\" identifies the principal that issued the JWT assertion (same as \"iss\" claim in JWT). */ 'issuer': string; 'jwk': JsonWebKey; /** * The \"scope\" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) */ 'scope': Array; /** * The \"subject\" identifies the principal that is the subject of the JWT. */ 'subject'?: string; } /** * OAuth2 JWT Bearer Grant Type Issuer Trust Relationship */ export interface TrustedOAuth2JwtGrantIssuer { /** * The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. */ 'allow_any_subject'?: boolean; /** * The \"created_at\" indicates, when grant was created. */ 'created_at'?: string; /** * The \"expires_at\" indicates, when grant will expire, so we will reject assertion from \"issuer\" targeting \"subject\". */ 'expires_at'?: string; 'id'?: string; /** * The \"issuer\" identifies the principal that issued the JWT assertion (same as \"iss\" claim in JWT). */ 'issuer'?: string; 'public_key'?: TrustedOAuth2JwtGrantJsonWebKey; /** * The \"scope\" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) */ 'scope'?: Array; /** * The \"subject\" identifies the principal that is the subject of the JWT. */ 'subject'?: string; } /** * OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key */ export interface TrustedOAuth2JwtGrantJsonWebKey { /** * The \"key_id\" is key unique identifier (same as kid header in jws/jwt). */ 'kid'?: string; /** * The \"set\" is basically a name for a group(set) of keys. Will be the same as \"issuer\" in grant. */ 'set'?: string; } /** * Container represents a HTML Form. The container can work with both HTTP Form and JSON requests */ export interface UiContainer { /** * Action should be used as the form action URL `
`. */ 'action': string; 'messages'?: Array; /** * Method is the form method (e.g. POST) */ 'method': string; 'nodes': Array; } /** * Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `` tag, or an `` but also `some plain text`. */ export interface UiNode { 'attributes': UiNodeAttributes; /** * Group specifies which group (e.g. password authenticator) this node belongs to. default DefaultGroup password PasswordGroup oidc OpenIDConnectGroup profile ProfileGroup link LinkGroup code CodeGroup totp TOTPGroup lookup_secret LookupGroup webauthn WebAuthnGroup passkey PasskeyGroup identifier_first IdentifierFirstGroup captcha CaptchaGroup saml SAMLGroup deviceauthn DeviceAuthnGroup */ 'group': UiNodeGroupEnum; 'messages': Array; 'meta': UiNodeMeta; /** * The node\'s type text Text input Input img Image a Anchor script Script div Division */ 'type': UiNodeTypeEnum; } export declare const UiNodeGroupEnum: { readonly Default: "default"; readonly Password: "password"; readonly Oidc: "oidc"; readonly Profile: "profile"; readonly Link: "link"; readonly Code: "code"; readonly Totp: "totp"; readonly LookupSecret: "lookup_secret"; readonly Webauthn: "webauthn"; readonly Passkey: "passkey"; readonly IdentifierFirst: "identifier_first"; readonly Captcha: "captcha"; readonly Saml: "saml"; readonly Deviceauthn: "deviceauthn"; readonly Oauth2Consent: "oauth2_consent"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeGroupEnum = typeof UiNodeGroupEnum[keyof typeof UiNodeGroupEnum]; export declare const UiNodeTypeEnum: { readonly Text: "text"; readonly Input: "input"; readonly Img: "img"; readonly A: "a"; readonly Script: "script"; readonly Div: "div"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeTypeEnum = typeof UiNodeTypeEnum[keyof typeof UiNodeTypeEnum]; export interface UiNodeAnchorAttributes { /** * The link\'s href (destination) URL. format: uri */ 'href': string; /** * A unique identifier */ 'id': string; /** * NodeType represents this node\'s types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"a\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeAnchorAttributesNodeTypeEnum; 'title': UiText; } export declare const UiNodeAnchorAttributesNodeTypeEnum: { readonly A: "a"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeAnchorAttributesNodeTypeEnum = typeof UiNodeAnchorAttributesNodeTypeEnum[keyof typeof UiNodeAnchorAttributesNodeTypeEnum]; /** * @type UiNodeAttributes */ export type UiNodeAttributes = { node_type: 'a'; } & UiNodeAnchorAttributes | { node_type: 'div'; } & UiNodeDivisionAttributes | { node_type: 'img'; } & UiNodeImageAttributes | { node_type: 'input'; } & UiNodeInputAttributes | { node_type: 'script'; } & UiNodeScriptAttributes | { node_type: 'text'; } & UiNodeTextAttributes; /** * Division sections are used for interactive widgets that require a hook in the DOM / view. */ export interface UiNodeDivisionAttributes { /** * A classname that should be rendered into the DOM. */ 'class'?: string; /** * Data is a map of key-value pairs that are passed to the division. They may be used for `data-...` attributes. */ 'data'?: { [key: string]: string; }; /** * A unique identifier */ 'id': string; /** * NodeType represents this node\'s type. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"script\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeDivisionAttributesNodeTypeEnum; } export declare const UiNodeDivisionAttributesNodeTypeEnum: { readonly Div: "div"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeDivisionAttributesNodeTypeEnum = typeof UiNodeDivisionAttributesNodeTypeEnum[keyof typeof UiNodeDivisionAttributesNodeTypeEnum]; export interface UiNodeImageAttributes { /** * Height of the image */ 'height': number; /** * A unique identifier */ 'id': string; /** * NodeType represents this node\'s types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"img\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeImageAttributesNodeTypeEnum; /** * The image\'s source URL. format: uri */ 'src': string; /** * Width of the image */ 'width': number; } export declare const UiNodeImageAttributesNodeTypeEnum: { readonly Img: "img"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeImageAttributesNodeTypeEnum = typeof UiNodeImageAttributesNodeTypeEnum[keyof typeof UiNodeImageAttributesNodeTypeEnum]; /** * InputAttributes represents the attributes of an input node */ export interface UiNodeInputAttributes { /** * The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode username InputAttributeAutocompleteUsername username webauthn InputAttributeAutocompleteUsernameWebauthn */ 'autocomplete'?: UiNodeInputAttributesAutocompleteEnum; /** * Sets the input\'s disabled field to true or false. */ 'disabled': boolean; 'label'?: UiText; /** * MaxLength may contain the input\'s maximum length. */ 'maxlength'?: number; /** * The input\'s element name. */ 'name': string; /** * NodeType represents this node\'s types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"input\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeInputAttributesNodeTypeEnum; /** * OnClick may contain javascript which should be executed on click. This is primarily used for WebAuthn. Deprecated: Using OnClick requires the use of eval() which is a security risk. Use OnClickTrigger instead. */ 'onclick'?: string; /** * OnClickTrigger may contain a WebAuthn trigger which should be executed on click. The trigger maps to a JavaScript function provided by Ory, which triggers actions such as PassKey registration or login. oryWebAuthnRegistration WebAuthnTriggersWebAuthnRegistration oryWebAuthnLogin WebAuthnTriggersWebAuthnLogin oryPasskeyLogin WebAuthnTriggersPasskeyLogin oryPasskeyLoginAutocompleteInit WebAuthnTriggersPasskeyLoginAutocompleteInit oryPasskeyRegistration WebAuthnTriggersPasskeyRegistration oryPasskeySettingsRegistration WebAuthnTriggersPasskeySettingsRegistration */ 'onclickTrigger'?: UiNodeInputAttributesOnclickTriggerEnum; /** * OnLoad may contain javascript which should be executed on load. This is primarily used for WebAuthn. Deprecated: Using OnLoad requires the use of eval() which is a security risk. Use OnLoadTrigger instead. */ 'onload'?: string; /** * OnLoadTrigger may contain a WebAuthn trigger which should be executed on load. The trigger maps to a JavaScript function provided by Ory, which triggers actions such as PassKey registration or login. oryWebAuthnRegistration WebAuthnTriggersWebAuthnRegistration oryWebAuthnLogin WebAuthnTriggersWebAuthnLogin oryPasskeyLogin WebAuthnTriggersPasskeyLogin oryPasskeyLoginAutocompleteInit WebAuthnTriggersPasskeyLoginAutocompleteInit oryPasskeyRegistration WebAuthnTriggersPasskeyRegistration oryPasskeySettingsRegistration WebAuthnTriggersPasskeySettingsRegistration */ 'onloadTrigger'?: UiNodeInputAttributesOnloadTriggerEnum; /** * The allowed values for the input when the underlying JSON schema defines an `enum`. When present, clients should render the field as a select/dropdown rather than a free-form text input. When absent, clients continue to render a plain text input, so this field is backward compatible with UIs that do not look at it. */ 'options'?: Array; /** * The input\'s pattern. */ 'pattern'?: string; /** * Mark this input field as required. */ 'required'?: boolean; /** * The input\'s element type. text InputAttributeTypeText password InputAttributeTypePassword number InputAttributeTypeNumber checkbox InputAttributeTypeCheckbox hidden InputAttributeTypeHidden email InputAttributeTypeEmail tel InputAttributeTypeTel submit InputAttributeTypeSubmit button InputAttributeTypeButton datetime-local InputAttributeTypeDateTimeLocal date InputAttributeTypeDate url InputAttributeTypeURI */ 'type': UiNodeInputAttributesTypeEnum; /** * The input\'s value. */ 'value'?: any | null; } export declare const UiNodeInputAttributesAutocompleteEnum: { readonly Email: "email"; readonly Tel: "tel"; readonly Url: "url"; readonly CurrentPassword: "current-password"; readonly NewPassword: "new-password"; readonly OneTimeCode: "one-time-code"; readonly Username: "username"; readonly UsernameWebauthn: "username webauthn"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeInputAttributesAutocompleteEnum = typeof UiNodeInputAttributesAutocompleteEnum[keyof typeof UiNodeInputAttributesAutocompleteEnum]; export declare const UiNodeInputAttributesNodeTypeEnum: { readonly Input: "input"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeInputAttributesNodeTypeEnum = typeof UiNodeInputAttributesNodeTypeEnum[keyof typeof UiNodeInputAttributesNodeTypeEnum]; export declare const UiNodeInputAttributesOnclickTriggerEnum: { readonly OryWebAuthnRegistration: "oryWebAuthnRegistration"; readonly OryWebAuthnLogin: "oryWebAuthnLogin"; readonly OryPasskeyLogin: "oryPasskeyLogin"; readonly OryPasskeyLoginAutocompleteInit: "oryPasskeyLoginAutocompleteInit"; readonly OryPasskeyRegistration: "oryPasskeyRegistration"; readonly OryPasskeySettingsRegistration: "oryPasskeySettingsRegistration"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeInputAttributesOnclickTriggerEnum = typeof UiNodeInputAttributesOnclickTriggerEnum[keyof typeof UiNodeInputAttributesOnclickTriggerEnum]; export declare const UiNodeInputAttributesOnloadTriggerEnum: { readonly OryWebAuthnRegistration: "oryWebAuthnRegistration"; readonly OryWebAuthnLogin: "oryWebAuthnLogin"; readonly OryPasskeyLogin: "oryPasskeyLogin"; readonly OryPasskeyLoginAutocompleteInit: "oryPasskeyLoginAutocompleteInit"; readonly OryPasskeyRegistration: "oryPasskeyRegistration"; readonly OryPasskeySettingsRegistration: "oryPasskeySettingsRegistration"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeInputAttributesOnloadTriggerEnum = typeof UiNodeInputAttributesOnloadTriggerEnum[keyof typeof UiNodeInputAttributesOnloadTriggerEnum]; export declare const UiNodeInputAttributesTypeEnum: { readonly Text: "text"; readonly Password: "password"; readonly Number: "number"; readonly Checkbox: "checkbox"; readonly Hidden: "hidden"; readonly Email: "email"; readonly Tel: "tel"; readonly Submit: "submit"; readonly Button: "button"; readonly DatetimeLocal: "datetime-local"; readonly Date: "date"; readonly Url: "url"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeInputAttributesTypeEnum = typeof UiNodeInputAttributesTypeEnum[keyof typeof UiNodeInputAttributesTypeEnum]; /** * Represents a single selectable value for an input whose JSON schema defined an `enum`. The value is always a scalar JSON type (string, number, or boolean) serialized verbatim from the schema. When present, clients should render the parent input as a select/dropdown. */ export interface UiNodeInputAttributesOption { /** * The value that will be submitted when this option is picked. It is serialized verbatim from the JSON schema `enum` entry, so it is always a scalar JSON value (string, number, or boolean). */ 'value': any; } /** * This might include a label and other information that can optionally be used to render UIs. */ export interface UiNodeMeta { 'label'?: UiText; } export interface UiNodeScriptAttributes { /** * The script async type */ 'async': boolean; /** * The script cross origin policy */ 'crossorigin': string; /** * A unique identifier */ 'id': string; /** * The script\'s integrity hash */ 'integrity': string; /** * NodeType represents this node\'s types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"script\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeScriptAttributesNodeTypeEnum; /** * Nonce for CSP A nonce you may want to use to improve your Content Security Policy. You do not have to use this value but if you want to improve your CSP policies you may use it. You can also choose to use your own nonce value! */ 'nonce': string; /** * The script referrer policy */ 'referrerpolicy': string; /** * The script source */ 'src': string; /** * The script MIME type */ 'type': string; } export declare const UiNodeScriptAttributesNodeTypeEnum: { readonly Script: "script"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeScriptAttributesNodeTypeEnum = typeof UiNodeScriptAttributesNodeTypeEnum[keyof typeof UiNodeScriptAttributesNodeTypeEnum]; export interface UiNodeTextAttributes { /** * A unique identifier */ 'id': string; /** * NodeType represents this node\'s types. It is a mirror of `node.type` and is primarily used to allow compatibility with OpenAPI 3.0. In this struct it technically always is \"text\". text Text input Input img Image a Anchor script Script div Division */ 'node_type': UiNodeTextAttributesNodeTypeEnum; 'text': UiText; } export declare const UiNodeTextAttributesNodeTypeEnum: { readonly Text: "text"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiNodeTextAttributesNodeTypeEnum = typeof UiNodeTextAttributesNodeTypeEnum[keyof typeof UiNodeTextAttributesNodeTypeEnum]; export interface UiText { /** * The message\'s context. Useful when customizing messages. */ 'context'?: object; 'id': number; /** * The message text. Written in american english. */ 'text': string; /** * The message type. info Info error Error success Success */ 'type': UiTextTypeEnum; } export declare const UiTextTypeEnum: { readonly Info: "info"; readonly Error: "error"; readonly Success: "success"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UiTextTypeEnum = typeof UiTextTypeEnum[keyof typeof UiTextTypeEnum]; export interface UpdateFedcmFlowBody { /** * CSRFToken is the anti-CSRF token. */ 'csrf_token': string; /** * Nonce is the nonce that was used in the `navigator.credentials.get` call. If specified, it must match the `nonce` claim in the token. */ 'nonce'?: string; /** * Token contains the result of `navigator.credentials.get`. */ 'token': string; /** * Transient data to pass along to any webhooks. */ 'transient_payload'?: object; } /** * Update Identity Body */ export interface UpdateIdentityBody { 'credentials'?: IdentityWithCredentials; /** * ExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities. */ 'external_id'?: string; /** * Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. */ 'metadata_admin'?: any; /** * Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. */ 'metadata_public'?: any; /** * Region is the Ory Network region this identity is homed in. Optional; omit to leave the current region unchanged. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'region'?: UpdateIdentityBodyRegionEnum; /** * SchemaID is the ID of the JSON Schema to be used for validating the identity\'s traits. If set will update the Identity\'s SchemaID. */ 'schema_id': string; /** * State is the identity\'s state. active StateActive inactive StateInactive */ 'state': UpdateIdentityBodyStateEnum; /** * Traits represent an identity\'s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. */ 'traits': object; } export declare const UpdateIdentityBodyRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateIdentityBodyRegionEnum = typeof UpdateIdentityBodyRegionEnum[keyof typeof UpdateIdentityBodyRegionEnum]; export declare const UpdateIdentityBodyStateEnum: { readonly Active: "active"; readonly Inactive: "inactive"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateIdentityBodyStateEnum = typeof UpdateIdentityBodyStateEnum[keyof typeof UpdateIdentityBodyStateEnum]; /** * @type UpdateLoginFlowBody */ export type UpdateLoginFlowBody = { method: 'code'; } & UpdateLoginFlowWithCodeMethod | { method: 'deviceauthn'; } & UpdateLoginFlowWithDeviceAuthnMethod | { method: 'identifier_first'; } & UpdateLoginFlowWithIdentifierFirstMethod | { method: 'lookup_secret'; } & UpdateLoginFlowWithLookupSecretMethod | { method: 'oidc'; } & UpdateLoginFlowWithOidcMethod | { method: 'passkey'; } & UpdateLoginFlowWithPasskeyMethod | { method: 'password'; } & UpdateLoginFlowWithPasswordMethod | { method: 'saml'; } & UpdateLoginFlowWithSamlMethod | { method: 'totp'; } & UpdateLoginFlowWithTotpMethod | { method: 'webauthn'; } & UpdateLoginFlowWithWebAuthnMethod; /** * Update Login flow using the code method */ export interface UpdateLoginFlowWithCodeMethod { /** * Address is the address to send the code to, in case that there are multiple addresses. This field is only used in two-factor flows and is ineffective for passwordless flows. */ 'address'?: string; /** * Code is the 6 digits code sent to the user */ 'code'?: string; /** * CSRFToken is the anti-CSRF token */ 'csrf_token': string; /** * Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. */ 'identifier'?: string; /** * Method should be set to \"code\" when logging in using the code strategy. */ 'method': string; /** * Resend is set when the user wants to resend the code */ 'resend'?: string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Log in by proving possession of an enrolled device key. The device signs the challenge nonce found in the login flow\'s hidden `deviceauthn_nonce` UI node; a PIN-protected key additionally proves knowledge of the PIN via `pin_proof`. Use it for step-up in a login flow created with `aal=aal2`, or as the sole first factor (a one-step AAL2 login, for keys with \"pin\" or \"platform\" user verification) when the project\'s deviceauthn first_factor setting is enabled. Only API (native) flows support this method. */ export interface UpdateLoginFlowWithDeviceAuthnMethod { /** * The client_key_id of the enrolled key to authenticate with. It is the key\'s deterministic fingerprint: the lowercase-hex SHA-256 of the device public key in PKIX, ASN.1 DER (SubjectPublicKeyInfo) form, which the device can recompute locally after enrollment. Keys enrolled before the server derived the id use their original client-chosen value. */ 'client_key_id': string; /** * Method should be set to \"deviceauthn\" when logging in using the DeviceAuthn strategy. */ 'method': string; /** * The proof of the PIN, required if and only if the key is PIN-protected. To compute it: 1. Recover the 32-byte pin_secret on the device. It was delivered HPKE-sealed exactly once at enrollment or rotation and is bound to the user\'s PIN locally. 2. Compute HMAC-SHA256, keyed with the pin_secret, over the concatenation of three byte strings: the ASCII domain prefix \"ory/deviceauthn/pin-proof/v1\", the client_key_id exactly as sent (its 64-character lowercase-hex ASCII form, not hex-decoded), and the raw challenge bytes also covered by `signature`. 3. Submit the 32-byte MAC output. The proof shows knowledge of the PIN without transmitting the PIN or the pin_secret. After too many wrong attempts (pin_max_attempts, default 5) the key locks and can no longer be used to log in. */ 'pin_proof'?: string; /** * The device\'s signature over the challenge nonce carried by the login flow\'s hidden `deviceauthn_nonce` UI node. To compute it: 1. Base64-decode the `deviceauthn_nonce` node\'s value and parse the result as JSON. 2. Base64-decode the JSON\'s `nonce` field. The decoded raw bytes are the challenge. 3. On Android, sign the challenge with the enrolled hardware-backed key using `Signature.getInstance(\"SHA256withECDSA\")` (it hashes internally) and submit the resulting ASN.1 DER-encoded ECDSA signature. On iOS, call `DCAppAttestService.generateAssertion`, passing the raw challenge bytes as the `clientDataHash` argument — do not hash them again — and submit the returned CBOR-encoded App Attest assertion unchanged. */ 'signature': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Login Flow with Multi-Step Method */ export interface UpdateLoginFlowWithIdentifierFirstMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Identifier is the email or username of the user trying to log in. */ 'identifier': string; /** * Method should be set to \"password\" when logging in using the identifier and password strategy. */ 'method': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Login Flow with Lookup Secret Method */ export interface UpdateLoginFlowWithLookupSecretMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * The lookup secret. */ 'lookup_secret': string; /** * Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy. */ 'method': string; } /** * Update Login Flow with OpenID Connect Method */ export interface UpdateLoginFlowWithOidcMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider\'s public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity\'s traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple Google */ 'id_token'?: string; /** * IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. */ 'id_token_nonce'?: string; /** * Method to use This field must be set to `oidc` when using the oidc method. */ 'method': string; /** * The provider to register with */ 'provider': string; /** * The identity traits. This is a placeholder for the registration flow. */ 'traits'?: object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. `acr_values` (string): The `acr_values` specifies the Authentication Context Class Reference values for the authorization request. */ 'upstream_parameters'?: object; } /** * Update Login Flow with Passkey Method */ export interface UpdateLoginFlowWithPasskeyMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Method should be set to \"passkey\" when logging in using the Passkey strategy. */ 'method': string; /** * Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. */ 'passkey_login'?: string; } /** * Update Login Flow with Password Method */ export interface UpdateLoginFlowWithPasswordMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Identifier is the email or username of the user trying to log in. */ 'identifier': string; /** * Method should be set to \"password\" when logging in using the identifier and password strategy. */ 'method': string; /** * The user\'s password. */ 'password': string; /** * Identifier is the email or username of the user trying to log in. This field is deprecated! */ 'password_identifier'?: string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update login flow using SAML */ export interface UpdateLoginFlowWithSamlMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * Method to use This field must be set to `saml` when using the saml method. */ 'method': string; /** * The provider to register with */ 'provider': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Login Flow with TOTP Method */ export interface UpdateLoginFlowWithTotpMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Method should be set to \"totp\" when logging in using the TOTP strategy. */ 'method': string; /** * The TOTP code. */ 'totp_code': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Login Flow with WebAuthn Method */ export interface UpdateLoginFlowWithWebAuthnMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Identifier is the email or username of the user trying to log in. */ 'identifier': string; /** * Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. */ 'method': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. */ 'webauthn_login'?: string; } export interface UpdateOrganizationOnboardingPortalLinkBody { /** * Feature flag to enable SCIM configuration */ 'enable_scim': boolean; /** * Feature flag to enable SSO configuration */ 'enable_sso': boolean; 'expires_at'?: string; } /** * @type UpdateRecoveryFlowBody * Update Recovery Flow Request Body */ export type UpdateRecoveryFlowBody = { method: 'code'; } & UpdateRecoveryFlowWithCodeMethod | { method: 'link'; } & UpdateRecoveryFlowWithLinkMethod; /** * Update Recovery Flow with Code Method */ export interface UpdateRecoveryFlowWithCodeMethod { /** * Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. */ 'code'?: string; /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.com/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email */ 'email'?: string; /** * Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode */ 'method': UpdateRecoveryFlowWithCodeMethodMethodEnum; /** * A recovery address that is registered for the user. It can be an email, a phone number (to receive the code via SMS), etc. Used in RecoveryV2. */ 'recovery_address'?: string; /** * If there are multiple recovery addresses registered for the user, and the initially provided address is different from the address chosen when the choice (of masked addresses) is presented, then we need to make sure that the user actually knows the full address to avoid information exfiltration, so we ask for the full address. Used in RecoveryV2. */ 'recovery_confirm_address'?: string; /** * If there are multiple addresses registered for the user, a choice is presented and this field stores the result of this choice. Addresses are \'masked\' (never sent in full to the client and shown partially in the UI) since at this point in the recovery flow, the user has not yet proven that it knows the full address and we want to avoid information exfiltration. So for all intents and purposes, the value of this field should be treated as an opaque identifier. Used in RecoveryV2. */ 'recovery_select_address'?: string; /** * Set to \"previous\" to go back in the flow, meaningfully. Used in RecoveryV2. */ 'screen'?: string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } export declare const UpdateRecoveryFlowWithCodeMethodMethodEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateRecoveryFlowWithCodeMethodMethodEnum = typeof UpdateRecoveryFlowWithCodeMethodMethodEnum[keyof typeof UpdateRecoveryFlowWithCodeMethodMethodEnum]; /** * Update Recovery Flow with Link Method */ export interface UpdateRecoveryFlowWithLinkMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, an email with details on what happened will be sent instead. format: email */ 'email': string; /** * Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode */ 'method': UpdateRecoveryFlowWithLinkMethodMethodEnum; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } export declare const UpdateRecoveryFlowWithLinkMethodMethodEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateRecoveryFlowWithLinkMethodMethodEnum = typeof UpdateRecoveryFlowWithLinkMethodMethodEnum[keyof typeof UpdateRecoveryFlowWithLinkMethodMethodEnum]; /** * @type UpdateRegistrationFlowBody * Update Registration Request Body */ export type UpdateRegistrationFlowBody = { method: 'code'; } & UpdateRegistrationFlowWithCodeMethod | { method: 'oidc'; } & UpdateRegistrationFlowWithOidcMethod | { method: 'passkey'; } & UpdateRegistrationFlowWithPasskeyMethod | { method: 'password'; } & UpdateRegistrationFlowWithPasswordMethod | { method: 'profile'; } & UpdateRegistrationFlowWithProfileMethod | { method: 'saml'; } & UpdateRegistrationFlowWithSamlMethod | { method: 'webauthn'; } & UpdateRegistrationFlowWithWebAuthnMethod; /** * Update Registration Flow with Code Method */ export interface UpdateRegistrationFlowWithCodeMethod { /** * The OTP Code sent to the user */ 'code'?: string; /** * The CSRF Token */ 'csrf_token'?: string; /** * Method to use This field must be set to `code` when using the code method. */ 'method': string; /** * Resend restarts the flow with a new code */ 'resend'?: string; /** * The identity\'s traits */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Registration Flow with OpenID Connect Method */ export interface UpdateRegistrationFlowWithOidcMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider\'s public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity\'s traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple Google */ 'id_token'?: string; /** * IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. */ 'id_token_nonce'?: string; /** * Method to use This field must be set to `oidc` when using the oidc method. */ 'method': string; /** * The provider to register with */ 'provider': string; /** * The identity traits */ 'traits'?: object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. `acr_values` (string): The `acr_values` specifies the Authentication Context Class Reference values for the authorization request. */ 'upstream_parameters'?: object; } /** * Update Registration Flow with Passkey Method */ export interface UpdateRegistrationFlowWithPasskeyMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to \"passkey\" when trying to add, update, or remove a Passkey. */ 'method': string; /** * Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. */ 'passkey_register'?: string; /** * The identity\'s traits */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Registration Flow with Password Method */ export interface UpdateRegistrationFlowWithPasswordMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * Method to use This field must be set to `password` when using the password method. */ 'method': string; /** * Password to sign the user up with */ 'password': string; /** * The identity\'s traits */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Registration Flow with Profile Method */ export interface UpdateRegistrationFlowWithProfileMethod { /** * The Anti-CSRF Token This token is only required when performing browser flows. */ 'csrf_token'?: string; /** * Method Should be set to profile when trying to update a profile. */ 'method': string; /** * Screen requests navigation to a previous screen. This must be set to credential-selection to go back to the credential selection screen. credential-selection RegistrationScreenCredentialSelection nolint:gosec // not a credential previous RegistrationScreenPrevious */ 'screen'?: UpdateRegistrationFlowWithProfileMethodScreenEnum; /** * Traits The identity\'s traits. */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } export declare const UpdateRegistrationFlowWithProfileMethodScreenEnum: { readonly CredentialSelection: "credential-selection"; readonly Previous: "previous"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateRegistrationFlowWithProfileMethodScreenEnum = typeof UpdateRegistrationFlowWithProfileMethodScreenEnum[keyof typeof UpdateRegistrationFlowWithProfileMethodScreenEnum]; /** * Update registration flow using SAML */ export interface UpdateRegistrationFlowWithSamlMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * Method to use This field must be set to `saml` when using the saml method. */ 'method': string; /** * The provider to register with */ 'provider': string; /** * The identity traits */ 'traits'?: object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Registration Flow with WebAuthn Method */ export interface UpdateRegistrationFlowWithWebAuthnMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. */ 'method': string; /** * The identity\'s traits */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. */ 'webauthn_register'?: string; /** * Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. */ 'webauthn_register_displayname'?: string; } /** * @type UpdateSettingsFlowBody * Update Settings Flow Request Body */ export type UpdateSettingsFlowBody = { method: 'deviceauthn'; } & UpdateSettingsFlowWithDeviceAuthnMethod | { method: 'lookup_secret'; } & UpdateSettingsFlowWithLookupMethod | { method: 'oidc'; } & UpdateSettingsFlowWithOidcMethod | { method: 'passkey'; } & UpdateSettingsFlowWithPasskeyMethod | { method: 'password'; } & UpdateSettingsFlowWithPasswordMethod | { method: 'profile'; } & UpdateSettingsFlowWithProfileMethod | { method: 'saml'; } & UpdateSettingsFlowWithSamlMethod | { method: 'totp'; } & UpdateSettingsFlowWithTotpMethod | { method: 'webauthn'; } & UpdateSettingsFlowWithWebAuthnMethod; /** * Manages the identity\'s enrolled device keys. Set exactly one of `deviceauthn_register` (enroll a new key), `deviceauthn_remove` (remove a key), or `rotate_secret` (re-issue the pin_secret of a PIN-protected key). */ export interface UpdateSettingsFlowWithDeviceAuthnMethod { /** * CSRFToken is the anti-CSRF token. It is only required to remove a key from the browser. */ 'csrf_token'?: string; /** * Enrolls a new device key. Set exactly one of deviceauthn_register, deviceauthn_remove, or rotate_secret. */ 'deviceauthn_register'?: UpdateSettingsFlowWithDeviceAuthnMethodRegister; /** * The client_key_id of the key to remove: the key\'s deterministic fingerprint, the lowercase-hex SHA-256 of the device public key in PKIX, ASN.1 DER (SubjectPublicKeyInfo) form. Keys enrolled before the server derived the id use their original client-chosen value. */ 'deviceauthn_remove'?: string; /** * Method Should be set to \"deviceauthn\" when adding, removing, or rotating the secret of a DeviceAuthn key. */ 'method': string; /** * Re-issues the pin_secret of an existing PIN-protected device key. Set exactly one of deviceauthn_register, deviceauthn_remove, or rotate_secret. */ 'rotate_secret'?: UpdateSettingsFlowWithDeviceAuthnMethodRotateSecret; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Enrolls a new device key from a hardware-backed platform attestation. Provide exactly one of certificate_chain_android or attestation_ios. The attestation must embed the enrollment challenge, computed as follows: 1. Base64-decode the settings flow\'s hidden `deviceauthn_nonce` UI node value, parse the result as JSON, and base64-decode its `nonce` field. 2. For a key without a PIN, the raw nonce bytes are the challenge. For a PIN-protected key, the challenge is the SHA-256 of the raw nonce concatenated with the raw transport_public_key bytes, which binds the transport key into the attestation. For a PIN-protected key the server returns a one-time sealed pin_secret in the flow\'s `continue_with` items (action `show_pin_entry_ui`). */ export interface UpdateSettingsFlowWithDeviceAuthnMethodRegister { /** * The CBOR-encoded Apple App Attest attestation object for the new key. Generate the key with `DCAppAttestService.generateKey`, then obtain the attestation with `DCAppAttestService.attestKey`, passing the enrollment challenge described above as the `clientDataHash` argument — do not hash it again — and submit the result unchanged. Set exactly one of certificate_chain_android or attestation_ios. */ 'attestation_ios'?: string; /** * The Android Key Attestation certificate chain for the new key, one base64-encoded DER certificate per element, leaf first: the first element certifies the on-device key, the last is the Google attestation root. Generate the key on-device (imported keys are rejected) in the hardware-backed keystore as an elliptic-curve (P-224, P-256, P-384, or P-521) signing key: `KeyGenParameterSpec.Builder(alias, PURPOSE_SIGN)` with `DIGEST_SHA256` and `setAttestationChallenge(challenge)`, where challenge is the enrollment challenge described above. Then submit the chain returned by `KeyStore.getCertificateChain`. Set exactly one of certificate_chain_android or attestation_ios. */ 'certificate_chain_android'?: Array; /** * A human-readable name for the device, e.g. \'My work phone\'. It helps the user tell this key apart from others. */ 'device_name': string; /** * Set to true to enroll the key as PIN-protected. The server then mints a 32-byte pin_secret and returns it exactly once, in the settings-flow response: the `continue_with` array contains an item with action `show_pin_entry_ui` whose `data.enc` (HPKE encapsulated key) and `data.ciphertext` (sealed pin_secret) fields are base64-encoded and sealed to transport_public_key. Open them on the device with the transport private key using HPKE with DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM, the ASCII info string \"ory/deviceauthn/pin-secret/v1\", and the client_key_id (its ASCII hex form) as the AAD, then bind the secret to the user\'s PIN locally. The sealed secret is never delivered again; logins with the key must then include a pin_proof. */ 'pin_protected'?: boolean; /** * The device\'s X25519 transport public key (32 bytes, base64-encoded) used to seal the returned pin_secret so only this device can open it. Required when pin_protected is true, ignored otherwise. Generate a fresh, random X25519 key pair for each request — for example with CryptoKit\'s `Curve25519.KeyAgreement.PrivateKey()` on iOS or `KeyPairGenerator.getInstance(\"XDH\")` on Android — and submit the raw 32-byte public key. It is a transport-encryption key, distinct from the attested signing key. Keep the private key only until the sealed pin_secret from the response has been opened, then discard it. The HPKE suite is DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM. */ 'transport_public_key'?: string; /** * Declares how the key\'s holder is verified at use time. One of \"pin\", \"platform\", or \"none\" (or empty, which maps to \"none\"). \"pin\" is implied by pin_protected and need not be set explicitly. For \"platform\" on Android, generate the key with `setUserAuthenticationRequired(true)`: the server rejects the claim unless the attestation shows user-authentication gating (KeyMint user_auth_type). On iOS the declaration is trusted, since App Attest cannot prove biometric gating; iOS platform keys therefore count as a sole first factor only when the project enables ios_biometric_first_factor. */ 'user_verification'?: UserVerification; /** * The cryptography version to enroll the key with. Only `1` is currently supported, which corresponds to ECDSA with SHA-256 on an elliptic curve (P-224, P-256, P-384, or P-521). */ 'version': number; } /** * Re-issues a fresh pin_secret for an existing PIN-protected DeviceAuthn key without changing the device signing key. It is the recovery path for a forgotten PIN or a locked key. The server returns the new secret exactly once, HPKE-sealed to the supplied transport_public_key, in the flow\'s `continue_with` items (action `show_pin_entry_ui`). */ export interface UpdateSettingsFlowWithDeviceAuthnMethodRotateSecret { /** * The client_key_id of the existing PIN-protected key whose pin_secret to rotate: the lowercase-hex SHA-256 of the device public key in PKIX, ASN.1 DER (SubjectPublicKeyInfo) form. The device signing key is unchanged by the rotation. */ 'client_key_id': string; /** * Proves current possession of the enrolled device signing key. To compute it: 1. Base64-decode the settings flow\'s hidden `deviceauthn_nonce` UI node value, parse the result as JSON, and base64-decode its `nonce` field. 2. Concatenate the raw nonce bytes and the raw transport_public_key bytes; this is the challenge. 3. Sign the challenge exactly as at login: on Android with `Signature.getInstance(\"SHA256withECDSA\")`, submitting the resulting ASN.1 DER-encoded ECDSA signature; on iOS with `DCAppAttestService.generateAssertion`, passing the challenge bytes as the `clientDataHash` argument — do not hash them again — and submitting the returned CBOR-encoded App Attest assertion unchanged. Binding the transport key into the signed challenge ensures a hijacked session (stolen token, XSS) cannot rotate the secret and have it sealed to a transport key it controls. */ 'signature': string; /** * The device\'s X25519 transport public key (32 bytes, base64-encoded) used to seal the freshly issued pin_secret so only this device can open it. Generate a fresh, random X25519 key pair for each rotation — it is a transport-encryption key, distinct from the attested signing key — and submit the raw 32-byte public key. Keep the private key only until the sealed pin_secret from the response has been opened, then discard it. The HPKE suite is DHKEM(X25519, HKDF-SHA256), HKDF-SHA256, AES-128-GCM. */ 'transport_public_key': string; } /** * Update Settings Flow with Lookup Method */ export interface UpdateSettingsFlowWithLookupMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * If set to true will save the regenerated lookup secrets */ 'lookup_secret_confirm'?: boolean; /** * Disables this method if true. */ 'lookup_secret_disable'?: boolean; /** * If set to true will regenerate the lookup secrets */ 'lookup_secret_regenerate'?: boolean; /** * If set to true will reveal the lookup secrets */ 'lookup_secret_reveal'?: boolean; /** * Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. */ 'method': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Settings Flow with OpenID Connect Method */ export interface UpdateSettingsFlowWithOidcMethod { /** * Flow ID is the flow\'s ID. in: query */ 'flow'?: string; /** * Link this provider Either this or `unlink` must be set. type: string in: body */ 'link'?: string; /** * Method Should be set to profile when trying to update a profile. */ 'method': string; /** * The identity\'s traits in: body */ 'traits'?: object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * Unlink this provider Either this or `link` must be set. type: string in: body */ 'unlink'?: string; /** * UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. `acr_values` (string): The `acr_values` specifies the Authentication Context Class Reference values for the authorization request. */ 'upstream_parameters'?: object; } /** * Update Settings Flow with Passkey Method */ export interface UpdateSettingsFlowWithPasskeyMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to \"passkey\" when trying to add, update, or remove a webAuthn pairing. */ 'method': string; /** * Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. */ 'passkey_remove'?: string; /** * Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. */ 'passkey_settings_register'?: string; } /** * Update Settings Flow with Password Method */ export interface UpdateSettingsFlowWithPasswordMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to password when trying to update a password. */ 'method': string; /** * Password is the updated password */ 'password': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Settings Flow with Profile Method */ export interface UpdateSettingsFlowWithProfileMethod { /** * The Anti-CSRF Token This token is only required when performing browser flows. */ 'csrf_token'?: string; /** * Method Should be set to profile when trying to update a profile. */ 'method': string; /** * Traits The identity\'s traits. */ 'traits': object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update settings flow using SAML */ export interface UpdateSettingsFlowWithSamlMethod { /** * The CSRF Token */ 'csrf_token'?: string; /** * Flow ID is the flow\'s ID. in: query */ 'flow'?: string; /** * Link this provider Either this or `unlink` must be set. type: string in: body */ 'link'?: string; /** * Method Should be set to saml when trying to update a profile. */ 'method': string; /** * The identity\'s traits in: body */ 'traits'?: object; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * Unlink this provider Either this or `link` must be set. type: string in: body */ 'unlink'?: string; } /** * Update Settings Flow with TOTP Method */ export interface UpdateSettingsFlowWithTotpMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. */ 'method': string; /** * ValidationTOTP must contain a valid TOTP based on the */ 'totp_code'?: string; /** * UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. */ 'totp_unlink'?: boolean; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } /** * Update Settings Flow with WebAuthn Method */ export interface UpdateSettingsFlowWithWebAuthnMethod { /** * CSRFToken is the anti-CSRF token */ 'csrf_token'?: string; /** * Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. */ 'method': string; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; /** * Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. */ 'webauthn_register'?: string; /** * Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. */ 'webauthn_register_displayname'?: string; /** * Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. */ 'webauthn_remove'?: string; } export interface UpdateSubscriptionBody { /** * monthly Monthly yearly Yearly */ 'interval': UpdateSubscriptionBodyIntervalEnum; 'plan': string; 'return_to'?: string; } export declare const UpdateSubscriptionBodyIntervalEnum: { readonly Monthly: "monthly"; readonly Yearly: "yearly"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateSubscriptionBodyIntervalEnum = typeof UpdateSubscriptionBodyIntervalEnum[keyof typeof UpdateSubscriptionBodyIntervalEnum]; /** * @type UpdateVerificationFlowBody * Update Verification Flow Request Body */ export type UpdateVerificationFlowBody = { method: 'code'; } & UpdateVerificationFlowWithCodeMethod | { method: 'link'; } & UpdateVerificationFlowWithLinkMethod; export interface UpdateVerificationFlowWithCodeMethod { /** * Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. */ 'code'?: string; /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * The email address or phone number to verify If the provided address belongs to a valid account, a verification email or SMS will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.com/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. */ 'email'?: string; /** * Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode */ 'method': UpdateVerificationFlowWithCodeMethodMethodEnum; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } export declare const UpdateVerificationFlowWithCodeMethodMethodEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateVerificationFlowWithCodeMethodMethodEnum = typeof UpdateVerificationFlowWithCodeMethodMethodEnum[keyof typeof UpdateVerificationFlowWithCodeMethodMethodEnum]; /** * Update Verification Flow with Link Method */ export interface UpdateVerificationFlowWithLinkMethod { /** * Sending the anti-csrf token is only required for browser login flows. */ 'csrf_token'?: string; /** * Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email */ 'email': string; /** * Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode */ 'method': UpdateVerificationFlowWithLinkMethodMethodEnum; /** * Transient data to pass along to any webhooks */ 'transient_payload'?: object; } export declare const UpdateVerificationFlowWithLinkMethodMethodEnum: { readonly Link: "link"; readonly Code: "code"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateVerificationFlowWithLinkMethodMethodEnum = typeof UpdateVerificationFlowWithLinkMethodMethodEnum[keyof typeof UpdateVerificationFlowWithLinkMethodMethodEnum]; export interface UpdateWorkspaceBody { /** * The access policy of the workspace. If the workspace is not linked to an organization, this field is ignored and the access policy is set to \"INVITED_MEMBERS\", which allows all invited members to access the workspace. CHECK_ORGANIZATION_AND_WORKSPACE_MEMBERSHIP WorkspaceAccessPolicyOrganizationMembershipRequired Only invited members that are part of the organization defined for the workspace can access it CHECK_ACCESS_PERMISSION WorkspaceAccessPolicyMembershipRequired All invited members can access the workspace, regardless of their organization membership This is useful for migration scenarios where workspaces previously did not have an organization assigned If a user is just a member of a project within the workspace, they\'ll still have access to the project, but not to the workspace itself (the default for existing workspaces) */ 'access_policy'?: UpdateWorkspaceBodyAccessPolicyEnum; /** * The name of the workspace. */ 'name': string; } export declare const UpdateWorkspaceBodyAccessPolicyEnum: { readonly CheckOrganizationAndWorkspaceMembership: "CHECK_ORGANIZATION_AND_WORKSPACE_MEMBERSHIP"; readonly CheckAccessPermission: "CHECK_ACCESS_PERMISSION"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UpdateWorkspaceBodyAccessPolicyEnum = typeof UpdateWorkspaceBodyAccessPolicyEnum[keyof typeof UpdateWorkspaceBodyAccessPolicyEnum]; export interface UpdateWorkspaceOrganizationBody { /** * SessionLifespan overrides the project-level session lifespan for sessions issued for this organization. A Go duration string between 1m and 8760h. An empty string clears the override so the project default applies. When the field is omitted, the stored value is left unchanged. */ 'session_lifespan'?: string; } /** * @type Usage */ export type Usage = GenericUsage | boolean | number | string; /** * \"pin\" means the holder proves knowledge of a PIN via pin_proof at login; \"platform\" means the device gates key use behind platform biometrics or an equivalent lock screen; \"none\" marks a possession-only key, usable as a second factor but never as the sole first factor. The empty value marks a legacy key from before user verification existed; such keys are rejected at login and must be re-enrolled. */ export declare const UserVerification: { readonly Pin: "pin"; readonly Platform: "platform"; readonly None: "none"; readonly UnknownDefaultOpenApi: "11184809"; }; export type UserVerification = typeof UserVerification[keyof typeof UserVerification]; /** * The endpoint is mounted on backoffice\'s admin listener and is not exposed on the public ingress; the bearer token is the credential. See .claude/docs/plans/courier-rewrite.md for the design. */ export interface ValidateBaseURLRewriteRequest { /** * The base URL the proxy wants Kratos to rewrite courier links to, e.g. \"http://localhost:4000\" for the Ory CLI / NextJS proxy. */ 'base_url': string; /** * The Project ID the token is being authorized against. */ 'project_id': string; /** * The bearer token from the inbound Ory-Base-URL-Rewrite-Token header. */ 'token': string; } /** * ValidateBaseURLRewriteResponse is the response shape. The endpoint always returns HTTP 200 with a structured outcome so the client has a single response shape for tracing and so neither side has to special-case 4xx vs. body parsing. */ export interface ValidateBaseURLRewriteResponse { /** * A machine-readable reason for negative outcomes. One of \"token_not_found\", \"missing_permission\", or \"invalid_base_url\". Empty when valid is true. */ 'reason'?: string; /** * Whether the token authorizes the base URL rewrite. */ 'valid': boolean; } export interface VerifiableCredentialPrimingResponse { 'c_nonce'?: string; 'c_nonce_expires_in'?: number; 'error'?: string; 'error_debug'?: string; 'error_description'?: string; 'error_hint'?: string; 'format'?: string; 'status_code'?: number; } export interface VerifiableCredentialProof { 'jwt'?: string; 'proof_type'?: string; } export interface VerifiableCredentialResponse { 'credential_draft_00'?: string; 'format'?: string; } /** * VerifiableAddress is an identity\'s verifiable address */ export interface VerifiableIdentityAddress { /** * When this entry was created */ 'created_at'?: string; /** * The ID */ 'id'?: string; /** * VerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema */ 'status': string; /** * When this entry was last updated */ 'updated_at'?: string; /** * The address value example foo@user.com */ 'value': string; /** * Indicates if the address has already been verified */ 'verified': boolean; 'verified_at'?: string; /** * The delivery method */ 'via': VerifiableIdentityAddressViaEnum; } export declare const VerifiableIdentityAddressViaEnum: { readonly Email: "email"; readonly Sms: "sms"; readonly UnknownDefaultOpenApi: "11184809"; }; export type VerifiableIdentityAddressViaEnum = typeof VerifiableIdentityAddressViaEnum[keyof typeof VerifiableIdentityAddressViaEnum]; /** * - VERIFICATION_ERROR_UNSPECIFIED: No error (key is valid) - VERIFICATION_ERROR_INVALID_FORMAT: Credential format is invalid - VERIFICATION_ERROR_EXPIRED: Credential has expired - VERIFICATION_ERROR_REVOKED: Credential has been revoked - VERIFICATION_ERROR_NOT_FOUND: Credential not found in database - VERIFICATION_ERROR_SIGNATURE_INVALID: Cryptographic signature verification failed - VERIFICATION_ERROR_INTERNAL: Internal server error during verification - VERIFICATION_ERROR_IP_NOT_ALLOWED: Request IP is not in the key\'s allowed CIDR ranges - VERIFICATION_ERROR_RATE_LIMITED: Rate limit quota exhausted (commercial-only) */ export declare const VerificationErrorCode: { readonly VerificationErrorUnspecified: "VERIFICATION_ERROR_UNSPECIFIED"; readonly VerificationErrorInvalidFormat: "VERIFICATION_ERROR_INVALID_FORMAT"; readonly VerificationErrorExpired: "VERIFICATION_ERROR_EXPIRED"; readonly VerificationErrorRevoked: "VERIFICATION_ERROR_REVOKED"; readonly VerificationErrorNotFound: "VERIFICATION_ERROR_NOT_FOUND"; readonly VerificationErrorSignatureInvalid: "VERIFICATION_ERROR_SIGNATURE_INVALID"; readonly VerificationErrorInternal: "VERIFICATION_ERROR_INTERNAL"; readonly VerificationErrorIpNotAllowed: "VERIFICATION_ERROR_IP_NOT_ALLOWED"; readonly VerificationErrorRateLimited: "VERIFICATION_ERROR_RATE_LIMITED"; readonly UnknownDefaultOpenApi: "11184809"; }; export type VerificationErrorCode = typeof VerificationErrorCode[keyof typeof VerificationErrorCode]; /** * Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.com/docs/kratos/self-service/flows/verify-email-account-activation */ export interface VerificationFlow { /** * Active, if set, contains the registration method that is being used. It is initially not set. */ 'active'?: string; /** * ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated. */ 'expires_at'?: string; /** * ID represents the request\'s unique ID. When performing the verification flow, this represents the id in the verify ui\'s query parameter: http://?request= type: string format: uuid */ 'id': string; /** * IssuedAt is the time (UTC) when the request occurred. */ 'issued_at'?: string; /** * RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL\'s path or query for example. */ 'request_url'?: string; /** * ReturnTo contains the requested return_to URL. */ 'return_to'?: string; /** * State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. */ 'state': any; /** * TransientPayload is used to pass data from the verification flow to hooks and email templates */ 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. */ 'type': string; 'ui': UiContainer; } /** * The experimental state represents the state of a verification flow. This field is EXPERIMENTAL and subject to change! */ export declare const VerificationFlowState: { readonly ChooseMethod: "choose_method"; readonly SentEmail: "sent_email"; readonly PassedChallenge: "passed_challenge"; readonly UnknownDefaultOpenApi: "11184809"; }; export type VerificationFlowState = typeof VerificationFlowState[keyof typeof VerificationFlowState]; export interface VerifyApiKeyRequest { 'credential'?: string; } export interface VerifyApiKeyResponse { 'actor_id'?: string; 'error_code'?: VerificationErrorCode; 'error_message'?: string; 'expire_time'?: string; /** * is_valid reports whether verification succeeded. It is true only when the credential parses, the signature checks out, the key was found, all policy gates (expiry, revocation, IP allowlist, rate limit) pass, and the key\'s status is KEY_STATUS_ACTIVE. When false, error_code and error_message describe the reason. Use this field for authentication decisions; use status to inspect lifecycle state independently. */ 'is_valid'?: boolean; /** * The configured token issuer for this project. For derived tokens (JWT/macaroon), this matches the iss claim embedded in the verified token. */ 'issuer'?: string; 'key_id'?: string; /** * metadata mirrors the metadata stored on the verified key. AIP-148 metadata field. */ 'metadata'?: object; 'rate_limit_policy'?: RateLimitPolicy; /** * Approximate number of requests available before the rate limit is reached (commercial-only, only set when enforcement is active). */ 'rate_limit_remaining'?: string; /** * Time when the rate limiter returns to full capacity (all quota recovered). */ 'rate_limit_reset_time'?: string; 'scopes'?: Array; 'status'?: KeyStatus; 'visibility'?: KeyVisibility; } export interface VerifyUserCodeRequest { 'client'?: OAuth2Client; 'device_code_request_id'?: string; /** * RequestURL is the original Device Authorization URL requested. */ 'request_url'?: string; /** * RequestedAudience contains the access token audience as requested by the OAuth 2.0 Client. */ 'requested_access_token_audience'?: Array; /** * RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client. */ 'requested_scope'?: Array; } export interface Version { /** * Version is the service\'s version. */ 'version'?: string; } export interface Warning { 'code'?: number; 'message'?: string; } export interface Workspace { /** * Controls who can access the workspace and its projects This does not control access level, only who can access it at all. CHECK_ORGANIZATION_AND_WORKSPACE_MEMBERSHIP WorkspaceAccessPolicyOrganizationMembershipRequired Only invited members that are part of the organization defined for the workspace can access it CHECK_ACCESS_PERMISSION WorkspaceAccessPolicyMembershipRequired All invited members can access the workspace, regardless of their organization membership This is useful for migration scenarios where workspaces previously did not have an organization assigned If a user is just a member of a project within the workspace, they\'ll still have access to the project, but not to the workspace itself (the default for existing workspaces) */ 'access_policy'?: WorkspaceAccessPolicyEnum; 'created_at': string; 'id': string; 'name': string; 'organization_id'?: string | null; 'subscription_id'?: string | null; 'subscription_plan'?: string | null; 'updated_at': string; } export declare const WorkspaceAccessPolicyEnum: { readonly CheckOrganizationAndWorkspaceMembership: "CHECK_ORGANIZATION_AND_WORKSPACE_MEMBERSHIP"; readonly CheckAccessPermission: "CHECK_ACCESS_PERMISSION"; readonly UnknownDefaultOpenApi: "11184809"; }; export type WorkspaceAccessPolicyEnum = typeof WorkspaceAccessPolicyEnum[keyof typeof WorkspaceAccessPolicyEnum]; export interface WorkspaceApiKey { /** * The API key\'s creation date */ 'created_at'?: string; 'expires_at'?: string; /** * The key\'s ID. */ 'id': string; /** * The last characters of the key\'s value. Lets you tell API keys apart in the UI without revealing the full value. Empty for keys created before this was introduced. */ 'last_characters'?: string; /** * The API key\'s Name Set this to help you remember, for example, where you use the API key. */ 'name': string; /** * The key\'s owner */ 'owner_id': string; /** * The API key\'s last update date */ 'updated_at'?: string; /** * The key\'s value */ 'value'?: string; /** * The API key\'s workspace ID */ 'workspace_id'?: string; } export interface WorkspaceOrganization { 'active_link'?: OnboardingPortalLink; 'created_at': string; /** * DefaultRegion sets the default region for identities provisioned into this organization, when the identity does not specify a region explictly. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU asia Asia us US global Global */ 'default_region'?: WorkspaceOrganizationDefaultRegionEnum; /** * The list of organization\'s domains. */ 'domains': Array; /** * The organization\'s ID. */ 'id': string; /** * The organization\'s human-readable label. */ 'label': string; 'providers': Array; /** * SessionLifespan overrides the project-level session lifespan for sessions issued for this organization. A Go duration string between 1m and 8760h. A null (or zero) value means the project default applies. */ 'session_lifespan'?: string; } export declare const WorkspaceOrganizationDefaultRegionEnum: { readonly EuCentral: "eu-central"; readonly AsiaNortheast: "asia-northeast"; readonly UsEast: "us-east"; readonly UsWest: "us-west"; readonly Eu: "eu"; readonly Asia: "asia"; readonly Us: "us"; readonly Global: "global"; readonly UnknownDefaultOpenApi: "11184809"; }; export type WorkspaceOrganizationDefaultRegionEnum = typeof WorkspaceOrganizationDefaultRegionEnum[keyof typeof WorkspaceOrganizationDefaultRegionEnum]; /** * ApiKeysApi - axios parameter creator */ export declare const ApiKeysApiAxiosParamCreator: (configuration?: Configuration) => { /** * Imports up to 1000 external API keys in one request. Returns per-item results. If at least one item succeeds, response is 200 OK. If all items fail, the endpoint returns a non-200 error. ```http POST /v2alpha1/admin/importedApiKeys:batchCreate { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ``` * @summary Batch Import API Keys * @param {BatchCreateImportedApiKeysRequest} batchCreateImportedApiKeysRequest BatchCreateImportedApiKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchCreateImportedApiKeys: (batchCreateImportedApiKeysRequest: BatchCreateImportedApiKeysRequest, options?: RawAxiosRequestConfig) => Promise; /** * Verifies multiple credentials in a single request. Efficiently verifies up to 100 credentials in parallel. Each credential is verified independently; partial failures are returned. Admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) The cache directive applies to every credential in the batch. ```http POST /v2alpha1/admin/apiKeys:batchVerify { \"requests\": [ {\"credential\": \"sk_live_abc123...\"}, {\"credential\": \"eyJhbGciOiJFZERTQSI...\"} ] } ``` * @summary Batch Verify API Keys * @param {BatchVerifyApiKeysRequest} batchVerifyApiKeysRequest * @param {string} [cacheControl] Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. * @param {string} [pragma] HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchVerifyApiKeys: (batchVerifyApiKeysRequest: BatchVerifyApiKeysRequest, cacheControl?: string, pragma?: string, options?: RawAxiosRequestConfig) => Promise; /** * Permanently deletes an imported key (hard delete). The key is removed from the database. Use AdminRevokeImportedApiKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Delete Imported API Key * @param {string} keyId SHA512/256 hash of the imported key (REQUIRED) * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeleteImportedApiKey: (keyId: string, options?: RawAxiosRequestConfig) => Promise; /** * Mints a short-lived JWT or Macaroon token from an API key. Works with both issued and imported keys. The derived token inherits the permissions of the parent API key. ```http POST /v2alpha1/admin/apiKeys:derive { \"credential\": \"eyJhbGciOiJFZERTQSI...\", \"ttl\": \"1h\" } ``` * @summary Derive Token * @param {DeriveTokenRequest} deriveTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeriveToken: (deriveTokenRequest: DeriveTokenRequest, options?: RawAxiosRequestConfig) => Promise; /** * Retrieves details about a specific imported key. Returns metadata about the imported key. The original raw key is never returned. ```http GET /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Get Imported API Key * @param {string} keyId SHA512/256 hash of the imported key (REQUIRED) * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetImportedApiKey: (keyId: string, options?: RawAxiosRequestConfig) => Promise; /** * Retrieves details about a specific issued API key including its status, scopes, expiration, and usage statistics. The secret is never returned. ```http GET /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ ``` * @summary Get Issued API Key * @param {string} keyId Identifier of the API key resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetIssuedApiKey: (keyId: string, options?: RawAxiosRequestConfig) => Promise; /** * Imports an external API key into the system. Allows importing keys from legacy systems or external providers. The raw key is hashed and stored securely (HMAC). Imported keys support token derivation (JWT/Macaroon) like issued keys. ```http POST /v2alpha1/admin/importedApiKeys { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"user_123\" } ``` * @summary Import API Key * @param {ImportApiKeyRequest} importApiKeyRequest Example: { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"example-provider\", \"environment\": \"staging\"} } * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminImportApiKey: (importApiKeyRequest: ImportApiKeyRequest, options?: RawAxiosRequestConfig) => Promise; /** * Creates a new API key for a given actor. The secret is returned only once in the response and cannot be retrieved later. Keys can be scoped with specific permissions and have optional expiration. ```http POST /v2alpha1/admin/issuedApiKeys { \"name\": \"production-service\", \"actor_id\": \"user_123\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\" } ``` * @summary Issue API Key * @param {IssueApiKeyRequest} issueApiKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminIssueApiKey: (issueApiKeyRequest: IssueApiKeyRequest, options?: RawAxiosRequestConfig) => Promise; /** * Lists all imported keys with filtering. Returns imported keys only (not issued keys). Supports pagination and AIP-160 filter expressions. ```http GET /v2alpha1/admin/importedApiKeys?page_size=50&filter=status%3DKEY_STATUS_ACTIVE ``` * @summary List Imported API Keys * @param {number} [pageSize] Number of items per page (default: 50, max: 1000) * @param {string} [pageToken] Cursor token for pagination (OPTIONAL) * @param {string} [filter] filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListImportedApiKeys: (pageSize?: number, pageToken?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise; /** * Lists issued API keys with optional filtering. Supports cursor-based pagination and AIP-160 filter expressions. Returns only issued (generated) API keys; use ListImportedApiKeys for imported keys. ```http GET /v2alpha1/admin/issuedApiKeys?page_size=50&filter=actor_id%3D%22user_123%22 ``` * @summary List Issued API Keys * @param {number} [pageSize] Number of items per page (default: 50, max: 1000) * @param {string} [pageToken] Cursor token for pagination * @param {string} [filter] filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListIssuedApiKeys: (pageSize?: number, pageToken?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise; /** * Immediately revokes an imported API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/importedApiKeys/9a3f051b2c7e8d4f1a6b9c0e5f2d8a3b:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Imported API Key * @param {string} keyId SHA-512/256 hash of the imported key (REQUIRED) * @param {AdminRevokeImportedApiKeyBody} adminRevokeImportedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeImportedApiKey: (keyId: string, adminRevokeImportedApiKeyBody: AdminRevokeImportedApiKeyBody, options?: RawAxiosRequestConfig) => Promise; /** * Immediately revokes an issued API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Issued API Key * @param {string} keyId UUID of the issued key (REQUIRED) * @param {AdminRevokeIssuedApiKeyBody} adminRevokeIssuedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeIssuedApiKey: (keyId: string, adminRevokeIssuedApiKeyBody: AdminRevokeIssuedApiKeyBody, options?: RawAxiosRequestConfig) => Promise; /** * Generates a new secret for an issued API key. Creates a new API key with a new key_id and secret, and immediately revokes the old key. This is the recommended way to update scopes, metadata, or rotate credentials. For zero-downtime rotation, use this workflow instead: 1. IssueApiKey with new credentials 2. Deploy new secret to all services 3. Verify new secret works everywhere 4. AdminRevokeIssuedApiKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ``` * @summary Rotate Issued API Key * @param {string} keyId key_id is the ID of the existing API key to rotate * @param {AdminRotateIssuedApiKeyBody} adminRotateIssuedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRotateIssuedApiKey: (keyId: string, adminRotateIssuedApiKeyBody: AdminRotateIssuedApiKeyBody, options?: RawAxiosRequestConfig) => Promise; /** * Updates metadata, scopes, or rate limits of an imported key. Supports partial updates via the update_mask query parameter (AIP-134). Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/importedApiKeys/{key_id}?update_mask=name { \"imported_api_key\": { \"key_id\": \"{key_id}\", \"name\": \"New name\" } } ``` * @summary Update Imported API Key * @param {string} keyId SHA-512/256 hash of credential * @param {AdminUpdateImportedApiKeyRequest} adminUpdateImportedApiKeyRequest * @param {string} [updateMask] The list of fields to update. See AIP-134. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateImportedApiKey: (keyId: string, adminUpdateImportedApiKeyRequest: AdminUpdateImportedApiKeyRequest, updateMask?: string, options?: RawAxiosRequestConfig) => Promise; /** * Updates metadata, scopes, or rate limits of an issued key without rotating the secret. Use RotateIssuedApiKey to change the secret. Follows AIP-134: the request body is the IssuedApiKey resource itself, and the update_mask query parameter names the subset of fields to apply. Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ?update_mask=scopes { \"issued_api_key\": { \"key_id\": \"01HQZX9VYQKJB8XQZQXQZQXQXQ\", \"scopes\": [\"read\"] } } ``` * @summary Update Issued API Key * @param {string} keyId Identifier of the API key resource. * @param {AdminUpdateIssuedApiKeyRequest} adminUpdateIssuedApiKeyRequest * @param {string} [updateMask] The list of fields to update. See AIP-134. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateIssuedApiKey: (keyId: string, adminUpdateIssuedApiKeyRequest: AdminUpdateIssuedApiKeyRequest, updateMask?: string, options?: RawAxiosRequestConfig) => Promise; /** * Verifies a single API key or derived token. Validates the credential\'s signature, expiration, and revocation status. Works with any credential type (issued keys, imported keys, JWT, macaroon). The verification result includes decoded claims and metadata — admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) ```http POST /v2alpha1/admin/apiKeys:verify { \"credential\": \"sk_live_abc123...\" } ``` * @summary Verify API Key * @param {VerifyApiKeyRequest} verifyApiKeyRequest * @param {string} [cacheControl] Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. * @param {string} [pragma] HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminVerifyApiKey: (verifyApiKeyRequest: VerifyApiKeyRequest, cacheControl?: string, pragma?: string, options?: RawAxiosRequestConfig) => Promise; /** * Returns the JSON Web Key Set for token verification. Provides the public keys needed to verify JWT tokens issued by this service. Keys are loaded from configuration (file://, https://, or base64:// URIs). Follows the JWKS standard (RFC 7517). ```http GET /v2alpha1/derivedKeys/jwks.json ``` * @summary Get JWKS * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJwks: (options?: RawAxiosRequestConfig) => Promise; /** * Proof-of-possession variant of revocation. The `Self*` prefix on the request/response messages disambiguates from the admin variants (`AdminRevokeIssuedApiKey` / `AdminRevokeImportedApiKey`). Allows an API key holder to revoke their own key. The caller must provide the full API key secret as proof of possession. Supports issued API keys and imported keys. JWT and macaroon tokens cannot be self-revoked (they are stateless). The PRIVILEGE_WITHDRAWN reason is not allowed for self-revocation (admin-only). ```http POST /v2alpha1/apiKeys:selfRevoke { \"credential\": \"sk_live_abc123...\", \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke API Key (self-service) * @param {SelfRevokeApiKeyRequest} selfRevokeApiKeyRequest SelfRevokeApiKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeApiKey: (selfRevokeApiKeyRequest: SelfRevokeApiKeyRequest, options?: RawAxiosRequestConfig) => Promise; }; /** * ApiKeysApi - functional programming interface */ export declare const ApiKeysApiFp: (configuration?: Configuration) => { /** * Imports up to 1000 external API keys in one request. Returns per-item results. If at least one item succeeds, response is 200 OK. If all items fail, the endpoint returns a non-200 error. ```http POST /v2alpha1/admin/importedApiKeys:batchCreate { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ``` * @summary Batch Import API Keys * @param {BatchCreateImportedApiKeysRequest} batchCreateImportedApiKeysRequest BatchCreateImportedApiKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchCreateImportedApiKeys(batchCreateImportedApiKeysRequest: BatchCreateImportedApiKeysRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Verifies multiple credentials in a single request. Efficiently verifies up to 100 credentials in parallel. Each credential is verified independently; partial failures are returned. Admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) The cache directive applies to every credential in the batch. ```http POST /v2alpha1/admin/apiKeys:batchVerify { \"requests\": [ {\"credential\": \"sk_live_abc123...\"}, {\"credential\": \"eyJhbGciOiJFZERTQSI...\"} ] } ``` * @summary Batch Verify API Keys * @param {BatchVerifyApiKeysRequest} batchVerifyApiKeysRequest * @param {string} [cacheControl] Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. * @param {string} [pragma] HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchVerifyApiKeys(batchVerifyApiKeysRequest: BatchVerifyApiKeysRequest, cacheControl?: string, pragma?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Permanently deletes an imported key (hard delete). The key is removed from the database. Use AdminRevokeImportedApiKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Delete Imported API Key * @param {string} keyId SHA512/256 hash of the imported key (REQUIRED) * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeleteImportedApiKey(keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Mints a short-lived JWT or Macaroon token from an API key. Works with both issued and imported keys. The derived token inherits the permissions of the parent API key. ```http POST /v2alpha1/admin/apiKeys:derive { \"credential\": \"eyJhbGciOiJFZERTQSI...\", \"ttl\": \"1h\" } ``` * @summary Derive Token * @param {DeriveTokenRequest} deriveTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeriveToken(deriveTokenRequest: DeriveTokenRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieves details about a specific imported key. Returns metadata about the imported key. The original raw key is never returned. ```http GET /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Get Imported API Key * @param {string} keyId SHA512/256 hash of the imported key (REQUIRED) * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetImportedApiKey(keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Retrieves details about a specific issued API key including its status, scopes, expiration, and usage statistics. The secret is never returned. ```http GET /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ ``` * @summary Get Issued API Key * @param {string} keyId Identifier of the API key resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetIssuedApiKey(keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Imports an external API key into the system. Allows importing keys from legacy systems or external providers. The raw key is hashed and stored securely (HMAC). Imported keys support token derivation (JWT/Macaroon) like issued keys. ```http POST /v2alpha1/admin/importedApiKeys { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"user_123\" } ``` * @summary Import API Key * @param {ImportApiKeyRequest} importApiKeyRequest Example: { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"example-provider\", \"environment\": \"staging\"} } * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminImportApiKey(importApiKeyRequest: ImportApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Creates a new API key for a given actor. The secret is returned only once in the response and cannot be retrieved later. Keys can be scoped with specific permissions and have optional expiration. ```http POST /v2alpha1/admin/issuedApiKeys { \"name\": \"production-service\", \"actor_id\": \"user_123\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\" } ``` * @summary Issue API Key * @param {IssueApiKeyRequest} issueApiKeyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminIssueApiKey(issueApiKeyRequest: IssueApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Lists all imported keys with filtering. Returns imported keys only (not issued keys). Supports pagination and AIP-160 filter expressions. ```http GET /v2alpha1/admin/importedApiKeys?page_size=50&filter=status%3DKEY_STATUS_ACTIVE ``` * @summary List Imported API Keys * @param {number} [pageSize] Number of items per page (default: 50, max: 1000) * @param {string} [pageToken] Cursor token for pagination (OPTIONAL) * @param {string} [filter] filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListImportedApiKeys(pageSize?: number, pageToken?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Lists issued API keys with optional filtering. Supports cursor-based pagination and AIP-160 filter expressions. Returns only issued (generated) API keys; use ListImportedApiKeys for imported keys. ```http GET /v2alpha1/admin/issuedApiKeys?page_size=50&filter=actor_id%3D%22user_123%22 ``` * @summary List Issued API Keys * @param {number} [pageSize] Number of items per page (default: 50, max: 1000) * @param {string} [pageToken] Cursor token for pagination * @param {string} [filter] filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListIssuedApiKeys(pageSize?: number, pageToken?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Immediately revokes an imported API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/importedApiKeys/9a3f051b2c7e8d4f1a6b9c0e5f2d8a3b:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Imported API Key * @param {string} keyId SHA-512/256 hash of the imported key (REQUIRED) * @param {AdminRevokeImportedApiKeyBody} adminRevokeImportedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeImportedApiKey(keyId: string, adminRevokeImportedApiKeyBody: AdminRevokeImportedApiKeyBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Immediately revokes an issued API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Issued API Key * @param {string} keyId UUID of the issued key (REQUIRED) * @param {AdminRevokeIssuedApiKeyBody} adminRevokeIssuedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeIssuedApiKey(keyId: string, adminRevokeIssuedApiKeyBody: AdminRevokeIssuedApiKeyBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Generates a new secret for an issued API key. Creates a new API key with a new key_id and secret, and immediately revokes the old key. This is the recommended way to update scopes, metadata, or rotate credentials. For zero-downtime rotation, use this workflow instead: 1. IssueApiKey with new credentials 2. Deploy new secret to all services 3. Verify new secret works everywhere 4. AdminRevokeIssuedApiKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ``` * @summary Rotate Issued API Key * @param {string} keyId key_id is the ID of the existing API key to rotate * @param {AdminRotateIssuedApiKeyBody} adminRotateIssuedApiKeyBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRotateIssuedApiKey(keyId: string, adminRotateIssuedApiKeyBody: AdminRotateIssuedApiKeyBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Updates metadata, scopes, or rate limits of an imported key. Supports partial updates via the update_mask query parameter (AIP-134). Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/importedApiKeys/{key_id}?update_mask=name { \"imported_api_key\": { \"key_id\": \"{key_id}\", \"name\": \"New name\" } } ``` * @summary Update Imported API Key * @param {string} keyId SHA-512/256 hash of credential * @param {AdminUpdateImportedApiKeyRequest} adminUpdateImportedApiKeyRequest * @param {string} [updateMask] The list of fields to update. See AIP-134. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateImportedApiKey(keyId: string, adminUpdateImportedApiKeyRequest: AdminUpdateImportedApiKeyRequest, updateMask?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Updates metadata, scopes, or rate limits of an issued key without rotating the secret. Use RotateIssuedApiKey to change the secret. Follows AIP-134: the request body is the IssuedApiKey resource itself, and the update_mask query parameter names the subset of fields to apply. Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ?update_mask=scopes { \"issued_api_key\": { \"key_id\": \"01HQZX9VYQKJB8XQZQXQZQXQXQ\", \"scopes\": [\"read\"] } } ``` * @summary Update Issued API Key * @param {string} keyId Identifier of the API key resource. * @param {AdminUpdateIssuedApiKeyRequest} adminUpdateIssuedApiKeyRequest * @param {string} [updateMask] The list of fields to update. See AIP-134. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateIssuedApiKey(keyId: string, adminUpdateIssuedApiKeyRequest: AdminUpdateIssuedApiKeyRequest, updateMask?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Verifies a single API key or derived token. Validates the credential\'s signature, expiration, and revocation status. Works with any credential type (issued keys, imported keys, JWT, macaroon). The verification result includes decoded claims and metadata — admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) ```http POST /v2alpha1/admin/apiKeys:verify { \"credential\": \"sk_live_abc123...\" } ``` * @summary Verify API Key * @param {VerifyApiKeyRequest} verifyApiKeyRequest * @param {string} [cacheControl] Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. * @param {string} [pragma] HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminVerifyApiKey(verifyApiKeyRequest: VerifyApiKeyRequest, cacheControl?: string, pragma?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns the JSON Web Key Set for token verification. Provides the public keys needed to verify JWT tokens issued by this service. Keys are loaded from configuration (file://, https://, or base64:// URIs). Follows the JWKS standard (RFC 7517). ```http GET /v2alpha1/derivedKeys/jwks.json ``` * @summary Get JWKS * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJwks(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Proof-of-possession variant of revocation. The `Self*` prefix on the request/response messages disambiguates from the admin variants (`AdminRevokeIssuedApiKey` / `AdminRevokeImportedApiKey`). Allows an API key holder to revoke their own key. The caller must provide the full API key secret as proof of possession. Supports issued API keys and imported keys. JWT and macaroon tokens cannot be self-revoked (they are stateless). The PRIVILEGE_WITHDRAWN reason is not allowed for self-revocation (admin-only). ```http POST /v2alpha1/apiKeys:selfRevoke { \"credential\": \"sk_live_abc123...\", \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke API Key (self-service) * @param {SelfRevokeApiKeyRequest} selfRevokeApiKeyRequest SelfRevokeApiKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeApiKey(selfRevokeApiKeyRequest: SelfRevokeApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * ApiKeysApi - factory interface */ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Imports up to 1000 external API keys in one request. Returns per-item results. If at least one item succeeds, response is 200 OK. If all items fail, the endpoint returns a non-200 error. ```http POST /v2alpha1/admin/importedApiKeys:batchCreate { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ``` * @summary Batch Import API Keys * @param {ApiKeysApiAdminBatchCreateImportedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchCreateImportedApiKeys(requestParameters: ApiKeysApiAdminBatchCreateImportedApiKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Verifies multiple credentials in a single request. Efficiently verifies up to 100 credentials in parallel. Each credential is verified independently; partial failures are returned. Admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) The cache directive applies to every credential in the batch. ```http POST /v2alpha1/admin/apiKeys:batchVerify { \"requests\": [ {\"credential\": \"sk_live_abc123...\"}, {\"credential\": \"eyJhbGciOiJFZERTQSI...\"} ] } ``` * @summary Batch Verify API Keys * @param {ApiKeysApiAdminBatchVerifyApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchVerifyApiKeys(requestParameters: ApiKeysApiAdminBatchVerifyApiKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Permanently deletes an imported key (hard delete). The key is removed from the database. Use AdminRevokeImportedApiKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Delete Imported API Key * @param {ApiKeysApiAdminDeleteImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeleteImportedApiKey(requestParameters: ApiKeysApiAdminDeleteImportedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Mints a short-lived JWT or Macaroon token from an API key. Works with both issued and imported keys. The derived token inherits the permissions of the parent API key. ```http POST /v2alpha1/admin/apiKeys:derive { \"credential\": \"eyJhbGciOiJFZERTQSI...\", \"ttl\": \"1h\" } ``` * @summary Derive Token * @param {ApiKeysApiAdminDeriveTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeriveToken(requestParameters: ApiKeysApiAdminDeriveTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieves details about a specific imported key. Returns metadata about the imported key. The original raw key is never returned. ```http GET /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Get Imported API Key * @param {ApiKeysApiAdminGetImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetImportedApiKey(requestParameters: ApiKeysApiAdminGetImportedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Retrieves details about a specific issued API key including its status, scopes, expiration, and usage statistics. The secret is never returned. ```http GET /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ ``` * @summary Get Issued API Key * @param {ApiKeysApiAdminGetIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetIssuedApiKey(requestParameters: ApiKeysApiAdminGetIssuedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Imports an external API key into the system. Allows importing keys from legacy systems or external providers. The raw key is hashed and stored securely (HMAC). Imported keys support token derivation (JWT/Macaroon) like issued keys. ```http POST /v2alpha1/admin/importedApiKeys { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"user_123\" } ``` * @summary Import API Key * @param {ApiKeysApiAdminImportApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminImportApiKey(requestParameters: ApiKeysApiAdminImportApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Creates a new API key for a given actor. The secret is returned only once in the response and cannot be retrieved later. Keys can be scoped with specific permissions and have optional expiration. ```http POST /v2alpha1/admin/issuedApiKeys { \"name\": \"production-service\", \"actor_id\": \"user_123\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\" } ``` * @summary Issue API Key * @param {ApiKeysApiAdminIssueApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminIssueApiKey(requestParameters: ApiKeysApiAdminIssueApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Lists all imported keys with filtering. Returns imported keys only (not issued keys). Supports pagination and AIP-160 filter expressions. ```http GET /v2alpha1/admin/importedApiKeys?page_size=50&filter=status%3DKEY_STATUS_ACTIVE ``` * @summary List Imported API Keys * @param {ApiKeysApiAdminListImportedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListImportedApiKeys(requestParameters?: ApiKeysApiAdminListImportedApiKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Lists issued API keys with optional filtering. Supports cursor-based pagination and AIP-160 filter expressions. Returns only issued (generated) API keys; use ListImportedApiKeys for imported keys. ```http GET /v2alpha1/admin/issuedApiKeys?page_size=50&filter=actor_id%3D%22user_123%22 ``` * @summary List Issued API Keys * @param {ApiKeysApiAdminListIssuedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListIssuedApiKeys(requestParameters?: ApiKeysApiAdminListIssuedApiKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Immediately revokes an imported API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/importedApiKeys/9a3f051b2c7e8d4f1a6b9c0e5f2d8a3b:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Imported API Key * @param {ApiKeysApiAdminRevokeImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeImportedApiKey(requestParameters: ApiKeysApiAdminRevokeImportedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Immediately revokes an issued API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Issued API Key * @param {ApiKeysApiAdminRevokeIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeIssuedApiKey(requestParameters: ApiKeysApiAdminRevokeIssuedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Generates a new secret for an issued API key. Creates a new API key with a new key_id and secret, and immediately revokes the old key. This is the recommended way to update scopes, metadata, or rotate credentials. For zero-downtime rotation, use this workflow instead: 1. IssueApiKey with new credentials 2. Deploy new secret to all services 3. Verify new secret works everywhere 4. AdminRevokeIssuedApiKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ``` * @summary Rotate Issued API Key * @param {ApiKeysApiAdminRotateIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRotateIssuedApiKey(requestParameters: ApiKeysApiAdminRotateIssuedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Updates metadata, scopes, or rate limits of an imported key. Supports partial updates via the update_mask query parameter (AIP-134). Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/importedApiKeys/{key_id}?update_mask=name { \"imported_api_key\": { \"key_id\": \"{key_id}\", \"name\": \"New name\" } } ``` * @summary Update Imported API Key * @param {ApiKeysApiAdminUpdateImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateImportedApiKey(requestParameters: ApiKeysApiAdminUpdateImportedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Updates metadata, scopes, or rate limits of an issued key without rotating the secret. Use RotateIssuedApiKey to change the secret. Follows AIP-134: the request body is the IssuedApiKey resource itself, and the update_mask query parameter names the subset of fields to apply. Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ?update_mask=scopes { \"issued_api_key\": { \"key_id\": \"01HQZX9VYQKJB8XQZQXQZQXQXQ\", \"scopes\": [\"read\"] } } ``` * @summary Update Issued API Key * @param {ApiKeysApiAdminUpdateIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateIssuedApiKey(requestParameters: ApiKeysApiAdminUpdateIssuedApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Verifies a single API key or derived token. Validates the credential\'s signature, expiration, and revocation status. Works with any credential type (issued keys, imported keys, JWT, macaroon). The verification result includes decoded claims and metadata — admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) ```http POST /v2alpha1/admin/apiKeys:verify { \"credential\": \"sk_live_abc123...\" } ``` * @summary Verify API Key * @param {ApiKeysApiAdminVerifyApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminVerifyApiKey(requestParameters: ApiKeysApiAdminVerifyApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns the JSON Web Key Set for token verification. Provides the public keys needed to verify JWT tokens issued by this service. Keys are loaded from configuration (file://, https://, or base64:// URIs). Follows the JWKS standard (RFC 7517). ```http GET /v2alpha1/derivedKeys/jwks.json ``` * @summary Get JWKS * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJwks(options?: RawAxiosRequestConfig): AxiosPromise; /** * Proof-of-possession variant of revocation. The `Self*` prefix on the request/response messages disambiguates from the admin variants (`AdminRevokeIssuedApiKey` / `AdminRevokeImportedApiKey`). Allows an API key holder to revoke their own key. The caller must provide the full API key secret as proof of possession. Supports issued API keys and imported keys. JWT and macaroon tokens cannot be self-revoked (they are stateless). The PRIVILEGE_WITHDRAWN reason is not allowed for self-revocation (admin-only). ```http POST /v2alpha1/apiKeys:selfRevoke { \"credential\": \"sk_live_abc123...\", \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke API Key (self-service) * @param {ApiKeysApiRevokeApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeApiKey(requestParameters: ApiKeysApiRevokeApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * Request parameters for adminBatchCreateImportedApiKeys operation in ApiKeysApi. */ export interface ApiKeysApiAdminBatchCreateImportedApiKeysRequest { /** * BatchCreateImportedApiKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys. */ readonly batchCreateImportedApiKeysRequest: BatchCreateImportedApiKeysRequest; } /** * Request parameters for adminBatchVerifyApiKeys operation in ApiKeysApi. */ export interface ApiKeysApiAdminBatchVerifyApiKeysRequest { readonly batchVerifyApiKeysRequest: BatchVerifyApiKeysRequest; /** * Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. */ readonly cacheControl?: string; /** * HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. */ readonly pragma?: string; } /** * Request parameters for adminDeleteImportedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminDeleteImportedApiKeyRequest { /** * SHA512/256 hash of the imported key (REQUIRED) */ readonly keyId: string; } /** * Request parameters for adminDeriveToken operation in ApiKeysApi. */ export interface ApiKeysApiAdminDeriveTokenRequest { readonly deriveTokenRequest: DeriveTokenRequest; } /** * Request parameters for adminGetImportedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminGetImportedApiKeyRequest { /** * SHA512/256 hash of the imported key (REQUIRED) */ readonly keyId: string; } /** * Request parameters for adminGetIssuedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminGetIssuedApiKeyRequest { /** * Identifier of the API key resource. */ readonly keyId: string; } /** * Request parameters for adminImportApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminImportApiKeyRequest { /** * Example: { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"example-provider\", \"environment\": \"staging\"} } */ readonly importApiKeyRequest: ImportApiKeyRequest; } /** * Request parameters for adminIssueApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminIssueApiKeyRequest { readonly issueApiKeyRequest: IssueApiKeyRequest; } /** * Request parameters for adminListImportedApiKeys operation in ApiKeysApi. */ export interface ApiKeysApiAdminListImportedApiKeysRequest { /** * Number of items per page (default: 50, max: 1000) */ readonly pageSize?: number; /** * Cursor token for pagination (OPTIONAL) */ readonly pageToken?: string; /** * filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE */ readonly filter?: string; } /** * Request parameters for adminListIssuedApiKeys operation in ApiKeysApi. */ export interface ApiKeysApiAdminListIssuedApiKeysRequest { /** * Number of items per page (default: 50, max: 1000) */ readonly pageSize?: number; /** * Cursor token for pagination */ readonly pageToken?: string; /** * filter is an AIP-160 expression. Indexed fields (efficient at any scale): actor_id, status. Other fields are not indexed and may be rejected. Examples: actor_id=\"user_123\" status=KEY_STATUS_ACTIVE actor_id=\"user_123\" AND status=KEY_STATUS_ACTIVE */ readonly filter?: string; } /** * Request parameters for adminRevokeImportedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminRevokeImportedApiKeyRequest { /** * SHA-512/256 hash of the imported key (REQUIRED) */ readonly keyId: string; readonly adminRevokeImportedApiKeyBody: AdminRevokeImportedApiKeyBody; } /** * Request parameters for adminRevokeIssuedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminRevokeIssuedApiKeyRequest { /** * UUID of the issued key (REQUIRED) */ readonly keyId: string; readonly adminRevokeIssuedApiKeyBody: AdminRevokeIssuedApiKeyBody; } /** * Request parameters for adminRotateIssuedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminRotateIssuedApiKeyRequest { /** * key_id is the ID of the existing API key to rotate */ readonly keyId: string; readonly adminRotateIssuedApiKeyBody: AdminRotateIssuedApiKeyBody; } /** * Request parameters for adminUpdateImportedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminUpdateImportedApiKeyRequest { /** * SHA-512/256 hash of credential */ readonly keyId: string; readonly adminUpdateImportedApiKeyRequest: AdminUpdateImportedApiKeyRequest; /** * The list of fields to update. See AIP-134. */ readonly updateMask?: string; } /** * Request parameters for adminUpdateIssuedApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminUpdateIssuedApiKeyRequest { /** * Identifier of the API key resource. */ readonly keyId: string; readonly adminUpdateIssuedApiKeyRequest: AdminUpdateIssuedApiKeyRequest; /** * The list of fields to update. See AIP-134. */ readonly updateMask?: string; } /** * Request parameters for adminVerifyApiKey operation in ApiKeysApi. */ export interface ApiKeysApiAdminVerifyApiKeyRequest { readonly verifyApiKeyRequest: VerifyApiKeyRequest; /** * Cache-directive controlling the verifier cache. `no-cache` forces a fresh database lookup (cache read is bypassed). `no-store` additionally prevents the result from being written to the cache. Any other value is ignored. */ readonly cacheControl?: string; /** * HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise. */ readonly pragma?: string; } /** * Request parameters for revokeApiKey operation in ApiKeysApi. */ export interface ApiKeysApiRevokeApiKeyRequest { /** * SelfRevokeApiKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession. */ readonly selfRevokeApiKeyRequest: SelfRevokeApiKeyRequest; } /** * ApiKeysApi - object-oriented interface */ export declare class ApiKeysApi extends BaseAPI { /** * Imports up to 1000 external API keys in one request. Returns per-item results. If at least one item succeeds, response is 200 OK. If all items fail, the endpoint returns a non-200 error. ```http POST /v2alpha1/admin/importedApiKeys:batchCreate { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ``` * @summary Batch Import API Keys * @param {ApiKeysApiAdminBatchCreateImportedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchCreateImportedApiKeys(requestParameters: ApiKeysApiAdminBatchCreateImportedApiKeysRequest, options?: RawAxiosRequestConfig): Promise>; /** * Verifies multiple credentials in a single request. Efficiently verifies up to 100 credentials in parallel. Each credential is verified independently; partial failures are returned. Admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) The cache directive applies to every credential in the batch. ```http POST /v2alpha1/admin/apiKeys:batchVerify { \"requests\": [ {\"credential\": \"sk_live_abc123...\"}, {\"credential\": \"eyJhbGciOiJFZERTQSI...\"} ] } ``` * @summary Batch Verify API Keys * @param {ApiKeysApiAdminBatchVerifyApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminBatchVerifyApiKeys(requestParameters: ApiKeysApiAdminBatchVerifyApiKeysRequest, options?: RawAxiosRequestConfig): Promise>; /** * Permanently deletes an imported key (hard delete). The key is removed from the database. Use AdminRevokeImportedApiKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Delete Imported API Key * @param {ApiKeysApiAdminDeleteImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeleteImportedApiKey(requestParameters: ApiKeysApiAdminDeleteImportedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Mints a short-lived JWT or Macaroon token from an API key. Works with both issued and imported keys. The derived token inherits the permissions of the parent API key. ```http POST /v2alpha1/admin/apiKeys:derive { \"credential\": \"eyJhbGciOiJFZERTQSI...\", \"ttl\": \"1h\" } ``` * @summary Derive Token * @param {ApiKeysApiAdminDeriveTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminDeriveToken(requestParameters: ApiKeysApiAdminDeriveTokenRequest, options?: RawAxiosRequestConfig): Promise>; /** * Retrieves details about a specific imported key. Returns metadata about the imported key. The original raw key is never returned. ```http GET /v2alpha1/admin/importedApiKeys/{key_id} ``` * @summary Get Imported API Key * @param {ApiKeysApiAdminGetImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetImportedApiKey(requestParameters: ApiKeysApiAdminGetImportedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Retrieves details about a specific issued API key including its status, scopes, expiration, and usage statistics. The secret is never returned. ```http GET /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ ``` * @summary Get Issued API Key * @param {ApiKeysApiAdminGetIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminGetIssuedApiKey(requestParameters: ApiKeysApiAdminGetIssuedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Imports an external API key into the system. Allows importing keys from legacy systems or external providers. The raw key is hashed and stored securely (HMAC). Imported keys support token derivation (JWT/Macaroon) like issued keys. ```http POST /v2alpha1/admin/importedApiKeys { \"raw_key\": \"imported-key-EXAMPLE-not-a-real-secret\", \"name\": \"Example imported key\", \"actor_id\": \"user_123\" } ``` * @summary Import API Key * @param {ApiKeysApiAdminImportApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminImportApiKey(requestParameters: ApiKeysApiAdminImportApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Creates a new API key for a given actor. The secret is returned only once in the response and cannot be retrieved later. Keys can be scoped with specific permissions and have optional expiration. ```http POST /v2alpha1/admin/issuedApiKeys { \"name\": \"production-service\", \"actor_id\": \"user_123\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\" } ``` * @summary Issue API Key * @param {ApiKeysApiAdminIssueApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminIssueApiKey(requestParameters: ApiKeysApiAdminIssueApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Lists all imported keys with filtering. Returns imported keys only (not issued keys). Supports pagination and AIP-160 filter expressions. ```http GET /v2alpha1/admin/importedApiKeys?page_size=50&filter=status%3DKEY_STATUS_ACTIVE ``` * @summary List Imported API Keys * @param {ApiKeysApiAdminListImportedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListImportedApiKeys(requestParameters?: ApiKeysApiAdminListImportedApiKeysRequest, options?: RawAxiosRequestConfig): Promise>; /** * Lists issued API keys with optional filtering. Supports cursor-based pagination and AIP-160 filter expressions. Returns only issued (generated) API keys; use ListImportedApiKeys for imported keys. ```http GET /v2alpha1/admin/issuedApiKeys?page_size=50&filter=actor_id%3D%22user_123%22 ``` * @summary List Issued API Keys * @param {ApiKeysApiAdminListIssuedApiKeysRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminListIssuedApiKeys(requestParameters?: ApiKeysApiAdminListIssuedApiKeysRequest, options?: RawAxiosRequestConfig): Promise>; /** * Immediately revokes an imported API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/importedApiKeys/9a3f051b2c7e8d4f1a6b9c0e5f2d8a3b:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Imported API Key * @param {ApiKeysApiAdminRevokeImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeImportedApiKey(requestParameters: ApiKeysApiAdminRevokeImportedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Immediately revokes an issued API key. Once revoked, the key can no longer be used for authentication. This operation is irreversible. Revoked keys are retained for audit purposes. ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke Issued API Key * @param {ApiKeysApiAdminRevokeIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRevokeIssuedApiKey(requestParameters: ApiKeysApiAdminRevokeIssuedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Generates a new secret for an issued API key. Creates a new API key with a new key_id and secret, and immediately revokes the old key. This is the recommended way to update scopes, metadata, or rotate credentials. For zero-downtime rotation, use this workflow instead: 1. IssueApiKey with new credentials 2. Deploy new secret to all services 3. Verify new secret works everywhere 4. AdminRevokeIssuedApiKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ``` * @summary Rotate Issued API Key * @param {ApiKeysApiAdminRotateIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminRotateIssuedApiKey(requestParameters: ApiKeysApiAdminRotateIssuedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Updates metadata, scopes, or rate limits of an imported key. Supports partial updates via the update_mask query parameter (AIP-134). Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/importedApiKeys/{key_id}?update_mask=name { \"imported_api_key\": { \"key_id\": \"{key_id}\", \"name\": \"New name\" } } ``` * @summary Update Imported API Key * @param {ApiKeysApiAdminUpdateImportedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateImportedApiKey(requestParameters: ApiKeysApiAdminUpdateImportedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Updates metadata, scopes, or rate limits of an issued key without rotating the secret. Use RotateIssuedApiKey to change the secret. Follows AIP-134: the request body is the IssuedApiKey resource itself, and the update_mask query parameter names the subset of fields to apply. Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body. ```http PATCH /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ?update_mask=scopes { \"issued_api_key\": { \"key_id\": \"01HQZX9VYQKJB8XQZQXQZQXQXQ\", \"scopes\": [\"read\"] } } ``` * @summary Update Issued API Key * @param {ApiKeysApiAdminUpdateIssuedApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminUpdateIssuedApiKey(requestParameters: ApiKeysApiAdminUpdateIssuedApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Verifies a single API key or derived token. Validates the credential\'s signature, expiration, and revocation status. Works with any credential type (issued keys, imported keys, JWT, macaroon). The verification result includes decoded claims and metadata — admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) ```http POST /v2alpha1/admin/apiKeys:verify { \"credential\": \"sk_live_abc123...\" } ``` * @summary Verify API Key * @param {ApiKeysApiAdminVerifyApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ adminVerifyApiKey(requestParameters: ApiKeysApiAdminVerifyApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; /** * Returns the JSON Web Key Set for token verification. Provides the public keys needed to verify JWT tokens issued by this service. Keys are loaded from configuration (file://, https://, or base64:// URIs). Follows the JWKS standard (RFC 7517). ```http GET /v2alpha1/derivedKeys/jwks.json ``` * @summary Get JWKS * @param {*} [options] Override http request option. * @throws {RequiredError} */ getJwks(options?: RawAxiosRequestConfig): Promise>; /** * Proof-of-possession variant of revocation. The `Self*` prefix on the request/response messages disambiguates from the admin variants (`AdminRevokeIssuedApiKey` / `AdminRevokeImportedApiKey`). Allows an API key holder to revoke their own key. The caller must provide the full API key secret as proof of possession. Supports issued API keys and imported keys. JWT and macaroon tokens cannot be self-revoked (they are stateless). The PRIVILEGE_WITHDRAWN reason is not allowed for self-revocation (admin-only). ```http POST /v2alpha1/apiKeys:selfRevoke { \"credential\": \"sk_live_abc123...\", \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ``` * @summary Revoke API Key (self-service) * @param {ApiKeysApiRevokeApiKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ revokeApiKey(requestParameters: ApiKeysApiRevokeApiKeyRequest, options?: RawAxiosRequestConfig): Promise>; } /** * CourierApi - axios parameter creator */ export declare const CourierApiAxiosParamCreator: (configuration?: Configuration) => { /** * Gets a specific messages by the given ID. * @summary Get a Message * @param {string} id MessageID is the ID of the message. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCourierMessage: (id: string, options?: RawAxiosRequestConfig) => Promise; /** * Lists all messages by given status and recipient. * @summary List Messages * @param {number} [pageSize] Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). * @param {CourierMessageStatus} [status] Status filters out messages based on status. If no value is provided, it doesn\'t take effect on filter. * @param {string} [recipient] Recipient filters out messages based on recipient. If no value is provided, it doesn\'t take effect on filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCourierMessages: (pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options?: RawAxiosRequestConfig) => Promise; }; /** * CourierApi - functional programming interface */ export declare const CourierApiFp: (configuration?: Configuration) => { /** * Gets a specific messages by the given ID. * @summary Get a Message * @param {string} id MessageID is the ID of the message. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCourierMessage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Lists all messages by given status and recipient. * @summary List Messages * @param {number} [pageSize] Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). * @param {CourierMessageStatus} [status] Status filters out messages based on status. If no value is provided, it doesn\'t take effect on filter. * @param {string} [recipient] Recipient filters out messages based on recipient. If no value is provided, it doesn\'t take effect on filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCourierMessages(pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * CourierApi - factory interface */ export declare const CourierApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Gets a specific messages by the given ID. * @summary Get a Message * @param {CourierApiGetCourierMessageRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Lists all messages by given status and recipient. * @summary List Messages * @param {CourierApiListCourierMessagesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCourierMessages(requestParameters?: CourierApiListCourierMessagesRequest, options?: RawAxiosRequestConfig): AxiosPromise>; }; /** * Request parameters for getCourierMessage operation in CourierApi. */ export interface CourierApiGetCourierMessageRequest { /** * MessageID is the ID of the message. */ readonly id: string; } /** * Request parameters for listCourierMessages operation in CourierApi. */ export interface CourierApiListCourierMessagesRequest { /** * Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ readonly pageSize?: number; /** * Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.com/docs/ecosystem/api-design#pagination). */ readonly pageToken?: string; /** * Status filters out messages based on status. If no value is provided, it doesn\'t take effect on filter. */ readonly status?: CourierMessageStatus; /** * Recipient filters out messages based on recipient. If no value is provided, it doesn\'t take effect on filter. */ readonly recipient?: string; } /** * CourierApi - object-oriented interface */ export declare class CourierApi extends BaseAPI { /** * Gets a specific messages by the given ID. * @summary Get a Message * @param {CourierApiGetCourierMessageRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: RawAxiosRequestConfig): Promise>; /** * Lists all messages by given status and recipient. * @summary List Messages * @param {CourierApiListCourierMessagesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCourierMessages(requestParameters?: CourierApiListCourierMessagesRequest, options?: RawAxiosRequestConfig): Promise>; } /** * ElementsApi - axios parameter creator */ export declare const ElementsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns a subset of the project\'s configuration for the given host. The response only contains non-sensitive data that is used to customize the behavior of Ory Elements. * @summary Get Ory Elements configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConfiguration: (options?: RawAxiosRequestConfig) => Promise; }; /** * ElementsApi - functional programming interface */ export declare const ElementsApiFp: (configuration?: Configuration) => { /** * Returns a subset of the project\'s configuration for the given host. The response only contains non-sensitive data that is used to customize the behavior of Ory Elements. * @summary Get Ory Elements configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * ElementsApi - factory interface */ export declare const ElementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns a subset of the project\'s configuration for the given host. The response only contains non-sensitive data that is used to customize the behavior of Ory Elements. * @summary Get Ory Elements configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConfiguration(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * ElementsApi - object-oriented interface */ export declare class ElementsApi extends BaseAPI { /** * Returns a subset of the project\'s configuration for the given host. The response only contains non-sensitive data that is used to customize the behavior of Ory Elements. * @summary Get Ory Elements configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getConfiguration(options?: RawAxiosRequestConfig): Promise>; } /** * EventsApi - axios parameter creator */ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Create an event stream for your project. * @param {string} projectId Project ID The project\'s ID. * @param {CreateEventStreamBody} createEventStreamBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventStream: (projectId: string, createEventStreamBody: CreateEventStreamBody, options?: RawAxiosRequestConfig) => Promise; /** * Remove an event stream from a project. * @summary Remove an event stream from a project * @param {string} projectId Project ID The project\'s ID. * @param {string} eventStreamId Event Stream ID The ID of the event stream to be deleted, as returned when created. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventStream: (projectId: string, eventStreamId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary List all event streams for the project. This endpoint is not paginated. * @param {string} projectId Project ID The project\'s ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listEventStreams: (projectId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Update an event stream for a project. * @param {string} projectId Project ID The project\'s ID. * @param {string} eventStreamId Event Stream ID The event stream\'s ID. * @param {SetEventStreamBody} [setEventStreamBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ setEventStream: (projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options?: RawAxiosRequestConfig) => Promise; }; /** * EventsApi - functional programming interface */ export declare const EventsApiFp: (configuration?: Configuration) => { /** * * @summary Create an event stream for your project. * @param {string} projectId Project ID The project\'s ID. * @param {CreateEventStreamBody} createEventStreamBody * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventStream(projectId: string, createEventStreamBody: CreateEventStreamBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Remove an event stream from a project. * @summary Remove an event stream from a project * @param {string} projectId Project ID The project\'s ID. * @param {string} eventStreamId Event Stream ID The ID of the event stream to be deleted, as returned when created. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventStream(projectId: string, eventStreamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary List all event streams for the project. This endpoint is not paginated. * @param {string} projectId Project ID The project\'s ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listEventStreams(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Update an event stream for a project. * @param {string} projectId Project ID The project\'s ID. * @param {string} eventStreamId Event Stream ID The event stream\'s ID. * @param {SetEventStreamBody} [setEventStreamBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ setEventStream(projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * EventsApi - factory interface */ export declare const EventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Create an event stream for your project. * @param {EventsApiCreateEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Remove an event stream from a project. * @summary Remove an event stream from a project * @param {EventsApiDeleteEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List all event streams for the project. This endpoint is not paginated. * @param {EventsApiListEventStreamsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update an event stream for a project. * @param {EventsApiSetEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * Request parameters for createEventStream operation in EventsApi. */ export interface EventsApiCreateEventStreamRequest { /** * Project ID The project\'s ID. */ readonly projectId: string; readonly createEventStreamBody: CreateEventStreamBody; } /** * Request parameters for deleteEventStream operation in EventsApi. */ export interface EventsApiDeleteEventStreamRequest { /** * Project ID The project\'s ID. */ readonly projectId: string; /** * Event Stream ID The ID of the event stream to be deleted, as returned when created. */ readonly eventStreamId: string; } /** * Request parameters for listEventStreams operation in EventsApi. */ export interface EventsApiListEventStreamsRequest { /** * Project ID The project\'s ID. */ readonly projectId: string; } /** * Request parameters for setEventStream operation in EventsApi. */ export interface EventsApiSetEventStreamRequest { /** * Project ID The project\'s ID. */ readonly projectId: string; /** * Event Stream ID The event stream\'s ID. */ readonly eventStreamId: string; readonly setEventStreamBody?: SetEventStreamBody; } /** * EventsApi - object-oriented interface */ export declare class EventsApi extends BaseAPI { /** * * @summary Create an event stream for your project. * @param {EventsApiCreateEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: RawAxiosRequestConfig): Promise>; /** * Remove an event stream from a project. * @summary Remove an event stream from a project * @param {EventsApiDeleteEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary List all event streams for the project. This endpoint is not paginated. * @param {EventsApiListEventStreamsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Update an event stream for a project. * @param {EventsApiSetEventStreamRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: RawAxiosRequestConfig): Promise>; } /** * FrontendApi - axios parameter creator */ export declare const FrontendApiAxiosParamCreator: (configuration?: Configuration) => { /** * This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. See the oauth2_provider.url configuration option. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Create Login Flow for Browsers * @param {boolean} [refresh] Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session. * @param {string} [aal] Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session\'s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session\'s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\". * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {string} [loginChallenge] An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). * @param {string} [organization] An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead. * @param {string} [identitySchema] An optional identity schema to use for the login flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserLoginFlow: (refresh?: boolean, aal?: string, returnTo?: string, cookie?: string, loginChallenge?: string, organization?: string, via?: string, identitySchema?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. * @summary Create a Logout URL for Browsers * @param {string} [cookie] HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request. * @param {string} [returnTo] Return to URL The URL to which the browser should be redirected to after the logout has been performed. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserLogoutFlow: (cookie?: string, returnTo?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to `selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists, the browser is returned to the configured return URL. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @summary Create Recovery Flow for Browsers * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [skipSettings] Skip redirection to the settings UI after the recovery flow was completed. Instead, the user will be redirected to the URL specified in `return_to` query parameter or the default return URL if `return_to` is not set. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserRecoveryFlow: (returnTo?: string, skipSettings?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Create Registration Flow for Browsers * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [loginChallenge] Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. * @param {string} [afterVerificationReturnTo] The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. * @param {string} [organization] An optional organization ID that should be used to register this user. This parameter is only effective in the Ory Network. * @param {string} [identitySchema] An optional identity schema to use for the registration flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserRegistrationFlow: (returnTo?: string, loginChallenge?: string, afterVerificationReturnTo?: string, organization?: string, identitySchema?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 401 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @summary Create Settings Flow for Browsers * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {string} [organization] An optional organization ID that scopes the settings flow to providers of that organization. This parameter is only effective in the Ory Network. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserSettingsFlow: (returnTo?: string, cookie?: string, organization?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to `selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.com/docs/kratos/self-service/flows/verify-email-account-activation). * @summary Create Verification Flow for Browser Clients * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBrowserVerificationFlow: (returnTo?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns a list of all available FedCM providers. It is only supported on the Ory Network. * @summary Get FedCM Parameters * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFedcmFlow: (options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initiates a login flow for native apps that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Create Login Flow for Native Apps * @param {boolean} [refresh] Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session. * @param {string} [aal] Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session\'s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session\'s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\". * @param {string} [xSessionToken] The Session Token of the Identity performing the settings flow. * @param {boolean} [returnSessionTokenExchangeCode] EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [organization] An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see a choice of MFA credentials to choose from to perform the second factor instead. * @param {string} [identitySchema] An optional identity schema to use for the login flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNativeLoginFlow: (refresh?: boolean, aal?: string, xSessionToken?: string, returnSessionTokenExchangeCode?: boolean, returnTo?: string, organization?: string, via?: string, identitySchema?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @summary Create Recovery Flow for Native Apps * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNativeRecoveryFlow: (options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Create Registration Flow for Native Apps * @param {boolean} [returnSessionTokenExchangeCode] EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. * @param {string} [returnTo] The URL to return the browser to after the flow was completed. * @param {string} [organization] An optional organization ID that should be used to register this user. This parameter is only effective in the Ory Network. * @param {string} [identitySchema] An optional identity schema to use for the registration flow. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNativeRegistrationFlow: (returnSessionTokenExchangeCode?: boolean, returnTo?: string, organization?: string, identitySchema?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on. You must provide a valid Ory Kratos Session Token for this endpoint to respond with HTTP 200 OK. To fetch an existing settings flow call `/self-service/settings/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @summary Create Settings Flow for Native Apps * @param {string} [xSessionToken] The Session Token of the Identity performing the settings flow. * @param {string} [organization] An optional organization ID that scopes the settings flow to providers of that organization. This parameter is only effective in the Ory Network. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNativeSettingsFlow: (xSessionToken?: string, organization?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on. To fetch an existing verification flow call `/self-service/verification/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Email and Phone Verification Documentation](https://www.ory.com/docs/kratos/self-service/flows/verify-email-account-activation). * @summary Create Verification Flow for Native Apps * @param {string} [returnTo] A URL contained in the return_to key of the verification flow. This piece of data has no effect on the actual logic of the flow and is purely informational. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNativeVerificationFlow: (returnTo?: string, options?: RawAxiosRequestConfig) => Promise; /** * Deletes a dry-run OIDC test login flow. A flow whose debug payload has been captured requires the HMAC cookie set by the OIDC callback; a flow still in the initial choose-method state is deletable with just the flow ID (it carries no PII, and the admin may want to abandon it). * @summary Delete a test OIDC login flow * @param {string} id ID of the test login flow to delete. * @param {string} [cookie] HTTP Cookies. A captured test flow requires the ory_kratos_test_flow cookie set by the OIDC callback; a flow still in the initial choose-method state does not. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteTestLoginFlow: (id: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted. * @summary Disable my other sessions * @param {string} [xSessionToken] Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. * @param {string} [cookie] Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. * @param {*} [options] Override http request option. * @throws {RequiredError} */ disableMyOtherSessions: (xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * Calling this endpoint invalidates the specified session. The current session cannot be revoked. Session data are not deleted. * @summary Disable one of my sessions * @param {string} id ID is the session\'s ID. * @param {string} [xSessionToken] Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. * @param {string} [cookie] Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. * @param {*} [options] Override http request option. * @throws {RequiredError} */ disableMySession: (id: string, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Exchange Session Token * @param {string} initCode The part of the code return when initializing the flow. * @param {string} returnToCode The part of the code returned by the return_to URL. * @param {*} [options] Override http request option. * @throws {RequiredError} */ exchangeSessionToken: (initCode: string, returnToCode: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: `?id=stub:500` - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-facing-errors). * @summary Get User-Flow Errors * @param {string} id Error is the error\'s ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getFlowError: (id: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns a login flow\'s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request\'s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get(\'/login\', async function (req, res) { const flow = await client.getLoginFlow(req.header(\'cookie\'), req.query[\'flow\']) res.render(\'login\', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Get Login Flow * @param {string} id The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLoginFlow: (id: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns a recovery flow\'s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request\'s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get(\'/recovery\', async function (req, res) { const flow = await client.getRecoveryFlow(req.header(\'Cookie\'), req.query[\'flow\']) res.render(\'recovery\', flow) }) ``` More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @summary Get Recovery Flow * @param {string} id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRecoveryFlow: (id: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns a registration flow\'s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request\'s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get(\'/registration\', async function (req, res) { const flow = await client.getRegistrationFlow(req.header(\'cookie\'), req.query[\'flow\']) res.render(\'registration\', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: The flow is expired and you should request a new one. More information can be found at [Ory Kratos User Login](https://www.ory.com/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.com/docs/kratos/self-service/flows/user-registration). * @summary Get Registration Flow * @param {string} id The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`). * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRegistrationFlow: (id: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * When accessing this endpoint through Ory Kratos\' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. You can access this endpoint without credentials when using Ory Kratos\' Admin API. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @summary Get Settings Flow * @param {string} id ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`). * @param {string} [xSessionToken] The Session Token When using the SDK in an app without a browser, please include the session token here. * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSettingsFlow: (id: string, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint returns a verification flow\'s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request\'s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: ```js pseudo-code example router.get(\'/recovery\', async function (req, res) { const flow = await client.getVerificationFlow(req.header(\'cookie\'), req.query[\'flow\']) res.render(\'verification\', flow) }) ``` More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.com/docs/kratos/self-service/flows/verify-email-account-activation). * @summary Get Verification Flow * @param {string} id The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`). * @param {string} [cookie] HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVerificationFlow: (id: string, cookie?: string, options?: RawAxiosRequestConfig) => Promise; /** * This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you will need to load this file: ```html