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
|
@@ -99,6 +99,12 @@ module Anthropic
|
|
|
99
99
|
|
|
100
100
|
variant :"session.budget_reached", -> { Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData }
|
|
101
101
|
|
|
102
|
+
variant :"user_profile.enforcement_action_opened",
|
|
103
|
+
-> { Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData }
|
|
104
|
+
|
|
105
|
+
variant :"user_profile.enforcement_action_resolved",
|
|
106
|
+
-> { Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData }
|
|
107
|
+
|
|
102
108
|
module Type
|
|
103
109
|
extend Anthropic::Internal::Type::Enum
|
|
104
110
|
|
|
@@ -146,13 +152,15 @@ module Anthropic
|
|
|
146
152
|
MEMORY_STORE_ARCHIVED = :"memory_store.archived"
|
|
147
153
|
MEMORY_STORE_DELETED = :"memory_store.deleted"
|
|
148
154
|
SESSION_BUDGET_REACHED = :"session.budget_reached"
|
|
155
|
+
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
156
|
+
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
149
157
|
|
|
150
158
|
# @!method self.values
|
|
151
159
|
# @return [Array<Symbol>]
|
|
152
160
|
end
|
|
153
161
|
|
|
154
162
|
# @!method self.variants
|
|
155
|
-
# @return [Array(Anthropic::Models::Beta::BetaWebhookSessionCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionPendingEventData, Anthropic::Models::Beta::BetaWebhookSessionRunningEventData, Anthropic::Models::Beta::BetaWebhookSessionIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionRequiresActionEventData, Anthropic::Models::Beta::BetaWebhookSessionArchivedEventData, Anthropic::Models::Beta::BetaWebhookSessionDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRescheduledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRunStartedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionOutcomeEvaluationEndedEventData, Anthropic::Models::Beta::BetaWebhookVaultCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialRefreshFailedEventData, Anthropic::Models::Beta::BetaWebhookSessionUpdatedEventData, Anthropic::Models::Beta::BetaWebhookAgentCreatedEventData, Anthropic::Models::Beta::BetaWebhookAgentArchivedEventData, Anthropic::Models::Beta::BetaWebhookAgentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentPausedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunFailedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentCreatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUnpausedEventData, Anthropic::Models::Beta::BetaWebhookAgentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentArchivedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunStartedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunSucceededEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentCreatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentArchivedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentDeletedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreCreatedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreArchivedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionBudgetReachedEventData)]
|
|
163
|
+
# @return [Array(Anthropic::Models::Beta::BetaWebhookSessionCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionPendingEventData, Anthropic::Models::Beta::BetaWebhookSessionRunningEventData, Anthropic::Models::Beta::BetaWebhookSessionIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionRequiresActionEventData, Anthropic::Models::Beta::BetaWebhookSessionArchivedEventData, Anthropic::Models::Beta::BetaWebhookSessionDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRescheduledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRunStartedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionOutcomeEvaluationEndedEventData, Anthropic::Models::Beta::BetaWebhookVaultCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialRefreshFailedEventData, Anthropic::Models::Beta::BetaWebhookSessionUpdatedEventData, Anthropic::Models::Beta::BetaWebhookAgentCreatedEventData, Anthropic::Models::Beta::BetaWebhookAgentArchivedEventData, Anthropic::Models::Beta::BetaWebhookAgentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentPausedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunFailedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentCreatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUnpausedEventData, Anthropic::Models::Beta::BetaWebhookAgentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentArchivedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunStartedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunSucceededEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentCreatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentArchivedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentDeletedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreCreatedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreArchivedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionBudgetReachedEventData, Anthropic::Models::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData, Anthropic::Models::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData)]
|
|
156
164
|
|
|
157
165
|
# Creates a new instance of the variant class whose `type` matches the given
|
|
158
166
|
# value, passing the remaining arguments to its constructor.
|
|
@@ -171,8 +179,10 @@ module Anthropic
|
|
|
171
179
|
#
|
|
172
180
|
# @option args [String] :vault_id ID of the vault that owns this credential.
|
|
173
181
|
#
|
|
182
|
+
# @option args [String] :enforcement_action_id ID (`enac_...`) of the enforcement action that was opened or resolved.
|
|
183
|
+
#
|
|
174
184
|
# @raise [ArgumentError]
|
|
175
|
-
# @return [Anthropic::Models::Beta::BetaWebhookSessionCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionPendingEventData, Anthropic::Models::Beta::BetaWebhookSessionRunningEventData, Anthropic::Models::Beta::BetaWebhookSessionIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionRequiresActionEventData, Anthropic::Models::Beta::BetaWebhookSessionArchivedEventData, Anthropic::Models::Beta::BetaWebhookSessionDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRescheduledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRunStartedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionOutcomeEvaluationEndedEventData, Anthropic::Models::Beta::BetaWebhookVaultCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialRefreshFailedEventData, Anthropic::Models::Beta::BetaWebhookSessionUpdatedEventData, Anthropic::Models::Beta::BetaWebhookAgentCreatedEventData, Anthropic::Models::Beta::BetaWebhookAgentArchivedEventData, Anthropic::Models::Beta::BetaWebhookAgentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentPausedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunFailedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentCreatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUnpausedEventData, Anthropic::Models::Beta::BetaWebhookAgentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentArchivedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunStartedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunSucceededEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentCreatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentArchivedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentDeletedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreCreatedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreArchivedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionBudgetReachedEventData]
|
|
185
|
+
# @return [Anthropic::Models::Beta::BetaWebhookSessionCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionPendingEventData, Anthropic::Models::Beta::BetaWebhookSessionRunningEventData, Anthropic::Models::Beta::BetaWebhookSessionIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionRequiresActionEventData, Anthropic::Models::Beta::BetaWebhookSessionArchivedEventData, Anthropic::Models::Beta::BetaWebhookSessionDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRescheduledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusRunStartedEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionStatusTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadCreatedEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadIdledEventData, Anthropic::Models::Beta::BetaWebhookSessionThreadTerminatedEventData, Anthropic::Models::Beta::BetaWebhookSessionOutcomeEvaluationEndedEventData, Anthropic::Models::Beta::BetaWebhookVaultCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialCreatedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialArchivedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialDeletedEventData, Anthropic::Models::Beta::BetaWebhookVaultCredentialRefreshFailedEventData, Anthropic::Models::Beta::BetaWebhookSessionUpdatedEventData, Anthropic::Models::Beta::BetaWebhookAgentCreatedEventData, Anthropic::Models::Beta::BetaWebhookAgentArchivedEventData, Anthropic::Models::Beta::BetaWebhookAgentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentPausedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunFailedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentCreatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentUnpausedEventData, Anthropic::Models::Beta::BetaWebhookAgentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentArchivedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunStartedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentDeletedEventData, Anthropic::Models::Beta::BetaWebhookDeploymentRunSucceededEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentCreatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentUpdatedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentArchivedEventData, Anthropic::Models::Beta::BetaWebhookEnvironmentDeletedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreCreatedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreArchivedEventData, Anthropic::Models::Beta::BetaWebhookMemoryStoreDeletedEventData, Anthropic::Models::Beta::BetaWebhookSessionBudgetReachedEventData, Anthropic::Models::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData, Anthropic::Models::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData]
|
|
176
186
|
def self.new(type:, **args)
|
|
177
187
|
case type.to_sym
|
|
178
188
|
when :"session.created"
|
|
@@ -263,6 +273,10 @@ module Anthropic
|
|
|
263
273
|
Anthropic::Beta::BetaWebhookMemoryStoreDeletedEventData.new(**args)
|
|
264
274
|
when :"session.budget_reached"
|
|
265
275
|
Anthropic::Beta::BetaWebhookSessionBudgetReachedEventData.new(**args)
|
|
276
|
+
when :"user_profile.enforcement_action_opened"
|
|
277
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData.new(**args)
|
|
278
|
+
when :"user_profile.enforcement_action_resolved"
|
|
279
|
+
Anthropic::Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData.new(**args)
|
|
266
280
|
else
|
|
267
281
|
raise ArgumentError, "unknown type: #{type}"
|
|
268
282
|
end
|
data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_opened_event_data.rb
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaWebhookUserProfileEnforcementActionOpenedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# ID of the user profile the enforcement action is on.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute enforcement_action_id
|
|
14
|
+
# ID (`enac_...`) of the enforcement action that was opened or resolved.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :enforcement_action_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute organization_id
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :organization_id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, :"user_profile.enforcement_action_opened"]
|
|
27
|
+
required :type, const: :"user_profile.enforcement_action_opened"
|
|
28
|
+
|
|
29
|
+
# @!method initialize(id:, enforcement_action_id:, organization_id:, type: :"user_profile.enforcement_action_opened")
|
|
30
|
+
# @param id [String] ID of the user profile the enforcement action is on.
|
|
31
|
+
#
|
|
32
|
+
# @param enforcement_action_id [String] ID (`enac_...`) of the enforcement action that was opened or resolved.
|
|
33
|
+
#
|
|
34
|
+
# @param organization_id [String]
|
|
35
|
+
#
|
|
36
|
+
# @param type [Symbol, :"user_profile.enforcement_action_opened"]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
BetaWebhookUserProfileEnforcementActionOpenedEventData =
|
|
41
|
+
Beta::BetaWebhookUserProfileEnforcementActionOpenedEventData
|
|
42
|
+
end
|
|
43
|
+
end
|
data/lib/anthropic/models/beta/beta_webhook_user_profile_enforcement_action_resolved_event_data.rb
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaWebhookUserProfileEnforcementActionResolvedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# ID of the user profile the enforcement action is on.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute enforcement_action_id
|
|
14
|
+
# ID (`enac_...`) of the enforcement action that was opened or resolved.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :enforcement_action_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute organization_id
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :organization_id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, :"user_profile.enforcement_action_resolved"]
|
|
27
|
+
required :type, const: :"user_profile.enforcement_action_resolved"
|
|
28
|
+
|
|
29
|
+
# @!method initialize(id:, enforcement_action_id:, organization_id:, type: :"user_profile.enforcement_action_resolved")
|
|
30
|
+
# @param id [String] ID of the user profile the enforcement action is on.
|
|
31
|
+
#
|
|
32
|
+
# @param enforcement_action_id [String] ID (`enac_...`) of the enforcement action that was opened or resolved.
|
|
33
|
+
#
|
|
34
|
+
# @param organization_id [String]
|
|
35
|
+
#
|
|
36
|
+
# @param type [Symbol, :"user_profile.enforcement_action_resolved"]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
BetaWebhookUserProfileEnforcementActionResolvedEventData =
|
|
41
|
+
Beta::BetaWebhookUserProfileEnforcementActionResolvedEventData
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -9,9 +9,10 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to archive (
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# The ID of the memory store to archive (`memstore_...`).
|
|
13
|
+
#
|
|
14
|
+
# Archiving can't be undone. Archiving a store that is already archived returns it
|
|
15
|
+
# unchanged.
|
|
15
16
|
#
|
|
16
17
|
# @return [String]
|
|
17
18
|
required :memory_store_id, String
|
|
@@ -38,7 +39,7 @@ module Anthropic
|
|
|
38
39
|
# Some parameter documentations has been truncated, see
|
|
39
40
|
# {Anthropic::Models::Beta::MemoryStoreArchiveParams} for more details.
|
|
40
41
|
#
|
|
41
|
-
# @param memory_store_id [String] ID of the memory store to archive (
|
|
42
|
+
# @param memory_store_id [String] The ID of the memory store to archive (`memstore_...`).
|
|
42
43
|
#
|
|
43
44
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
44
45
|
#
|
|
@@ -9,16 +9,23 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute name
|
|
12
|
-
#
|
|
13
|
-
# characters.
|
|
14
|
-
#
|
|
15
|
-
#
|
|
12
|
+
# The name of the memory store, 1 to 255 characters long, without control
|
|
13
|
+
# characters. Names don't have to be unique in a workspace.
|
|
14
|
+
#
|
|
15
|
+
# In a session, the store's directory under `/mnt/memory/` is based on this name.
|
|
16
|
+
# The name is lowercased and every run of characters other than ASCII letters and
|
|
17
|
+
# digits becomes one hyphen. The session's memory store resource gives the exact
|
|
18
|
+
# path in `mount_path`.
|
|
19
|
+
#
|
|
20
|
+
# See the
|
|
21
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#how-the-agent-accesses-memory)
|
|
22
|
+
# to learn more about how agents access memory stores.
|
|
16
23
|
#
|
|
17
24
|
# @return [String]
|
|
18
25
|
required :name, String
|
|
19
26
|
|
|
20
27
|
# @!attribute description
|
|
21
|
-
# Free-text description of what the store contains, up to
|
|
28
|
+
# Free-text description of what the store contains, up to 1,024 characters.
|
|
22
29
|
# Included in the agent's system prompt when the store is attached, so word it to
|
|
23
30
|
# be useful to the agent.
|
|
24
31
|
#
|
|
@@ -26,9 +33,11 @@ module Anthropic
|
|
|
26
33
|
optional :description, String
|
|
27
34
|
|
|
28
35
|
# @!attribute metadata
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
36
|
+
# Key-value pairs for your own use, such as the end user that the store belongs
|
|
37
|
+
# to. The agent doesn't see them.
|
|
38
|
+
#
|
|
39
|
+
# A store has at most 16 pairs. Keys are 1 to 64 characters long and values at
|
|
40
|
+
# most 512 characters.
|
|
32
41
|
#
|
|
33
42
|
# @return [Hash{Symbol=>String}, nil]
|
|
34
43
|
optional :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
@@ -55,11 +64,11 @@ module Anthropic
|
|
|
55
64
|
# Some parameter documentations has been truncated, see
|
|
56
65
|
# {Anthropic::Models::Beta::MemoryStoreCreateParams} for more details.
|
|
57
66
|
#
|
|
58
|
-
# @param name [String]
|
|
67
|
+
# @param name [String] The name of the memory store, 1 to 255 characters long, without control characte
|
|
59
68
|
#
|
|
60
|
-
# @param description [String] Free-text description of what the store contains, up to
|
|
69
|
+
# @param description [String] Free-text description of what the store contains, up to 1,024 characters. Includ
|
|
61
70
|
#
|
|
62
|
-
# @param metadata [Hash{Symbol=>String}]
|
|
71
|
+
# @param metadata [Hash{Symbol=>String}] Key-value pairs for your own use, such as the end user that the store belongs to
|
|
63
72
|
#
|
|
64
73
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
65
74
|
#
|
|
@@ -9,9 +9,10 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# The ID of the memory store to delete (`memstore_...`).
|
|
13
|
+
#
|
|
14
|
+
# Deleting a store also deletes all its memories and memory versions. It can't be
|
|
15
|
+
# undone.
|
|
15
16
|
#
|
|
16
17
|
# @return [String]
|
|
17
18
|
required :memory_store_id, String
|
|
@@ -38,7 +39,7 @@ module Anthropic
|
|
|
38
39
|
# Some parameter documentations has been truncated, see
|
|
39
40
|
# {Anthropic::Models::Beta::MemoryStoreDeleteParams} for more details.
|
|
40
41
|
#
|
|
41
|
-
# @param memory_store_id [String] ID of the memory store to
|
|
42
|
+
# @param memory_store_id [String] The ID of the memory store to delete (`memstore_...`).
|
|
42
43
|
#
|
|
43
44
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
44
45
|
#
|
|
@@ -9,15 +9,13 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute created_at_gte
|
|
12
|
-
# Return only stores
|
|
13
|
-
# on the wire as `created_at[gte]`.
|
|
12
|
+
# Return only memory stores created at or after this time (inclusive).
|
|
14
13
|
#
|
|
15
14
|
# @return [Time, nil]
|
|
16
15
|
optional :created_at_gte, Time
|
|
17
16
|
|
|
18
17
|
# @!attribute created_at_lte
|
|
19
|
-
# Return only stores
|
|
20
|
-
# Sent on the wire as `created_at[lte]`.
|
|
18
|
+
# Return only memory stores created at or before this time (inclusive).
|
|
21
19
|
#
|
|
22
20
|
# @return [Time, nil]
|
|
23
21
|
optional :created_at_lte, Time
|
|
@@ -37,8 +35,8 @@ module Anthropic
|
|
|
37
35
|
optional :limit, Integer
|
|
38
36
|
|
|
39
37
|
# @!attribute page
|
|
40
|
-
#
|
|
41
|
-
#
|
|
38
|
+
# The `next_page` value from a previous response, to get the next page. Omit it to
|
|
39
|
+
# get the first page.
|
|
42
40
|
#
|
|
43
41
|
# @return [String, nil]
|
|
44
42
|
optional :page, String
|
|
@@ -65,15 +63,15 @@ module Anthropic
|
|
|
65
63
|
# Some parameter documentations has been truncated, see
|
|
66
64
|
# {Anthropic::Models::Beta::MemoryStoreListParams} for more details.
|
|
67
65
|
#
|
|
68
|
-
# @param created_at_gte [Time] Return only stores
|
|
66
|
+
# @param created_at_gte [Time] Return only memory stores created at or after this time (inclusive).
|
|
69
67
|
#
|
|
70
|
-
# @param created_at_lte [Time] Return only stores
|
|
68
|
+
# @param created_at_lte [Time] Return only memory stores created at or before this time (inclusive).
|
|
71
69
|
#
|
|
72
70
|
# @param include_archived [Boolean] When `true`, archived stores are included in the results. Defaults to `false` (a
|
|
73
71
|
#
|
|
74
72
|
# @param limit [Integer] Maximum number of stores to return per page. Must be between 1 and 100. Defaults
|
|
75
73
|
#
|
|
76
|
-
# @param page [String]
|
|
74
|
+
# @param page [String] The `next_page` value from a previous response, to get the next page. Omit it to
|
|
77
75
|
#
|
|
78
76
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
79
77
|
#
|
|
@@ -9,8 +9,7 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to retrieve (
|
|
13
|
-
# Enumerate IDs via `GET /v1/memory_stores`.
|
|
12
|
+
# The ID of the memory store to retrieve (`memstore_...`).
|
|
14
13
|
#
|
|
15
14
|
# @return [String]
|
|
16
15
|
required :memory_store_id, String
|
|
@@ -37,7 +36,7 @@ module Anthropic
|
|
|
37
36
|
# Some parameter documentations has been truncated, see
|
|
38
37
|
# {Anthropic::Models::Beta::MemoryStoreRetrieveParams} for more details.
|
|
39
38
|
#
|
|
40
|
-
# @param memory_store_id [String] ID of the memory store to retrieve (
|
|
39
|
+
# @param memory_store_id [String] The ID of the memory store to retrieve (`memstore_...`).
|
|
41
40
|
#
|
|
42
41
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
43
42
|
#
|
|
@@ -9,32 +9,37 @@ module Anthropic
|
|
|
9
9
|
include Anthropic::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute memory_store_id
|
|
12
|
-
# ID of the memory store to update (
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# The ID of the memory store to update (`memstore_...`).
|
|
13
|
+
#
|
|
14
|
+
# The request fails with HTTP status 400 if the store is archived.
|
|
15
15
|
#
|
|
16
16
|
# @return [String]
|
|
17
17
|
required :memory_store_id, String
|
|
18
18
|
|
|
19
19
|
# @!attribute description
|
|
20
|
-
# New description for the store, up to
|
|
20
|
+
# New description for the store, up to 1,024 characters. Pass an empty string to
|
|
21
21
|
# clear it.
|
|
22
22
|
#
|
|
23
23
|
# @return [String, nil]
|
|
24
24
|
optional :description, String, nil?: true
|
|
25
25
|
|
|
26
26
|
# @!attribute metadata
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
27
|
+
# Changes to apply to the memory store's metadata. Keys you leave out keep their
|
|
28
|
+
# values.
|
|
29
|
+
#
|
|
30
|
+
# Set a key to a string to add or replace it, or to `null` to remove it. After the
|
|
31
|
+
# change, the metadata can hold at most 16 key-value pairs. Keys are 1 to 64
|
|
32
|
+
# characters long and values at most 512 characters.
|
|
30
33
|
#
|
|
31
34
|
# @return [Hash{Symbol=>String, nil}, nil]
|
|
32
35
|
optional :metadata, Anthropic::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
33
36
|
|
|
34
37
|
# @!attribute name
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
38
|
+
# The new name of the memory store, 1 to 255 characters long, without control
|
|
39
|
+
# characters.
|
|
40
|
+
#
|
|
41
|
+
# Sessions created after the change use the new name for the store's directory
|
|
42
|
+
# under `/mnt/memory/`.
|
|
38
43
|
#
|
|
39
44
|
# @return [String, nil]
|
|
40
45
|
optional :name, String, nil?: true
|
|
@@ -61,13 +66,13 @@ module Anthropic
|
|
|
61
66
|
# Some parameter documentations has been truncated, see
|
|
62
67
|
# {Anthropic::Models::Beta::MemoryStoreUpdateParams} for more details.
|
|
63
68
|
#
|
|
64
|
-
# @param memory_store_id [String] ID of the memory store to update (
|
|
69
|
+
# @param memory_store_id [String] The ID of the memory store to update (`memstore_...`).
|
|
65
70
|
#
|
|
66
|
-
# @param description [String, nil] New description for the store, up to
|
|
71
|
+
# @param description [String, nil] New description for the store, up to 1,024 characters. Pass an empty string to c
|
|
67
72
|
#
|
|
68
|
-
# @param metadata [Hash{Symbol=>String, nil}, nil]
|
|
73
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] Changes to apply to the memory store's metadata. Keys you leave out keep their v
|
|
69
74
|
#
|
|
70
|
-
# @param name [String, nil]
|
|
75
|
+
# @param name [String, nil] The new name of the memory store, 1 to 255 characters long, without control char
|
|
71
76
|
#
|
|
72
77
|
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `agent-memory-2026-07-22` or `manag
|
|
73
78
|
#
|
data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb
CHANGED
|
@@ -21,12 +21,12 @@ module Anthropic
|
|
|
21
21
|
optional :content_sha256, String
|
|
22
22
|
|
|
23
23
|
# @!method initialize(type:, content_sha256: nil)
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
# already exactly
|
|
29
|
-
#
|
|
24
|
+
# A precondition that applies an update only if the memory's current content has
|
|
25
|
+
# the hash in `content_sha256`.
|
|
26
|
+
#
|
|
27
|
+
# If the hashes differ, the request fails with HTTP status 409. Retrieve the
|
|
28
|
+
# memory and retry. If the memory already has exactly the requested `content` and
|
|
29
|
+
# `path`, the request succeeds even though the hashes differ.
|
|
30
30
|
#
|
|
31
31
|
# Some parameter documentations has been truncated, see
|
|
32
32
|
# {Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsContentSha256Precondition}
|
|
@@ -18,12 +18,19 @@ module Anthropic
|
|
|
18
18
|
required :type, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsDeletedMemory::Type }
|
|
19
19
|
|
|
20
20
|
# @!method initialize(id:, type:)
|
|
21
|
-
#
|
|
22
|
-
# [Delete a
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
21
|
+
# The confirmation that
|
|
22
|
+
# [Delete a Memory](https://platform.claude.com/docs/en/api/beta/memory_stores/memories/delete)
|
|
23
|
+
# returns.
|
|
24
|
+
#
|
|
25
|
+
# Deleting a memory doesn't delete its versions.
|
|
26
|
+
# [List Memory Versions](https://platform.claude.com/docs/en/api/beta/memory_stores/memory_versions/list)
|
|
27
|
+
# returns them while they are retained: each version is kept for at least the
|
|
28
|
+
# version retention period after it was written, unless the store itself is
|
|
29
|
+
# deleted.
|
|
30
|
+
#
|
|
31
|
+
# See the
|
|
32
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#audit-memory-changes)
|
|
33
|
+
# to learn more about how long versions are kept.
|
|
27
34
|
#
|
|
28
35
|
# @param id [String] ID of the deleted memory (a `mem_...` value).
|
|
29
36
|
#
|
|
@@ -35,7 +35,7 @@ module Anthropic
|
|
|
35
35
|
variant :memory_precondition_failed_error,
|
|
36
36
|
-> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemoryPreconditionFailedError }
|
|
37
37
|
|
|
38
|
-
# The error returned with HTTP status 409 when
|
|
38
|
+
# The error returned with HTTP status 409 when you create or rename a memory and the path you give is already used by another memory or overlaps another memory's path.
|
|
39
39
|
#
|
|
40
40
|
# Two paths overlap when one is an ancestor of the other, such as `/notes` and `/notes/todo.md`. To free the path, rename or delete the memory that `conflicting_memory_id` references, then retry. To change that memory instead of creating a new one, update it.
|
|
41
41
|
variant :memory_path_conflict_error,
|
|
@@ -7,8 +7,10 @@ module Anthropic
|
|
|
7
7
|
# @see Anthropic::Resources::Beta::MemoryStores::Memories#create
|
|
8
8
|
class BetaManagedAgentsMemory < Anthropic::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute id
|
|
10
|
-
#
|
|
11
|
-
#
|
|
10
|
+
# The unique ID of the memory (`mem_...`). It stays the same when the memory's
|
|
11
|
+
# path changes.
|
|
12
|
+
#
|
|
13
|
+
# To retrieve, update, or delete the memory, pass this ID.
|
|
12
14
|
#
|
|
13
15
|
# @return [String]
|
|
14
16
|
required :id, String
|
|
@@ -23,8 +25,8 @@ module Anthropic
|
|
|
23
25
|
required :content_sha256, String
|
|
24
26
|
|
|
25
27
|
# @!attribute content_size_bytes
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
+
# The size of the memory's `content` in UTF-8 bytes. It is set regardless of
|
|
29
|
+
# `view`.
|
|
28
30
|
#
|
|
29
31
|
# @return [Integer]
|
|
30
32
|
required :content_size_bytes, Integer
|
|
@@ -42,11 +44,15 @@ module Anthropic
|
|
|
42
44
|
required :memory_store_id, String
|
|
43
45
|
|
|
44
46
|
# @!attribute memory_version_id
|
|
45
|
-
# ID of the
|
|
46
|
-
# `memver_...`
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
47
|
+
# The ID of the memory version that holds the memory's current content
|
|
48
|
+
# (`memver_...`).
|
|
49
|
+
#
|
|
50
|
+
# Memory versions don't have a flag that marks the latest one. Compare their IDs
|
|
51
|
+
# with this field instead.
|
|
52
|
+
#
|
|
53
|
+
# See the
|
|
54
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#audit-memory-changes)
|
|
55
|
+
# to learn more about memory versions.
|
|
50
56
|
#
|
|
51
57
|
# @return [String]
|
|
52
58
|
required :memory_version_id, String
|
|
@@ -65,52 +71,58 @@ module Anthropic
|
|
|
65
71
|
required :type, enum: -> { Anthropic::Beta::MemoryStores::BetaManagedAgentsMemory::Type }
|
|
66
72
|
|
|
67
73
|
# @!attribute updated_at
|
|
68
|
-
# When
|
|
69
|
-
#
|
|
70
|
-
# `created_by`
|
|
71
|
-
#
|
|
74
|
+
# When the memory was last changed, in RFC 3339.
|
|
75
|
+
#
|
|
76
|
+
# To find out who made the change, look at `created_by` on the memory version that
|
|
77
|
+
# `memory_version_id` references.
|
|
72
78
|
#
|
|
73
79
|
# @return [Time]
|
|
74
80
|
required :updated_at, Time
|
|
75
81
|
|
|
76
82
|
# @!attribute content
|
|
77
|
-
# The memory's UTF-8 text content
|
|
78
|
-
#
|
|
83
|
+
# The memory's UTF-8 text content, or `null` when the response uses `view=basic`.
|
|
84
|
+
#
|
|
85
|
+
# The maximum size is 100 kB (102,400 bytes).
|
|
79
86
|
#
|
|
80
87
|
# @return [String, nil]
|
|
81
88
|
optional :content, String, nil?: true
|
|
82
89
|
|
|
83
90
|
# @!method initialize(id:, content_sha256:, content_size_bytes:, created_at:, memory_store_id:, memory_version_id:, path:, type:, updated_at:, content: nil)
|
|
84
|
-
# A
|
|
85
|
-
#
|
|
86
|
-
# `
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
91
|
+
# A text document at a path inside a memory store.
|
|
92
|
+
#
|
|
93
|
+
# `content` is `null` when the response uses `view=basic`. `content_size_bytes`
|
|
94
|
+
# and `content_sha256` are always set, so you can detect changes without fetching
|
|
95
|
+
# the content. To retrieve, update, or delete a memory, pass its ID, which stays
|
|
96
|
+
# the same when its path changes.
|
|
97
|
+
#
|
|
98
|
+
# See the
|
|
99
|
+
# [memory guide](https://platform.claude.com/docs/en/managed-agents/memory#view-and-edit-memories)
|
|
100
|
+
# to learn more about working with memories.
|
|
90
101
|
#
|
|
91
102
|
# Some parameter documentations has been truncated, see
|
|
92
103
|
# {Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemory} for more
|
|
93
104
|
# details.
|
|
94
105
|
#
|
|
95
|
-
# @param id [String]
|
|
106
|
+
# @param id [String] The unique ID of the memory (`mem_...`). It stays the same when the memory's pat
|
|
96
107
|
#
|
|
97
108
|
# @param content_sha256 [String] Lowercase hex SHA-256 digest of the UTF-8 `content` bytes (64 characters). The s
|
|
98
109
|
#
|
|
99
|
-
# @param content_size_bytes [Integer]
|
|
110
|
+
# @param content_size_bytes [Integer] The size of the memory's `content` in UTF-8 bytes. It is set regardless of `view
|
|
100
111
|
#
|
|
101
112
|
# @param created_at [Time] When this memory was created, in RFC 3339 format.
|
|
102
113
|
#
|
|
103
114
|
# @param memory_store_id [String] ID of the memory store this memory belongs to (a `memstore_...` value).
|
|
104
115
|
#
|
|
105
|
-
# @param memory_version_id [String] ID of the
|
|
116
|
+
# @param memory_version_id [String] The ID of the memory version that holds the memory's current content
|
|
117
|
+
# (`memver\_..
|
|
106
118
|
#
|
|
107
119
|
# @param path [String] Hierarchical path of the memory within the store, e.g. `/projects/foo/notes.md`.
|
|
108
120
|
#
|
|
109
121
|
# @param type [Symbol, Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemory::Type]
|
|
110
122
|
#
|
|
111
|
-
# @param updated_at [Time] When
|
|
123
|
+
# @param updated_at [Time] When the memory was last changed, in RFC 3339.
|
|
112
124
|
#
|
|
113
|
-
# @param content [String, nil] The memory's UTF-8 text content
|
|
125
|
+
# @param content [String, nil] The memory's UTF-8 text content, or `null` when the response uses `view=basic`.
|
|
114
126
|
|
|
115
127
|
# @see Anthropic::Models::Beta::MemoryStores::BetaManagedAgentsMemory#type
|
|
116
128
|
module Type
|