ory-client 1.22.39 → 1.22.41

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