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,60 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_list_params =
|
|
4
|
+
{
|
|
5
|
+
limit: Integer,
|
|
6
|
+
order: Anthropic::Models::user_profile_list_order,
|
|
7
|
+
order_by: Anthropic::Models::user_profile_list_order_by,
|
|
8
|
+
page: String,
|
|
9
|
+
workspace_id: String
|
|
10
|
+
}
|
|
11
|
+
& Anthropic::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class UserProfileListParams < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader limit: Integer?
|
|
18
|
+
|
|
19
|
+
def limit=: (Integer) -> Integer
|
|
20
|
+
|
|
21
|
+
attr_reader order: Anthropic::Models::user_profile_list_order?
|
|
22
|
+
|
|
23
|
+
def order=: (
|
|
24
|
+
Anthropic::Models::user_profile_list_order
|
|
25
|
+
) -> Anthropic::Models::user_profile_list_order
|
|
26
|
+
|
|
27
|
+
attr_reader order_by: Anthropic::Models::user_profile_list_order_by?
|
|
28
|
+
|
|
29
|
+
def order_by=: (
|
|
30
|
+
Anthropic::Models::user_profile_list_order_by
|
|
31
|
+
) -> Anthropic::Models::user_profile_list_order_by
|
|
32
|
+
|
|
33
|
+
attr_reader page: String?
|
|
34
|
+
|
|
35
|
+
def page=: (String) -> String
|
|
36
|
+
|
|
37
|
+
attr_reader workspace_id: String?
|
|
38
|
+
|
|
39
|
+
def workspace_id=: (String) -> String
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?limit: Integer,
|
|
43
|
+
?order: Anthropic::Models::user_profile_list_order,
|
|
44
|
+
?order_by: Anthropic::Models::user_profile_list_order_by,
|
|
45
|
+
?page: String,
|
|
46
|
+
?workspace_id: String,
|
|
47
|
+
?request_options: Anthropic::request_opts
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
limit: Integer,
|
|
52
|
+
order: Anthropic::Models::user_profile_list_order,
|
|
53
|
+
order_by: Anthropic::Models::user_profile_list_order_by,
|
|
54
|
+
page: String,
|
|
55
|
+
workspace_id: String,
|
|
56
|
+
request_options: Anthropic::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_program_status = :active | :pending | :rejected
|
|
4
|
+
|
|
5
|
+
module UserProfileProgramStatus
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
# The profile is in the program.
|
|
9
|
+
ACTIVE: :active
|
|
10
|
+
|
|
11
|
+
# The profile is not in the program yet, and something is still awaited.
|
|
12
|
+
PENDING: :pending
|
|
13
|
+
|
|
14
|
+
# The profile is not in the program and nothing is awaited: Anthropic has declined, or has withdrawn an earlier approval.
|
|
15
|
+
REJECTED: :rejected
|
|
16
|
+
|
|
17
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_program_status]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_programs =
|
|
4
|
+
{
|
|
5
|
+
cyber: Anthropic::UserProfileCyberProgram?,
|
|
6
|
+
efs: Anthropic::UserProfileEfsProgram?
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class UserProfilePrograms < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor cyber: Anthropic::UserProfileCyberProgram?
|
|
11
|
+
|
|
12
|
+
attr_accessor efs: Anthropic::UserProfileEfsProgram?
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
cyber: Anthropic::UserProfileCyberProgram?,
|
|
16
|
+
efs: Anthropic::UserProfileEfsProgram?
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
cyber: Anthropic::UserProfileCyberProgram?,
|
|
21
|
+
efs: Anthropic::UserProfileEfsProgram?
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_retrieve_params =
|
|
4
|
+
{ user_profile_id: String, workspace_id: String }
|
|
5
|
+
& Anthropic::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class UserProfileRetrieveParams < 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,59 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_update_params =
|
|
4
|
+
{
|
|
5
|
+
user_profile_id: String,
|
|
6
|
+
access_type: Anthropic::Models::user_profile_access_type?,
|
|
7
|
+
external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
|
|
8
|
+
metadata: ::Hash[Symbol, String],
|
|
9
|
+
name: String?,
|
|
10
|
+
workspace_id: String
|
|
11
|
+
}
|
|
12
|
+
& Anthropic::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class UserProfileUpdateParams < Anthropic::Internal::Type::BaseModel
|
|
15
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor user_profile_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor access_type: Anthropic::Models::user_profile_access_type?
|
|
21
|
+
|
|
22
|
+
attr_reader external_user_details: Anthropic::UserProfileExternalUserDetailsParams?
|
|
23
|
+
|
|
24
|
+
def external_user_details=: (
|
|
25
|
+
Anthropic::UserProfileExternalUserDetailsParams
|
|
26
|
+
) -> Anthropic::UserProfileExternalUserDetailsParams
|
|
27
|
+
|
|
28
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
29
|
+
|
|
30
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
31
|
+
|
|
32
|
+
attr_accessor name: String?
|
|
33
|
+
|
|
34
|
+
attr_reader workspace_id: String?
|
|
35
|
+
|
|
36
|
+
def workspace_id=: (String) -> String
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
user_profile_id: String,
|
|
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
|
+
user_profile_id: String,
|
|
50
|
+
access_type: Anthropic::Models::user_profile_access_type?,
|
|
51
|
+
external_user_details: Anthropic::UserProfileExternalUserDetailsParams,
|
|
52
|
+
metadata: ::Hash[Symbol, String],
|
|
53
|
+
name: String?,
|
|
54
|
+
workspace_id: String,
|
|
55
|
+
request_options: Anthropic::RequestOptions
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module UserProfiles
|
|
4
|
+
type action_url_create_params =
|
|
5
|
+
{
|
|
6
|
+
user_profile_id: String,
|
|
7
|
+
action: Anthropic::UserProfiles::UserProfileEnrollEndUserAction,
|
|
8
|
+
workspace_id: String
|
|
9
|
+
}
|
|
10
|
+
& Anthropic::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class ActionURLCreateParams < Anthropic::Internal::Type::BaseModel
|
|
13
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor user_profile_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor action: Anthropic::UserProfiles::UserProfileEnrollEndUserAction
|
|
19
|
+
|
|
20
|
+
attr_reader workspace_id: String?
|
|
21
|
+
|
|
22
|
+
def workspace_id=: (String) -> String
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
user_profile_id: String,
|
|
26
|
+
action: Anthropic::UserProfiles::UserProfileEnrollEndUserAction,
|
|
27
|
+
?workspace_id: String,
|
|
28
|
+
?request_options: Anthropic::request_opts
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
user_profile_id: String,
|
|
33
|
+
action: Anthropic::UserProfiles::UserProfileEnrollEndUserAction,
|
|
34
|
+
workspace_id: String,
|
|
35
|
+
request_options: Anthropic::RequestOptions
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class UserProfileActionURL = UserProfiles::UserProfileActionURL
|
|
4
|
+
|
|
5
|
+
module UserProfiles
|
|
6
|
+
type user_profile_action_url =
|
|
7
|
+
{ expires_at: Time, type: :user_profile_action_url, url: String }
|
|
8
|
+
|
|
9
|
+
class UserProfileActionURL < Anthropic::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor expires_at: Time
|
|
11
|
+
|
|
12
|
+
attr_accessor type: :user_profile_action_url
|
|
13
|
+
|
|
14
|
+
attr_accessor url: String
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
expires_at: Time,
|
|
18
|
+
url: String,
|
|
19
|
+
?type: :user_profile_action_url
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
expires_at: Time,
|
|
24
|
+
type: :user_profile_action_url,
|
|
25
|
+
url: String
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
class UserProfileEnrollEndUserAction = UserProfiles::UserProfileEnrollEndUserAction
|
|
4
|
+
|
|
5
|
+
module UserProfiles
|
|
6
|
+
type user_profile_enroll_end_user_action = { type: :enroll_end_user }
|
|
7
|
+
|
|
8
|
+
class UserProfileEnrollEndUserAction < 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
|
data/sig/anthropic/models.rbs
CHANGED
|
@@ -489,6 +489,8 @@ module Anthropic
|
|
|
489
489
|
|
|
490
490
|
class DeletedSkill = Anthropic::Models::DeletedSkill
|
|
491
491
|
|
|
492
|
+
class DeletedUserProfile = Anthropic::Models::DeletedUserProfile
|
|
493
|
+
|
|
492
494
|
class Diagnostics = Anthropic::Models::Diagnostics
|
|
493
495
|
|
|
494
496
|
class DiagnosticsParam = Anthropic::Models::DiagnosticsParam
|
|
@@ -765,6 +767,48 @@ module Anthropic
|
|
|
765
767
|
|
|
766
768
|
class UserLocation = Anthropic::Models::UserLocation
|
|
767
769
|
|
|
770
|
+
class UserProfile = Anthropic::Models::UserProfile
|
|
771
|
+
|
|
772
|
+
module UserProfileAccessType = Anthropic::Models::UserProfileAccessType
|
|
773
|
+
|
|
774
|
+
class UserProfileCreateParams = Anthropic::Models::UserProfileCreateParams
|
|
775
|
+
|
|
776
|
+
class UserProfileCyberProgram = Anthropic::Models::UserProfileCyberProgram
|
|
777
|
+
|
|
778
|
+
class UserProfileCyberRequirements = Anthropic::Models::UserProfileCyberRequirements
|
|
779
|
+
|
|
780
|
+
class UserProfileCyberTier = Anthropic::Models::UserProfileCyberTier
|
|
781
|
+
|
|
782
|
+
class UserProfileDeleteParams = Anthropic::Models::UserProfileDeleteParams
|
|
783
|
+
|
|
784
|
+
class UserProfileEfsFeature = Anthropic::Models::UserProfileEfsFeature
|
|
785
|
+
|
|
786
|
+
class UserProfileEfsProgram = Anthropic::Models::UserProfileEfsProgram
|
|
787
|
+
|
|
788
|
+
module UserProfileExternalUserAccountStatus = Anthropic::Models::UserProfileExternalUserAccountStatus
|
|
789
|
+
|
|
790
|
+
class UserProfileExternalUserDetails = Anthropic::Models::UserProfileExternalUserDetails
|
|
791
|
+
|
|
792
|
+
class UserProfileExternalUserDetailsParams = Anthropic::Models::UserProfileExternalUserDetailsParams
|
|
793
|
+
|
|
794
|
+
module UserProfileExternalUserEntityType = Anthropic::Models::UserProfileExternalUserEntityType
|
|
795
|
+
|
|
796
|
+
module UserProfileListOrder = Anthropic::Models::UserProfileListOrder
|
|
797
|
+
|
|
798
|
+
module UserProfileListOrderBy = Anthropic::Models::UserProfileListOrderBy
|
|
799
|
+
|
|
800
|
+
class UserProfileListParams = Anthropic::Models::UserProfileListParams
|
|
801
|
+
|
|
802
|
+
class UserProfilePrograms = Anthropic::Models::UserProfilePrograms
|
|
803
|
+
|
|
804
|
+
module UserProfileProgramStatus = Anthropic::Models::UserProfileProgramStatus
|
|
805
|
+
|
|
806
|
+
class UserProfileRetrieveParams = Anthropic::Models::UserProfileRetrieveParams
|
|
807
|
+
|
|
808
|
+
module UserProfiles = Anthropic::Models::UserProfiles
|
|
809
|
+
|
|
810
|
+
class UserProfileUpdateParams = Anthropic::Models::UserProfileUpdateParams
|
|
811
|
+
|
|
768
812
|
class WebFetchBlock = Anthropic::Models::WebFetchBlock
|
|
769
813
|
|
|
770
814
|
class WebFetchBlockParam = Anthropic::Models::WebFetchBlockParam
|
|
@@ -36,7 +36,7 @@ module Anthropic
|
|
|
36
36
|
?request_options: Anthropic::request_opts
|
|
37
37
|
) -> Anthropic::Beta::BetaMessage
|
|
38
38
|
|
|
39
|
-
def
|
|
39
|
+
def stream_raw: (
|
|
40
40
|
max_tokens: Integer,
|
|
41
41
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
42
42
|
model: Anthropic::Models::model,
|
|
@@ -66,59 +66,59 @@ module Anthropic
|
|
|
66
66
|
?user_profile_id: String,
|
|
67
67
|
?workspace_id: String,
|
|
68
68
|
?request_options: Anthropic::request_opts
|
|
69
|
-
) -> Anthropic::
|
|
69
|
+
) -> Anthropic::Internal::Type::BaseStream[bot, Anthropic::Models::Beta::beta_raw_message_stream_event]
|
|
70
70
|
|
|
71
|
-
def
|
|
72
|
-
max_tokens: Integer,
|
|
71
|
+
def count_tokens: (
|
|
73
72
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
74
73
|
model: Anthropic::Models::model,
|
|
75
74
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
76
75
|
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
77
|
-
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
78
76
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
79
|
-
?diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
80
|
-
?fallback_credit_token: Anthropic::Models::Beta::MessageCreateParams::fallback_credit_token?,
|
|
81
|
-
?fallbacks: Anthropic::Models::Beta::beta_fallbacks_param?,
|
|
82
|
-
?inference_geo: String?,
|
|
83
77
|
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
84
|
-
?metadata: Anthropic::Beta::BetaMetadata,
|
|
85
78
|
?output_config: Anthropic::Beta::BetaOutputConfig,
|
|
86
79
|
?output_format: Anthropic::Beta::BetaJSONOutputFormat?,
|
|
87
|
-
?
|
|
88
|
-
?
|
|
89
|
-
?stop_sequences: ::Array[String],
|
|
90
|
-
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
91
|
-
?temperature: Float,
|
|
80
|
+
?speed: Anthropic::Models::Beta::MessageCountTokensParams::speed?,
|
|
81
|
+
?system_: Anthropic::Models::Beta::MessageCountTokensParams::system_,
|
|
92
82
|
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
93
83
|
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
94
|
-
?tools: ::Array[Anthropic::Models::Beta::
|
|
95
|
-
?top_k: Integer,
|
|
96
|
-
?top_p: Float,
|
|
84
|
+
?tools: ::Array[Anthropic::Models::Beta::MessageCountTokensParams::tool],
|
|
97
85
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
98
86
|
?user_profile_id: String,
|
|
99
87
|
?workspace_id: String,
|
|
100
88
|
?request_options: Anthropic::request_opts
|
|
101
|
-
) -> Anthropic::
|
|
89
|
+
) -> Anthropic::Beta::BetaMessageTokensCount
|
|
102
90
|
|
|
103
|
-
def
|
|
91
|
+
def stream: (
|
|
92
|
+
max_tokens: Integer,
|
|
104
93
|
messages: ::Array[Anthropic::Beta::BetaMessageParam],
|
|
105
94
|
model: Anthropic::Models::model,
|
|
106
95
|
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
107
96
|
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
97
|
+
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
108
98
|
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
99
|
+
?diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
100
|
+
?fallback_credit_token: Anthropic::Models::Beta::MessageCreateParams::fallback_credit_token?,
|
|
101
|
+
?fallbacks: Anthropic::Models::Beta::beta_fallbacks_param?,
|
|
102
|
+
?inference_geo: String?,
|
|
109
103
|
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
104
|
+
?metadata: Anthropic::Beta::BetaMetadata,
|
|
110
105
|
?output_config: Anthropic::Beta::BetaOutputConfig,
|
|
111
106
|
?output_format: Anthropic::Beta::BetaJSONOutputFormat?,
|
|
112
|
-
?
|
|
113
|
-
?
|
|
107
|
+
?service_tier: Anthropic::Models::Beta::MessageCreateParams::service_tier,
|
|
108
|
+
?speed: Anthropic::Models::Beta::MessageCreateParams::speed?,
|
|
109
|
+
?stop_sequences: ::Array[String],
|
|
110
|
+
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
111
|
+
?temperature: Float,
|
|
114
112
|
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
115
113
|
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
116
|
-
?tools: ::Array[Anthropic::Models::Beta::
|
|
114
|
+
?tools: ::Array[Anthropic::Models::Beta::beta_tool_union],
|
|
115
|
+
?top_k: Integer,
|
|
116
|
+
?top_p: Float,
|
|
117
117
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
118
118
|
?user_profile_id: String,
|
|
119
119
|
?workspace_id: String,
|
|
120
120
|
?request_options: Anthropic::request_opts
|
|
121
|
-
) -> Anthropic::
|
|
121
|
+
) -> Anthropic::Helpers::Streaming::MessageStream
|
|
122
122
|
|
|
123
123
|
def initialize: (client: Anthropic::Client) -> void
|
|
124
124
|
end
|
|
@@ -22,7 +22,7 @@ module Anthropic
|
|
|
22
22
|
?speeds: ::Array[Anthropic::Models::Beta::Organization::Analytics::CostReportListParams::speed]?,
|
|
23
23
|
?user_ids: ::Array[String]?,
|
|
24
24
|
?request_options: Anthropic::request_opts
|
|
25
|
-
) -> Anthropic::Internal::
|
|
25
|
+
) -> Anthropic::Internal::ReportPageCursor[Anthropic::Beta::Organization::BetaAnalyticsCostReportTimeBucket]
|
|
26
26
|
|
|
27
27
|
def initialize: (client: Anthropic::Client) -> void
|
|
28
28
|
end
|
|
@@ -22,7 +22,7 @@ module Anthropic
|
|
|
22
22
|
?speeds: ::Array[Anthropic::Models::Beta::Organization::Analytics::UsageReportListParams::speed]?,
|
|
23
23
|
?user_ids: ::Array[String]?,
|
|
24
24
|
?request_options: Anthropic::request_opts
|
|
25
|
-
) -> Anthropic::Internal::
|
|
25
|
+
) -> Anthropic::Internal::ReportPageCursor[Anthropic::Beta::Organization::BetaAnalyticsUsageReportTimeBucket]
|
|
26
26
|
|
|
27
27
|
def initialize: (client: Anthropic::Client) -> void
|
|
28
28
|
end
|
|
@@ -25,7 +25,7 @@ module Anthropic
|
|
|
25
25
|
?speeds: ::Array[Anthropic::Models::Beta::Organization::Analytics::UserCostReportListParams::speed]?,
|
|
26
26
|
?user_ids: ::Array[String]?,
|
|
27
27
|
?request_options: Anthropic::request_opts
|
|
28
|
-
) -> Anthropic::Internal::
|
|
28
|
+
) -> Anthropic::Internal::ReportPageCursor[Anthropic::Beta::Organization::BetaAnalyticsCostUsersItem]
|
|
29
29
|
|
|
30
30
|
def initialize: (client: Anthropic::Client) -> void
|
|
31
31
|
end
|
|
@@ -25,7 +25,7 @@ module Anthropic
|
|
|
25
25
|
?speeds: ::Array[Anthropic::Models::Beta::Organization::Analytics::UserUsageReportListParams::speed]?,
|
|
26
26
|
?user_ids: ::Array[String]?,
|
|
27
27
|
?request_options: Anthropic::request_opts
|
|
28
|
-
) -> Anthropic::Internal::
|
|
28
|
+
) -> Anthropic::Internal::ReportPageCursor[Anthropic::Beta::Organization::BetaAnalyticsUsageUsersItem]
|
|
29
29
|
|
|
30
30
|
def initialize: (client: Anthropic::Client) -> void
|
|
31
31
|
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Resources
|
|
3
|
+
class Beta
|
|
4
|
+
class Organization
|
|
5
|
+
class Webhooks
|
|
6
|
+
def create: (
|
|
7
|
+
enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event],
|
|
8
|
+
url: String,
|
|
9
|
+
?description: String,
|
|
10
|
+
?name: String,
|
|
11
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
12
|
+
?request_options: Anthropic::request_opts
|
|
13
|
+
) -> Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint
|
|
14
|
+
|
|
15
|
+
def retrieve: (
|
|
16
|
+
String webhook_endpoint_id,
|
|
17
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
18
|
+
?request_options: Anthropic::request_opts
|
|
19
|
+
) -> Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint
|
|
20
|
+
|
|
21
|
+
def update: (
|
|
22
|
+
String webhook_endpoint_id,
|
|
23
|
+
?description: String,
|
|
24
|
+
?enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event],
|
|
25
|
+
?name: String,
|
|
26
|
+
?state: Anthropic::Models::Beta::Organization::WebhookUpdateParams::state,
|
|
27
|
+
?url: String,
|
|
28
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
29
|
+
?request_options: Anthropic::request_opts
|
|
30
|
+
) -> Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint
|
|
31
|
+
|
|
32
|
+
def list: (
|
|
33
|
+
?after_id: String?,
|
|
34
|
+
?before_id: String?,
|
|
35
|
+
?limit: Integer,
|
|
36
|
+
?order: Anthropic::Models::Beta::Organization::WebhookListParams::order?,
|
|
37
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
38
|
+
?request_options: Anthropic::request_opts
|
|
39
|
+
) -> Anthropic::Internal::Page[Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint]
|
|
40
|
+
|
|
41
|
+
def delete: (
|
|
42
|
+
String webhook_endpoint_id,
|
|
43
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
44
|
+
?request_options: Anthropic::request_opts
|
|
45
|
+
) -> Anthropic::Beta::Organization::BetaDeletedOrganizationWebhookEndpoint
|
|
46
|
+
|
|
47
|
+
def regenerate_signing_secret: (
|
|
48
|
+
String webhook_endpoint_id,
|
|
49
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
50
|
+
?request_options: Anthropic::request_opts
|
|
51
|
+
) -> Anthropic::Beta::Organization::BetaOrganizationWebhookEndpointSigningSecret
|
|
52
|
+
|
|
53
|
+
def initialize: (client: Anthropic::Client) -> void
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -4,6 +4,13 @@ module Anthropic
|
|
|
4
4
|
class Organization
|
|
5
5
|
class Workspaces
|
|
6
6
|
class RateLimits
|
|
7
|
+
def update: (
|
|
8
|
+
String rate_limit_id,
|
|
9
|
+
workspace_id: String,
|
|
10
|
+
limits: ::Array[Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimitUpdateValue],
|
|
11
|
+
?request_options: Anthropic::request_opts
|
|
12
|
+
) -> Anthropic::Beta::Organization::Workspaces::BetaWorkspaceRateLimit
|
|
13
|
+
|
|
7
14
|
def list: (
|
|
8
15
|
String workspace_id,
|
|
9
16
|
?group_type: Anthropic::Models::Beta::Organization::Workspaces::RateLimitListParams::group_type?,
|
|
@@ -34,6 +34,8 @@ module Anthropic
|
|
|
34
34
|
|
|
35
35
|
attr_reader telemetry_destinations: Anthropic::Resources::Beta::Organization::TelemetryDestinations
|
|
36
36
|
|
|
37
|
+
attr_reader webhooks: Anthropic::Resources::Beta::Organization::Webhooks
|
|
38
|
+
|
|
37
39
|
def retrieve: (
|
|
38
40
|
?request_options: Anthropic::request_opts
|
|
39
41
|
) -> Anthropic::Beta::BetaOrganization
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Resources
|
|
3
|
+
class Beta
|
|
4
|
+
class UserProfiles
|
|
5
|
+
class ActionURLs
|
|
6
|
+
def create: (
|
|
7
|
+
String user_profile_id,
|
|
8
|
+
action: Anthropic::Beta::UserProfiles::BetaUserProfileEnrollEndUserAction,
|
|
9
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
10
|
+
?workspace_id: String,
|
|
11
|
+
?request_options: Anthropic::request_opts
|
|
12
|
+
) -> Anthropic::Beta::UserProfiles::BetaUserProfileActionURL
|
|
13
|
+
|
|
14
|
+
def initialize: (client: Anthropic::Client) -> void
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -2,6 +2,8 @@ module Anthropic
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Beta
|
|
4
4
|
class UserProfiles
|
|
5
|
+
attr_reader action_urls: Anthropic::Resources::Beta::UserProfiles::ActionURLs
|
|
6
|
+
|
|
5
7
|
def create: (
|
|
6
8
|
?access_type: Anthropic::Models::Beta::UserProfileCreateParams::access_type,
|
|
7
9
|
?external_id: String?,
|
|
@@ -44,6 +46,13 @@ module Anthropic
|
|
|
44
46
|
?request_options: Anthropic::request_opts
|
|
45
47
|
) -> Anthropic::Internal::PageCursor[Anthropic::Beta::BetaUserProfile]
|
|
46
48
|
|
|
49
|
+
def delete: (
|
|
50
|
+
String user_profile_id,
|
|
51
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
52
|
+
?workspace_id: String,
|
|
53
|
+
?request_options: Anthropic::request_opts
|
|
54
|
+
) -> Anthropic::Beta::BetaDeletedUserProfile
|
|
55
|
+
|
|
47
56
|
def create_enrollment_url: (
|
|
48
57
|
String user_profile_id,
|
|
49
58
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
@@ -28,7 +28,7 @@ module Anthropic
|
|
|
28
28
|
?request_options: Anthropic::request_opts
|
|
29
29
|
) -> Anthropic::Message
|
|
30
30
|
|
|
31
|
-
def
|
|
31
|
+
def stream_raw: (
|
|
32
32
|
max_tokens: Integer,
|
|
33
33
|
messages: ::Array[Anthropic::MessageParam],
|
|
34
34
|
model: Anthropic::Models::model,
|
|
@@ -51,9 +51,24 @@ module Anthropic
|
|
|
51
51
|
?user_profile_id: String,
|
|
52
52
|
?workspace_id: String,
|
|
53
53
|
?request_options: Anthropic::request_opts
|
|
54
|
-
) -> Anthropic::
|
|
54
|
+
) -> Anthropic::Internal::Type::BaseStream[bot, Anthropic::Models::raw_message_stream_event]
|
|
55
55
|
|
|
56
|
-
def
|
|
56
|
+
def count_tokens: (
|
|
57
|
+
messages: ::Array[Anthropic::MessageParam],
|
|
58
|
+
model: Anthropic::Models::model,
|
|
59
|
+
?cache_control: Anthropic::CacheControlEphemeral?,
|
|
60
|
+
?output_config: Anthropic::OutputConfig,
|
|
61
|
+
?speed: Anthropic::Models::MessageCountTokensParams::speed?,
|
|
62
|
+
?system_: Anthropic::Models::MessageCountTokensParams::system_,
|
|
63
|
+
?thinking: Anthropic::Models::thinking_config_param,
|
|
64
|
+
?tool_choice: Anthropic::Models::tool_choice,
|
|
65
|
+
?tools: ::Array[Anthropic::Models::message_count_tokens_tool],
|
|
66
|
+
?user_profile_id: String,
|
|
67
|
+
?workspace_id: String,
|
|
68
|
+
?request_options: Anthropic::request_opts
|
|
69
|
+
) -> Anthropic::MessageTokensCount
|
|
70
|
+
|
|
71
|
+
def stream: (
|
|
57
72
|
max_tokens: Integer,
|
|
58
73
|
messages: ::Array[Anthropic::MessageParam],
|
|
59
74
|
model: Anthropic::Models::model,
|
|
@@ -76,22 +91,7 @@ module Anthropic
|
|
|
76
91
|
?user_profile_id: String,
|
|
77
92
|
?workspace_id: String,
|
|
78
93
|
?request_options: Anthropic::request_opts
|
|
79
|
-
) -> Anthropic::
|
|
80
|
-
|
|
81
|
-
def count_tokens: (
|
|
82
|
-
messages: ::Array[Anthropic::MessageParam],
|
|
83
|
-
model: Anthropic::Models::model,
|
|
84
|
-
?cache_control: Anthropic::CacheControlEphemeral?,
|
|
85
|
-
?output_config: Anthropic::OutputConfig,
|
|
86
|
-
?speed: Anthropic::Models::MessageCountTokensParams::speed?,
|
|
87
|
-
?system_: Anthropic::Models::MessageCountTokensParams::system_,
|
|
88
|
-
?thinking: Anthropic::Models::thinking_config_param,
|
|
89
|
-
?tool_choice: Anthropic::Models::tool_choice,
|
|
90
|
-
?tools: ::Array[Anthropic::Models::message_count_tokens_tool],
|
|
91
|
-
?user_profile_id: String,
|
|
92
|
-
?workspace_id: String,
|
|
93
|
-
?request_options: Anthropic::request_opts
|
|
94
|
-
) -> Anthropic::MessageTokensCount
|
|
94
|
+
) -> Anthropic::Helpers::Streaming::MessageStream
|
|
95
95
|
|
|
96
96
|
def initialize: (client: Anthropic::Client) -> void
|
|
97
97
|
end
|