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,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#regenerate_signing_secret
|
|
8
|
+
class WebhookRegenerateSigningSecretParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute webhook_endpoint_id
|
|
13
|
+
# ID of the webhook endpoint.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :webhook_endpoint_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute betas
|
|
19
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
20
|
+
# header.
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
23
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
24
|
+
|
|
25
|
+
# @!method initialize(webhook_endpoint_id:, betas: nil, request_options: {})
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Organization::WebhookRegenerateSigningSecretParams}
|
|
28
|
+
# for more details.
|
|
29
|
+
#
|
|
30
|
+
# @param webhook_endpoint_id [String] ID of the webhook endpoint.
|
|
31
|
+
#
|
|
32
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
33
|
+
#
|
|
34
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#retrieve
|
|
8
|
+
class WebhookRetrieveParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute webhook_endpoint_id
|
|
13
|
+
# ID of the webhook endpoint.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :webhook_endpoint_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute betas
|
|
19
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
20
|
+
# header.
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
23
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
24
|
+
|
|
25
|
+
# @!method initialize(webhook_endpoint_id:, betas: nil, request_options: {})
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Organization::WebhookRetrieveParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param webhook_endpoint_id [String] ID of the webhook endpoint.
|
|
30
|
+
#
|
|
31
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
32
|
+
#
|
|
33
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#update
|
|
8
|
+
class WebhookUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute webhook_endpoint_id
|
|
13
|
+
# ID of the webhook endpoint.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :webhook_endpoint_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute description
|
|
19
|
+
# Notes about the endpoint.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :description, String
|
|
23
|
+
|
|
24
|
+
# @!attribute enabled_events
|
|
25
|
+
# The event types to deliver to the endpoint. Replaces the whole set; an empty
|
|
26
|
+
# list leaves it unchanged.
|
|
27
|
+
#
|
|
28
|
+
# @return [Array<Symbol, Anthropic::Models::Beta::Organization::WebhookUpdateParams::EnabledEvent>, nil]
|
|
29
|
+
optional :enabled_events,
|
|
30
|
+
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent] }
|
|
31
|
+
|
|
32
|
+
# @!attribute name
|
|
33
|
+
# A short label for the endpoint.
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
optional :name, String
|
|
37
|
+
|
|
38
|
+
# @!attribute state
|
|
39
|
+
# `disabled` stops deliveries. `enabled` resumes them and clears
|
|
40
|
+
# `disabled_reason`. Events that happen while the endpoint is disabled are never
|
|
41
|
+
# delivered.
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Anthropic::Models::Beta::Organization::WebhookUpdateParams::State, nil]
|
|
44
|
+
optional :state, enum: -> { Anthropic::Beta::Organization::WebhookUpdateParams::State }
|
|
45
|
+
|
|
46
|
+
# @!attribute url
|
|
47
|
+
# The HTTPS URL that deliveries are sent to.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :url, String
|
|
51
|
+
|
|
52
|
+
# @!attribute betas
|
|
53
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
54
|
+
# header.
|
|
55
|
+
#
|
|
56
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
57
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
58
|
+
|
|
59
|
+
# @!method initialize(webhook_endpoint_id:, description: nil, enabled_events: nil, name: nil, state: nil, url: nil, betas: nil, request_options: {})
|
|
60
|
+
# Some parameter documentations has been truncated, see
|
|
61
|
+
# {Anthropic::Models::Beta::Organization::WebhookUpdateParams} for more details.
|
|
62
|
+
#
|
|
63
|
+
# @param webhook_endpoint_id [String] ID of the webhook endpoint.
|
|
64
|
+
#
|
|
65
|
+
# @param description [String] Notes about the endpoint.
|
|
66
|
+
#
|
|
67
|
+
# @param enabled_events [Array<Symbol, Anthropic::Models::Beta::Organization::WebhookUpdateParams::EnabledEvent>] The event types to deliver to the endpoint. Replaces the whole set; an empty lis
|
|
68
|
+
#
|
|
69
|
+
# @param name [String] A short label for the endpoint.
|
|
70
|
+
#
|
|
71
|
+
# @param state [Symbol, Anthropic::Models::Beta::Organization::WebhookUpdateParams::State] `disabled` stops deliveries. `enabled` resumes them and clears `disabled_reason`
|
|
72
|
+
#
|
|
73
|
+
# @param url [String] The HTTPS URL that deliveries are sent to.
|
|
74
|
+
#
|
|
75
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
76
|
+
#
|
|
77
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
78
|
+
|
|
79
|
+
module EnabledEvent
|
|
80
|
+
extend Anthropic::Internal::Type::Enum
|
|
81
|
+
|
|
82
|
+
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
83
|
+
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# `disabled` stops deliveries. `enabled` resumes them and clears
|
|
90
|
+
# `disabled_reason`. Events that happen while the endpoint is disabled are never
|
|
91
|
+
# delivered.
|
|
92
|
+
module State
|
|
93
|
+
extend Anthropic::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
DISABLED = :disabled
|
|
96
|
+
ENABLED = :enabled
|
|
97
|
+
|
|
98
|
+
# @!method self.values
|
|
99
|
+
# @return [Array<Symbol>]
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
module Organization
|
|
7
7
|
module Workspaces
|
|
8
|
-
# @see Anthropic::Resources::Beta::Organization::Workspaces::RateLimits#
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::Workspaces::RateLimits#update
|
|
9
9
|
class BetaWorkspaceRateLimit < Anthropic::Internal::Type::BaseModel
|
|
10
10
|
# @!attribute group
|
|
11
11
|
# The rate-limit group this entry's limits apply to. Its `type` equals
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module Workspaces
|
|
8
|
+
# Rate limiter type.
|
|
9
|
+
module BetaWorkspaceRateLimitType
|
|
10
|
+
extend Anthropic::Internal::Type::Enum
|
|
11
|
+
|
|
12
|
+
FAST_ITPMCA = :fast_itpmca
|
|
13
|
+
FAST_OTPM = :fast_otpm
|
|
14
|
+
INPUT_TOKENS_PER_MINUTE = :input_tokens_per_minute
|
|
15
|
+
INPUT_TOKENS_PER_MINUTE_CACHE_AWARE = :input_tokens_per_minute_cache_aware
|
|
16
|
+
OUTPUT_TOKENS_PER_MINUTE = :output_tokens_per_minute
|
|
17
|
+
REQUESTS_PER_MINUTE = :requests_per_minute
|
|
18
|
+
TOKENS_PER_DAY = :tokens_per_day
|
|
19
|
+
TOKENS_PER_MINUTE = :tokens_per_minute
|
|
20
|
+
TOOL_USES_PER_SECOND = :tool_uses_per_second
|
|
21
|
+
|
|
22
|
+
# @!method self.values
|
|
23
|
+
# @return [Array<Symbol>]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit_update_value.rb
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module Workspaces
|
|
8
|
+
class BetaWorkspaceRateLimitUpdateValue < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute type
|
|
10
|
+
# Rate limiter type.
|
|
11
|
+
#
|
|
12
|
+
# @return [Symbol, Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitType]
|
|
13
|
+
required :type, enum: -> { Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimitType }
|
|
14
|
+
|
|
15
|
+
# @!attribute value
|
|
16
|
+
# New limit value. Set to null to clear the workspace override and fall back to
|
|
17
|
+
# the organization limit.
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
required :value, Integer, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(type:, value:)
|
|
23
|
+
# Some parameter documentations has been truncated, see
|
|
24
|
+
# {Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitUpdateValue}
|
|
25
|
+
# for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param type [Symbol, Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitType] Rate limiter type.
|
|
28
|
+
#
|
|
29
|
+
# @param value [Integer, nil] New limit value. Set to null to clear the workspace override and fall back to th
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module Workspaces
|
|
8
|
+
# @see Anthropic::Resources::Beta::Organization::Workspaces::RateLimits#update
|
|
9
|
+
class RateLimitUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute workspace_id
|
|
14
|
+
# The ID of the workspace.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :workspace_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute rate_limit_id
|
|
20
|
+
# The `id` of the organization's rate-limit entry to set overrides for.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :rate_limit_id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute limits
|
|
26
|
+
# Limits to set or clear. Unspecified limit types are unchanged.
|
|
27
|
+
#
|
|
28
|
+
# @return [Array<Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitUpdateValue>]
|
|
29
|
+
required :limits,
|
|
30
|
+
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimitUpdateValue] }
|
|
31
|
+
|
|
32
|
+
# @!method initialize(workspace_id:, rate_limit_id:, limits:, request_options: {})
|
|
33
|
+
# @param workspace_id [String] The ID of the workspace.
|
|
34
|
+
#
|
|
35
|
+
# @param rate_limit_id [String] The `id` of the organization's rate-limit entry to set overrides for.
|
|
36
|
+
#
|
|
37
|
+
# @param limits [Array<Anthropic::Models::Beta::Organization::Workspaces::BetaWorkspaceRateLimitUpdateValue>] Limits to set or clear. Unspecified limit types are unchanged.
|
|
38
|
+
#
|
|
39
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -15,8 +15,7 @@ module Anthropic
|
|
|
15
15
|
required :user_profile_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
19
|
-
# `user-profiles-2026-08-18`, or `user-profiles-2026-09-04` in this header.
|
|
18
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
20
19
|
#
|
|
21
20
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
22
21
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -39,7 +38,7 @@ module Anthropic
|
|
|
39
38
|
#
|
|
40
39
|
# @param user_profile_id [String] The ID of the user profile to create an enrollment URL for (`uprof_...`).
|
|
41
40
|
#
|
|
42
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
43
42
|
#
|
|
44
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
45
44
|
#
|
|
@@ -19,17 +19,19 @@ module Anthropic
|
|
|
19
19
|
|
|
20
20
|
# @!attribute external_id
|
|
21
21
|
# Platform's own identifier for this user. Not enforced unique. Maximum 255
|
|
22
|
-
# characters.
|
|
23
|
-
# `user-profiles-2026-08-18` beta headers;
|
|
24
|
-
# `external_user_details.reference_id
|
|
22
|
+
# characters. Legacy field, accepted only under the `user-profiles-2026-03-24` and
|
|
23
|
+
# `user-profiles-2026-08-18` beta headers; without one of them, send
|
|
24
|
+
# `external_user_details.reference_id`.
|
|
25
25
|
#
|
|
26
26
|
# @return [String, nil]
|
|
27
27
|
optional :external_id, String, nil?: true
|
|
28
28
|
|
|
29
29
|
# @!attribute external_user_details
|
|
30
30
|
# Details about the entity this profile represents, as the platform states them.
|
|
31
|
-
# Every field is optional.
|
|
32
|
-
#
|
|
31
|
+
# Every field is optional. Not accepted under the legacy
|
|
32
|
+
# `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta headers, which
|
|
33
|
+
# take the top-level `external_id` (and, under `user-profiles-2026-08-18`,
|
|
34
|
+
# `external_user_onboarded_at`) instead.
|
|
33
35
|
#
|
|
34
36
|
# @return [Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams, nil]
|
|
35
37
|
optional :external_user_details, -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams }
|
|
@@ -38,9 +40,9 @@ module Anthropic
|
|
|
38
40
|
# When the entity this profile represents opened its account with the platform, in
|
|
39
41
|
# RFC 3339 format: for an `application` profile, when the end-user signed up; for
|
|
40
42
|
# a `passthrough` profile, when the company became the platform's customer. Must
|
|
41
|
-
# be a complete timestamp no more than 1 minute in the future. Optional.
|
|
42
|
-
# under the `user-profiles-2026-08-18` beta header;
|
|
43
|
-
#
|
|
43
|
+
# be a complete timestamp no more than 1 minute in the future. Optional. Legacy
|
|
44
|
+
# field, accepted only under the `user-profiles-2026-08-18` beta header; without a
|
|
45
|
+
# legacy header, send `external_user_details.onboarded_at`.
|
|
44
46
|
#
|
|
45
47
|
# @return [Time, nil]
|
|
46
48
|
optional :external_user_onboarded_at, Time
|
|
@@ -63,8 +65,7 @@ module Anthropic
|
|
|
63
65
|
optional :name, String, nil?: true
|
|
64
66
|
|
|
65
67
|
# @!attribute betas
|
|
66
|
-
#
|
|
67
|
-
# `user-profiles-2026-08-18`, or `user-profiles-2026-09-04` in this header.
|
|
68
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
68
69
|
#
|
|
69
70
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
70
71
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -96,7 +97,7 @@ module Anthropic
|
|
|
96
97
|
#
|
|
97
98
|
# @param name [String, nil] Optional for all profiles. Real-world name of the entity this profile represents
|
|
98
99
|
#
|
|
99
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
100
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
100
101
|
#
|
|
101
102
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
102
103
|
#
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::UserProfiles#delete
|
|
7
|
+
class UserProfileDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute user_profile_id
|
|
12
|
+
# The ID of the user profile to delete (`uprof_...`).
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :user_profile_id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute betas
|
|
18
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
22
|
+
|
|
23
|
+
# @!attribute workspace_id
|
|
24
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
25
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
26
|
+
#
|
|
27
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
28
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
29
|
+
# match that Workspace.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :workspace_id, String
|
|
33
|
+
|
|
34
|
+
# @!method initialize(user_profile_id:, betas: nil, workspace_id: nil, request_options: {})
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Anthropic::Models::Beta::UserProfileDeleteParams} for more details.
|
|
37
|
+
#
|
|
38
|
+
# @param user_profile_id [String] The ID of the user profile to delete (`uprof_...`).
|
|
39
|
+
#
|
|
40
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
41
|
+
#
|
|
42
|
+
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -38,8 +38,7 @@ module Anthropic
|
|
|
38
38
|
optional :page, String
|
|
39
39
|
|
|
40
40
|
# @!attribute betas
|
|
41
|
-
#
|
|
42
|
-
# `user-profiles-2026-08-18`, or `user-profiles-2026-09-04` in this header.
|
|
41
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
43
42
|
#
|
|
44
43
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
45
44
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -67,7 +66,7 @@ module Anthropic
|
|
|
67
66
|
#
|
|
68
67
|
# @param page [String] The cursor for the page to return, taken from `next_page` in a previous response
|
|
69
68
|
#
|
|
70
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
69
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
71
70
|
#
|
|
72
71
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
73
72
|
#
|
|
@@ -15,8 +15,7 @@ module Anthropic
|
|
|
15
15
|
required :user_profile_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
19
|
-
# `user-profiles-2026-08-18`, or `user-profiles-2026-09-04` in this header.
|
|
18
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
20
19
|
#
|
|
21
20
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
22
21
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -38,7 +37,7 @@ module Anthropic
|
|
|
38
37
|
#
|
|
39
38
|
# @param user_profile_id [String] The ID of the user profile to get (`uprof_...`).
|
|
40
39
|
#
|
|
41
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
40
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
42
41
|
#
|
|
43
42
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
44
43
|
#
|
|
@@ -22,9 +22,9 @@ module Anthropic
|
|
|
22
22
|
|
|
23
23
|
# @!attribute external_id
|
|
24
24
|
# If present, replaces the stored external_id. Omit to leave unchanged. Maximum
|
|
25
|
-
# 255 characters.
|
|
26
|
-
# `user-profiles-2026-08-18` beta headers;
|
|
27
|
-
# `external_user_details.reference_id
|
|
25
|
+
# 255 characters. Legacy field, accepted only under the `user-profiles-2026-03-24`
|
|
26
|
+
# and `user-profiles-2026-08-18` beta headers; without one of them, send
|
|
27
|
+
# `external_user_details.reference_id`.
|
|
28
28
|
#
|
|
29
29
|
# @return [String, nil]
|
|
30
30
|
optional :external_id, String, nil?: true
|
|
@@ -32,8 +32,9 @@ module Anthropic
|
|
|
32
32
|
# @!attribute external_user_details
|
|
33
33
|
# Details about the entity this profile represents, as the platform states them.
|
|
34
34
|
# Each field sent replaces the stored value; omit a field to leave it unchanged.
|
|
35
|
-
# Once set, a value cannot be cleared and `null` is rejected.
|
|
36
|
-
# `user-profiles-2026-
|
|
35
|
+
# Once set, a value cannot be cleared and `null` is rejected. Not accepted under
|
|
36
|
+
# the legacy `user-profiles-2026-03-24` and `user-profiles-2026-08-18` beta
|
|
37
|
+
# headers.
|
|
37
38
|
#
|
|
38
39
|
# @return [Anthropic::Models::Beta::BetaUserProfileExternalUserDetailsParams, nil]
|
|
39
40
|
optional :external_user_details, -> { Anthropic::Beta::BetaUserProfileExternalUserDetailsParams }
|
|
@@ -41,9 +42,9 @@ module Anthropic
|
|
|
41
42
|
# @!attribute external_user_onboarded_at
|
|
42
43
|
# If present, replaces the stored account creation time. Omit to leave unchanged;
|
|
43
44
|
# once set, the value cannot be cleared and `null` is rejected. Must be a complete
|
|
44
|
-
# RFC 3339 timestamp no more than 1 minute in the future.
|
|
45
|
-
# `user-profiles-2026-08-18` beta header;
|
|
46
|
-
# `external_user_details.onboarded_at
|
|
45
|
+
# RFC 3339 timestamp no more than 1 minute in the future. Legacy field, accepted
|
|
46
|
+
# only under the `user-profiles-2026-08-18` beta header; without a legacy header,
|
|
47
|
+
# send `external_user_details.onboarded_at`.
|
|
47
48
|
#
|
|
48
49
|
# @return [Time, nil]
|
|
49
50
|
optional :external_user_onboarded_at, Time
|
|
@@ -65,8 +66,7 @@ module Anthropic
|
|
|
65
66
|
optional :name, String, nil?: true
|
|
66
67
|
|
|
67
68
|
# @!attribute betas
|
|
68
|
-
#
|
|
69
|
-
# `user-profiles-2026-08-18`, or `user-profiles-2026-09-04` in this header.
|
|
69
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
70
70
|
#
|
|
71
71
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
72
72
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -100,7 +100,7 @@ module Anthropic
|
|
|
100
100
|
#
|
|
101
101
|
# @param name [String, nil] If present, replaces the stored name. Omit to leave unchanged. Maximum 255 chara
|
|
102
102
|
#
|
|
103
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
103
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
104
104
|
#
|
|
105
105
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
106
106
|
#
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module UserProfiles
|
|
7
|
+
# @see Anthropic::Resources::Beta::UserProfiles::ActionURLs#create
|
|
8
|
+
class ActionURLCreateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute user_profile_id
|
|
13
|
+
# The ID of the user profile the action is for (`uprof_...`).
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :user_profile_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute action
|
|
19
|
+
# The action that the person who opens the URL takes.
|
|
20
|
+
#
|
|
21
|
+
# @return [Anthropic::Models::Beta::UserProfiles::BetaUserProfileEnrollEndUserAction]
|
|
22
|
+
required :action, -> { Anthropic::Beta::UserProfiles::BetaUserProfileEnrollEndUserAction }
|
|
23
|
+
|
|
24
|
+
# @!attribute betas
|
|
25
|
+
# Optional header to specify the beta version(s) you want to use.
|
|
26
|
+
#
|
|
27
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
28
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
29
|
+
|
|
30
|
+
# @!attribute workspace_id
|
|
31
|
+
# Optional header to select the Workspace for this request. The value is a
|
|
32
|
+
# Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
|
|
33
|
+
#
|
|
34
|
+
# Only needed for credentials that can act on more than one Workspace. A
|
|
35
|
+
# credential that belongs to a specific Workspace may omit it; if sent, it must
|
|
36
|
+
# match that Workspace.
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :workspace_id, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(user_profile_id:, action:, betas: nil, workspace_id: nil, request_options: {})
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {Anthropic::Models::Beta::UserProfiles::ActionURLCreateParams} for more details.
|
|
44
|
+
#
|
|
45
|
+
# @param user_profile_id [String] The ID of the user profile the action is for (`uprof_...`).
|
|
46
|
+
#
|
|
47
|
+
# @param action [Anthropic::Models::Beta::UserProfiles::BetaUserProfileEnrollEndUserAction] The action that the person who opens the URL takes.
|
|
48
|
+
#
|
|
49
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] Optional header to specify the beta version(s) you want to use.
|
|
50
|
+
#
|
|
51
|
+
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
52
|
+
#
|
|
53
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module UserProfiles
|
|
7
|
+
# @see Anthropic::Resources::Beta::UserProfiles::ActionURLs#create
|
|
8
|
+
class BetaUserProfileActionURL < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute expires_at
|
|
10
|
+
# When the URL stops working, in RFC 3339 format.
|
|
11
|
+
#
|
|
12
|
+
# @return [Time]
|
|
13
|
+
required :expires_at, Time
|
|
14
|
+
|
|
15
|
+
# @!attribute type
|
|
16
|
+
# Object type. Always `user_profile_action_url`.
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, :user_profile_action_url]
|
|
19
|
+
required :type, const: :user_profile_action_url
|
|
20
|
+
|
|
21
|
+
# @!attribute url
|
|
22
|
+
# The URL to give to the person who takes the action. Anyone who holds it can open
|
|
23
|
+
# it until `expires_at`.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :url, String
|
|
27
|
+
|
|
28
|
+
# @!method initialize(expires_at:, url:, type: :user_profile_action_url)
|
|
29
|
+
# A URL to give to the person who takes the requested action.
|
|
30
|
+
#
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {Anthropic::Models::Beta::UserProfiles::BetaUserProfileActionURL} for more
|
|
33
|
+
# details.
|
|
34
|
+
#
|
|
35
|
+
# @param expires_at [Time] When the URL stops working, in RFC 3339 format.
|
|
36
|
+
#
|
|
37
|
+
# @param url [String] The URL to give to the person who takes the action. Anyone who holds it can open
|
|
38
|
+
#
|
|
39
|
+
# @param type [Symbol, :user_profile_action_url] Object type. Always `user_profile_action_url`.
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module UserProfiles
|
|
7
|
+
class BetaUserProfileEnrollEndUserAction < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute type
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, :enroll_end_user]
|
|
11
|
+
required :type, const: :enroll_end_user
|
|
12
|
+
|
|
13
|
+
# @!method initialize(type: :enroll_end_user)
|
|
14
|
+
# The end-user that the profile represents enrolls in a program.
|
|
15
|
+
#
|
|
16
|
+
# @param type [Symbol, :enroll_end_user]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|