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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module UserProfiles
|
|
5
|
+
type beta_user_profile_action_url =
|
|
6
|
+
{ expires_at: Time, type: :user_profile_action_url, url: String }
|
|
7
|
+
|
|
8
|
+
class BetaUserProfileActionURL < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor expires_at: Time
|
|
10
|
+
|
|
11
|
+
attr_accessor type: :user_profile_action_url
|
|
12
|
+
|
|
13
|
+
attr_accessor url: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
expires_at: Time,
|
|
17
|
+
url: String,
|
|
18
|
+
?type: :user_profile_action_url
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
expires_at: Time,
|
|
23
|
+
type: :user_profile_action_url,
|
|
24
|
+
url: String
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module UserProfiles
|
|
5
|
+
type beta_user_profile_enroll_end_user_action =
|
|
6
|
+
{ type: :enroll_end_user }
|
|
7
|
+
|
|
8
|
+
class BetaUserProfileEnrollEndUserAction < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor type: :enroll_end_user
|
|
10
|
+
|
|
11
|
+
def initialize: (?type: :enroll_end_user) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { type: :enroll_end_user }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -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
|
def self?.values: -> ::Array[Anthropic::Models::Beta::Vaults::beta_managed_agents_credential_validation_status]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type deleted_user_profile = { id: String, type: :user_profile_deleted }
|
|
4
|
+
|
|
5
|
+
class DeletedUserProfile < Anthropic::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor id: String
|
|
7
|
+
|
|
8
|
+
attr_accessor type: :user_profile_deleted
|
|
9
|
+
|
|
10
|
+
def initialize: (id: String, ?type: :user_profile_deleted) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { id: String, type: :user_profile_deleted }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Organization
|
|
4
|
+
module Workspaces
|
|
5
|
+
type rate_limit_update_params =
|
|
6
|
+
{
|
|
7
|
+
workspace_id: String,
|
|
8
|
+
rate_limit_id: String,
|
|
9
|
+
limits: ::Array[Anthropic::Organization::Workspaces::WorkspaceRateLimitUpdateValue]
|
|
10
|
+
}
|
|
11
|
+
& Anthropic::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class RateLimitUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor workspace_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor rate_limit_id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor limits: ::Array[Anthropic::Organization::Workspaces::WorkspaceRateLimitUpdateValue]
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
workspace_id: String,
|
|
25
|
+
rate_limit_id: String,
|
|
26
|
+
limits: ::Array[Anthropic::Organization::Workspaces::WorkspaceRateLimitUpdateValue],
|
|
27
|
+
?request_options: Anthropic::request_opts
|
|
28
|
+
) -> void
|
|
29
|
+
|
|
30
|
+
def to_hash: -> {
|
|
31
|
+
workspace_id: String,
|
|
32
|
+
rate_limit_id: String,
|
|
33
|
+
limits: ::Array[Anthropic::Organization::Workspaces::WorkspaceRateLimitUpdateValue],
|
|
34
|
+
request_options: Anthropic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Organization
|
|
4
|
+
module WorkspaceRateLimitType = Workspaces::WorkspaceRateLimitType
|
|
5
|
+
|
|
6
|
+
module Workspaces
|
|
7
|
+
type workspace_rate_limit_type =
|
|
8
|
+
:fast_itpmca
|
|
9
|
+
| :fast_otpm
|
|
10
|
+
| :input_tokens_per_minute
|
|
11
|
+
| :input_tokens_per_minute_cache_aware
|
|
12
|
+
| :output_tokens_per_minute
|
|
13
|
+
| :requests_per_minute
|
|
14
|
+
| :tokens_per_day
|
|
15
|
+
| :tokens_per_minute
|
|
16
|
+
| :tool_uses_per_second
|
|
17
|
+
|
|
18
|
+
module WorkspaceRateLimitType
|
|
19
|
+
extend Anthropic::Internal::Type::Enum
|
|
20
|
+
|
|
21
|
+
FAST_ITPMCA: :fast_itpmca
|
|
22
|
+
FAST_OTPM: :fast_otpm
|
|
23
|
+
INPUT_TOKENS_PER_MINUTE: :input_tokens_per_minute
|
|
24
|
+
INPUT_TOKENS_PER_MINUTE_CACHE_AWARE: :input_tokens_per_minute_cache_aware
|
|
25
|
+
OUTPUT_TOKENS_PER_MINUTE: :output_tokens_per_minute
|
|
26
|
+
REQUESTS_PER_MINUTE: :requests_per_minute
|
|
27
|
+
TOKENS_PER_DAY: :tokens_per_day
|
|
28
|
+
TOKENS_PER_MINUTE: :tokens_per_minute
|
|
29
|
+
TOOL_USES_PER_SECOND: :tool_uses_per_second
|
|
30
|
+
|
|
31
|
+
def self?.values: -> ::Array[Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Organization
|
|
4
|
+
class WorkspaceRateLimitUpdateValue = Workspaces::WorkspaceRateLimitUpdateValue
|
|
5
|
+
|
|
6
|
+
module Workspaces
|
|
7
|
+
type workspace_rate_limit_update_value =
|
|
8
|
+
{
|
|
9
|
+
type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type,
|
|
10
|
+
value: Integer?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class WorkspaceRateLimitUpdateValue < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type
|
|
15
|
+
|
|
16
|
+
attr_accessor value: Integer?
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type,
|
|
20
|
+
value: Integer?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
type: Anthropic::Models::Organization::Workspaces::workspace_rate_limit_type,
|
|
25
|
+
value: Integer?
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
access_type: Anthropic::Models::user_profile_access_type,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
9
|
+
metadata: ::Hash[Symbol, String],
|
|
10
|
+
name: String?,
|
|
11
|
+
programs: Anthropic::UserProfilePrograms,
|
|
12
|
+
type: :user_profile,
|
|
13
|
+
updated_at: Time
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class UserProfile < Anthropic::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor access_type: Anthropic::Models::user_profile_access_type
|
|
20
|
+
|
|
21
|
+
attr_accessor created_at: Time
|
|
22
|
+
|
|
23
|
+
attr_accessor external_user_details: Anthropic::UserProfileExternalUserDetails
|
|
24
|
+
|
|
25
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
26
|
+
|
|
27
|
+
attr_accessor name: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor programs: Anthropic::UserProfilePrograms
|
|
30
|
+
|
|
31
|
+
attr_accessor type: :user_profile
|
|
32
|
+
|
|
33
|
+
attr_accessor updated_at: Time
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
id: String,
|
|
37
|
+
access_type: Anthropic::Models::user_profile_access_type,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
40
|
+
metadata: ::Hash[Symbol, String],
|
|
41
|
+
name: String?,
|
|
42
|
+
programs: Anthropic::UserProfilePrograms,
|
|
43
|
+
updated_at: Time,
|
|
44
|
+
?type: :user_profile
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
access_type: Anthropic::Models::user_profile_access_type,
|
|
50
|
+
created_at: Time,
|
|
51
|
+
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
52
|
+
metadata: ::Hash[Symbol, String],
|
|
53
|
+
name: String?,
|
|
54
|
+
programs: Anthropic::UserProfilePrograms,
|
|
55
|
+
type: :user_profile,
|
|
56
|
+
updated_at: Time
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_access_type = :application | :passthrough
|
|
4
|
+
|
|
5
|
+
module UserProfileAccessType
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
# The user profile represents an individual end-user of a product that the platform builds on the API. New profiles get this value by default.
|
|
9
|
+
APPLICATION: :application
|
|
10
|
+
|
|
11
|
+
# The user profile represents a company that the platform resells Claude access to.
|
|
12
|
+
PASSTHROUGH: :passthrough
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_access_type]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_create_params =
|
|
4
|
+
{
|
|
5
|
+
access_type: Anthropic::Models::user_profile_access_type,
|
|
6
|
+
external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
|
|
7
|
+
metadata: ::Hash[Symbol, String],
|
|
8
|
+
name: String?,
|
|
9
|
+
workspace_id: String
|
|
10
|
+
}
|
|
11
|
+
& Anthropic::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class UserProfileCreateParams < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader access_type: Anthropic::Models::user_profile_access_type?
|
|
18
|
+
|
|
19
|
+
def access_type=: (
|
|
20
|
+
Anthropic::Models::user_profile_access_type
|
|
21
|
+
) -> Anthropic::Models::user_profile_access_type
|
|
22
|
+
|
|
23
|
+
attr_reader external_user_details: Anthropic::UserProfileExternalUserDetailsParams?
|
|
24
|
+
|
|
25
|
+
def external_user_details=: (
|
|
26
|
+
Anthropic::UserProfileExternalUserDetailsParams
|
|
27
|
+
) -> Anthropic::UserProfileExternalUserDetailsParams
|
|
28
|
+
|
|
29
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
30
|
+
|
|
31
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
32
|
+
|
|
33
|
+
attr_accessor name: String?
|
|
34
|
+
|
|
35
|
+
attr_reader workspace_id: String?
|
|
36
|
+
|
|
37
|
+
def workspace_id=: (String) -> String
|
|
38
|
+
|
|
39
|
+
def initialize: (
|
|
40
|
+
?access_type: Anthropic::Models::user_profile_access_type,
|
|
41
|
+
?external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
|
|
42
|
+
?metadata: ::Hash[Symbol, String],
|
|
43
|
+
?name: String?,
|
|
44
|
+
?workspace_id: String,
|
|
45
|
+
?request_options: Anthropic::request_opts
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
access_type: Anthropic::Models::user_profile_access_type,
|
|
50
|
+
external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
|
|
51
|
+
metadata: ::Hash[Symbol, String],
|
|
52
|
+
name: String?,
|
|
53
|
+
workspace_id: String,
|
|
54
|
+
request_options: Anthropic::RequestOptions
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_cyber_program =
|
|
4
|
+
{
|
|
5
|
+
requirements: Anthropic::UserProfileCyberRequirements?,
|
|
6
|
+
status: Anthropic::Models::user_profile_program_status,
|
|
7
|
+
tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class UserProfileCyberProgram < Anthropic::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor requirements: Anthropic::UserProfileCyberRequirements?
|
|
12
|
+
|
|
13
|
+
attr_accessor status: Anthropic::Models::user_profile_program_status
|
|
14
|
+
|
|
15
|
+
attr_accessor tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier]
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
requirements: Anthropic::UserProfileCyberRequirements?,
|
|
19
|
+
status: Anthropic::Models::user_profile_program_status,
|
|
20
|
+
tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier]
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
requirements: Anthropic::UserProfileCyberRequirements?,
|
|
25
|
+
status: Anthropic::Models::user_profile_program_status,
|
|
26
|
+
tiers: ::Hash[Symbol, Anthropic::UserProfileCyberTier]
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_cyber_requirements =
|
|
4
|
+
{ data_retention: bool, human_review: bool }
|
|
5
|
+
|
|
6
|
+
class UserProfileCyberRequirements < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor data_retention: bool
|
|
8
|
+
|
|
9
|
+
attr_accessor human_review: bool
|
|
10
|
+
|
|
11
|
+
def initialize: (data_retention: bool, human_review: bool) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { data_retention: bool, human_review: bool }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_cyber_tier =
|
|
4
|
+
{ status: Anthropic::Models::UserProfileCyberTier::status }
|
|
5
|
+
|
|
6
|
+
class UserProfileCyberTier < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor status: Anthropic::Models::UserProfileCyberTier::status
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
status: Anthropic::Models::UserProfileCyberTier::status
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
status: Anthropic::Models::UserProfileCyberTier::status
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type status = :active | :inactive
|
|
18
|
+
|
|
19
|
+
module Status
|
|
20
|
+
extend Anthropic::Internal::Type::Enum
|
|
21
|
+
|
|
22
|
+
ACTIVE: :active
|
|
23
|
+
INACTIVE: :inactive
|
|
24
|
+
|
|
25
|
+
def self?.values: -> ::Array[Anthropic::Models::UserProfileCyberTier::status]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_delete_params =
|
|
4
|
+
{ user_profile_id: String, workspace_id: String }
|
|
5
|
+
& Anthropic::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class UserProfileDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor user_profile_id: String
|
|
12
|
+
|
|
13
|
+
attr_reader workspace_id: String?
|
|
14
|
+
|
|
15
|
+
def workspace_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
user_profile_id: String,
|
|
19
|
+
?workspace_id: String,
|
|
20
|
+
?request_options: Anthropic::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
user_profile_id: String,
|
|
25
|
+
workspace_id: String,
|
|
26
|
+
request_options: Anthropic::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_efs_feature =
|
|
4
|
+
{ status: Anthropic::Models::UserProfileEfsFeature::status }
|
|
5
|
+
|
|
6
|
+
class UserProfileEfsFeature < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor status: Anthropic::Models::UserProfileEfsFeature::status
|
|
8
|
+
|
|
9
|
+
def initialize: (
|
|
10
|
+
status: Anthropic::Models::UserProfileEfsFeature::status
|
|
11
|
+
) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> {
|
|
14
|
+
status: Anthropic::Models::UserProfileEfsFeature::status
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type status = :active | :inactive
|
|
18
|
+
|
|
19
|
+
module Status
|
|
20
|
+
extend Anthropic::Internal::Type::Enum
|
|
21
|
+
|
|
22
|
+
ACTIVE: :active
|
|
23
|
+
INACTIVE: :inactive
|
|
24
|
+
|
|
25
|
+
def self?.values: -> ::Array[Anthropic::Models::UserProfileEfsFeature::status]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_efs_program =
|
|
4
|
+
{
|
|
5
|
+
features: ::Hash[Symbol, Anthropic::UserProfileEfsFeature],
|
|
6
|
+
status: Anthropic::Models::user_profile_program_status
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class UserProfileEfsProgram < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor features: ::Hash[Symbol, Anthropic::UserProfileEfsFeature]
|
|
11
|
+
|
|
12
|
+
attr_accessor status: Anthropic::Models::user_profile_program_status
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
features: ::Hash[Symbol, Anthropic::UserProfileEfsFeature],
|
|
16
|
+
status: Anthropic::Models::user_profile_program_status
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
features: ::Hash[Symbol, Anthropic::UserProfileEfsFeature],
|
|
21
|
+
status: Anthropic::Models::user_profile_program_status
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_external_user_account_status =
|
|
4
|
+
:active | :suspended | :blocked
|
|
5
|
+
|
|
6
|
+
module UserProfileExternalUserAccountStatus
|
|
7
|
+
extend Anthropic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
# The platform has neither restricted nor barred the account of the entity that the user profile represents.
|
|
10
|
+
ACTIVE: :active
|
|
11
|
+
|
|
12
|
+
# The platform has restricted the account of the entity that the user profile represents and may restore it.
|
|
13
|
+
SUSPENDED: :suspended
|
|
14
|
+
|
|
15
|
+
# The platform has barred the account of the entity that the user profile represents.
|
|
16
|
+
BLOCKED: :blocked
|
|
17
|
+
|
|
18
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_external_user_account_status]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_external_user_details =
|
|
4
|
+
{
|
|
5
|
+
account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
6
|
+
country: String?,
|
|
7
|
+
email_hash: String?,
|
|
8
|
+
entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
9
|
+
name_hash: String?,
|
|
10
|
+
onboarded_at: Time?,
|
|
11
|
+
reference_id: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class UserProfileExternalUserDetails < Anthropic::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor account_status: Anthropic::Models::user_profile_external_user_account_status?
|
|
16
|
+
|
|
17
|
+
attr_accessor country: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor email_hash: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor entity_type: Anthropic::Models::user_profile_external_user_entity_type?
|
|
22
|
+
|
|
23
|
+
attr_accessor name_hash: String?
|
|
24
|
+
|
|
25
|
+
attr_accessor onboarded_at: Time?
|
|
26
|
+
|
|
27
|
+
attr_accessor reference_id: String?
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
31
|
+
country: String?,
|
|
32
|
+
email_hash: String?,
|
|
33
|
+
entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
34
|
+
name_hash: String?,
|
|
35
|
+
onboarded_at: Time?,
|
|
36
|
+
reference_id: String?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
41
|
+
country: String?,
|
|
42
|
+
email_hash: String?,
|
|
43
|
+
entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
44
|
+
name_hash: String?,
|
|
45
|
+
onboarded_at: Time?,
|
|
46
|
+
reference_id: String?
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_external_user_details_params =
|
|
4
|
+
{
|
|
5
|
+
account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
6
|
+
country: String?,
|
|
7
|
+
email_hash: String?,
|
|
8
|
+
entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
9
|
+
name_hash: String?,
|
|
10
|
+
onboarded_at: Time,
|
|
11
|
+
reference_id: String?
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class UserProfileExternalUserDetailsParams < Anthropic::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor account_status: Anthropic::Models::user_profile_external_user_account_status?
|
|
16
|
+
|
|
17
|
+
attr_accessor country: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor email_hash: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor entity_type: Anthropic::Models::user_profile_external_user_entity_type?
|
|
22
|
+
|
|
23
|
+
attr_accessor name_hash: String?
|
|
24
|
+
|
|
25
|
+
attr_reader onboarded_at: Time?
|
|
26
|
+
|
|
27
|
+
def onboarded_at=: (Time) -> Time
|
|
28
|
+
|
|
29
|
+
attr_accessor reference_id: String?
|
|
30
|
+
|
|
31
|
+
def initialize: (
|
|
32
|
+
?account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
33
|
+
?country: String?,
|
|
34
|
+
?email_hash: String?,
|
|
35
|
+
?entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
36
|
+
?name_hash: String?,
|
|
37
|
+
?onboarded_at: Time,
|
|
38
|
+
?reference_id: String?
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
account_status: Anthropic::Models::user_profile_external_user_account_status?,
|
|
43
|
+
country: String?,
|
|
44
|
+
email_hash: String?,
|
|
45
|
+
entity_type: Anthropic::Models::user_profile_external_user_entity_type?,
|
|
46
|
+
name_hash: String?,
|
|
47
|
+
onboarded_at: Time,
|
|
48
|
+
reference_id: String?
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_external_user_entity_type =
|
|
4
|
+
:individual | :business | :non_profit | :government
|
|
5
|
+
|
|
6
|
+
module UserProfileExternalUserEntityType
|
|
7
|
+
extend Anthropic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
INDIVIDUAL: :individual
|
|
10
|
+
BUSINESS: :business
|
|
11
|
+
NON_PROFIT: :non_profit
|
|
12
|
+
GOVERNMENT: :government
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_external_user_entity_type]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_list_order = :asc | :desc
|
|
4
|
+
|
|
5
|
+
module UserProfileListOrder
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
# Oldest first when `order_by` is `created_at`, or names in ascending order when `order_by` is `name`.
|
|
9
|
+
ASC: :asc
|
|
10
|
+
|
|
11
|
+
# Newest first when `order_by` is `created_at`, or names in descending order when `order_by` is `name`. This is the default.
|
|
12
|
+
DESC: :desc
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_list_order]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_list_order_by = :created_at | :name
|
|
4
|
+
|
|
5
|
+
module UserProfileListOrderBy
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
# Sort by when each user profile was created. This is the default.
|
|
9
|
+
CREATED_AT: :created_at
|
|
10
|
+
|
|
11
|
+
# Sort by `name`, ignoring the case of ASCII letters. Profiles without a name come last in either direction.
|
|
12
|
+
NAME: :name
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_list_order_by]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|