ory-client 1.22.39 → 1.22.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +64 -10
- data/docs/APIKeysApi.md +1229 -0
- data/docs/AdminRevokeAPIKeyBody.md +20 -0
- data/docs/AdminRotateIssuedAPIKeyBody.md +28 -0
- data/docs/AdminUpdateImportedAPIKeyRequest.md +44 -0
- data/docs/AdminUpdateIssuedAPIKeyRequest.md +44 -0
- data/docs/Any.md +18 -0
- data/docs/BatchImportAPIKeysRequest.md +18 -0
- data/docs/BatchImportAPIKeysResponse.md +22 -0
- data/docs/BatchImportErrorCode.md +15 -0
- data/docs/BatchImportResult.md +24 -0
- data/docs/BatchVerifyAPIKeysRequest.md +18 -0
- data/docs/BatchVerifyAPIKeysResponse.md +18 -0
- data/docs/DeriveTokenRequest.md +26 -0
- data/docs/DeriveTokenResponse.md +18 -0
- data/docs/GetJWKSResponse.md +18 -0
- data/docs/IPRestriction.md +18 -0
- data/docs/ImportAPIKeyRequest.md +36 -0
- data/docs/ImportedAPIKey.md +46 -0
- data/docs/IssueAPIKeyRequest.md +34 -0
- data/docs/IssueAPIKeyResponse.md +20 -0
- data/docs/IssuedAPIKey.md +46 -0
- data/docs/KeyStatus.md +15 -0
- data/docs/KeyVisibility.md +15 -0
- data/docs/ListImportedAPIKeysResponse.md +20 -0
- data/docs/ListIssuedAPIKeysResponse.md +20 -0
- data/docs/NullValue.md +15 -0
- data/docs/RateLimitPolicy.md +22 -0
- data/docs/RevocationReason.md +15 -0
- data/docs/RotateIssuedAPIKeyResponse.md +22 -0
- data/docs/SelfRevokeAPIKeyRequest.md +20 -0
- data/docs/Status.md +22 -0
- data/docs/Token.md +24 -0
- data/docs/TokenAlgorithm.md +15 -0
- data/docs/ValidateBaseURLRewriteRequest.md +22 -0
- data/docs/ValidateBaseURLRewriteResponse.md +20 -0
- data/docs/VerificationErrorCode.md +15 -0
- data/docs/VerifyAPIKeyRequest.md +18 -0
- data/docs/VerifyAPIKeyResponse.md +44 -0
- data/lib/ory-client/api/api_keys_api.rb +1190 -0
- data/lib/ory-client/api/courier_api.rb +1 -1
- data/lib/ory-client/api/events_api.rb +1 -1
- data/lib/ory-client/api/frontend_api.rb +1 -1
- data/lib/ory-client/api/identity_api.rb +1 -1
- data/lib/ory-client/api/jwk_api.rb +1 -1
- data/lib/ory-client/api/metadata_api.rb +1 -1
- data/lib/ory-client/api/o_auth2_api.rb +1 -1
- data/lib/ory-client/api/oidc_api.rb +1 -1
- data/lib/ory-client/api/permission_api.rb +1 -1
- data/lib/ory-client/api/project_api.rb +1 -1
- data/lib/ory-client/api/relationship_api.rb +1 -1
- data/lib/ory-client/api/wellknown_api.rb +1 -1
- data/lib/ory-client/api/workspace_api.rb +1 -1
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/api_model_base.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/accept_device_user_code_request.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_consent_request.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +1 -1
- data/lib/ory-client/models/accept_o_auth2_login_request.rb +1 -1
- data/lib/ory-client/models/account_experience_colors.rb +1 -1
- data/lib/ory-client/models/account_experience_configuration.rb +1 -1
- data/lib/ory-client/models/add_project_to_workspace_body.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials_lookup_secret.rb +1 -1
- data/lib/ory-client/models/admin_identity_import_credentials_lookup_secret_config.rb +1 -1
- data/lib/ory-client/models/admin_revoke_api_key_body.rb +181 -0
- data/lib/ory-client/models/admin_rotate_issued_api_key_body.rb +222 -0
- data/lib/ory-client/models/admin_update_imported_api_key_request.rb +297 -0
- data/lib/ory-client/models/admin_update_issued_api_key_request.rb +297 -0
- data/lib/ory-client/models/any.rb +147 -0
- data/lib/ory-client/models/attribute.rb +1 -1
- data/lib/ory-client/models/attribute_filter.rb +1 -1
- data/lib/ory-client/models/attributes_count_datapoint.rb +1 -1
- data/lib/ory-client/models/authenticator_assurance_level.rb +1 -1
- data/lib/ory-client/models/basic_organization.rb +1 -1
- data/lib/ory-client/models/batch_check_permission_body.rb +1 -1
- data/lib/ory-client/models/batch_check_permission_result.rb +1 -1
- data/lib/ory-client/models/batch_import_api_keys_request.rb +150 -0
- data/lib/ory-client/models/batch_import_api_keys_response.rb +168 -0
- data/lib/ory-client/models/batch_import_error_code.rb +43 -0
- data/lib/ory-client/models/batch_import_result.rb +199 -0
- data/lib/ory-client/models/batch_patch_identities_response.rb +1 -1
- data/lib/ory-client/models/batch_verify_api_keys_request.rb +149 -0
- data/lib/ory-client/models/batch_verify_api_keys_response.rb +149 -0
- data/lib/ory-client/models/billing_period_bucket.rb +1 -1
- data/lib/ory-client/models/check_opl_syntax_result.rb +1 -1
- data/lib/ory-client/models/check_permission_result.rb +1 -1
- data/lib/ory-client/models/check_permission_result_with_error.rb +1 -1
- data/lib/ory-client/models/cloud_account.rb +1 -1
- data/lib/ory-client/models/consistency_request_parameters.rb +1 -1
- data/lib/ory-client/models/continue_with.rb +1 -1
- data/lib/ory-client/models/continue_with_recovery_ui.rb +1 -1
- data/lib/ory-client/models/continue_with_recovery_ui_flow.rb +1 -1
- data/lib/ory-client/models/continue_with_redirect_browser_to.rb +1 -1
- data/lib/ory-client/models/continue_with_set_ory_session_token.rb +1 -1
- data/lib/ory-client/models/continue_with_settings_ui.rb +1 -1
- data/lib/ory-client/models/continue_with_settings_ui_flow.rb +1 -1
- data/lib/ory-client/models/continue_with_verification_ui.rb +1 -1
- data/lib/ory-client/models/continue_with_verification_ui_flow.rb +1 -1
- data/lib/ory-client/models/courier_message_status.rb +1 -1
- data/lib/ory-client/models/courier_message_type.rb +1 -1
- data/lib/ory-client/models/create_custom_domain_body.rb +1 -1
- data/lib/ory-client/models/create_event_stream_body.rb +1 -1
- data/lib/ory-client/models/create_fedcm_flow_response.rb +1 -1
- data/lib/ory-client/models/create_identity_body.rb +1 -1
- data/lib/ory-client/models/create_invite_response.rb +1 -1
- data/lib/ory-client/models/create_json_web_key_set.rb +1 -1
- data/lib/ory-client/models/create_onboarding_link_response.rb +1 -1
- data/lib/ory-client/models/create_organization_onboarding_portal_link_body.rb +1 -1
- data/lib/ory-client/models/create_project_api_key_request.rb +1 -1
- data/lib/ory-client/models/create_project_body.rb +1 -1
- data/lib/ory-client/models/create_project_branding.rb +1 -1
- data/lib/ory-client/models/create_project_member_invite_body.rb +1 -1
- data/lib/ory-client/models/create_project_normalized_payload.rb +1 -1
- data/lib/ory-client/models/create_recovery_code_for_identity_body.rb +1 -1
- data/lib/ory-client/models/create_recovery_link_for_identity_body.rb +1 -1
- data/lib/ory-client/models/create_relationship_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_body.rb +1 -1
- data/lib/ory-client/models/create_subscription_common.rb +1 -1
- data/lib/ory-client/models/create_test_login_flow_body.rb +1 -1
- data/lib/ory-client/models/create_verifiable_credential_request_body.rb +1 -1
- data/lib/ory-client/models/create_workspace_api_key_body.rb +1 -1
- data/lib/ory-client/models/create_workspace_body.rb +1 -1
- data/lib/ory-client/models/create_workspace_member_invite_body.rb +1 -1
- data/lib/ory-client/models/create_workspace_organization_body.rb +1 -1
- data/lib/ory-client/models/create_workspace_subscription_body.rb +1 -1
- data/lib/ory-client/models/credential_supported_draft00.rb +1 -1
- data/lib/ory-client/models/custom_domain.rb +1 -1
- data/lib/ory-client/models/customer_portal_availability.rb +1 -1
- data/lib/ory-client/models/delete_my_sessions_count.rb +1 -1
- data/lib/ory-client/models/derive_token_request.rb +211 -0
- data/lib/ory-client/models/derive_token_response.rb +147 -0
- data/lib/ory-client/models/device_authn_android_authorization_list.rb +1 -1
- data/lib/ory-client/models/device_authn_android_key_description.rb +1 -1
- data/lib/ory-client/models/device_authn_android_root_of_trust.rb +1 -1
- data/lib/ory-client/models/device_authn_attestation.rb +1 -1
- data/lib/ory-client/models/device_authn_ios_att_stmt.rb +1 -1
- data/lib/ory-client/models/device_authn_ios_attestation.rb +1 -1
- data/lib/ory-client/models/device_authn_key.rb +1 -1
- data/lib/ory-client/models/device_authorization.rb +1 -1
- data/lib/ory-client/models/device_user_auth_request.rb +1 -1
- data/lib/ory-client/models/email_template_data.rb +1 -1
- data/lib/ory-client/models/email_template_data_body.rb +1 -1
- data/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +1 -1
- data/lib/ory-client/models/error_browser_location_change_required.rb +1 -1
- data/lib/ory-client/models/error_flow_replaced.rb +1 -1
- data/lib/ory-client/models/error_generic.rb +1 -1
- data/lib/ory-client/models/error_o_auth2.rb +1 -1
- data/lib/ory-client/models/event_stream.rb +1 -1
- data/lib/ory-client/models/expanded_permission_tree.rb +1 -1
- data/lib/ory-client/models/flow_error.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/generic_error_content.rb +1 -1
- data/lib/ory-client/models/generic_oidc_provider.rb +1 -1
- data/lib/ory-client/models/generic_usage.rb +1 -1
- data/lib/ory-client/models/get_attributes_count.rb +1 -1
- data/lib/ory-client/models/get_jwks_response.rb +148 -0
- data/lib/ory-client/models/get_managed_identity_schema_location.rb +1 -1
- data/lib/ory-client/models/get_metrics_count.rb +1 -1
- data/lib/ory-client/models/get_metrics_event_attributes.rb +1 -1
- data/lib/ory-client/models/get_metrics_event_types.rb +1 -1
- data/lib/ory-client/models/get_organization_response.rb +1 -1
- data/lib/ory-client/models/get_project_events.rb +1 -1
- data/lib/ory-client/models/get_project_events_body.rb +1 -1
- data/lib/ory-client/models/get_project_metrics.rb +1 -1
- data/lib/ory-client/models/get_session_activity.rb +1 -1
- data/lib/ory-client/models/get_version200_response.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/identity_credentials_code.rb +1 -1
- data/lib/ory-client/models/identity_credentials_code_address.rb +1 -1
- data/lib/ory-client/models/identity_credentials_lookup_secret_code.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_credentials_oidc_provider.rb +1 -1
- data/lib/ory-client/models/identity_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_credentials_web_authn.rb +1 -1
- data/lib/ory-client/models/identity_credentials_web_authn_attestation.rb +1 -1
- data/lib/ory-client/models/identity_credentials_web_authn_authenticator.rb +1 -1
- data/lib/ory-client/models/identity_credentials_web_authn_flags.rb +1 -1
- data/lib/ory-client/models/identity_patch.rb +1 -1
- data/lib/ory-client/models/identity_patch_response.rb +1 -1
- data/lib/ory-client/models/identity_schema_container.rb +1 -1
- data/lib/ory-client/models/identity_schema_preset.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_passkey.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_passkey_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_password.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_password_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_saml.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_saml_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_saml_config_provider.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_totp.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_totp_config.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_web_authn.rb +1 -1
- data/lib/ory-client/models/identity_with_credentials_web_authn_config.rb +1 -1
- data/lib/ory-client/models/import_api_key_request.rb +258 -0
- data/lib/ory-client/models/imported_api_key.rb +306 -0
- data/lib/ory-client/models/internal_get_project_branding_body.rb +1 -1
- data/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb +1 -1
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +1 -1
- data/lib/ory-client/models/introspected_o_auth2_token.rb +1 -1
- data/lib/ory-client/models/invite_token_body.rb +1 -1
- data/lib/ory-client/models/invoice.rb +1 -1
- data/lib/ory-client/models/invoice_data_v1.rb +1 -1
- data/lib/ory-client/models/ip_restriction.rb +151 -0
- data/lib/ory-client/models/is_owner_for_project_by_slug.rb +1 -1
- data/lib/ory-client/models/issue_api_key_request.rb +247 -0
- data/lib/ory-client/models/issue_api_key_response.rb +156 -0
- data/lib/ory-client/models/issued_api_key.rb +306 -0
- data/lib/ory-client/models/json_patch.rb +1 -1
- data/lib/ory-client/models/json_web_key.rb +1 -1
- data/lib/ory-client/models/json_web_key_set.rb +1 -1
- data/lib/ory-client/models/keto_namespace.rb +1 -1
- data/lib/ory-client/models/key_status.rb +42 -0
- data/lib/ory-client/models/key_visibility.rb +41 -0
- data/lib/ory-client/models/keyset_pagination_request_parameters.rb +1 -1
- data/lib/ory-client/models/keyset_pagination_response_headers.rb +1 -1
- data/lib/ory-client/models/line_item_v1.rb +1 -1
- data/lib/ory-client/models/list_event_streams.rb +1 -1
- data/lib/ory-client/models/list_imported_api_keys_response.rb +158 -0
- data/lib/ory-client/models/list_invoices_response.rb +1 -1
- data/lib/ory-client/models/list_issued_api_keys_response.rb +158 -0
- data/lib/ory-client/models/list_organizations_response.rb +1 -1
- data/lib/ory-client/models/list_workspace_projects.rb +1 -1
- data/lib/ory-client/models/list_workspaces.rb +1 -1
- data/lib/ory-client/models/login_flow.rb +1 -1
- data/lib/ory-client/models/login_flow_state.rb +1 -1
- data/lib/ory-client/models/login_flow_test_context.rb +1 -1
- data/lib/ory-client/models/login_flow_test_debug_payload.rb +1 -1
- data/lib/ory-client/models/login_flow_test_schema_validation_error.rb +1 -1
- data/lib/ory-client/models/login_flow_test_step_error.rb +1 -1
- data/lib/ory-client/models/logout_flow.rb +1 -1
- data/lib/ory-client/models/manage_sessions_body.rb +1 -1
- data/lib/ory-client/models/manage_sessions_response.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema.rb +1 -1
- data/lib/ory-client/models/managed_identity_schema_validation_result.rb +1 -1
- data/lib/ory-client/models/member_invite.rb +1 -1
- data/lib/ory-client/models/message.rb +1 -1
- data/lib/ory-client/models/message_dispatch.rb +1 -1
- data/lib/ory-client/models/metrics_datapoint.rb +1 -1
- data/lib/ory-client/models/money.rb +1 -1
- data/lib/ory-client/models/namespace.rb +1 -1
- data/lib/ory-client/models/needs_privileged_session_error.rb +1 -1
- data/lib/ory-client/models/normalized_project.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_courier_channel.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_hook.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_identity_schema.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_saml_provider.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_scim_client.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +1 -1
- data/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb +1 -1
- data/lib/ory-client/models/null_value.rb +39 -0
- data/lib/ory-client/models/o_auth2_client.rb +1 -1
- data/lib/ory-client/models/o_auth2_client_token_lifespans.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +1 -1
- data/lib/ory-client/models/o_auth2_consent_session.rb +1 -1
- data/lib/ory-client/models/o_auth2_login_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_logout_request.rb +1 -1
- data/lib/ory-client/models/o_auth2_redirect_to.rb +1 -1
- data/lib/ory-client/models/o_auth2_token_exchange.rb +1 -1
- data/lib/ory-client/models/oidc_configuration.rb +1 -1
- data/lib/ory-client/models/oidc_user_info.rb +1 -1
- data/lib/ory-client/models/onboarding_portal_link.rb +1 -1
- data/lib/ory-client/models/onboarding_portal_organization.rb +1 -1
- data/lib/ory-client/models/organization.rb +1 -1
- data/lib/ory-client/models/organization_body.rb +1 -1
- data/lib/ory-client/models/organization_onboarding_portal_links_response.rb +1 -1
- data/lib/ory-client/models/parse_error.rb +1 -1
- data/lib/ory-client/models/patch_identities_body.rb +1 -1
- data/lib/ory-client/models/patch_workspace_member_body.rb +1 -1
- data/lib/ory-client/models/perform_native_logout_body.rb +1 -1
- data/lib/ory-client/models/permissions_on_workspace.rb +1 -1
- data/lib/ory-client/models/plan.rb +1 -1
- data/lib/ory-client/models/plan_details.rb +1 -1
- data/lib/ory-client/models/post_check_permission_body.rb +1 -1
- data/lib/ory-client/models/post_check_permission_or_error_body.rb +1 -1
- data/lib/ory-client/models/project.rb +1 -1
- data/lib/ory-client/models/project_api_key.rb +1 -1
- data/lib/ory-client/models/project_branding.rb +1 -1
- data/lib/ory-client/models/project_branding_colors.rb +1 -1
- data/lib/ory-client/models/project_branding_theme.rb +1 -1
- data/lib/ory-client/models/project_cors.rb +1 -1
- data/lib/ory-client/models/project_events_datapoint.rb +1 -1
- data/lib/ory-client/models/project_host.rb +1 -1
- data/lib/ory-client/models/project_member.rb +1 -1
- data/lib/ory-client/models/project_metadata.rb +1 -1
- data/lib/ory-client/models/project_service_account_experience.rb +1 -1
- data/lib/ory-client/models/project_service_identity.rb +1 -1
- data/lib/ory-client/models/project_service_o_auth2.rb +1 -1
- data/lib/ory-client/models/project_service_permission.rb +1 -1
- data/lib/ory-client/models/project_services.rb +1 -1
- data/lib/ory-client/models/provider.rb +1 -1
- data/lib/ory-client/models/quota_usage.rb +1 -1
- data/lib/ory-client/models/rate_limit_policy.rb +168 -0
- data/lib/ory-client/models/recovery_code_for_identity.rb +1 -1
- data/lib/ory-client/models/recovery_flow.rb +1 -1
- data/lib/ory-client/models/recovery_flow_state.rb +1 -1
- data/lib/ory-client/models/recovery_identity_address.rb +1 -1
- data/lib/ory-client/models/recovery_link_for_identity.rb +1 -1
- data/lib/ory-client/models/registration_flow.rb +1 -1
- data/lib/ory-client/models/registration_flow_state.rb +1 -1
- data/lib/ory-client/models/reject_o_auth2_request.rb +1 -1
- data/lib/ory-client/models/relation_query.rb +1 -1
- data/lib/ory-client/models/relationship.rb +1 -1
- data/lib/ory-client/models/relationship_namespaces.rb +1 -1
- data/lib/ory-client/models/relationship_patch.rb +1 -1
- data/lib/ory-client/models/relationships.rb +1 -1
- data/lib/ory-client/models/revision_account_experience_custom_translation.rb +1 -1
- data/lib/ory-client/models/revocation_reason.rb +43 -0
- data/lib/ory-client/models/rfc6749_error_json.rb +1 -1
- data/lib/ory-client/models/rotate_issued_api_key_response.rb +165 -0
- data/lib/ory-client/models/schema_patch.rb +1 -1
- data/lib/ory-client/models/self_revoke_api_key_request.rb +181 -0
- data/lib/ory-client/models/self_service_flow_expired_error.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/session_activity_datapoint.rb +1 -1
- data/lib/ory-client/models/session_authentication_method.rb +1 -1
- data/lib/ory-client/models/session_device.rb +1 -1
- data/lib/ory-client/models/set_custom_domain_body.rb +1 -1
- data/lib/ory-client/models/set_event_stream_body.rb +1 -1
- data/lib/ory-client/models/set_organization_from_onboarding_portal_link_body.rb +1 -1
- data/lib/ory-client/models/set_project.rb +1 -1
- data/lib/ory-client/models/set_project_branding_theme_body.rb +1 -1
- data/lib/ory-client/models/settings_flow.rb +1 -1
- data/lib/ory-client/models/settings_flow_state.rb +1 -1
- data/lib/ory-client/models/source_position.rb +1 -1
- data/lib/ory-client/models/status.rb +167 -0
- data/lib/ory-client/models/subject_set.rb +1 -1
- data/lib/ory-client/models/subscription.rb +1 -1
- data/lib/ory-client/models/successful_code_exchange_response.rb +1 -1
- data/lib/ory-client/models/successful_native_login.rb +1 -1
- data/lib/ory-client/models/successful_native_registration.rb +1 -1
- data/lib/ory-client/models/successful_project_update.rb +1 -1
- data/lib/ory-client/models/tax_line_item.rb +1 -1
- data/lib/ory-client/models/time_interval.rb +1 -1
- data/lib/ory-client/models/token.rb +178 -0
- data/lib/ory-client/models/token_algorithm.rb +41 -0
- data/lib/ory-client/models/token_pagination.rb +1 -1
- data/lib/ory-client/models/token_pagination_headers.rb +1 -1
- data/lib/ory-client/models/token_pagination_request_parameters.rb +1 -1
- data/lib/ory-client/models/token_pagination_response_headers.rb +1 -1
- data/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +1 -1
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +1 -1
- data/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +1 -1
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_division_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes_option.rb +1 -1
- data/lib/ory-client/models/ui_node_meta.rb +1 -1
- data/lib/ory-client/models/ui_node_script_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_fedcm_flow_body.rb +1 -1
- data/lib/ory-client/models/update_identity_body.rb +1 -1
- data/lib/ory-client/models/update_login_flow_body.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_identifier_first_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_oidc_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_passkey_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_saml_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_totp_method.rb +1 -1
- data/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_organization_onboarding_portal_link_body.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_body.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_recovery_flow_with_link_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_body.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_passkey_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_profile_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_saml_method.rb +1 -1
- data/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_body.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_passkey_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_profile_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_saml_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_totp_method.rb +1 -1
- data/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +1 -1
- data/lib/ory-client/models/update_subscription_body.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_body.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_with_code_method.rb +1 -1
- data/lib/ory-client/models/update_verification_flow_with_link_method.rb +1 -1
- data/lib/ory-client/models/update_workspace_body.rb +1 -1
- data/lib/ory-client/models/usage.rb +1 -1
- data/lib/ory-client/models/validate_base_url_rewrite_request.rb +220 -0
- data/lib/ory-client/models/validate_base_url_rewrite_response.rb +176 -0
- data/lib/ory-client/models/verifiable_credential_priming_response.rb +1 -1
- data/lib/ory-client/models/verifiable_credential_proof.rb +1 -1
- data/lib/ory-client/models/verifiable_credential_response.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/verification_error_code.rb +47 -0
- data/lib/ory-client/models/verification_flow.rb +1 -1
- data/lib/ory-client/models/verification_flow_state.rb +1 -1
- data/lib/ory-client/models/verify_api_key_request.rb +147 -0
- data/lib/ory-client/models/verify_api_key_response.rb +299 -0
- data/lib/ory-client/models/verify_user_code_request.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/warning.rb +1 -1
- data/lib/ory-client/models/workspace.rb +1 -1
- data/lib/ory-client/models/workspace_api_key.rb +1 -1
- data/lib/ory-client/models/workspace_organization.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/lib/ory-client.rb +39 -1
- data/ory-client.gemspec +1 -1
- data/spec/api/api_keys_api_spec.rb +252 -0
- data/spec/api/courier_api_spec.rb +1 -1
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/frontend_api_spec.rb +1 -1
- data/spec/api/identity_api_spec.rb +1 -1
- data/spec/api/jwk_api_spec.rb +1 -1
- data/spec/api/metadata_api_spec.rb +1 -1
- data/spec/api/o_auth2_api_spec.rb +1 -1
- data/spec/api/oidc_api_spec.rb +1 -1
- data/spec/api/permission_api_spec.rb +1 -1
- data/spec/api/project_api_spec.rb +1 -1
- data/spec/api/relationship_api_spec.rb +1 -1
- data/spec/api/wellknown_api_spec.rb +1 -1
- data/spec/api/workspace_api_spec.rb +1 -1
- data/spec/models/accept_device_user_code_request_spec.rb +1 -1
- data/spec/models/accept_o_auth2_consent_request_session_spec.rb +1 -1
- data/spec/models/accept_o_auth2_consent_request_spec.rb +1 -1
- data/spec/models/accept_o_auth2_login_request_spec.rb +1 -1
- data/spec/models/account_experience_colors_spec.rb +1 -1
- data/spec/models/account_experience_configuration_spec.rb +1 -1
- data/spec/models/add_project_to_workspace_body_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_lookup_secret_config_spec.rb +1 -1
- data/spec/models/admin_identity_import_credentials_lookup_secret_spec.rb +1 -1
- data/spec/models/admin_revoke_api_key_body_spec.rb +42 -0
- data/spec/models/admin_rotate_issued_api_key_body_spec.rb +66 -0
- data/spec/models/admin_update_imported_api_key_request_spec.rb +114 -0
- data/spec/models/admin_update_issued_api_key_request_spec.rb +114 -0
- data/spec/models/any_spec.rb +36 -0
- data/spec/models/attribute_filter_spec.rb +1 -1
- data/spec/models/attribute_spec.rb +1 -1
- data/spec/models/attributes_count_datapoint_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +1 -1
- data/spec/models/basic_organization_spec.rb +1 -1
- data/spec/models/batch_check_permission_body_spec.rb +1 -1
- data/spec/models/batch_check_permission_result_spec.rb +1 -1
- data/spec/models/batch_import_api_keys_request_spec.rb +36 -0
- data/spec/models/batch_import_api_keys_response_spec.rb +48 -0
- data/spec/models/batch_import_error_code_spec.rb +30 -0
- data/spec/models/batch_import_result_spec.rb +54 -0
- data/spec/models/batch_patch_identities_response_spec.rb +1 -1
- data/spec/models/batch_verify_api_keys_request_spec.rb +36 -0
- data/spec/models/batch_verify_api_keys_response_spec.rb +36 -0
- data/spec/models/billing_period_bucket_spec.rb +1 -1
- data/spec/models/check_opl_syntax_result_spec.rb +1 -1
- data/spec/models/check_permission_result_spec.rb +1 -1
- data/spec/models/check_permission_result_with_error_spec.rb +1 -1
- data/spec/models/cloud_account_spec.rb +1 -1
- data/spec/models/consistency_request_parameters_spec.rb +1 -1
- data/spec/models/continue_with_recovery_ui_flow_spec.rb +1 -1
- data/spec/models/continue_with_recovery_ui_spec.rb +1 -1
- data/spec/models/continue_with_redirect_browser_to_spec.rb +1 -1
- data/spec/models/continue_with_set_ory_session_token_spec.rb +1 -1
- data/spec/models/continue_with_settings_ui_flow_spec.rb +1 -1
- data/spec/models/continue_with_settings_ui_spec.rb +1 -1
- data/spec/models/continue_with_spec.rb +1 -1
- data/spec/models/continue_with_verification_ui_flow_spec.rb +1 -1
- data/spec/models/continue_with_verification_ui_spec.rb +1 -1
- data/spec/models/courier_message_status_spec.rb +1 -1
- data/spec/models/courier_message_type_spec.rb +1 -1
- data/spec/models/create_custom_domain_body_spec.rb +1 -1
- data/spec/models/create_event_stream_body_spec.rb +1 -1
- data/spec/models/create_fedcm_flow_response_spec.rb +1 -1
- data/spec/models/create_identity_body_spec.rb +1 -1
- data/spec/models/create_invite_response_spec.rb +1 -1
- data/spec/models/create_json_web_key_set_spec.rb +1 -1
- data/spec/models/create_onboarding_link_response_spec.rb +1 -1
- data/spec/models/create_organization_onboarding_portal_link_body_spec.rb +1 -1
- data/spec/models/create_project_api_key_request_spec.rb +1 -1
- data/spec/models/create_project_body_spec.rb +1 -1
- data/spec/models/create_project_branding_spec.rb +1 -1
- data/spec/models/create_project_member_invite_body_spec.rb +1 -1
- data/spec/models/create_project_normalized_payload_spec.rb +1 -1
- data/spec/models/create_recovery_code_for_identity_body_spec.rb +1 -1
- data/spec/models/create_recovery_link_for_identity_body_spec.rb +1 -1
- data/spec/models/create_relationship_body_spec.rb +1 -1
- data/spec/models/create_subscription_body_spec.rb +1 -1
- data/spec/models/create_subscription_common_spec.rb +1 -1
- data/spec/models/create_test_login_flow_body_spec.rb +1 -1
- data/spec/models/create_verifiable_credential_request_body_spec.rb +1 -1
- data/spec/models/create_workspace_api_key_body_spec.rb +1 -1
- data/spec/models/create_workspace_body_spec.rb +1 -1
- data/spec/models/create_workspace_member_invite_body_spec.rb +1 -1
- data/spec/models/create_workspace_organization_body_spec.rb +1 -1
- data/spec/models/create_workspace_subscription_body_spec.rb +1 -1
- data/spec/models/credential_supported_draft00_spec.rb +1 -1
- data/spec/models/custom_domain_spec.rb +1 -1
- data/spec/models/customer_portal_availability_spec.rb +1 -1
- data/spec/models/delete_my_sessions_count_spec.rb +1 -1
- data/spec/models/derive_token_request_spec.rb +60 -0
- data/spec/models/derive_token_response_spec.rb +36 -0
- data/spec/models/device_authn_android_authorization_list_spec.rb +1 -1
- data/spec/models/device_authn_android_key_description_spec.rb +1 -1
- data/spec/models/device_authn_android_root_of_trust_spec.rb +1 -1
- data/spec/models/device_authn_attestation_spec.rb +1 -1
- data/spec/models/device_authn_ios_att_stmt_spec.rb +1 -1
- data/spec/models/device_authn_ios_attestation_spec.rb +1 -1
- data/spec/models/device_authn_key_spec.rb +1 -1
- data/spec/models/device_authorization_spec.rb +1 -1
- data/spec/models/device_user_auth_request_spec.rb +1 -1
- data/spec/models/email_template_data_body_spec.rb +1 -1
- data/spec/models/email_template_data_spec.rb +1 -1
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +1 -1
- data/spec/models/error_browser_location_change_required_spec.rb +1 -1
- data/spec/models/error_flow_replaced_spec.rb +1 -1
- data/spec/models/error_generic_spec.rb +1 -1
- data/spec/models/error_o_auth2_spec.rb +1 -1
- data/spec/models/event_stream_spec.rb +1 -1
- data/spec/models/expanded_permission_tree_spec.rb +1 -1
- data/spec/models/flow_error_spec.rb +1 -1
- data/spec/models/generic_error_content_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/generic_oidc_provider_spec.rb +1 -1
- data/spec/models/generic_usage_spec.rb +1 -1
- data/spec/models/get_attributes_count_spec.rb +1 -1
- data/spec/models/get_jwks_response_spec.rb +36 -0
- data/spec/models/get_managed_identity_schema_location_spec.rb +1 -1
- data/spec/models/get_metrics_count_spec.rb +1 -1
- data/spec/models/get_metrics_event_attributes_spec.rb +1 -1
- data/spec/models/get_metrics_event_types_spec.rb +1 -1
- data/spec/models/get_organization_response_spec.rb +1 -1
- data/spec/models/get_project_events_body_spec.rb +1 -1
- data/spec/models/get_project_events_spec.rb +1 -1
- data/spec/models/get_project_metrics_spec.rb +1 -1
- data/spec/models/get_session_activity_spec.rb +1 -1
- data/spec/models/get_version200_response_spec.rb +1 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_code_address_spec.rb +1 -1
- data/spec/models/identity_credentials_code_spec.rb +1 -1
- data/spec/models/identity_credentials_lookup_secret_code_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_provider_spec.rb +1 -1
- data/spec/models/identity_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_credentials_password_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_web_authn_attestation_spec.rb +1 -1
- data/spec/models/identity_credentials_web_authn_authenticator_spec.rb +1 -1
- data/spec/models/identity_credentials_web_authn_flags_spec.rb +1 -1
- data/spec/models/identity_credentials_web_authn_spec.rb +1 -1
- data/spec/models/identity_patch_response_spec.rb +1 -1
- data/spec/models/identity_patch_spec.rb +1 -1
- data/spec/models/identity_schema_container_spec.rb +1 -1
- data/spec/models/identity_schema_preset_spec.rb +1 -1
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_oidc_spec.rb +1 -1
- data/spec/models/identity_with_credentials_passkey_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_passkey_spec.rb +1 -1
- data/spec/models/identity_with_credentials_password_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_password_spec.rb +1 -1
- data/spec/models/identity_with_credentials_saml_config_provider_spec.rb +1 -1
- data/spec/models/identity_with_credentials_saml_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_saml_spec.rb +1 -1
- data/spec/models/identity_with_credentials_spec.rb +1 -1
- data/spec/models/identity_with_credentials_totp_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_totp_spec.rb +1 -1
- data/spec/models/identity_with_credentials_web_authn_config_spec.rb +1 -1
- data/spec/models/identity_with_credentials_web_authn_spec.rb +1 -1
- data/spec/models/import_api_key_request_spec.rb +90 -0
- data/spec/models/imported_api_key_spec.rb +120 -0
- data/spec/models/internal_get_project_branding_body_spec.rb +1 -1
- data/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb +1 -1
- data/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +1 -1
- data/spec/models/internal_is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/introspected_o_auth2_token_spec.rb +1 -1
- data/spec/models/invite_token_body_spec.rb +1 -1
- data/spec/models/invoice_data_v1_spec.rb +1 -1
- data/spec/models/invoice_spec.rb +1 -1
- data/spec/models/ip_restriction_spec.rb +36 -0
- data/spec/models/is_owner_for_project_by_slug_spec.rb +1 -1
- data/spec/models/issue_api_key_request_spec.rb +84 -0
- data/spec/models/issue_api_key_response_spec.rb +42 -0
- data/spec/models/issued_api_key_spec.rb +120 -0
- data/spec/models/json_patch_spec.rb +1 -1
- data/spec/models/json_web_key_set_spec.rb +1 -1
- data/spec/models/json_web_key_spec.rb +1 -1
- data/spec/models/keto_namespace_spec.rb +1 -1
- data/spec/models/key_status_spec.rb +30 -0
- data/spec/models/key_visibility_spec.rb +30 -0
- data/spec/models/keyset_pagination_request_parameters_spec.rb +1 -1
- data/spec/models/keyset_pagination_response_headers_spec.rb +1 -1
- data/spec/models/line_item_v1_spec.rb +1 -1
- data/spec/models/list_event_streams_spec.rb +1 -1
- data/spec/models/list_imported_api_keys_response_spec.rb +42 -0
- data/spec/models/list_invoices_response_spec.rb +1 -1
- data/spec/models/list_issued_api_keys_response_spec.rb +42 -0
- data/spec/models/list_organizations_response_spec.rb +1 -1
- data/spec/models/list_workspace_projects_spec.rb +1 -1
- data/spec/models/list_workspaces_spec.rb +1 -1
- data/spec/models/login_flow_spec.rb +1 -1
- data/spec/models/login_flow_state_spec.rb +1 -1
- data/spec/models/login_flow_test_context_spec.rb +1 -1
- data/spec/models/login_flow_test_debug_payload_spec.rb +1 -1
- data/spec/models/login_flow_test_schema_validation_error_spec.rb +1 -1
- data/spec/models/login_flow_test_step_error_spec.rb +1 -1
- data/spec/models/logout_flow_spec.rb +1 -1
- data/spec/models/manage_sessions_body_spec.rb +1 -1
- data/spec/models/manage_sessions_response_spec.rb +1 -1
- data/spec/models/managed_identity_schema_spec.rb +1 -1
- data/spec/models/managed_identity_schema_validation_result_spec.rb +1 -1
- data/spec/models/member_invite_spec.rb +1 -1
- data/spec/models/message_dispatch_spec.rb +1 -1
- data/spec/models/message_spec.rb +1 -1
- data/spec/models/metrics_datapoint_spec.rb +1 -1
- data/spec/models/money_spec.rb +1 -1
- data/spec/models/namespace_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +1 -1
- data/spec/models/normalized_project_revision_courier_channel_spec.rb +1 -1
- data/spec/models/normalized_project_revision_hook_spec.rb +1 -1
- data/spec/models/normalized_project_revision_identity_schema_spec.rb +1 -1
- data/spec/models/normalized_project_revision_saml_provider_spec.rb +1 -1
- data/spec/models/normalized_project_revision_scim_client_spec.rb +1 -1
- data/spec/models/normalized_project_revision_spec.rb +1 -1
- data/spec/models/normalized_project_revision_third_party_provider_spec.rb +1 -1
- data/spec/models/normalized_project_revision_tokenizer_template_spec.rb +1 -1
- data/spec/models/normalized_project_spec.rb +1 -1
- data/spec/models/null_value_spec.rb +30 -0
- data/spec/models/o_auth2_client_spec.rb +1 -1
- data/spec/models/o_auth2_client_token_lifespans_spec.rb +1 -1
- data/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +1 -1
- data/spec/models/o_auth2_consent_request_spec.rb +1 -1
- data/spec/models/o_auth2_consent_session_spec.rb +1 -1
- data/spec/models/o_auth2_login_request_spec.rb +1 -1
- data/spec/models/o_auth2_logout_request_spec.rb +1 -1
- data/spec/models/o_auth2_redirect_to_spec.rb +1 -1
- data/spec/models/o_auth2_token_exchange_spec.rb +1 -1
- data/spec/models/oidc_configuration_spec.rb +1 -1
- data/spec/models/oidc_user_info_spec.rb +1 -1
- data/spec/models/onboarding_portal_link_spec.rb +1 -1
- data/spec/models/onboarding_portal_organization_spec.rb +1 -1
- data/spec/models/organization_body_spec.rb +1 -1
- data/spec/models/organization_onboarding_portal_links_response_spec.rb +1 -1
- data/spec/models/organization_spec.rb +1 -1
- data/spec/models/parse_error_spec.rb +1 -1
- data/spec/models/patch_identities_body_spec.rb +1 -1
- data/spec/models/patch_workspace_member_body_spec.rb +1 -1
- data/spec/models/perform_native_logout_body_spec.rb +1 -1
- data/spec/models/permissions_on_workspace_spec.rb +1 -1
- data/spec/models/plan_details_spec.rb +1 -1
- data/spec/models/plan_spec.rb +1 -1
- data/spec/models/post_check_permission_body_spec.rb +1 -1
- data/spec/models/post_check_permission_or_error_body_spec.rb +1 -1
- data/spec/models/project_api_key_spec.rb +1 -1
- data/spec/models/project_branding_colors_spec.rb +1 -1
- data/spec/models/project_branding_spec.rb +1 -1
- data/spec/models/project_branding_theme_spec.rb +1 -1
- data/spec/models/project_cors_spec.rb +1 -1
- data/spec/models/project_events_datapoint_spec.rb +1 -1
- data/spec/models/project_host_spec.rb +1 -1
- data/spec/models/project_member_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_service_account_experience_spec.rb +1 -1
- data/spec/models/project_service_identity_spec.rb +1 -1
- data/spec/models/project_service_o_auth2_spec.rb +1 -1
- data/spec/models/project_service_permission_spec.rb +1 -1
- data/spec/models/project_services_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/provider_spec.rb +1 -1
- data/spec/models/quota_usage_spec.rb +1 -1
- data/spec/models/rate_limit_policy_spec.rb +48 -0
- data/spec/models/recovery_code_for_identity_spec.rb +1 -1
- data/spec/models/recovery_flow_spec.rb +1 -1
- data/spec/models/recovery_flow_state_spec.rb +1 -1
- data/spec/models/recovery_identity_address_spec.rb +1 -1
- data/spec/models/recovery_link_for_identity_spec.rb +1 -1
- data/spec/models/registration_flow_spec.rb +1 -1
- data/spec/models/registration_flow_state_spec.rb +1 -1
- data/spec/models/reject_o_auth2_request_spec.rb +1 -1
- data/spec/models/relation_query_spec.rb +1 -1
- data/spec/models/relationship_namespaces_spec.rb +1 -1
- data/spec/models/relationship_patch_spec.rb +1 -1
- data/spec/models/relationship_spec.rb +1 -1
- data/spec/models/relationships_spec.rb +1 -1
- data/spec/models/revision_account_experience_custom_translation_spec.rb +1 -1
- data/spec/models/revocation_reason_spec.rb +30 -0
- data/spec/models/rfc6749_error_json_spec.rb +1 -1
- data/spec/models/rotate_issued_api_key_response_spec.rb +48 -0
- data/spec/models/schema_patch_spec.rb +1 -1
- data/spec/models/self_revoke_api_key_request_spec.rb +42 -0
- data/spec/models/self_service_flow_expired_error_spec.rb +1 -1
- data/spec/models/session_activity_datapoint_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +1 -1
- data/spec/models/session_device_spec.rb +1 -1
- data/spec/models/session_spec.rb +1 -1
- data/spec/models/set_custom_domain_body_spec.rb +1 -1
- data/spec/models/set_event_stream_body_spec.rb +1 -1
- data/spec/models/set_organization_from_onboarding_portal_link_body_spec.rb +1 -1
- data/spec/models/set_project_branding_theme_body_spec.rb +1 -1
- data/spec/models/set_project_spec.rb +1 -1
- data/spec/models/settings_flow_spec.rb +1 -1
- data/spec/models/settings_flow_state_spec.rb +1 -1
- data/spec/models/source_position_spec.rb +1 -1
- data/spec/models/status_spec.rb +48 -0
- data/spec/models/subject_set_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/successful_code_exchange_response_spec.rb +1 -1
- data/spec/models/successful_native_login_spec.rb +1 -1
- data/spec/models/successful_native_registration_spec.rb +1 -1
- data/spec/models/successful_project_update_spec.rb +1 -1
- data/spec/models/tax_line_item_spec.rb +1 -1
- data/spec/models/time_interval_spec.rb +1 -1
- data/spec/models/token_algorithm_spec.rb +30 -0
- data/spec/models/token_pagination_headers_spec.rb +1 -1
- data/spec/models/token_pagination_request_parameters_spec.rb +1 -1
- data/spec/models/token_pagination_response_headers_spec.rb +1 -1
- data/spec/models/token_pagination_spec.rb +1 -1
- data/spec/models/token_spec.rb +54 -0
- data/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +1 -1
- data/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +1 -1
- data/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +1 -1
- data/spec/models/ui_node_attributes_spec.rb +1 -1
- data/spec/models/ui_node_division_attributes_spec.rb +1 -1
- data/spec/models/ui_node_image_attributes_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_option_spec.rb +1 -1
- data/spec/models/ui_node_input_attributes_spec.rb +1 -1
- data/spec/models/ui_node_meta_spec.rb +1 -1
- data/spec/models/ui_node_script_attributes_spec.rb +1 -1
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +1 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/update_fedcm_flow_body_spec.rb +1 -1
- data/spec/models/update_identity_body_spec.rb +1 -1
- data/spec/models/update_login_flow_body_spec.rb +1 -1
- data/spec/models/update_login_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_identifier_first_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_passkey_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_saml_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_totp_method_spec.rb +1 -1
- data/spec/models/update_login_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_organization_onboarding_portal_link_body_spec.rb +1 -1
- data/spec/models/update_recovery_flow_body_spec.rb +1 -1
- data/spec/models/update_recovery_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_recovery_flow_with_link_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_body_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_passkey_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_profile_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_saml_method_spec.rb +1 -1
- data/spec/models/update_registration_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_body_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_lookup_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_oidc_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_passkey_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_password_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_profile_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_saml_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_totp_method_spec.rb +1 -1
- data/spec/models/update_settings_flow_with_web_authn_method_spec.rb +1 -1
- data/spec/models/update_subscription_body_spec.rb +1 -1
- data/spec/models/update_verification_flow_body_spec.rb +1 -1
- data/spec/models/update_verification_flow_with_code_method_spec.rb +1 -1
- data/spec/models/update_verification_flow_with_link_method_spec.rb +1 -1
- data/spec/models/update_workspace_body_spec.rb +1 -1
- data/spec/models/usage_spec.rb +1 -1
- data/spec/models/validate_base_url_rewrite_request_spec.rb +48 -0
- data/spec/models/validate_base_url_rewrite_response_spec.rb +42 -0
- data/spec/models/verifiable_credential_priming_response_spec.rb +1 -1
- data/spec/models/verifiable_credential_proof_spec.rb +1 -1
- data/spec/models/verifiable_credential_response_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/verification_error_code_spec.rb +30 -0
- data/spec/models/verification_flow_spec.rb +1 -1
- data/spec/models/verification_flow_state_spec.rb +1 -1
- data/spec/models/verify_api_key_request_spec.rb +36 -0
- data/spec/models/verify_api_key_response_spec.rb +114 -0
- data/spec/models/verify_user_code_request_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/models/workspace_api_key_spec.rb +1 -1
- data/spec/models/workspace_organization_spec.rb +1 -1
- data/spec/models/workspace_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/io-console-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/io-console-0.8.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/psych-4.0.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +155 -3
|
@@ -0,0 +1,1190 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Ory APIs
|
|
3
|
+
|
|
4
|
+
## 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) |
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1.22.40
|
|
7
|
+
Contact: support@ory.sh
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OryClient
|
|
16
|
+
class APIKeysApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Batch Import API Keys
|
|
23
|
+
# 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:batchImport { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ```
|
|
24
|
+
# @param batch_import_api_keys_request [BatchImportAPIKeysRequest] BatchImportAPIKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [BatchImportAPIKeysResponse]
|
|
27
|
+
def admin_batch_import_api_keys(batch_import_api_keys_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = admin_batch_import_api_keys_with_http_info(batch_import_api_keys_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Batch Import API Keys
|
|
33
|
+
# 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:batchImport { \"requests\": [ {\"raw_key\": \"sk_live_abc\", \"name\": \"Stripe key\", \"actor_id\": \"user_1\"}, {\"raw_key\": \"ghp_xyz\", \"name\": \"GitHub PAT\", \"actor_id\": \"user_2\"} ] } ```
|
|
34
|
+
# @param batch_import_api_keys_request [BatchImportAPIKeysRequest] BatchImportAPIKeysRequest imports multiple external API keys in one request. The maximum batch size is 1000 keys.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(BatchImportAPIKeysResponse, Integer, Hash)>] BatchImportAPIKeysResponse data, response status code and response headers
|
|
37
|
+
def admin_batch_import_api_keys_with_http_info(batch_import_api_keys_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_batch_import_api_keys ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'batch_import_api_keys_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && batch_import_api_keys_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'batch_import_api_keys_request' when calling APIKeysApi.admin_batch_import_api_keys"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys:batchImport'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_import_api_keys_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'BatchImportAPIKeysResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"APIKeysApi.admin_batch_import_api_keys",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_batch_import_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Batch Verify API Keys
|
|
91
|
+
# 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...\"} ] } ```
|
|
92
|
+
# @param batch_verify_api_keys_request [BatchVerifyAPIKeysRequest]
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [String] :cache_control 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.
|
|
95
|
+
# @option opts [String] :pragma HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise.
|
|
96
|
+
# @return [BatchVerifyAPIKeysResponse]
|
|
97
|
+
def admin_batch_verify_api_keys(batch_verify_api_keys_request, opts = {})
|
|
98
|
+
data, _status_code, _headers = admin_batch_verify_api_keys_with_http_info(batch_verify_api_keys_request, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Batch Verify API Keys
|
|
103
|
+
# 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...\"} ] } ```
|
|
104
|
+
# @param batch_verify_api_keys_request [BatchVerifyAPIKeysRequest]
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @option opts [String] :cache_control 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.
|
|
107
|
+
# @option opts [String] :pragma HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise.
|
|
108
|
+
# @return [Array<(BatchVerifyAPIKeysResponse, Integer, Hash)>] BatchVerifyAPIKeysResponse data, response status code and response headers
|
|
109
|
+
def admin_batch_verify_api_keys_with_http_info(batch_verify_api_keys_request, opts = {})
|
|
110
|
+
if @api_client.config.debugging
|
|
111
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_batch_verify_api_keys ...'
|
|
112
|
+
end
|
|
113
|
+
# verify the required parameter 'batch_verify_api_keys_request' is set
|
|
114
|
+
if @api_client.config.client_side_validation && batch_verify_api_keys_request.nil?
|
|
115
|
+
fail ArgumentError, "Missing the required parameter 'batch_verify_api_keys_request' when calling APIKeysApi.admin_batch_verify_api_keys"
|
|
116
|
+
end
|
|
117
|
+
# resource path
|
|
118
|
+
local_var_path = '/v2alpha1/admin/apiKeys:batchVerify'
|
|
119
|
+
|
|
120
|
+
# query parameters
|
|
121
|
+
query_params = opts[:query_params] || {}
|
|
122
|
+
|
|
123
|
+
# header parameters
|
|
124
|
+
header_params = opts[:header_params] || {}
|
|
125
|
+
# HTTP header 'Accept' (if needed)
|
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
127
|
+
# HTTP header 'Content-Type'
|
|
128
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
129
|
+
if !content_type.nil?
|
|
130
|
+
header_params['Content-Type'] = content_type
|
|
131
|
+
end
|
|
132
|
+
header_params[:'Cache-Control'] = opts[:'cache_control'] if !opts[:'cache_control'].nil?
|
|
133
|
+
header_params[:'Pragma'] = opts[:'pragma'] if !opts[:'pragma'].nil?
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = opts[:form_params] || {}
|
|
137
|
+
|
|
138
|
+
# http body (model)
|
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_verify_api_keys_request)
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:debug_return_type] || 'BatchVerifyAPIKeysResponse'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:operation => :"APIKeysApi.admin_batch_verify_api_keys",
|
|
149
|
+
:header_params => header_params,
|
|
150
|
+
:query_params => query_params,
|
|
151
|
+
:form_params => form_params,
|
|
152
|
+
:body => post_body,
|
|
153
|
+
:auth_names => auth_names,
|
|
154
|
+
:return_type => return_type
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
158
|
+
if @api_client.config.debugging
|
|
159
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_batch_verify_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
160
|
+
end
|
|
161
|
+
return data, status_code, headers
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Delete Imported API Key
|
|
165
|
+
# Permanently deletes an imported key (hard delete). The key is removed from the database. Use RevokeAPIKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ```
|
|
166
|
+
# @param key_id [String] SHA512/256 hash of the imported key (REQUIRED)
|
|
167
|
+
# @param [Hash] opts the optional parameters
|
|
168
|
+
# @return [Object]
|
|
169
|
+
def admin_delete_imported_api_key(key_id, opts = {})
|
|
170
|
+
data, _status_code, _headers = admin_delete_imported_api_key_with_http_info(key_id, opts)
|
|
171
|
+
data
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Delete Imported API Key
|
|
175
|
+
# Permanently deletes an imported key (hard delete). The key is removed from the database. Use RevokeAPIKey for soft deletion (recommended). ```http DELETE /v2alpha1/admin/importedApiKeys/{key_id} ```
|
|
176
|
+
# @param key_id [String] SHA512/256 hash of the imported key (REQUIRED)
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
179
|
+
def admin_delete_imported_api_key_with_http_info(key_id, opts = {})
|
|
180
|
+
if @api_client.config.debugging
|
|
181
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_delete_imported_api_key ...'
|
|
182
|
+
end
|
|
183
|
+
# verify the required parameter 'key_id' is set
|
|
184
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
185
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_delete_imported_api_key"
|
|
186
|
+
end
|
|
187
|
+
# resource path
|
|
188
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys/{key_id}'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
189
|
+
|
|
190
|
+
# query parameters
|
|
191
|
+
query_params = opts[:query_params] || {}
|
|
192
|
+
|
|
193
|
+
# header parameters
|
|
194
|
+
header_params = opts[:header_params] || {}
|
|
195
|
+
# HTTP header 'Accept' (if needed)
|
|
196
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
197
|
+
|
|
198
|
+
# form parameters
|
|
199
|
+
form_params = opts[:form_params] || {}
|
|
200
|
+
|
|
201
|
+
# http body (model)
|
|
202
|
+
post_body = opts[:debug_body]
|
|
203
|
+
|
|
204
|
+
# return_type
|
|
205
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
206
|
+
|
|
207
|
+
# auth_names
|
|
208
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
209
|
+
|
|
210
|
+
new_options = opts.merge(
|
|
211
|
+
:operation => :"APIKeysApi.admin_delete_imported_api_key",
|
|
212
|
+
:header_params => header_params,
|
|
213
|
+
:query_params => query_params,
|
|
214
|
+
:form_params => form_params,
|
|
215
|
+
:body => post_body,
|
|
216
|
+
:auth_names => auth_names,
|
|
217
|
+
:return_type => return_type
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
221
|
+
if @api_client.config.debugging
|
|
222
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_delete_imported_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
223
|
+
end
|
|
224
|
+
return data, status_code, headers
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Derive Token
|
|
228
|
+
# 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\" } ```
|
|
229
|
+
# @param derive_token_request [DeriveTokenRequest]
|
|
230
|
+
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @return [DeriveTokenResponse]
|
|
232
|
+
def admin_derive_token(derive_token_request, opts = {})
|
|
233
|
+
data, _status_code, _headers = admin_derive_token_with_http_info(derive_token_request, opts)
|
|
234
|
+
data
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Derive Token
|
|
238
|
+
# 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\" } ```
|
|
239
|
+
# @param derive_token_request [DeriveTokenRequest]
|
|
240
|
+
# @param [Hash] opts the optional parameters
|
|
241
|
+
# @return [Array<(DeriveTokenResponse, Integer, Hash)>] DeriveTokenResponse data, response status code and response headers
|
|
242
|
+
def admin_derive_token_with_http_info(derive_token_request, opts = {})
|
|
243
|
+
if @api_client.config.debugging
|
|
244
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_derive_token ...'
|
|
245
|
+
end
|
|
246
|
+
# verify the required parameter 'derive_token_request' is set
|
|
247
|
+
if @api_client.config.client_side_validation && derive_token_request.nil?
|
|
248
|
+
fail ArgumentError, "Missing the required parameter 'derive_token_request' when calling APIKeysApi.admin_derive_token"
|
|
249
|
+
end
|
|
250
|
+
# resource path
|
|
251
|
+
local_var_path = '/v2alpha1/admin/apiKeys:derive'
|
|
252
|
+
|
|
253
|
+
# query parameters
|
|
254
|
+
query_params = opts[:query_params] || {}
|
|
255
|
+
|
|
256
|
+
# header parameters
|
|
257
|
+
header_params = opts[:header_params] || {}
|
|
258
|
+
# HTTP header 'Accept' (if needed)
|
|
259
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
260
|
+
# HTTP header 'Content-Type'
|
|
261
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
262
|
+
if !content_type.nil?
|
|
263
|
+
header_params['Content-Type'] = content_type
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# form parameters
|
|
267
|
+
form_params = opts[:form_params] || {}
|
|
268
|
+
|
|
269
|
+
# http body (model)
|
|
270
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(derive_token_request)
|
|
271
|
+
|
|
272
|
+
# return_type
|
|
273
|
+
return_type = opts[:debug_return_type] || 'DeriveTokenResponse'
|
|
274
|
+
|
|
275
|
+
# auth_names
|
|
276
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
277
|
+
|
|
278
|
+
new_options = opts.merge(
|
|
279
|
+
:operation => :"APIKeysApi.admin_derive_token",
|
|
280
|
+
:header_params => header_params,
|
|
281
|
+
:query_params => query_params,
|
|
282
|
+
:form_params => form_params,
|
|
283
|
+
:body => post_body,
|
|
284
|
+
:auth_names => auth_names,
|
|
285
|
+
:return_type => return_type
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_derive_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
291
|
+
end
|
|
292
|
+
return data, status_code, headers
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Get Imported API Key
|
|
296
|
+
# 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} ```
|
|
297
|
+
# @param key_id [String] SHA512/256 hash of the imported key (REQUIRED)
|
|
298
|
+
# @param [Hash] opts the optional parameters
|
|
299
|
+
# @return [ImportedAPIKey]
|
|
300
|
+
def admin_get_imported_api_key(key_id, opts = {})
|
|
301
|
+
data, _status_code, _headers = admin_get_imported_api_key_with_http_info(key_id, opts)
|
|
302
|
+
data
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Get Imported API Key
|
|
306
|
+
# 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} ```
|
|
307
|
+
# @param key_id [String] SHA512/256 hash of the imported key (REQUIRED)
|
|
308
|
+
# @param [Hash] opts the optional parameters
|
|
309
|
+
# @return [Array<(ImportedAPIKey, Integer, Hash)>] ImportedAPIKey data, response status code and response headers
|
|
310
|
+
def admin_get_imported_api_key_with_http_info(key_id, opts = {})
|
|
311
|
+
if @api_client.config.debugging
|
|
312
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_get_imported_api_key ...'
|
|
313
|
+
end
|
|
314
|
+
# verify the required parameter 'key_id' is set
|
|
315
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
316
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_get_imported_api_key"
|
|
317
|
+
end
|
|
318
|
+
# resource path
|
|
319
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys/{key_id}'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
320
|
+
|
|
321
|
+
# query parameters
|
|
322
|
+
query_params = opts[:query_params] || {}
|
|
323
|
+
|
|
324
|
+
# header parameters
|
|
325
|
+
header_params = opts[:header_params] || {}
|
|
326
|
+
# HTTP header 'Accept' (if needed)
|
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
328
|
+
|
|
329
|
+
# form parameters
|
|
330
|
+
form_params = opts[:form_params] || {}
|
|
331
|
+
|
|
332
|
+
# http body (model)
|
|
333
|
+
post_body = opts[:debug_body]
|
|
334
|
+
|
|
335
|
+
# return_type
|
|
336
|
+
return_type = opts[:debug_return_type] || 'ImportedAPIKey'
|
|
337
|
+
|
|
338
|
+
# auth_names
|
|
339
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
340
|
+
|
|
341
|
+
new_options = opts.merge(
|
|
342
|
+
:operation => :"APIKeysApi.admin_get_imported_api_key",
|
|
343
|
+
:header_params => header_params,
|
|
344
|
+
:query_params => query_params,
|
|
345
|
+
:form_params => form_params,
|
|
346
|
+
:body => post_body,
|
|
347
|
+
:auth_names => auth_names,
|
|
348
|
+
:return_type => return_type
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_get_imported_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
354
|
+
end
|
|
355
|
+
return data, status_code, headers
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Get Issued API Key
|
|
359
|
+
# 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 ```
|
|
360
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @return [IssuedAPIKey]
|
|
363
|
+
def admin_get_issued_api_key(key_id, opts = {})
|
|
364
|
+
data, _status_code, _headers = admin_get_issued_api_key_with_http_info(key_id, opts)
|
|
365
|
+
data
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Get Issued API Key
|
|
369
|
+
# 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 ```
|
|
370
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
371
|
+
# @param [Hash] opts the optional parameters
|
|
372
|
+
# @return [Array<(IssuedAPIKey, Integer, Hash)>] IssuedAPIKey data, response status code and response headers
|
|
373
|
+
def admin_get_issued_api_key_with_http_info(key_id, opts = {})
|
|
374
|
+
if @api_client.config.debugging
|
|
375
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_get_issued_api_key ...'
|
|
376
|
+
end
|
|
377
|
+
# verify the required parameter 'key_id' is set
|
|
378
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
379
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_get_issued_api_key"
|
|
380
|
+
end
|
|
381
|
+
# resource path
|
|
382
|
+
local_var_path = '/v2alpha1/admin/issuedApiKeys/{key_id}'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
383
|
+
|
|
384
|
+
# query parameters
|
|
385
|
+
query_params = opts[:query_params] || {}
|
|
386
|
+
|
|
387
|
+
# header parameters
|
|
388
|
+
header_params = opts[:header_params] || {}
|
|
389
|
+
# HTTP header 'Accept' (if needed)
|
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
391
|
+
|
|
392
|
+
# form parameters
|
|
393
|
+
form_params = opts[:form_params] || {}
|
|
394
|
+
|
|
395
|
+
# http body (model)
|
|
396
|
+
post_body = opts[:debug_body]
|
|
397
|
+
|
|
398
|
+
# return_type
|
|
399
|
+
return_type = opts[:debug_return_type] || 'IssuedAPIKey'
|
|
400
|
+
|
|
401
|
+
# auth_names
|
|
402
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
403
|
+
|
|
404
|
+
new_options = opts.merge(
|
|
405
|
+
:operation => :"APIKeysApi.admin_get_issued_api_key",
|
|
406
|
+
:header_params => header_params,
|
|
407
|
+
:query_params => query_params,
|
|
408
|
+
:form_params => form_params,
|
|
409
|
+
:body => post_body,
|
|
410
|
+
:auth_names => auth_names,
|
|
411
|
+
:return_type => return_type
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
415
|
+
if @api_client.config.debugging
|
|
416
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_get_issued_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
417
|
+
end
|
|
418
|
+
return data, status_code, headers
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Get JWKS
|
|
422
|
+
# 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/admin/derivedKeys/jwks.json ```
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [GetJWKSResponse]
|
|
425
|
+
def admin_get_jwks(opts = {})
|
|
426
|
+
data, _status_code, _headers = admin_get_jwks_with_http_info(opts)
|
|
427
|
+
data
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Get JWKS
|
|
431
|
+
# 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/admin/derivedKeys/jwks.json ```
|
|
432
|
+
# @param [Hash] opts the optional parameters
|
|
433
|
+
# @return [Array<(GetJWKSResponse, Integer, Hash)>] GetJWKSResponse data, response status code and response headers
|
|
434
|
+
def admin_get_jwks_with_http_info(opts = {})
|
|
435
|
+
if @api_client.config.debugging
|
|
436
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_get_jwks ...'
|
|
437
|
+
end
|
|
438
|
+
# resource path
|
|
439
|
+
local_var_path = '/v2alpha1/admin/derivedKeys/jwks.json'
|
|
440
|
+
|
|
441
|
+
# query parameters
|
|
442
|
+
query_params = opts[:query_params] || {}
|
|
443
|
+
|
|
444
|
+
# header parameters
|
|
445
|
+
header_params = opts[:header_params] || {}
|
|
446
|
+
# HTTP header 'Accept' (if needed)
|
|
447
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
448
|
+
|
|
449
|
+
# form parameters
|
|
450
|
+
form_params = opts[:form_params] || {}
|
|
451
|
+
|
|
452
|
+
# http body (model)
|
|
453
|
+
post_body = opts[:debug_body]
|
|
454
|
+
|
|
455
|
+
# return_type
|
|
456
|
+
return_type = opts[:debug_return_type] || 'GetJWKSResponse'
|
|
457
|
+
|
|
458
|
+
# auth_names
|
|
459
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
460
|
+
|
|
461
|
+
new_options = opts.merge(
|
|
462
|
+
:operation => :"APIKeysApi.admin_get_jwks",
|
|
463
|
+
:header_params => header_params,
|
|
464
|
+
:query_params => query_params,
|
|
465
|
+
:form_params => form_params,
|
|
466
|
+
:body => post_body,
|
|
467
|
+
:auth_names => auth_names,
|
|
468
|
+
:return_type => return_type
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
472
|
+
if @api_client.config.debugging
|
|
473
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_get_jwks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
474
|
+
end
|
|
475
|
+
return data, status_code, headers
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Import API Key
|
|
479
|
+
# 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\": \"sk_live_abc123xyz\", \"name\": \"Imported Stripe Key\", \"actor_id\": \"user_123\" } ```
|
|
480
|
+
# @param import_api_key_request [ImportAPIKeyRequest] Example: { \"raw_key\": \"sk_live_abc123xyz789\", \"name\": \"Stripe Production Key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"stripe\", \"environment\": \"production\"} }
|
|
481
|
+
# @param [Hash] opts the optional parameters
|
|
482
|
+
# @return [ImportedAPIKey]
|
|
483
|
+
def admin_import_api_key(import_api_key_request, opts = {})
|
|
484
|
+
data, _status_code, _headers = admin_import_api_key_with_http_info(import_api_key_request, opts)
|
|
485
|
+
data
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Import API Key
|
|
489
|
+
# 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\": \"sk_live_abc123xyz\", \"name\": \"Imported Stripe Key\", \"actor_id\": \"user_123\" } ```
|
|
490
|
+
# @param import_api_key_request [ImportAPIKeyRequest] Example: { \"raw_key\": \"sk_live_abc123xyz789\", \"name\": \"Stripe Production Key\", \"actor_id\": \"payment-processor\", \"scopes\": [\"read\", \"write\"], \"ttl\": \"8760h\", // 1 year (also accepts: 31536000s) \"metadata\": {\"source\": \"stripe\", \"environment\": \"production\"} }
|
|
491
|
+
# @param [Hash] opts the optional parameters
|
|
492
|
+
# @return [Array<(ImportedAPIKey, Integer, Hash)>] ImportedAPIKey data, response status code and response headers
|
|
493
|
+
def admin_import_api_key_with_http_info(import_api_key_request, opts = {})
|
|
494
|
+
if @api_client.config.debugging
|
|
495
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_import_api_key ...'
|
|
496
|
+
end
|
|
497
|
+
# verify the required parameter 'import_api_key_request' is set
|
|
498
|
+
if @api_client.config.client_side_validation && import_api_key_request.nil?
|
|
499
|
+
fail ArgumentError, "Missing the required parameter 'import_api_key_request' when calling APIKeysApi.admin_import_api_key"
|
|
500
|
+
end
|
|
501
|
+
# resource path
|
|
502
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys'
|
|
503
|
+
|
|
504
|
+
# query parameters
|
|
505
|
+
query_params = opts[:query_params] || {}
|
|
506
|
+
|
|
507
|
+
# header parameters
|
|
508
|
+
header_params = opts[:header_params] || {}
|
|
509
|
+
# HTTP header 'Accept' (if needed)
|
|
510
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
511
|
+
# HTTP header 'Content-Type'
|
|
512
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
513
|
+
if !content_type.nil?
|
|
514
|
+
header_params['Content-Type'] = content_type
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# form parameters
|
|
518
|
+
form_params = opts[:form_params] || {}
|
|
519
|
+
|
|
520
|
+
# http body (model)
|
|
521
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(import_api_key_request)
|
|
522
|
+
|
|
523
|
+
# return_type
|
|
524
|
+
return_type = opts[:debug_return_type] || 'ImportedAPIKey'
|
|
525
|
+
|
|
526
|
+
# auth_names
|
|
527
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
528
|
+
|
|
529
|
+
new_options = opts.merge(
|
|
530
|
+
:operation => :"APIKeysApi.admin_import_api_key",
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:auth_names => auth_names,
|
|
536
|
+
:return_type => return_type
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
540
|
+
if @api_client.config.debugging
|
|
541
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_import_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
542
|
+
end
|
|
543
|
+
return data, status_code, headers
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# Issue API Key
|
|
547
|
+
# 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\" } ```
|
|
548
|
+
# @param issue_api_key_request [IssueAPIKeyRequest]
|
|
549
|
+
# @param [Hash] opts the optional parameters
|
|
550
|
+
# @return [IssueAPIKeyResponse]
|
|
551
|
+
def admin_issue_api_key(issue_api_key_request, opts = {})
|
|
552
|
+
data, _status_code, _headers = admin_issue_api_key_with_http_info(issue_api_key_request, opts)
|
|
553
|
+
data
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Issue API Key
|
|
557
|
+
# 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\" } ```
|
|
558
|
+
# @param issue_api_key_request [IssueAPIKeyRequest]
|
|
559
|
+
# @param [Hash] opts the optional parameters
|
|
560
|
+
# @return [Array<(IssueAPIKeyResponse, Integer, Hash)>] IssueAPIKeyResponse data, response status code and response headers
|
|
561
|
+
def admin_issue_api_key_with_http_info(issue_api_key_request, opts = {})
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_issue_api_key ...'
|
|
564
|
+
end
|
|
565
|
+
# verify the required parameter 'issue_api_key_request' is set
|
|
566
|
+
if @api_client.config.client_side_validation && issue_api_key_request.nil?
|
|
567
|
+
fail ArgumentError, "Missing the required parameter 'issue_api_key_request' when calling APIKeysApi.admin_issue_api_key"
|
|
568
|
+
end
|
|
569
|
+
# resource path
|
|
570
|
+
local_var_path = '/v2alpha1/admin/issuedApiKeys'
|
|
571
|
+
|
|
572
|
+
# query parameters
|
|
573
|
+
query_params = opts[:query_params] || {}
|
|
574
|
+
|
|
575
|
+
# header parameters
|
|
576
|
+
header_params = opts[:header_params] || {}
|
|
577
|
+
# HTTP header 'Accept' (if needed)
|
|
578
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
579
|
+
# HTTP header 'Content-Type'
|
|
580
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
581
|
+
if !content_type.nil?
|
|
582
|
+
header_params['Content-Type'] = content_type
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# form parameters
|
|
586
|
+
form_params = opts[:form_params] || {}
|
|
587
|
+
|
|
588
|
+
# http body (model)
|
|
589
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(issue_api_key_request)
|
|
590
|
+
|
|
591
|
+
# return_type
|
|
592
|
+
return_type = opts[:debug_return_type] || 'IssueAPIKeyResponse'
|
|
593
|
+
|
|
594
|
+
# auth_names
|
|
595
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
596
|
+
|
|
597
|
+
new_options = opts.merge(
|
|
598
|
+
:operation => :"APIKeysApi.admin_issue_api_key",
|
|
599
|
+
:header_params => header_params,
|
|
600
|
+
:query_params => query_params,
|
|
601
|
+
:form_params => form_params,
|
|
602
|
+
:body => post_body,
|
|
603
|
+
:auth_names => auth_names,
|
|
604
|
+
:return_type => return_type
|
|
605
|
+
)
|
|
606
|
+
|
|
607
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
608
|
+
if @api_client.config.debugging
|
|
609
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_issue_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
610
|
+
end
|
|
611
|
+
return data, status_code, headers
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
# List Imported API Keys
|
|
615
|
+
# 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 ```
|
|
616
|
+
# @param [Hash] opts the optional parameters
|
|
617
|
+
# @option opts [Integer] :page_size Number of items per page (default: 50, max: 1000)
|
|
618
|
+
# @option opts [String] :page_token Cursor token for pagination (OPTIONAL)
|
|
619
|
+
# @option opts [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
|
|
620
|
+
# @return [ListImportedAPIKeysResponse]
|
|
621
|
+
def admin_list_imported_api_keys(opts = {})
|
|
622
|
+
data, _status_code, _headers = admin_list_imported_api_keys_with_http_info(opts)
|
|
623
|
+
data
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# List Imported API Keys
|
|
627
|
+
# 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 ```
|
|
628
|
+
# @param [Hash] opts the optional parameters
|
|
629
|
+
# @option opts [Integer] :page_size Number of items per page (default: 50, max: 1000)
|
|
630
|
+
# @option opts [String] :page_token Cursor token for pagination (OPTIONAL)
|
|
631
|
+
# @option opts [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
|
|
632
|
+
# @return [Array<(ListImportedAPIKeysResponse, Integer, Hash)>] ListImportedAPIKeysResponse data, response status code and response headers
|
|
633
|
+
def admin_list_imported_api_keys_with_http_info(opts = {})
|
|
634
|
+
if @api_client.config.debugging
|
|
635
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_list_imported_api_keys ...'
|
|
636
|
+
end
|
|
637
|
+
# resource path
|
|
638
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys'
|
|
639
|
+
|
|
640
|
+
# query parameters
|
|
641
|
+
query_params = opts[:query_params] || {}
|
|
642
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
643
|
+
query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
644
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
645
|
+
|
|
646
|
+
# header parameters
|
|
647
|
+
header_params = opts[:header_params] || {}
|
|
648
|
+
# HTTP header 'Accept' (if needed)
|
|
649
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
650
|
+
|
|
651
|
+
# form parameters
|
|
652
|
+
form_params = opts[:form_params] || {}
|
|
653
|
+
|
|
654
|
+
# http body (model)
|
|
655
|
+
post_body = opts[:debug_body]
|
|
656
|
+
|
|
657
|
+
# return_type
|
|
658
|
+
return_type = opts[:debug_return_type] || 'ListImportedAPIKeysResponse'
|
|
659
|
+
|
|
660
|
+
# auth_names
|
|
661
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
662
|
+
|
|
663
|
+
new_options = opts.merge(
|
|
664
|
+
:operation => :"APIKeysApi.admin_list_imported_api_keys",
|
|
665
|
+
:header_params => header_params,
|
|
666
|
+
:query_params => query_params,
|
|
667
|
+
:form_params => form_params,
|
|
668
|
+
:body => post_body,
|
|
669
|
+
:auth_names => auth_names,
|
|
670
|
+
:return_type => return_type
|
|
671
|
+
)
|
|
672
|
+
|
|
673
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
674
|
+
if @api_client.config.debugging
|
|
675
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_list_imported_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
676
|
+
end
|
|
677
|
+
return data, status_code, headers
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
# List Issued API Keys
|
|
681
|
+
# 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 ```
|
|
682
|
+
# @param [Hash] opts the optional parameters
|
|
683
|
+
# @option opts [Integer] :page_size Number of items per page (default: 50, max: 1000)
|
|
684
|
+
# @option opts [String] :page_token Cursor token for pagination
|
|
685
|
+
# @option opts [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
|
|
686
|
+
# @return [ListIssuedAPIKeysResponse]
|
|
687
|
+
def admin_list_issued_api_keys(opts = {})
|
|
688
|
+
data, _status_code, _headers = admin_list_issued_api_keys_with_http_info(opts)
|
|
689
|
+
data
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# List Issued API Keys
|
|
693
|
+
# 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 ```
|
|
694
|
+
# @param [Hash] opts the optional parameters
|
|
695
|
+
# @option opts [Integer] :page_size Number of items per page (default: 50, max: 1000)
|
|
696
|
+
# @option opts [String] :page_token Cursor token for pagination
|
|
697
|
+
# @option opts [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
|
|
698
|
+
# @return [Array<(ListIssuedAPIKeysResponse, Integer, Hash)>] ListIssuedAPIKeysResponse data, response status code and response headers
|
|
699
|
+
def admin_list_issued_api_keys_with_http_info(opts = {})
|
|
700
|
+
if @api_client.config.debugging
|
|
701
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_list_issued_api_keys ...'
|
|
702
|
+
end
|
|
703
|
+
# resource path
|
|
704
|
+
local_var_path = '/v2alpha1/admin/issuedApiKeys'
|
|
705
|
+
|
|
706
|
+
# query parameters
|
|
707
|
+
query_params = opts[:query_params] || {}
|
|
708
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
709
|
+
query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil?
|
|
710
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
711
|
+
|
|
712
|
+
# header parameters
|
|
713
|
+
header_params = opts[:header_params] || {}
|
|
714
|
+
# HTTP header 'Accept' (if needed)
|
|
715
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
716
|
+
|
|
717
|
+
# form parameters
|
|
718
|
+
form_params = opts[:form_params] || {}
|
|
719
|
+
|
|
720
|
+
# http body (model)
|
|
721
|
+
post_body = opts[:debug_body]
|
|
722
|
+
|
|
723
|
+
# return_type
|
|
724
|
+
return_type = opts[:debug_return_type] || 'ListIssuedAPIKeysResponse'
|
|
725
|
+
|
|
726
|
+
# auth_names
|
|
727
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
728
|
+
|
|
729
|
+
new_options = opts.merge(
|
|
730
|
+
:operation => :"APIKeysApi.admin_list_issued_api_keys",
|
|
731
|
+
:header_params => header_params,
|
|
732
|
+
:query_params => query_params,
|
|
733
|
+
:form_params => form_params,
|
|
734
|
+
:body => post_body,
|
|
735
|
+
:auth_names => auth_names,
|
|
736
|
+
:return_type => return_type
|
|
737
|
+
)
|
|
738
|
+
|
|
739
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
740
|
+
if @api_client.config.debugging
|
|
741
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_list_issued_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
742
|
+
end
|
|
743
|
+
return data, status_code, headers
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Revoke API Key
|
|
747
|
+
# Immediately revokes an API key (issued or imported). 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/apiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ```
|
|
748
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
749
|
+
# @param admin_revoke_api_key_body [AdminRevokeAPIKeyBody]
|
|
750
|
+
# @param [Hash] opts the optional parameters
|
|
751
|
+
# @return [Object]
|
|
752
|
+
def admin_revoke_api_key(key_id, admin_revoke_api_key_body, opts = {})
|
|
753
|
+
data, _status_code, _headers = admin_revoke_api_key_with_http_info(key_id, admin_revoke_api_key_body, opts)
|
|
754
|
+
data
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# Revoke API Key
|
|
758
|
+
# Immediately revokes an API key (issued or imported). 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/apiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:revoke { \"reason\": \"REVOCATION_REASON_KEY_COMPROMISE\" } ```
|
|
759
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
760
|
+
# @param admin_revoke_api_key_body [AdminRevokeAPIKeyBody]
|
|
761
|
+
# @param [Hash] opts the optional parameters
|
|
762
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
763
|
+
def admin_revoke_api_key_with_http_info(key_id, admin_revoke_api_key_body, opts = {})
|
|
764
|
+
if @api_client.config.debugging
|
|
765
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_revoke_api_key ...'
|
|
766
|
+
end
|
|
767
|
+
# verify the required parameter 'key_id' is set
|
|
768
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
769
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_revoke_api_key"
|
|
770
|
+
end
|
|
771
|
+
# verify the required parameter 'admin_revoke_api_key_body' is set
|
|
772
|
+
if @api_client.config.client_side_validation && admin_revoke_api_key_body.nil?
|
|
773
|
+
fail ArgumentError, "Missing the required parameter 'admin_revoke_api_key_body' when calling APIKeysApi.admin_revoke_api_key"
|
|
774
|
+
end
|
|
775
|
+
# resource path
|
|
776
|
+
local_var_path = '/v2alpha1/admin/apiKeys/{key_id}:revoke'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
777
|
+
|
|
778
|
+
# query parameters
|
|
779
|
+
query_params = opts[:query_params] || {}
|
|
780
|
+
|
|
781
|
+
# header parameters
|
|
782
|
+
header_params = opts[:header_params] || {}
|
|
783
|
+
# HTTP header 'Accept' (if needed)
|
|
784
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
785
|
+
# HTTP header 'Content-Type'
|
|
786
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
787
|
+
if !content_type.nil?
|
|
788
|
+
header_params['Content-Type'] = content_type
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
# form parameters
|
|
792
|
+
form_params = opts[:form_params] || {}
|
|
793
|
+
|
|
794
|
+
# http body (model)
|
|
795
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_revoke_api_key_body)
|
|
796
|
+
|
|
797
|
+
# return_type
|
|
798
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
799
|
+
|
|
800
|
+
# auth_names
|
|
801
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
802
|
+
|
|
803
|
+
new_options = opts.merge(
|
|
804
|
+
:operation => :"APIKeysApi.admin_revoke_api_key",
|
|
805
|
+
:header_params => header_params,
|
|
806
|
+
:query_params => query_params,
|
|
807
|
+
:form_params => form_params,
|
|
808
|
+
:body => post_body,
|
|
809
|
+
:auth_names => auth_names,
|
|
810
|
+
:return_type => return_type
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
814
|
+
if @api_client.config.debugging
|
|
815
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_revoke_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
816
|
+
end
|
|
817
|
+
return data, status_code, headers
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# Rotate Issued API Key
|
|
821
|
+
# 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. RevokeAPIKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ```
|
|
822
|
+
# @param key_id [String] key_id is the ID of the existing API key to rotate
|
|
823
|
+
# @param admin_rotate_issued_api_key_body [AdminRotateIssuedAPIKeyBody]
|
|
824
|
+
# @param [Hash] opts the optional parameters
|
|
825
|
+
# @return [RotateIssuedAPIKeyResponse]
|
|
826
|
+
def admin_rotate_issued_api_key(key_id, admin_rotate_issued_api_key_body, opts = {})
|
|
827
|
+
data, _status_code, _headers = admin_rotate_issued_api_key_with_http_info(key_id, admin_rotate_issued_api_key_body, opts)
|
|
828
|
+
data
|
|
829
|
+
end
|
|
830
|
+
|
|
831
|
+
# Rotate Issued API Key
|
|
832
|
+
# 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. RevokeAPIKey to remove the old key ```http POST /v2alpha1/admin/issuedApiKeys/01HQZX9VYQKJB8XQZQXQZQXQXQ:rotate { \"scopes\": [\"read\"] } ```
|
|
833
|
+
# @param key_id [String] key_id is the ID of the existing API key to rotate
|
|
834
|
+
# @param admin_rotate_issued_api_key_body [AdminRotateIssuedAPIKeyBody]
|
|
835
|
+
# @param [Hash] opts the optional parameters
|
|
836
|
+
# @return [Array<(RotateIssuedAPIKeyResponse, Integer, Hash)>] RotateIssuedAPIKeyResponse data, response status code and response headers
|
|
837
|
+
def admin_rotate_issued_api_key_with_http_info(key_id, admin_rotate_issued_api_key_body, opts = {})
|
|
838
|
+
if @api_client.config.debugging
|
|
839
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_rotate_issued_api_key ...'
|
|
840
|
+
end
|
|
841
|
+
# verify the required parameter 'key_id' is set
|
|
842
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
843
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_rotate_issued_api_key"
|
|
844
|
+
end
|
|
845
|
+
# verify the required parameter 'admin_rotate_issued_api_key_body' is set
|
|
846
|
+
if @api_client.config.client_side_validation && admin_rotate_issued_api_key_body.nil?
|
|
847
|
+
fail ArgumentError, "Missing the required parameter 'admin_rotate_issued_api_key_body' when calling APIKeysApi.admin_rotate_issued_api_key"
|
|
848
|
+
end
|
|
849
|
+
# resource path
|
|
850
|
+
local_var_path = '/v2alpha1/admin/issuedApiKeys/{key_id}:rotate'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
851
|
+
|
|
852
|
+
# query parameters
|
|
853
|
+
query_params = opts[:query_params] || {}
|
|
854
|
+
|
|
855
|
+
# header parameters
|
|
856
|
+
header_params = opts[:header_params] || {}
|
|
857
|
+
# HTTP header 'Accept' (if needed)
|
|
858
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
859
|
+
# HTTP header 'Content-Type'
|
|
860
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
861
|
+
if !content_type.nil?
|
|
862
|
+
header_params['Content-Type'] = content_type
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
# form parameters
|
|
866
|
+
form_params = opts[:form_params] || {}
|
|
867
|
+
|
|
868
|
+
# http body (model)
|
|
869
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_rotate_issued_api_key_body)
|
|
870
|
+
|
|
871
|
+
# return_type
|
|
872
|
+
return_type = opts[:debug_return_type] || 'RotateIssuedAPIKeyResponse'
|
|
873
|
+
|
|
874
|
+
# auth_names
|
|
875
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
876
|
+
|
|
877
|
+
new_options = opts.merge(
|
|
878
|
+
:operation => :"APIKeysApi.admin_rotate_issued_api_key",
|
|
879
|
+
:header_params => header_params,
|
|
880
|
+
:query_params => query_params,
|
|
881
|
+
:form_params => form_params,
|
|
882
|
+
:body => post_body,
|
|
883
|
+
:auth_names => auth_names,
|
|
884
|
+
:return_type => return_type
|
|
885
|
+
)
|
|
886
|
+
|
|
887
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
888
|
+
if @api_client.config.debugging
|
|
889
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_rotate_issued_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
890
|
+
end
|
|
891
|
+
return data, status_code, headers
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
# Update Imported API Key
|
|
895
|
+
# 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\" } } ```
|
|
896
|
+
# @param key_id [String] SHA-512/256 hash of credential
|
|
897
|
+
# @param admin_update_imported_api_key_request [AdminUpdateImportedAPIKeyRequest]
|
|
898
|
+
# @param [Hash] opts the optional parameters
|
|
899
|
+
# @option opts [String] :update_mask The list of fields to update. See AIP-134.
|
|
900
|
+
# @return [ImportedAPIKey]
|
|
901
|
+
def admin_update_imported_api_key(key_id, admin_update_imported_api_key_request, opts = {})
|
|
902
|
+
data, _status_code, _headers = admin_update_imported_api_key_with_http_info(key_id, admin_update_imported_api_key_request, opts)
|
|
903
|
+
data
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Update Imported API Key
|
|
907
|
+
# 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\" } } ```
|
|
908
|
+
# @param key_id [String] SHA-512/256 hash of credential
|
|
909
|
+
# @param admin_update_imported_api_key_request [AdminUpdateImportedAPIKeyRequest]
|
|
910
|
+
# @param [Hash] opts the optional parameters
|
|
911
|
+
# @option opts [String] :update_mask The list of fields to update. See AIP-134.
|
|
912
|
+
# @return [Array<(ImportedAPIKey, Integer, Hash)>] ImportedAPIKey data, response status code and response headers
|
|
913
|
+
def admin_update_imported_api_key_with_http_info(key_id, admin_update_imported_api_key_request, opts = {})
|
|
914
|
+
if @api_client.config.debugging
|
|
915
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_update_imported_api_key ...'
|
|
916
|
+
end
|
|
917
|
+
# verify the required parameter 'key_id' is set
|
|
918
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
919
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_update_imported_api_key"
|
|
920
|
+
end
|
|
921
|
+
# verify the required parameter 'admin_update_imported_api_key_request' is set
|
|
922
|
+
if @api_client.config.client_side_validation && admin_update_imported_api_key_request.nil?
|
|
923
|
+
fail ArgumentError, "Missing the required parameter 'admin_update_imported_api_key_request' when calling APIKeysApi.admin_update_imported_api_key"
|
|
924
|
+
end
|
|
925
|
+
# resource path
|
|
926
|
+
local_var_path = '/v2alpha1/admin/importedApiKeys/{key_id}'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
927
|
+
|
|
928
|
+
# query parameters
|
|
929
|
+
query_params = opts[:query_params] || {}
|
|
930
|
+
query_params[:'update_mask'] = opts[:'update_mask'] if !opts[:'update_mask'].nil?
|
|
931
|
+
|
|
932
|
+
# header parameters
|
|
933
|
+
header_params = opts[:header_params] || {}
|
|
934
|
+
# HTTP header 'Accept' (if needed)
|
|
935
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
936
|
+
# HTTP header 'Content-Type'
|
|
937
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
938
|
+
if !content_type.nil?
|
|
939
|
+
header_params['Content-Type'] = content_type
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
# form parameters
|
|
943
|
+
form_params = opts[:form_params] || {}
|
|
944
|
+
|
|
945
|
+
# http body (model)
|
|
946
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_update_imported_api_key_request)
|
|
947
|
+
|
|
948
|
+
# return_type
|
|
949
|
+
return_type = opts[:debug_return_type] || 'ImportedAPIKey'
|
|
950
|
+
|
|
951
|
+
# auth_names
|
|
952
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
953
|
+
|
|
954
|
+
new_options = opts.merge(
|
|
955
|
+
:operation => :"APIKeysApi.admin_update_imported_api_key",
|
|
956
|
+
:header_params => header_params,
|
|
957
|
+
:query_params => query_params,
|
|
958
|
+
:form_params => form_params,
|
|
959
|
+
:body => post_body,
|
|
960
|
+
:auth_names => auth_names,
|
|
961
|
+
:return_type => return_type
|
|
962
|
+
)
|
|
963
|
+
|
|
964
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
965
|
+
if @api_client.config.debugging
|
|
966
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_update_imported_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
967
|
+
end
|
|
968
|
+
return data, status_code, headers
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
# Update Issued API Key
|
|
972
|
+
# 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\"] } } ```
|
|
973
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
974
|
+
# @param admin_update_issued_api_key_request [AdminUpdateIssuedAPIKeyRequest]
|
|
975
|
+
# @param [Hash] opts the optional parameters
|
|
976
|
+
# @option opts [String] :update_mask The list of fields to update. See AIP-134.
|
|
977
|
+
# @return [IssuedAPIKey]
|
|
978
|
+
def admin_update_issued_api_key(key_id, admin_update_issued_api_key_request, opts = {})
|
|
979
|
+
data, _status_code, _headers = admin_update_issued_api_key_with_http_info(key_id, admin_update_issued_api_key_request, opts)
|
|
980
|
+
data
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# Update Issued API Key
|
|
984
|
+
# 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\"] } } ```
|
|
985
|
+
# @param key_id [String] Identifier of the API key resource.
|
|
986
|
+
# @param admin_update_issued_api_key_request [AdminUpdateIssuedAPIKeyRequest]
|
|
987
|
+
# @param [Hash] opts the optional parameters
|
|
988
|
+
# @option opts [String] :update_mask The list of fields to update. See AIP-134.
|
|
989
|
+
# @return [Array<(IssuedAPIKey, Integer, Hash)>] IssuedAPIKey data, response status code and response headers
|
|
990
|
+
def admin_update_issued_api_key_with_http_info(key_id, admin_update_issued_api_key_request, opts = {})
|
|
991
|
+
if @api_client.config.debugging
|
|
992
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_update_issued_api_key ...'
|
|
993
|
+
end
|
|
994
|
+
# verify the required parameter 'key_id' is set
|
|
995
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
996
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling APIKeysApi.admin_update_issued_api_key"
|
|
997
|
+
end
|
|
998
|
+
# verify the required parameter 'admin_update_issued_api_key_request' is set
|
|
999
|
+
if @api_client.config.client_side_validation && admin_update_issued_api_key_request.nil?
|
|
1000
|
+
fail ArgumentError, "Missing the required parameter 'admin_update_issued_api_key_request' when calling APIKeysApi.admin_update_issued_api_key"
|
|
1001
|
+
end
|
|
1002
|
+
# resource path
|
|
1003
|
+
local_var_path = '/v2alpha1/admin/issuedApiKeys/{key_id}'.sub('{' + 'key_id' + '}', CGI.escape(key_id.to_s))
|
|
1004
|
+
|
|
1005
|
+
# query parameters
|
|
1006
|
+
query_params = opts[:query_params] || {}
|
|
1007
|
+
query_params[:'update_mask'] = opts[:'update_mask'] if !opts[:'update_mask'].nil?
|
|
1008
|
+
|
|
1009
|
+
# header parameters
|
|
1010
|
+
header_params = opts[:header_params] || {}
|
|
1011
|
+
# HTTP header 'Accept' (if needed)
|
|
1012
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1013
|
+
# HTTP header 'Content-Type'
|
|
1014
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1015
|
+
if !content_type.nil?
|
|
1016
|
+
header_params['Content-Type'] = content_type
|
|
1017
|
+
end
|
|
1018
|
+
|
|
1019
|
+
# form parameters
|
|
1020
|
+
form_params = opts[:form_params] || {}
|
|
1021
|
+
|
|
1022
|
+
# http body (model)
|
|
1023
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_update_issued_api_key_request)
|
|
1024
|
+
|
|
1025
|
+
# return_type
|
|
1026
|
+
return_type = opts[:debug_return_type] || 'IssuedAPIKey'
|
|
1027
|
+
|
|
1028
|
+
# auth_names
|
|
1029
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
1030
|
+
|
|
1031
|
+
new_options = opts.merge(
|
|
1032
|
+
:operation => :"APIKeysApi.admin_update_issued_api_key",
|
|
1033
|
+
:header_params => header_params,
|
|
1034
|
+
:query_params => query_params,
|
|
1035
|
+
:form_params => form_params,
|
|
1036
|
+
:body => post_body,
|
|
1037
|
+
:auth_names => auth_names,
|
|
1038
|
+
:return_type => return_type
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1042
|
+
if @api_client.config.debugging
|
|
1043
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_update_issued_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1044
|
+
end
|
|
1045
|
+
return data, status_code, headers
|
|
1046
|
+
end
|
|
1047
|
+
|
|
1048
|
+
# Verify API Key
|
|
1049
|
+
# 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...\" } ```
|
|
1050
|
+
# @param verify_api_key_request [VerifyAPIKeyRequest]
|
|
1051
|
+
# @param [Hash] opts the optional parameters
|
|
1052
|
+
# @option opts [String] :cache_control 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.
|
|
1053
|
+
# @option opts [String] :pragma HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise.
|
|
1054
|
+
# @return [VerifyAPIKeyResponse]
|
|
1055
|
+
def admin_verify_api_key(verify_api_key_request, opts = {})
|
|
1056
|
+
data, _status_code, _headers = admin_verify_api_key_with_http_info(verify_api_key_request, opts)
|
|
1057
|
+
data
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
# Verify API Key
|
|
1061
|
+
# 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...\" } ```
|
|
1062
|
+
# @param verify_api_key_request [VerifyAPIKeyRequest]
|
|
1063
|
+
# @param [Hash] opts the optional parameters
|
|
1064
|
+
# @option opts [String] :cache_control 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.
|
|
1065
|
+
# @option opts [String] :pragma HTTP/1.0 alias for `Cache-Control: no-cache`. Behaves identically when set to `no-cache`; ignored otherwise.
|
|
1066
|
+
# @return [Array<(VerifyAPIKeyResponse, Integer, Hash)>] VerifyAPIKeyResponse data, response status code and response headers
|
|
1067
|
+
def admin_verify_api_key_with_http_info(verify_api_key_request, opts = {})
|
|
1068
|
+
if @api_client.config.debugging
|
|
1069
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.admin_verify_api_key ...'
|
|
1070
|
+
end
|
|
1071
|
+
# verify the required parameter 'verify_api_key_request' is set
|
|
1072
|
+
if @api_client.config.client_side_validation && verify_api_key_request.nil?
|
|
1073
|
+
fail ArgumentError, "Missing the required parameter 'verify_api_key_request' when calling APIKeysApi.admin_verify_api_key"
|
|
1074
|
+
end
|
|
1075
|
+
# resource path
|
|
1076
|
+
local_var_path = '/v2alpha1/admin/apiKeys:verify'
|
|
1077
|
+
|
|
1078
|
+
# query parameters
|
|
1079
|
+
query_params = opts[:query_params] || {}
|
|
1080
|
+
|
|
1081
|
+
# header parameters
|
|
1082
|
+
header_params = opts[:header_params] || {}
|
|
1083
|
+
# HTTP header 'Accept' (if needed)
|
|
1084
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1085
|
+
# HTTP header 'Content-Type'
|
|
1086
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1087
|
+
if !content_type.nil?
|
|
1088
|
+
header_params['Content-Type'] = content_type
|
|
1089
|
+
end
|
|
1090
|
+
header_params[:'Cache-Control'] = opts[:'cache_control'] if !opts[:'cache_control'].nil?
|
|
1091
|
+
header_params[:'Pragma'] = opts[:'pragma'] if !opts[:'pragma'].nil?
|
|
1092
|
+
|
|
1093
|
+
# form parameters
|
|
1094
|
+
form_params = opts[:form_params] || {}
|
|
1095
|
+
|
|
1096
|
+
# http body (model)
|
|
1097
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_api_key_request)
|
|
1098
|
+
|
|
1099
|
+
# return_type
|
|
1100
|
+
return_type = opts[:debug_return_type] || 'VerifyAPIKeyResponse'
|
|
1101
|
+
|
|
1102
|
+
# auth_names
|
|
1103
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
|
1104
|
+
|
|
1105
|
+
new_options = opts.merge(
|
|
1106
|
+
:operation => :"APIKeysApi.admin_verify_api_key",
|
|
1107
|
+
:header_params => header_params,
|
|
1108
|
+
:query_params => query_params,
|
|
1109
|
+
:form_params => form_params,
|
|
1110
|
+
:body => post_body,
|
|
1111
|
+
:auth_names => auth_names,
|
|
1112
|
+
:return_type => return_type
|
|
1113
|
+
)
|
|
1114
|
+
|
|
1115
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1116
|
+
if @api_client.config.debugging
|
|
1117
|
+
@api_client.config.logger.debug "API called: APIKeysApi#admin_verify_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1118
|
+
end
|
|
1119
|
+
return data, status_code, headers
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
# Revoke API Key (self-service)
|
|
1123
|
+
# Proof-of-possession variant of revocation. Lives alongside `AdminRevokeAPIKey` in this service; the `Self*` prefix on the request/response messages disambiguates from the admin variant's `RevokeAPIKeyRequest`. 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\" } ```
|
|
1124
|
+
# @param self_revoke_api_key_request [SelfRevokeAPIKeyRequest] SelfRevokeAPIKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession.
|
|
1125
|
+
# @param [Hash] opts the optional parameters
|
|
1126
|
+
# @return [Object]
|
|
1127
|
+
def revoke_api_key(self_revoke_api_key_request, opts = {})
|
|
1128
|
+
data, _status_code, _headers = revoke_api_key_with_http_info(self_revoke_api_key_request, opts)
|
|
1129
|
+
data
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
# Revoke API Key (self-service)
|
|
1133
|
+
# Proof-of-possession variant of revocation. Lives alongside `AdminRevokeAPIKey` in this service; the `Self*` prefix on the request/response messages disambiguates from the admin variant's `RevokeAPIKeyRequest`. 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\" } ```
|
|
1134
|
+
# @param self_revoke_api_key_request [SelfRevokeAPIKeyRequest] SelfRevokeAPIKeyRequest allows an API key holder to revoke their own key by providing the full key secret as proof of possession.
|
|
1135
|
+
# @param [Hash] opts the optional parameters
|
|
1136
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
1137
|
+
def revoke_api_key_with_http_info(self_revoke_api_key_request, opts = {})
|
|
1138
|
+
if @api_client.config.debugging
|
|
1139
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.revoke_api_key ...'
|
|
1140
|
+
end
|
|
1141
|
+
# verify the required parameter 'self_revoke_api_key_request' is set
|
|
1142
|
+
if @api_client.config.client_side_validation && self_revoke_api_key_request.nil?
|
|
1143
|
+
fail ArgumentError, "Missing the required parameter 'self_revoke_api_key_request' when calling APIKeysApi.revoke_api_key"
|
|
1144
|
+
end
|
|
1145
|
+
# resource path
|
|
1146
|
+
local_var_path = '/v2alpha1/apiKeys:selfRevoke'
|
|
1147
|
+
|
|
1148
|
+
# query parameters
|
|
1149
|
+
query_params = opts[:query_params] || {}
|
|
1150
|
+
|
|
1151
|
+
# header parameters
|
|
1152
|
+
header_params = opts[:header_params] || {}
|
|
1153
|
+
# HTTP header 'Accept' (if needed)
|
|
1154
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1155
|
+
# HTTP header 'Content-Type'
|
|
1156
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1157
|
+
if !content_type.nil?
|
|
1158
|
+
header_params['Content-Type'] = content_type
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
# form parameters
|
|
1162
|
+
form_params = opts[:form_params] || {}
|
|
1163
|
+
|
|
1164
|
+
# http body (model)
|
|
1165
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(self_revoke_api_key_request)
|
|
1166
|
+
|
|
1167
|
+
# return_type
|
|
1168
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
1169
|
+
|
|
1170
|
+
# auth_names
|
|
1171
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1172
|
+
|
|
1173
|
+
new_options = opts.merge(
|
|
1174
|
+
:operation => :"APIKeysApi.revoke_api_key",
|
|
1175
|
+
:header_params => header_params,
|
|
1176
|
+
:query_params => query_params,
|
|
1177
|
+
:form_params => form_params,
|
|
1178
|
+
:body => post_body,
|
|
1179
|
+
:auth_names => auth_names,
|
|
1180
|
+
:return_type => return_type
|
|
1181
|
+
)
|
|
1182
|
+
|
|
1183
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1184
|
+
if @api_client.config.debugging
|
|
1185
|
+
@api_client.config.logger.debug "API called: APIKeysApi#revoke_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1186
|
+
end
|
|
1187
|
+
return data, status_code, headers
|
|
1188
|
+
end
|
|
1189
|
+
end
|
|
1190
|
+
end
|