anthropic 1.80.0 → 1.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +4 -0
- data/lib/anthropic/helpers/aws/client.rb +20 -3
- data/lib/anthropic/helpers/bedrock/client.rb +6 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +41 -2
- data/lib/anthropic/helpers/google_cloud/client.rb +113 -31
- data/lib/anthropic/helpers/vertex/client.rb +7 -0
- data/lib/anthropic/internal/report_page_cursor.rb +98 -0
- data/lib/anthropic/internal/stream.rb +6 -13
- data/lib/anthropic/internal/tracing.rb +14 -4
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_cache_miss_messages_changed.rb +8 -0
- data/lib/anthropic/models/beta/beta_cache_miss_model_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rb +9 -0
- data/lib/anthropic/models/beta/beta_cache_miss_reason.rb +22 -0
- data/lib/anthropic/models/beta/beta_cache_miss_system_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_tools_changed.rb +7 -0
- data/lib/anthropic/models/beta/beta_cache_miss_unavailable.rb +11 -0
- data/lib/anthropic/models/beta/beta_deleted_user_profile.rb +29 -0
- data/lib/anthropic/models/beta/beta_fallback_param.rb +74 -10
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_vault.rb +2 -2
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +28 -19
- data/lib/anthropic/models/beta/beta_managed_agents_vault.rb +2 -2
- data/lib/anthropic/models/beta/beta_user_profile.rb +31 -28
- data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +1 -1
- data/lib/anthropic/models/beta/beta_webhook_event.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_event_data.rb +16 -2
- data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rb +43 -0
- data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rb +43 -0
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +5 -4
- data/lib/anthropic/models/beta/memory_store_create_params.rb +20 -11
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +5 -4
- data/lib/anthropic/models/beta/memory_store_list_params.rb +7 -9
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +2 -3
- data/lib/anthropic/models/beta/memory_store_update_params.rb +19 -14
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +6 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +13 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +1 -1
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +38 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +17 -10
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +7 -6
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +40 -26
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +4 -2
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +5 -5
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +18 -15
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +27 -19
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +6 -6
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +19 -18
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +13 -10
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +6 -6
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +1 -1
- data/lib/anthropic/models/beta/message_create_params.rb +1 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +3 -3
- data/lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb +31 -0
- data/lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb +113 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rb +104 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rb +28 -0
- data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rb +20 -0
- data/lib/anthropic/models/beta/organization/beta_plugin.rb +34 -9
- data/lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb +9 -4
- data/lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb +13 -7
- data/lib/anthropic/models/beta/organization/webhook_create_params.rb +73 -0
- data/lib/anthropic/models/beta/organization/webhook_delete_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_list_params.rb +75 -0
- data/lib/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rb +39 -0
- data/lib/anthropic/models/beta/organization/webhook_retrieve_params.rb +38 -0
- data/lib/anthropic/models/beta/organization/webhook_update_params.rb +105 -0
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +1 -1
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rb +29 -0
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb +35 -0
- data/lib/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rb +45 -0
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_create_params.rb +12 -11
- data/lib/anthropic/models/beta/user_profile_delete_params.rb +48 -0
- data/lib/anthropic/models/beta/user_profile_list_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +2 -3
- data/lib/anthropic/models/beta/user_profile_update_params.rb +11 -11
- data/lib/anthropic/models/beta/user_profiles/action_url_create_params.rb +58 -0
- data/lib/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rb +44 -0
- data/lib/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rb +21 -0
- data/lib/anthropic/models/beta/vault_list_params.rb +6 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential.rb +7 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rb +3 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb +1 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb +4 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rb +8 -1
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb +7 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb +6 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rb +10 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rb +15 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb +14 -5
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rb +14 -4
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rb +4 -3
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb +7 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb +10 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rb +2 -2
- data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rb +10 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +8 -4
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +6 -4
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +14 -10
- data/lib/anthropic/models/cache_miss_messages_changed.rb +8 -0
- data/lib/anthropic/models/cache_miss_model_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_previous_message_not_found.rb +9 -0
- data/lib/anthropic/models/cache_miss_reason.rb +22 -0
- data/lib/anthropic/models/cache_miss_system_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_tools_changed.rb +7 -0
- data/lib/anthropic/models/cache_miss_unavailable.rb +11 -0
- data/lib/anthropic/models/deleted_user_profile.rb +25 -0
- data/lib/anthropic/models/message_count_tokens_params.rb +1 -1
- data/lib/anthropic/models/message_create_params.rb +1 -1
- data/lib/anthropic/models/messages/batch_create_params.rb +3 -3
- data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/organization/workspaces/rate_limit_update_params.rb +43 -0
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +1 -1
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_type.rb +29 -0
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rb +35 -0
- data/lib/anthropic/models/user_profile.rb +108 -0
- data/lib/anthropic/models/user_profile_access_type.rb +23 -0
- data/lib/anthropic/models/user_profile_create_params.rb +74 -0
- data/lib/anthropic/models/user_profile_cyber_program.rb +52 -0
- data/lib/anthropic/models/user_profile_cyber_requirements.rb +35 -0
- data/lib/anthropic/models/user_profile_cyber_tier.rb +38 -0
- data/lib/anthropic/models/user_profile_delete_params.rb +38 -0
- data/lib/anthropic/models/user_profile_efs_feature.rb +38 -0
- data/lib/anthropic/models/user_profile_efs_program.rb +40 -0
- data/lib/anthropic/models/user_profile_external_user_account_status.rb +27 -0
- data/lib/anthropic/models/user_profile_external_user_details.rb +78 -0
- data/lib/anthropic/models/user_profile_external_user_details_params.rb +79 -0
- data/lib/anthropic/models/user_profile_external_user_entity_type.rb +19 -0
- data/lib/anthropic/models/user_profile_list_order.rb +19 -0
- data/lib/anthropic/models/user_profile_list_order_by.rb +20 -0
- data/lib/anthropic/models/user_profile_list_params.rb +67 -0
- data/lib/anthropic/models/user_profile_program_status.rb +23 -0
- data/lib/anthropic/models/user_profile_programs.rb +41 -0
- data/lib/anthropic/models/user_profile_retrieve_params.rb +38 -0
- data/lib/anthropic/models/user_profile_update_params.rb +78 -0
- data/lib/anthropic/models/user_profiles/action_url_create_params.rb +48 -0
- data/lib/anthropic/models/user_profiles/user_profile_action_url.rb +43 -0
- data/lib/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rb +21 -0
- data/lib/anthropic/models.rb +44 -0
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +17 -17
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +6 -6
- data/lib/anthropic/resources/beta/memory_stores.rb +19 -19
- data/lib/anthropic/resources/beta/messages.rb +63 -111
- data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +2 -2
- data/lib/anthropic/resources/beta/organization/webhooks.rb +287 -0
- data/lib/anthropic/resources/beta/organization/workspaces/rate_limits.rb +53 -0
- data/lib/anthropic/resources/beta/organization.rb +4 -0
- data/lib/anthropic/resources/beta/user_profiles/action_urls.rb +54 -0
- data/lib/anthropic/resources/beta/user_profiles.rb +41 -5
- data/lib/anthropic/resources/beta/vaults/credentials.rb +9 -9
- data/lib/anthropic/resources/beta/vaults.rb +7 -7
- data/lib/anthropic/resources/messages.rb +58 -92
- data/lib/anthropic/resources/organization/workspaces/rate_limits.rb +49 -0
- data/lib/anthropic/resources/user_profiles/action_urls.rb +50 -0
- data/lib/anthropic/resources/user_profiles.rb +196 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +53 -0
- data/rbi/anthropic/client.rbi +3 -0
- data/rbi/anthropic/helpers/aws/client.rbi +13 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +4 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +9 -0
- data/rbi/anthropic/helpers/google_cloud/client.rbi +19 -2
- data/rbi/anthropic/helpers/vertex/client.rbi +4 -0
- data/rbi/anthropic/internal/report_page_cursor.rbi +28 -0
- data/rbi/anthropic/internal/tracing.rbi +17 -4
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_messages_changed.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_model_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_previous_message_not_found.rbi +8 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_system_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_tools_changed.rbi +6 -0
- data/rbi/anthropic/models/beta/beta_cache_miss_unavailable.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_deleted_user_profile.rbi +40 -0
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +116 -9
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_vault.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +44 -26
- data/rbi/anthropic/models/beta/beta_managed_agents_vault.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +50 -43
- data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +1 -1
- data/rbi/anthropic/models/beta/beta_webhook_event.rbi +3 -1
- data/rbi/anthropic/models/beta/beta_webhook_event_data.rbi +19 -4
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbi +65 -0
- data/rbi/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbi +65 -0
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +8 -6
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +34 -16
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +8 -6
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +8 -12
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +2 -4
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +30 -20
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +6 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +13 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +54 -36
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +25 -18
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +3 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +7 -6
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +60 -38
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +5 -5
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +30 -24
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +44 -28
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +10 -10
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +32 -30
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +22 -16
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +10 -10
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +2 -2
- data/rbi/anthropic/models/beta/message_create_params.rbi +2 -2
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +6 -6
- data/rbi/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbi +41 -0
- data/rbi/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbi +175 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbi +164 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbi +37 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +49 -11
- data/rbi/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rbi +18 -8
- data/rbi/anthropic/models/beta/organization/plugins/beta_plugin_version.rbi +20 -8
- data/rbi/anthropic/models/beta/organization/webhook_create_params.rbi +151 -0
- data/rbi/anthropic/models/beta/organization/webhook_delete_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_list_params.rbi +153 -0
- data/rbi/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_retrieve_params.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/webhook_update_params.rbi +241 -0
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbi +81 -0
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbi +62 -0
- data/rbi/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbi +80 -0
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +22 -20
- data/rbi/anthropic/models/beta/user_profile_delete_params.rbi +91 -0
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +2 -4
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +20 -20
- data/rbi/anthropic/models/beta/user_profiles/action_url_create_params.rbi +116 -0
- data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbi +55 -0
- data/rbi/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbi +31 -0
- data/rbi/anthropic/models/beta/vault_list_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential.rbi +4 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_networking_params.rbi +6 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_deleted_credential.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rbi +5 -3
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rbi +4 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rbi +8 -1
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rbi +12 -8
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rbi +10 -6
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_auth_response.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_create_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_params.rbi +10 -5
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_response.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rbi +11 -5
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_update_params.rbi +16 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_mcp_probe.rbi +6 -4
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_static_bearer_update_params.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rbi +10 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_param.rbi +2 -2
- data/rbi/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_post_update_param.rbi +10 -2
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +8 -4
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +17 -11
- data/rbi/anthropic/models/cache_miss_messages_changed.rbi +7 -0
- data/rbi/anthropic/models/cache_miss_model_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_previous_message_not_found.rbi +8 -0
- data/rbi/anthropic/models/cache_miss_system_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_tools_changed.rbi +6 -0
- data/rbi/anthropic/models/cache_miss_unavailable.rbi +10 -0
- data/rbi/anthropic/models/deleted_user_profile.rbi +33 -0
- data/rbi/anthropic/models/message_count_tokens_params.rbi +2 -2
- data/rbi/anthropic/models/message_create_params.rbi +2 -2
- data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -6
- data/rbi/anthropic/models/organization/organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/organization/workspaces/rate_limit_update_params.rbi +78 -0
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbi +81 -0
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbi +62 -0
- data/rbi/anthropic/models/user_profile.rbi +152 -0
- data/rbi/anthropic/models/user_profile_access_type.rbi +34 -0
- data/rbi/anthropic/models/user_profile_create_params.rbi +135 -0
- data/rbi/anthropic/models/user_profile_cyber_program.rbi +95 -0
- data/rbi/anthropic/models/user_profile_cyber_requirements.rbi +52 -0
- data/rbi/anthropic/models/user_profile_cyber_tier.rbi +69 -0
- data/rbi/anthropic/models/user_profile_delete_params.rbi +67 -0
- data/rbi/anthropic/models/user_profile_efs_feature.rbi +69 -0
- data/rbi/anthropic/models/user_profile_efs_program.rbi +66 -0
- data/rbi/anthropic/models/user_profile_external_user_account_status.rbi +52 -0
- data/rbi/anthropic/models/user_profile_external_user_details.rbi +125 -0
- data/rbi/anthropic/models/user_profile_external_user_details_params.rbi +131 -0
- data/rbi/anthropic/models/user_profile_external_user_entity_type.rbi +46 -0
- data/rbi/anthropic/models/user_profile_list_order.rbi +28 -0
- data/rbi/anthropic/models/user_profile_list_order_by.rbi +30 -0
- data/rbi/anthropic/models/user_profile_list_params.rbi +110 -0
- data/rbi/anthropic/models/user_profile_program_status.rbi +34 -0
- data/rbi/anthropic/models/user_profile_programs.rbi +77 -0
- data/rbi/anthropic/models/user_profile_retrieve_params.rbi +67 -0
- data/rbi/anthropic/models/user_profile_update_params.rbi +130 -0
- data/rbi/anthropic/models/user_profiles/action_url_create_params.rbi +86 -0
- data/rbi/anthropic/models/user_profiles/user_profile_action_url.rbi +55 -0
- data/rbi/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbi +32 -0
- data/rbi/anthropic/models.rbi +48 -0
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +65 -51
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +19 -16
- data/rbi/anthropic/resources/beta/memory_stores.rbi +53 -38
- data/rbi/anthropic/resources/beta/messages/batches.rbi +3 -4
- data/rbi/anthropic/resources/beta/messages.rbi +192 -198
- data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +9 -4
- data/rbi/anthropic/resources/beta/organization/webhooks.rbi +248 -0
- data/rbi/anthropic/resources/beta/organization/workspaces/rate_limits.rbi +35 -0
- data/rbi/anthropic/resources/beta/organization.rbi +3 -0
- data/rbi/anthropic/resources/beta/user_profiles/action_urls.rbi +46 -0
- data/rbi/anthropic/resources/beta/user_profiles.rbi +51 -28
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +13 -11
- data/rbi/anthropic/resources/beta/vaults.rbi +10 -7
- data/rbi/anthropic/resources/messages/batches.rbi +3 -4
- data/rbi/anthropic/resources/messages.rbi +122 -132
- data/rbi/anthropic/resources/organization/workspaces/rate_limits.rbi +33 -0
- data/rbi/anthropic/resources/user_profiles/action_urls.rbi +40 -0
- data/rbi/anthropic/resources/user_profiles.rbi +184 -0
- data/sig/anthropic/client.rbs +2 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +2 -0
- data/sig/anthropic/helpers/google_cloud/client.rbs +10 -1
- data/sig/anthropic/helpers/vertex/client.rbs +2 -0
- data/sig/anthropic/internal/report_page_cursor.rbs +17 -0
- data/sig/anthropic/internal/tracing.rbs +13 -4
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_deleted_user_profile.rbs +20 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +8 -8
- data/sig/anthropic/models/beta/beta_webhook_event_data.rbs +23 -2
- data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rbs +39 -0
- data/sig/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rbs +39 -0
- data/sig/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs +82 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint.rbs +77 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_organization_webhook_endpoint_state.rbs +18 -0
- data/sig/anthropic/models/beta/organization/webhook_create_params.rbs +71 -0
- data/sig/anthropic/models/beta/organization/webhook_delete_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_list_params.rbs +67 -0
- data/sig/anthropic/models/beta/organization/webhook_regenerate_signing_secret_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_retrieve_params.rbs +39 -0
- data/sig/anthropic/models/beta/organization/webhook_update_params.rbs +102 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_type.rbs +36 -0
- data/sig/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rbs +31 -0
- data/sig/anthropic/models/beta/organization/workspaces/rate_limit_update_params.rbs +42 -0
- data/sig/anthropic/models/beta/user_profile_delete_params.rbs +44 -0
- data/sig/anthropic/models/beta/user_profiles/action_url_create_params.rbs +51 -0
- data/sig/anthropic/models/beta/user_profiles/beta_user_profile_action_url.rbs +30 -0
- data/sig/anthropic/models/beta/user_profiles/beta_user_profile_enroll_end_user_action.rbs +18 -0
- data/sig/anthropic/models/beta/vaults/beta_managed_agents_credential_validation_status.rbs +2 -2
- data/sig/anthropic/models/deleted_user_profile.rbs +15 -0
- data/sig/anthropic/models/organization/workspaces/rate_limit_update_params.rbs +40 -0
- data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_type.rbs +36 -0
- data/sig/anthropic/models/organization/workspaces/workspace_rate_limit_update_value.rbs +31 -0
- data/sig/anthropic/models/user_profile.rbs +60 -0
- data/sig/anthropic/models/user_profile_access_type.rbs +17 -0
- data/sig/anthropic/models/user_profile_create_params.rbs +58 -0
- data/sig/anthropic/models/user_profile_cyber_program.rbs +30 -0
- data/sig/anthropic/models/user_profile_cyber_requirements.rbs +16 -0
- data/sig/anthropic/models/user_profile_cyber_tier.rbs +29 -0
- data/sig/anthropic/models/user_profile_delete_params.rbs +30 -0
- data/sig/anthropic/models/user_profile_efs_feature.rbs +29 -0
- data/sig/anthropic/models/user_profile_efs_program.rbs +25 -0
- data/sig/anthropic/models/user_profile_external_user_account_status.rbs +21 -0
- data/sig/anthropic/models/user_profile_external_user_details.rbs +50 -0
- data/sig/anthropic/models/user_profile_external_user_details_params.rbs +52 -0
- data/sig/anthropic/models/user_profile_external_user_entity_type.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_order.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_order_by.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_params.rbs +60 -0
- data/sig/anthropic/models/user_profile_program_status.rbs +20 -0
- data/sig/anthropic/models/user_profile_programs.rbs +25 -0
- data/sig/anthropic/models/user_profile_retrieve_params.rbs +30 -0
- data/sig/anthropic/models/user_profile_update_params.rbs +59 -0
- data/sig/anthropic/models/user_profiles/action_url_create_params.rbs +40 -0
- data/sig/anthropic/models/user_profiles/user_profile_action_url.rbs +30 -0
- data/sig/anthropic/models/user_profiles/user_profile_enroll_end_user_action.rbs +17 -0
- data/sig/anthropic/models.rbs +44 -0
- data/sig/anthropic/resources/beta/messages.rbs +24 -24
- data/sig/anthropic/resources/beta/organization/analytics/cost_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/usage_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/user_cost_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/user_usage_report.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/webhooks.rbs +58 -0
- data/sig/anthropic/resources/beta/organization/workspaces/rate_limits.rbs +7 -0
- data/sig/anthropic/resources/beta/organization.rbs +2 -0
- data/sig/anthropic/resources/beta/user_profiles/action_urls.rbs +19 -0
- data/sig/anthropic/resources/beta/user_profiles.rbs +9 -0
- data/sig/anthropic/resources/messages.rbs +19 -19
- data/sig/anthropic/resources/organization/workspaces/rate_limits.rbs +7 -0
- data/sig/anthropic/resources/user_profiles/action_urls.rbs +16 -0
- data/sig/anthropic/resources/user_profiles.rbs +49 -0
- metadata +161 -2
|
@@ -9,7 +9,7 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute include_archived
|
|
12
|
-
# Whether to include archived vaults in the results.
|
|
12
|
+
# Whether to include archived vaults in the results. Defaults to `false`.
|
|
13
13
|
#
|
|
14
14
|
# @return [Boolean, nil]
|
|
15
15
|
optional :include_archived, Anthropic::Internal::Type::Boolean
|
|
@@ -21,7 +21,9 @@ module Anthropic
|
|
|
21
21
|
optional :limit, Integer
|
|
22
22
|
|
|
23
23
|
# @!attribute page
|
|
24
|
-
#
|
|
24
|
+
# The `next_page` value from a previous
|
|
25
|
+
# [List Vaults](https://platform.claude.com/docs/en/api/beta/vaults/list)
|
|
26
|
+
# response, to get the next page. Leave it out to get the first page.
|
|
25
27
|
#
|
|
26
28
|
# @return [String, nil]
|
|
27
29
|
optional :page, String
|
|
@@ -48,11 +50,11 @@ module Anthropic
|
|
|
48
50
|
# Some parameter documentations has been truncated, see
|
|
49
51
|
# {Anthropic::Models::Beta::VaultListParams} for more details.
|
|
50
52
|
#
|
|
51
|
-
# @param include_archived [Boolean] Whether to include archived vaults in the results.
|
|
53
|
+
# @param include_archived [Boolean] Whether to include archived vaults in the results. Defaults to `false`.
|
|
52
54
|
#
|
|
53
55
|
# @param limit [Integer] Maximum number of vaults to return per page. Defaults to 20, maximum 100.
|
|
54
56
|
#
|
|
55
|
-
# @param page [String]
|
|
57
|
+
# @param page [String] The `next_page` value from a previous [List Vaults](https://platform.claude.com/
|
|
56
58
|
#
|
|
57
59
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
58
60
|
#
|
|
@@ -7,7 +7,7 @@ module Anthropic
|
|
|
7
7
|
# @see Anthropic::Resources::Beta::Vaults::Credentials#create
|
|
8
8
|
class BetaManagedAgentsCredential < Anthropic::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute id
|
|
10
|
-
#
|
|
10
|
+
# The unique ID of the credential (`vcrd_...`).
|
|
11
11
|
#
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
@@ -63,7 +63,7 @@ module Anthropic
|
|
|
63
63
|
# A credential stored in a vault. Sensitive fields are never returned in
|
|
64
64
|
# responses.
|
|
65
65
|
#
|
|
66
|
-
# @param id [String]
|
|
66
|
+
# @param id [String] The unique ID of the credential (`vcrd_...`).
|
|
67
67
|
#
|
|
68
68
|
# @param archived_at [Time, nil] When the credential was archived. Null if not archived.
|
|
69
69
|
#
|
|
@@ -116,13 +116,17 @@ module Anthropic
|
|
|
116
116
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
117
117
|
# value, passing the remaining arguments to its constructor.
|
|
118
118
|
#
|
|
119
|
+
# Some parameter documentations has been truncated, see
|
|
120
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsCredential::Auth} for more
|
|
121
|
+
# details.
|
|
122
|
+
#
|
|
119
123
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsCredential::Auth::Type, String]
|
|
120
124
|
#
|
|
121
125
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
122
126
|
#
|
|
123
127
|
# @option args [String] :mcp_server_url URL of the MCP server this credential authenticates against.
|
|
124
128
|
#
|
|
125
|
-
# @option args [Time, nil] :expires_at
|
|
129
|
+
# @option args [Time, nil] :expires_at When the credential's access token expires, in RFC 3339. Absent if the expiry is
|
|
126
130
|
#
|
|
127
131
|
# @option args [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshResponse, nil] :refresh Refresh token configuration, if the credential supports token refresh.
|
|
128
132
|
#
|
|
@@ -40,7 +40,7 @@ module Anthropic
|
|
|
40
40
|
#
|
|
41
41
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
42
42
|
#
|
|
43
|
-
# @option args [Array<String>] :allowed_hosts
|
|
43
|
+
# @option args [Array<String>] :allowed_hosts The destination hosts of the outbound requests that the credential's secret is s
|
|
44
44
|
#
|
|
45
45
|
# @raise [ArgumentError]
|
|
46
46
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams]
|
|
@@ -19,7 +19,8 @@ module Anthropic
|
|
|
19
19
|
required :has_refresh_token, Anthropic::Internal::Type::Boolean
|
|
20
20
|
|
|
21
21
|
# @!attribute mcp_probe
|
|
22
|
-
# Details of the
|
|
22
|
+
# Details of the MCP probe step that failed, or `null` if the probe succeeded or
|
|
23
|
+
# there was no access token to test.
|
|
23
24
|
#
|
|
24
25
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPProbe, nil]
|
|
25
26
|
required :mcp_probe, -> { Anthropic::Beta::Vaults::BetaManagedAgentsMCPProbe }, nil?: true
|
|
@@ -65,7 +66,7 @@ module Anthropic
|
|
|
65
66
|
#
|
|
66
67
|
# @param has_refresh_token [Boolean] Whether the credential has a refresh token configured.
|
|
67
68
|
#
|
|
68
|
-
# @param mcp_probe [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPProbe, nil] Details of the
|
|
69
|
+
# @param mcp_probe [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPProbe, nil] Details of the MCP probe step that failed, or `null` if the probe succeeded or t
|
|
69
70
|
#
|
|
70
71
|
# @param refresh [Anthropic::Models::Beta::Vaults::BetaManagedAgentsRefreshObject, nil] Details of the refresh-token exchange attempted on a 401. Null when no refresh w
|
|
71
72
|
#
|
|
@@ -11,10 +11,10 @@ module Anthropic
|
|
|
11
11
|
# The credential successfully authenticated against its MCP server.
|
|
12
12
|
VALID = :valid
|
|
13
13
|
|
|
14
|
-
# The probe reached the MCP server and
|
|
14
|
+
# The probe reached the MCP server and the server rejected the credential, or no access token is stored. A refresh, if one was tried, didn't recover it. Usually the end user needs to authorize again.
|
|
15
15
|
INVALID = :invalid
|
|
16
16
|
|
|
17
|
-
# The probe
|
|
17
|
+
# The probe couldn't tell whether the credential works, for example because of a network error or because a refresh succeeded but the new access token wasn't tested. Validate the credential again to find out.
|
|
18
18
|
UNKNOWN = :unknown
|
|
19
19
|
|
|
20
20
|
# @!method self.values
|
|
@@ -7,7 +7,7 @@ module Anthropic
|
|
|
7
7
|
# @see Anthropic::Resources::Beta::Vaults::Credentials#delete
|
|
8
8
|
class BetaManagedAgentsDeletedCredential < Anthropic::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute id
|
|
10
|
-
#
|
|
10
|
+
# The unique ID of the deleted credential (`vcrd_...`).
|
|
11
11
|
#
|
|
12
12
|
# @return [String]
|
|
13
13
|
required :id, String
|
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
# @!method initialize(id:, type:)
|
|
21
21
|
# Confirmation of a deleted credential.
|
|
22
22
|
#
|
|
23
|
-
# @param id [String]
|
|
23
|
+
# @param id [String] The unique ID of the deleted credential (`vcrd_...`).
|
|
24
24
|
#
|
|
25
25
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsDeletedCredential::Type]
|
|
26
26
|
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_auth_response.rb
CHANGED
|
@@ -80,7 +80,7 @@ module Anthropic
|
|
|
80
80
|
#
|
|
81
81
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
82
82
|
#
|
|
83
|
-
# @option args [Array<String>] :allowed_hosts
|
|
83
|
+
# @option args [Array<String>] :allowed_hosts The destination hosts of the outbound requests that the credential's secret is s
|
|
84
84
|
#
|
|
85
85
|
# @raise [ArgumentError]
|
|
86
86
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingResponse, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingResponse]
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_create_params.rb
CHANGED
|
@@ -18,7 +18,8 @@ module Anthropic
|
|
|
18
18
|
required :secret_name, String
|
|
19
19
|
|
|
20
20
|
# @!attribute secret_value
|
|
21
|
-
#
|
|
21
|
+
# The secret to substitute into the agent's outbound requests. It's write-only and
|
|
22
|
+
# never returned in responses.
|
|
22
23
|
#
|
|
23
24
|
# @return [String]
|
|
24
25
|
required :secret_value, String
|
|
@@ -38,11 +39,15 @@ module Anthropic
|
|
|
38
39
|
# @!method initialize(networking:, secret_name:, secret_value:, type:, injection_location: nil)
|
|
39
40
|
# Parameters for creating an environment variable credential.
|
|
40
41
|
#
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableCreateParams}
|
|
44
|
+
# for more details.
|
|
45
|
+
#
|
|
41
46
|
# @param networking [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams] Outbound hosts the secret value is substituted on.
|
|
42
47
|
#
|
|
43
48
|
# @param secret_name [String] Name of the environment variable. Immutable after create.
|
|
44
49
|
#
|
|
45
|
-
# @param secret_value [String]
|
|
50
|
+
# @param secret_value [String] The secret to substitute into the agent's outbound requests. It's write-only and
|
|
46
51
|
#
|
|
47
52
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableCreateParams::Type]
|
|
48
53
|
#
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_environment_variable_update_params.rb
CHANGED
|
@@ -19,7 +19,7 @@ module Anthropic
|
|
|
19
19
|
-> { Anthropic::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams }
|
|
20
20
|
|
|
21
21
|
# @!attribute networking
|
|
22
|
-
#
|
|
22
|
+
# The new networking scope, which replaces the stored one as a whole.
|
|
23
23
|
#
|
|
24
24
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams, nil]
|
|
25
25
|
optional :networking,
|
|
@@ -27,7 +27,7 @@ module Anthropic
|
|
|
27
27
|
nil?: true
|
|
28
28
|
|
|
29
29
|
# @!attribute secret_value
|
|
30
|
-
#
|
|
30
|
+
# The new secret value to replace the stored one.
|
|
31
31
|
#
|
|
32
32
|
# @return [String, nil]
|
|
33
33
|
optional :secret_value, String, nil?: true
|
|
@@ -40,9 +40,9 @@ module Anthropic
|
|
|
40
40
|
#
|
|
41
41
|
# @param injection_location [Anthropic::Models::Beta::Vaults::BetaManagedAgentsInjectionLocationUpdateParams] Updated injection location.
|
|
42
42
|
#
|
|
43
|
-
# @param networking [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams, nil]
|
|
43
|
+
# @param networking [Anthropic::Models::Beta::Vaults::BetaManagedAgentsUnrestrictedCredentialNetworkingParams, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams, nil] The new networking scope, which replaces the stored one as a whole.
|
|
44
44
|
#
|
|
45
|
-
# @param secret_value [String, nil]
|
|
45
|
+
# @param secret_value [String, nil] The new secret value to replace the stored one.
|
|
46
46
|
|
|
47
47
|
# @see Anthropic::Models::Beta::Vaults::BetaManagedAgentsEnvironmentVariableUpdateParams#type
|
|
48
48
|
module Type
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_injection_location_update_params.rb
CHANGED
|
@@ -18,7 +18,14 @@ module Anthropic
|
|
|
18
18
|
optional :header, Anthropic::Internal::Type::Boolean
|
|
19
19
|
|
|
20
20
|
# @!method initialize(body: nil, header: nil)
|
|
21
|
-
#
|
|
21
|
+
# Changes which parts of an outbound request the secret is substituted into. A
|
|
22
|
+
# location you leave out keeps its current setting.
|
|
23
|
+
#
|
|
24
|
+
# After the change, at least one location must be enabled.
|
|
25
|
+
#
|
|
26
|
+
# See
|
|
27
|
+
# [Authenticate with vaults](https://platform.claude.com/docs/en/managed-agents/vaults#add-a-credential)
|
|
28
|
+
# to learn more about injection locations.
|
|
22
29
|
#
|
|
23
30
|
# @param body [Boolean] Substitute when the placeholder appears in the request body.
|
|
24
31
|
#
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_params.rb
CHANGED
|
@@ -6,10 +6,12 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsLimitedCredentialNetworkingParams < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute allowed_hosts
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
9
|
+
# The destination hosts of the outbound requests that the credential's secret is
|
|
10
|
+
# substituted into.
|
|
11
|
+
#
|
|
12
|
+
# Each entry is a bare hostname (`api.example.com`), an IPv4 address
|
|
13
|
+
# (`192.0.2.1`), or a `*.` wildcard (`*.example.com`). URLs, ports, paths, and
|
|
14
|
+
# IPv6 addresses aren't accepted. The list can have up to 16 entries.
|
|
13
15
|
#
|
|
14
16
|
# @return [Array<String>]
|
|
15
17
|
required :allowed_hosts, Anthropic::Internal::Type::ArrayOf[String]
|
|
@@ -27,7 +29,7 @@ module Anthropic
|
|
|
27
29
|
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams}
|
|
28
30
|
# for more details.
|
|
29
31
|
#
|
|
30
|
-
# @param allowed_hosts [Array<String>]
|
|
32
|
+
# @param allowed_hosts [Array<String>] The destination hosts of the outbound requests that the credential's secret is s
|
|
31
33
|
#
|
|
32
34
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingParams::Type]
|
|
33
35
|
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_limited_credential_networking_response.rb
CHANGED
|
@@ -6,9 +6,11 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsLimitedCredentialNetworkingResponse < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute allowed_hosts
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
9
|
+
# The destination hosts of the outbound requests that the credential's secret is
|
|
10
|
+
# substituted into.
|
|
11
|
+
#
|
|
12
|
+
# An entry matches the request host exactly. An entry such as `*.example.com`
|
|
13
|
+
# matches any subdomain of `example.com` but not `example.com` itself.
|
|
12
14
|
#
|
|
13
15
|
# @return [Array<String>]
|
|
14
16
|
required :allowed_hosts, Anthropic::Internal::Type::ArrayOf[String]
|
|
@@ -26,7 +28,7 @@ module Anthropic
|
|
|
26
28
|
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingResponse}
|
|
27
29
|
# for more details.
|
|
28
30
|
#
|
|
29
|
-
# @param allowed_hosts [Array<String>]
|
|
31
|
+
# @param allowed_hosts [Array<String>] The destination hosts of the outbound requests that the credential's secret is s
|
|
30
32
|
#
|
|
31
33
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsLimitedCredentialNetworkingResponse::Type]
|
|
32
34
|
|
|
@@ -17,7 +17,8 @@ module Anthropic
|
|
|
17
17
|
required :type, enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthAuthResponse::Type }
|
|
18
18
|
|
|
19
19
|
# @!attribute expires_at
|
|
20
|
-
#
|
|
20
|
+
# When the credential's access token expires, in RFC 3339. Absent if the expiry
|
|
21
|
+
# isn't known.
|
|
21
22
|
#
|
|
22
23
|
# @return [Time, nil]
|
|
23
24
|
optional :expires_at, Time, nil?: true
|
|
@@ -35,11 +36,15 @@ module Anthropic
|
|
|
35
36
|
# @!method initialize(mcp_server_url:, type:, expires_at: nil, refresh: nil)
|
|
36
37
|
# OAuth credential details for an MCP server.
|
|
37
38
|
#
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthAuthResponse} for
|
|
41
|
+
# more details.
|
|
42
|
+
#
|
|
38
43
|
# @param mcp_server_url [String] URL of the MCP server this credential authenticates against.
|
|
39
44
|
#
|
|
40
45
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthAuthResponse::Type]
|
|
41
46
|
#
|
|
42
|
-
# @param expires_at [Time, nil]
|
|
47
|
+
# @param expires_at [Time, nil] When the credential's access token expires, in RFC 3339. Absent if the expiry is
|
|
43
48
|
#
|
|
44
49
|
# @param refresh [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshResponse, nil] Refresh token configuration, if the credential supports token refresh.
|
|
45
50
|
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsMCPOAuthCreateParams < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute access_token
|
|
9
|
-
# OAuth access token.
|
|
9
|
+
# The OAuth access token to send to the MCP server.
|
|
10
10
|
#
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :access_token, String
|
|
@@ -23,7 +23,9 @@ module Anthropic
|
|
|
23
23
|
required :type, enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthCreateParams::Type }
|
|
24
24
|
|
|
25
25
|
# @!attribute expires_at
|
|
26
|
-
#
|
|
26
|
+
# When `access_token` expires, in RFC 3339.
|
|
27
|
+
#
|
|
28
|
+
# Must be in the future.
|
|
27
29
|
#
|
|
28
30
|
# @return [Time, nil]
|
|
29
31
|
optional :expires_at, Time, nil?: true
|
|
@@ -41,13 +43,17 @@ module Anthropic
|
|
|
41
43
|
# @!method initialize(access_token:, mcp_server_url:, type:, expires_at: nil, refresh: nil)
|
|
42
44
|
# Parameters for creating an MCP OAuth credential.
|
|
43
45
|
#
|
|
44
|
-
#
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthCreateParams} for
|
|
48
|
+
# more details.
|
|
49
|
+
#
|
|
50
|
+
# @param access_token [String] The OAuth access token to send to the MCP server.
|
|
45
51
|
#
|
|
46
52
|
# @param mcp_server_url [String] URL of the MCP server this credential authenticates against.
|
|
47
53
|
#
|
|
48
54
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthCreateParams::Type]
|
|
49
55
|
#
|
|
50
|
-
# @param expires_at [Time, nil]
|
|
56
|
+
# @param expires_at [Time, nil] When `access_token` expires, in RFC 3339.
|
|
51
57
|
#
|
|
52
58
|
# @param refresh [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshParams, nil] Refresh token configuration, if the credential supports token refresh.
|
|
53
59
|
|
|
@@ -6,13 +6,15 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsMCPOAuthRefreshParams < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute client_id
|
|
9
|
-
# OAuth client ID.
|
|
9
|
+
# The OAuth client ID to use when refreshing the access token. It can't be changed
|
|
10
|
+
# after the credential is created.
|
|
10
11
|
#
|
|
11
12
|
# @return [String]
|
|
12
13
|
required :client_id, String
|
|
13
14
|
|
|
14
15
|
# @!attribute refresh_token
|
|
15
|
-
# OAuth refresh token
|
|
16
|
+
# The OAuth refresh token that the API uses to get a new access token when the
|
|
17
|
+
# current one expires.
|
|
16
18
|
#
|
|
17
19
|
# @return [String]
|
|
18
20
|
required :refresh_token, String
|
|
@@ -44,9 +46,13 @@ module Anthropic
|
|
|
44
46
|
# @!method initialize(client_id:, refresh_token:, token_endpoint:, token_endpoint_auth:, resource: nil, scope: nil)
|
|
45
47
|
# OAuth refresh token parameters for creating a credential with refresh support.
|
|
46
48
|
#
|
|
47
|
-
#
|
|
49
|
+
# Some parameter documentations has been truncated, see
|
|
50
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshParams} for
|
|
51
|
+
# more details.
|
|
48
52
|
#
|
|
49
|
-
# @param
|
|
53
|
+
# @param client_id [String] The OAuth client ID to use when refreshing the access token. It can't be changed
|
|
54
|
+
#
|
|
55
|
+
# @param refresh_token [String] The OAuth refresh token that the API uses to get a new access token when the cur
|
|
50
56
|
#
|
|
51
57
|
# @param token_endpoint [String] Token endpoint URL used to refresh the access token.
|
|
52
58
|
#
|
|
@@ -88,11 +94,15 @@ module Anthropic
|
|
|
88
94
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
89
95
|
# value, passing the remaining arguments to its constructor.
|
|
90
96
|
#
|
|
97
|
+
# Some parameter documentations has been truncated, see
|
|
98
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshParams::TokenEndpointAuth}
|
|
99
|
+
# for more details.
|
|
100
|
+
#
|
|
91
101
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshParams::TokenEndpointAuth::Type, String]
|
|
92
102
|
#
|
|
93
103
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
94
104
|
#
|
|
95
|
-
# @option args [String] :client_secret OAuth client secret
|
|
105
|
+
# @option args [String] :client_secret The OAuth client secret, sent to `token_endpoint` with HTTP Basic authentication
|
|
96
106
|
#
|
|
97
107
|
# @raise [ArgumentError]
|
|
98
108
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthNoneParam, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicParam, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostParam]
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsMCPOAuthRefreshResponse < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute client_id
|
|
9
|
-
# OAuth client ID.
|
|
9
|
+
# The OAuth client ID used when refreshing the access token.
|
|
10
10
|
#
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :client_id, String
|
|
@@ -38,7 +38,7 @@ module Anthropic
|
|
|
38
38
|
# @!method initialize(client_id:, token_endpoint:, token_endpoint_auth:, resource: nil, scope: nil)
|
|
39
39
|
# OAuth refresh token configuration returned in credential responses.
|
|
40
40
|
#
|
|
41
|
-
# @param client_id [String] OAuth client ID.
|
|
41
|
+
# @param client_id [String] The OAuth client ID used when refreshing the access token.
|
|
42
42
|
#
|
|
43
43
|
# @param token_endpoint [String] Token endpoint URL used to refresh the access token.
|
|
44
44
|
#
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_mcp_oauth_refresh_update_params.rb
CHANGED
|
@@ -6,13 +6,14 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsMCPOAuthRefreshUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute refresh_token
|
|
9
|
-
#
|
|
9
|
+
# The new OAuth refresh token to replace the stored one.
|
|
10
10
|
#
|
|
11
11
|
# @return [String, nil]
|
|
12
12
|
optional :refresh_token, String, nil?: true
|
|
13
13
|
|
|
14
14
|
# @!attribute scope
|
|
15
|
-
#
|
|
15
|
+
# The new OAuth scope for refresh requests. Send an empty string to clear the
|
|
16
|
+
# stored scope.
|
|
16
17
|
#
|
|
17
18
|
# @return [String, nil]
|
|
18
19
|
optional :scope, String, nil?: true
|
|
@@ -26,9 +27,13 @@ module Anthropic
|
|
|
26
27
|
# @!method initialize(refresh_token: nil, scope: nil, token_endpoint_auth: nil)
|
|
27
28
|
# Parameters for updating OAuth refresh token configuration.
|
|
28
29
|
#
|
|
29
|
-
#
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshUpdateParams}
|
|
32
|
+
# for more details.
|
|
30
33
|
#
|
|
31
|
-
# @param
|
|
34
|
+
# @param refresh_token [String, nil] The new OAuth refresh token to replace the stored one.
|
|
35
|
+
#
|
|
36
|
+
# @param scope [String, nil] The new OAuth scope for refresh requests. Send an empty string to clear the stor
|
|
32
37
|
#
|
|
33
38
|
# @param token_endpoint_auth [Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam]
|
|
34
39
|
|
|
@@ -62,11 +67,15 @@ module Anthropic
|
|
|
62
67
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
63
68
|
# value, passing the remaining arguments to its constructor.
|
|
64
69
|
#
|
|
70
|
+
# Some parameter documentations has been truncated, see
|
|
71
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshUpdateParams::TokenEndpointAuth}
|
|
72
|
+
# for more details.
|
|
73
|
+
#
|
|
65
74
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshUpdateParams::TokenEndpointAuth::Type, String]
|
|
66
75
|
#
|
|
67
76
|
# @param args [Hash{Symbol=>Object}] Attributes for the chosen variant.
|
|
68
77
|
#
|
|
69
|
-
# @option args [String, nil] :client_secret
|
|
78
|
+
# @option args [String, nil] :client_secret A new OAuth client secret to replace the stored one.
|
|
70
79
|
#
|
|
71
80
|
# @raise [ArgumentError]
|
|
72
81
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthPostUpdateParam]
|
|
@@ -11,13 +11,19 @@ module Anthropic
|
|
|
11
11
|
required :type, enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams::Type }
|
|
12
12
|
|
|
13
13
|
# @!attribute access_token
|
|
14
|
-
#
|
|
14
|
+
# The new OAuth access token to replace the stored one.
|
|
15
15
|
#
|
|
16
16
|
# @return [String, nil]
|
|
17
17
|
optional :access_token, String, nil?: true
|
|
18
18
|
|
|
19
19
|
# @!attribute expires_at
|
|
20
|
-
#
|
|
20
|
+
# When the credential's access token expires, in RFC 3339. Leave it out to keep
|
|
21
|
+
# the stored expiry.
|
|
22
|
+
#
|
|
23
|
+
# If you send a new `access_token`, send its `expires_at` too, or the new token
|
|
24
|
+
# keeps the old expiry.
|
|
25
|
+
#
|
|
26
|
+
# Must be in the future.
|
|
21
27
|
#
|
|
22
28
|
# @return [Time, nil]
|
|
23
29
|
optional :expires_at, Time, nil?: true
|
|
@@ -34,11 +40,15 @@ module Anthropic
|
|
|
34
40
|
# Parameters for updating an MCP OAuth credential. The `mcp_server_url` is
|
|
35
41
|
# immutable.
|
|
36
42
|
#
|
|
43
|
+
# Some parameter documentations has been truncated, see
|
|
44
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams} for
|
|
45
|
+
# more details.
|
|
46
|
+
#
|
|
37
47
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthUpdateParams::Type]
|
|
38
48
|
#
|
|
39
|
-
# @param access_token [String, nil]
|
|
49
|
+
# @param access_token [String, nil] The new OAuth access token to replace the stored one.
|
|
40
50
|
#
|
|
41
|
-
# @param expires_at [Time, nil]
|
|
51
|
+
# @param expires_at [Time, nil] When the credential's access token expires, in RFC 3339. Leave it out to keep th
|
|
42
52
|
#
|
|
43
53
|
# @param refresh [Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPOAuthRefreshUpdateParams, nil] Updated refresh token configuration.
|
|
44
54
|
|
|
@@ -6,8 +6,9 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsMCPProbe < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute http_response
|
|
9
|
-
# The
|
|
10
|
-
#
|
|
9
|
+
# The HTTP error response from the MCP server, or `null` if the MCP server didn't
|
|
10
|
+
# return one for the failing step, for example after a timeout or a DNS or TLS
|
|
11
|
+
# failure.
|
|
11
12
|
#
|
|
12
13
|
# @return [Anthropic::Models::Beta::Vaults::BetaManagedAgentsRefreshHTTPResponse, nil]
|
|
13
14
|
required :http_response,
|
|
@@ -28,7 +29,7 @@ module Anthropic
|
|
|
28
29
|
# Some parameter documentations has been truncated, see
|
|
29
30
|
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsMCPProbe} for more details.
|
|
30
31
|
#
|
|
31
|
-
# @param http_response [Anthropic::Models::Beta::Vaults::BetaManagedAgentsRefreshHTTPResponse, nil] The
|
|
32
|
+
# @param http_response [Anthropic::Models::Beta::Vaults::BetaManagedAgentsRefreshHTTPResponse, nil] The HTTP error response from the MCP server, or `null` if the MCP server didn't
|
|
32
33
|
#
|
|
33
34
|
# @param method_ [String] The MCP method that failed (for example `initialize` or `tools/list`).
|
|
34
35
|
end
|
|
@@ -6,7 +6,8 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsStaticBearerCreateParams < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute token
|
|
9
|
-
#
|
|
9
|
+
# The static bearer token to send to the MCP server, such as an API key or
|
|
10
|
+
# personal access token.
|
|
10
11
|
#
|
|
11
12
|
# @return [String]
|
|
12
13
|
required :token, String
|
|
@@ -25,7 +26,11 @@ module Anthropic
|
|
|
25
26
|
# @!method initialize(token:, mcp_server_url:, type:)
|
|
26
27
|
# Parameters for creating a static bearer token credential.
|
|
27
28
|
#
|
|
28
|
-
#
|
|
29
|
+
# Some parameter documentations has been truncated, see
|
|
30
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerCreateParams} for
|
|
31
|
+
# more details.
|
|
32
|
+
#
|
|
33
|
+
# @param token [String] The static bearer token to send to the MCP server, such as an API key or persona
|
|
29
34
|
#
|
|
30
35
|
# @param mcp_server_url [String] URL of the MCP server this credential authenticates against.
|
|
31
36
|
#
|
|
@@ -11,7 +11,7 @@ module Anthropic
|
|
|
11
11
|
required :type, enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams::Type }
|
|
12
12
|
|
|
13
13
|
# @!attribute token
|
|
14
|
-
#
|
|
14
|
+
# The new static bearer token to replace the stored one.
|
|
15
15
|
#
|
|
16
16
|
# @return [String, nil]
|
|
17
17
|
optional :token, String, nil?: true
|
|
@@ -22,7 +22,7 @@ module Anthropic
|
|
|
22
22
|
#
|
|
23
23
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams::Type]
|
|
24
24
|
#
|
|
25
|
-
# @param token [String, nil]
|
|
25
|
+
# @param token [String, nil] The new static bearer token to replace the stored one.
|
|
26
26
|
|
|
27
27
|
# @see Anthropic::Models::Beta::Vaults::BetaManagedAgentsStaticBearerUpdateParams#type
|
|
28
28
|
module Type
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_param.rb
CHANGED
|
@@ -6,7 +6,8 @@ module Anthropic
|
|
|
6
6
|
module Vaults
|
|
7
7
|
class BetaManagedAgentsTokenEndpointAuthBasicParam < Anthropic::Internal::Type::BaseModel
|
|
8
8
|
# @!attribute client_secret
|
|
9
|
-
# OAuth client secret
|
|
9
|
+
# The OAuth client secret, sent to `token_endpoint` with HTTP Basic
|
|
10
|
+
# authentication.
|
|
10
11
|
#
|
|
11
12
|
# @return [String]
|
|
12
13
|
required :client_secret, String
|
|
@@ -19,7 +20,11 @@ module Anthropic
|
|
|
19
20
|
# @!method initialize(client_secret:, type:)
|
|
20
21
|
# Token endpoint uses HTTP Basic authentication with client credentials.
|
|
21
22
|
#
|
|
22
|
-
#
|
|
23
|
+
# Some parameter documentations has been truncated, see
|
|
24
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicParam}
|
|
25
|
+
# for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param client_secret [String] The OAuth client secret, sent to `token_endpoint` with HTTP Basic authentication
|
|
23
28
|
#
|
|
24
29
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicParam::Type]
|
|
25
30
|
|
data/lib/anthropic/models/beta/vaults/beta_managed_agents_token_endpoint_auth_basic_update_param.rb
CHANGED
|
@@ -12,7 +12,11 @@ module Anthropic
|
|
|
12
12
|
enum: -> { Anthropic::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam::Type }
|
|
13
13
|
|
|
14
14
|
# @!attribute client_secret
|
|
15
|
-
#
|
|
15
|
+
# A new OAuth client secret to replace the stored one.
|
|
16
|
+
#
|
|
17
|
+
# The credential must already use `client_secret_basic` or `client_secret_post`.
|
|
18
|
+
# It keeps its current `token_endpoint_auth` type, even if the `type` sent with
|
|
19
|
+
# this secret is the other one.
|
|
16
20
|
#
|
|
17
21
|
# @return [String, nil]
|
|
18
22
|
optional :client_secret, String, nil?: true
|
|
@@ -20,9 +24,13 @@ module Anthropic
|
|
|
20
24
|
# @!method initialize(type:, client_secret: nil)
|
|
21
25
|
# Updated HTTP Basic authentication parameters for the token endpoint.
|
|
22
26
|
#
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam}
|
|
29
|
+
# for more details.
|
|
30
|
+
#
|
|
23
31
|
# @param type [Symbol, Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam::Type]
|
|
24
32
|
#
|
|
25
|
-
# @param client_secret [String, nil]
|
|
33
|
+
# @param client_secret [String, nil] A new OAuth client secret to replace the stored one.
|
|
26
34
|
|
|
27
35
|
# @see Anthropic::Models::Beta::Vaults::BetaManagedAgentsTokenEndpointAuthBasicUpdateParam#type
|
|
28
36
|
module Type
|