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,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#delete
|
|
8
|
+
class BetaDeletedOrganizationWebhookEndpoint < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# ID of the deleted webhook endpoint.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute type
|
|
16
|
+
# Always `webhook_endpoint_deleted`.
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, :webhook_endpoint_deleted]
|
|
19
|
+
required :type, const: :webhook_endpoint_deleted
|
|
20
|
+
|
|
21
|
+
# @!method initialize(id:, type: :webhook_endpoint_deleted)
|
|
22
|
+
# A deleted organization webhook endpoint.
|
|
23
|
+
#
|
|
24
|
+
# @param id [String] ID of the deleted webhook endpoint.
|
|
25
|
+
#
|
|
26
|
+
# @param type [Symbol, :webhook_endpoint_deleted] Always `webhook_endpoint_deleted`.
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#create
|
|
8
|
+
class BetaNewOrganizationWebhookEndpoint < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# ID of the webhook endpoint.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute created_at
|
|
16
|
+
# When the endpoint was created, in RFC 3339 format.
|
|
17
|
+
#
|
|
18
|
+
# @return [Time]
|
|
19
|
+
required :created_at, Time
|
|
20
|
+
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# Notes about the endpoint. An empty string when none were given.
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :description, String
|
|
26
|
+
|
|
27
|
+
# @!attribute disabled_reason
|
|
28
|
+
# Why Anthropic disabled the endpoint automatically. An empty string when the
|
|
29
|
+
# endpoint is enabled, or when you disabled it.
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :disabled_reason, String
|
|
33
|
+
|
|
34
|
+
# @!attribute enabled_events
|
|
35
|
+
# The event types delivered to the endpoint.
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<Symbol, Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent>]
|
|
38
|
+
required :enabled_events,
|
|
39
|
+
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent] }
|
|
40
|
+
|
|
41
|
+
# @!attribute name
|
|
42
|
+
# A short label for the endpoint. An empty string when none was given.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
required :name, String
|
|
46
|
+
|
|
47
|
+
# @!attribute signing_secret
|
|
48
|
+
# The secret Anthropic signs deliveries to the endpoint with (prefix `whsec_`). No
|
|
49
|
+
# other response returns it, so store it now. To replace it, regenerate the
|
|
50
|
+
# signing secret.
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
required :signing_secret, String
|
|
54
|
+
|
|
55
|
+
# @!attribute state
|
|
56
|
+
# Whether deliveries are sent to the endpoint.
|
|
57
|
+
#
|
|
58
|
+
# @return [Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState]
|
|
59
|
+
required :state, enum: -> { Anthropic::Beta::Organization::BetaOrganizationWebhookEndpointState }
|
|
60
|
+
|
|
61
|
+
# @!attribute updated_at
|
|
62
|
+
# When the endpoint was last changed, in RFC 3339 format.
|
|
63
|
+
#
|
|
64
|
+
# @return [Time]
|
|
65
|
+
required :updated_at, Time
|
|
66
|
+
|
|
67
|
+
# @!attribute url
|
|
68
|
+
# The HTTPS URL that deliveries are sent to.
|
|
69
|
+
#
|
|
70
|
+
# @return [String]
|
|
71
|
+
required :url, String
|
|
72
|
+
|
|
73
|
+
# @!method initialize(id:, created_at:, description:, disabled_reason:, enabled_events:, name:, signing_secret:, state:, updated_at:, url:)
|
|
74
|
+
# A new organization webhook endpoint, with its signing secret.
|
|
75
|
+
#
|
|
76
|
+
# Some parameter documentations has been truncated, see
|
|
77
|
+
# {Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint} for
|
|
78
|
+
# more details.
|
|
79
|
+
#
|
|
80
|
+
# @param id [String] ID of the webhook endpoint.
|
|
81
|
+
#
|
|
82
|
+
# @param created_at [Time] When the endpoint was created, in RFC 3339 format.
|
|
83
|
+
#
|
|
84
|
+
# @param description [String] Notes about the endpoint. An empty string when none were given.
|
|
85
|
+
#
|
|
86
|
+
# @param disabled_reason [String] Why Anthropic disabled the endpoint automatically. An empty string when the endp
|
|
87
|
+
#
|
|
88
|
+
# @param enabled_events [Array<Symbol, Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent>] The event types delivered to the endpoint.
|
|
89
|
+
#
|
|
90
|
+
# @param name [String] A short label for the endpoint. An empty string when none was given.
|
|
91
|
+
#
|
|
92
|
+
# @param signing_secret [String] The secret Anthropic signs deliveries to the endpoint with (prefix `whsec_`). No
|
|
93
|
+
#
|
|
94
|
+
# @param state [Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState] Whether deliveries are sent to the endpoint.
|
|
95
|
+
#
|
|
96
|
+
# @param updated_at [Time] When the endpoint was last changed, in RFC 3339 format.
|
|
97
|
+
#
|
|
98
|
+
# @param url [String] The HTTPS URL that deliveries are sent to.
|
|
99
|
+
|
|
100
|
+
module EnabledEvent
|
|
101
|
+
extend Anthropic::Internal::Type::Enum
|
|
102
|
+
|
|
103
|
+
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
104
|
+
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
105
|
+
|
|
106
|
+
# @!method self.values
|
|
107
|
+
# @return [Array<Symbol>]
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -8,7 +8,8 @@ module Anthropic
|
|
|
8
8
|
class BetaOrganizationRateLimit < Anthropic::Internal::Type::BaseModel
|
|
9
9
|
# @!attribute id
|
|
10
10
|
# Identifier of this rate-limit entry. It is stable within the organization and
|
|
11
|
-
# differs between organizations; the group's own identifier is `group.id`.
|
|
11
|
+
# differs between organizations; the group's own identifier is `group.id`. Pass it
|
|
12
|
+
# as `rate_limit_id` to set a workspace's overrides for this group.
|
|
12
13
|
#
|
|
13
14
|
# @return [String]
|
|
14
15
|
required :id, String
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#retrieve
|
|
8
|
+
class BetaOrganizationWebhookEndpoint < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# ID of the webhook endpoint.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute created_at
|
|
16
|
+
# When the endpoint was created, in RFC 3339 format.
|
|
17
|
+
#
|
|
18
|
+
# @return [Time]
|
|
19
|
+
required :created_at, Time
|
|
20
|
+
|
|
21
|
+
# @!attribute description
|
|
22
|
+
# Notes about the endpoint. An empty string when none were given.
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :description, String
|
|
26
|
+
|
|
27
|
+
# @!attribute disabled_reason
|
|
28
|
+
# Why Anthropic disabled the endpoint automatically. An empty string when the
|
|
29
|
+
# endpoint is enabled, or when you disabled it.
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :disabled_reason, String
|
|
33
|
+
|
|
34
|
+
# @!attribute enabled_events
|
|
35
|
+
# The event types delivered to the endpoint.
|
|
36
|
+
#
|
|
37
|
+
# @return [Array<Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent>]
|
|
38
|
+
required :enabled_events,
|
|
39
|
+
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent] }
|
|
40
|
+
|
|
41
|
+
# @!attribute name
|
|
42
|
+
# A short label for the endpoint. An empty string when none was given.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
required :name, String
|
|
46
|
+
|
|
47
|
+
# @!attribute state
|
|
48
|
+
# Whether deliveries are sent to the endpoint.
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState]
|
|
51
|
+
required :state, enum: -> { Anthropic::Beta::Organization::BetaOrganizationWebhookEndpointState }
|
|
52
|
+
|
|
53
|
+
# @!attribute updated_at
|
|
54
|
+
# When the endpoint was last changed, in RFC 3339 format.
|
|
55
|
+
#
|
|
56
|
+
# @return [Time]
|
|
57
|
+
required :updated_at, Time
|
|
58
|
+
|
|
59
|
+
# @!attribute url
|
|
60
|
+
# The HTTPS URL that deliveries are sent to.
|
|
61
|
+
#
|
|
62
|
+
# @return [String]
|
|
63
|
+
required :url, String
|
|
64
|
+
|
|
65
|
+
# @!method initialize(id:, created_at:, description:, disabled_reason:, enabled_events:, name:, state:, updated_at:, url:)
|
|
66
|
+
# A webhook endpoint that belongs to the organization rather than to one of its
|
|
67
|
+
# workspaces.
|
|
68
|
+
#
|
|
69
|
+
# Some parameter documentations has been truncated, see
|
|
70
|
+
# {Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpoint} for
|
|
71
|
+
# more details.
|
|
72
|
+
#
|
|
73
|
+
# @param id [String] ID of the webhook endpoint.
|
|
74
|
+
#
|
|
75
|
+
# @param created_at [Time] When the endpoint was created, in RFC 3339 format.
|
|
76
|
+
#
|
|
77
|
+
# @param description [String] Notes about the endpoint. An empty string when none were given.
|
|
78
|
+
#
|
|
79
|
+
# @param disabled_reason [String] Why Anthropic disabled the endpoint automatically. An empty string when the endp
|
|
80
|
+
#
|
|
81
|
+
# @param enabled_events [Array<Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpoint::EnabledEvent>] The event types delivered to the endpoint.
|
|
82
|
+
#
|
|
83
|
+
# @param name [String] A short label for the endpoint. An empty string when none was given.
|
|
84
|
+
#
|
|
85
|
+
# @param state [Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState] Whether deliveries are sent to the endpoint.
|
|
86
|
+
#
|
|
87
|
+
# @param updated_at [Time] When the endpoint was last changed, in RFC 3339 format.
|
|
88
|
+
#
|
|
89
|
+
# @param url [String] The HTTPS URL that deliveries are sent to.
|
|
90
|
+
|
|
91
|
+
module EnabledEvent
|
|
92
|
+
extend Anthropic::Internal::Type::Enum
|
|
93
|
+
|
|
94
|
+
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
95
|
+
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
96
|
+
|
|
97
|
+
# @!method self.values
|
|
98
|
+
# @return [Array<Symbol>]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
data/lib/anthropic/models/beta/organization/beta_organization_webhook_endpoint_signing_secret.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#regenerate_signing_secret
|
|
8
|
+
class BetaOrganizationWebhookEndpointSigningSecret < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute signing_secret
|
|
10
|
+
# The new signing secret. Deliveries are signed with it from now on, and no other
|
|
11
|
+
# response returns it.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :signing_secret, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(signing_secret:)
|
|
17
|
+
# An organization webhook endpoint's new signing secret.
|
|
18
|
+
#
|
|
19
|
+
# Some parameter documentations has been truncated, see
|
|
20
|
+
# {Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointSigningSecret}
|
|
21
|
+
# for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param signing_secret [String] The new signing secret. Deliveries are signed with it from now on, and no other
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# Whether deliveries are sent to an organization webhook endpoint.
|
|
8
|
+
module BetaOrganizationWebhookEndpointState
|
|
9
|
+
extend Anthropic::Internal::Type::Enum
|
|
10
|
+
|
|
11
|
+
DISABLED = :disabled
|
|
12
|
+
ENABLED = :enabled
|
|
13
|
+
|
|
14
|
+
# @!method self.values
|
|
15
|
+
# @return [Array<Symbol>]
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -59,7 +59,8 @@ module Anthropic
|
|
|
59
59
|
required :latest_version_id, String
|
|
60
60
|
|
|
61
61
|
# @!attribute manifest_version
|
|
62
|
-
# The
|
|
62
|
+
# The served version's manifest `version`, normalized for display, or `null` (the
|
|
63
|
+
# Plugin Version's `manifest_version` says how and when).
|
|
63
64
|
#
|
|
64
65
|
# @return [String, nil]
|
|
65
66
|
required :manifest_version, String, nil?: true
|
|
@@ -108,9 +109,21 @@ module Anthropic
|
|
|
108
109
|
required :owner, union: -> { Anthropic::Beta::Organization::BetaPlugin::Owner }
|
|
109
110
|
|
|
110
111
|
# @!attribute reach
|
|
111
|
-
# How far the served version reaches
|
|
112
|
-
#
|
|
113
|
-
#
|
|
112
|
+
# How far the served version reaches, or `null` if it is not classified.
|
|
113
|
+
#
|
|
114
|
+
# `remote` means it declares an MCP server or a CLI. `privileged` means it
|
|
115
|
+
# declares no MCP server or CLI, but declares a hook, monitor, language server, or
|
|
116
|
+
# settings, or has a skill, command, or other Markdown file whose frontmatter
|
|
117
|
+
# pre-approves tools (`allowed-tools` with any value other than an empty one or
|
|
118
|
+
# one that names only `AskUserQuestion`, `TodoWrite`, and `ToolSearch`). Otherwise
|
|
119
|
+
# it is `contained`.
|
|
120
|
+
#
|
|
121
|
+
# If the frontmatter of a skill, command, or other Markdown file that could change
|
|
122
|
+
# the value could not be read, or was past a size limit, the version is `null` or
|
|
123
|
+
# `privileged` (or `remote`, if it declares an MCP server or a CLI), not
|
|
124
|
+
# `contained`. The value is normally worked out when a version is stored, under
|
|
125
|
+
# the rules of that time, so an older version can be `null`, or `contained` where
|
|
126
|
+
# the same files stored today would be `privileged` or `null`.
|
|
114
127
|
#
|
|
115
128
|
# @return [Symbol, Anthropic::Models::Beta::Organization::BetaPlugin::Reach, nil]
|
|
116
129
|
required :reach, enum: -> { Anthropic::Beta::Organization::BetaPlugin::Reach }, nil?: true
|
|
@@ -161,7 +174,7 @@ module Anthropic
|
|
|
161
174
|
#
|
|
162
175
|
# @param latest_version_id [String] The newest version.
|
|
163
176
|
#
|
|
164
|
-
# @param manifest_version [String, nil] The
|
|
177
|
+
# @param manifest_version [String, nil] The served version's manifest `version`, normalized for display, or `null` (the
|
|
165
178
|
#
|
|
166
179
|
# @param marketplace_id [String] The ID of the plugin marketplace the Plugin lives in.
|
|
167
180
|
#
|
|
@@ -173,7 +186,7 @@ module Anthropic
|
|
|
173
186
|
#
|
|
174
187
|
# @param owner [Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser] Who owns the Plugin: the organization, or the member whose personal plugin marke
|
|
175
188
|
#
|
|
176
|
-
# @param reach [Symbol, Anthropic::Models::Beta::Organization::BetaPlugin::Reach, nil] How far the served version reaches
|
|
189
|
+
# @param reach [Symbol, Anthropic::Models::Beta::Organization::BetaPlugin::Reach, nil] How far the served version reaches, or `null` if it is not classified.
|
|
177
190
|
#
|
|
178
191
|
# @param served_version_id [String] The version claude.ai serves to members.
|
|
179
192
|
#
|
|
@@ -306,9 +319,21 @@ module Anthropic
|
|
|
306
319
|
end
|
|
307
320
|
end
|
|
308
321
|
|
|
309
|
-
# How far the served version reaches
|
|
310
|
-
#
|
|
311
|
-
#
|
|
322
|
+
# How far the served version reaches, or `null` if it is not classified.
|
|
323
|
+
#
|
|
324
|
+
# `remote` means it declares an MCP server or a CLI. `privileged` means it
|
|
325
|
+
# declares no MCP server or CLI, but declares a hook, monitor, language server, or
|
|
326
|
+
# settings, or has a skill, command, or other Markdown file whose frontmatter
|
|
327
|
+
# pre-approves tools (`allowed-tools` with any value other than an empty one or
|
|
328
|
+
# one that names only `AskUserQuestion`, `TodoWrite`, and `ToolSearch`). Otherwise
|
|
329
|
+
# it is `contained`.
|
|
330
|
+
#
|
|
331
|
+
# If the frontmatter of a skill, command, or other Markdown file that could change
|
|
332
|
+
# the value could not be read, or was past a size limit, the version is `null` or
|
|
333
|
+
# `privileged` (or `remote`, if it declares an MCP server or a CLI), not
|
|
334
|
+
# `contained`. The value is normally worked out when a version is stored, under
|
|
335
|
+
# the rules of that time, so an older version can be `null`, or `contained` where
|
|
336
|
+
# the same files stored today would be `privileged` or `null`.
|
|
312
337
|
#
|
|
313
338
|
# @see Anthropic::Models::Beta::Organization::BetaPlugin#reach
|
|
314
339
|
module Reach
|
data/lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb
CHANGED
|
@@ -11,8 +11,10 @@ module Anthropic
|
|
|
11
11
|
|
|
12
12
|
# @!attribute repository_url
|
|
13
13
|
# The `https://` URL of a public repository on github.com that holds the
|
|
14
|
-
# marketplace.
|
|
15
|
-
#
|
|
14
|
+
# marketplace. A URL longer than 2,048 characters, on any other host or scheme,
|
|
15
|
+
# with a port other than 443 or 80, with credentials in it, or that does not name
|
|
16
|
+
# exactly `owner/repo` (a trailing `.git` or `/` is accepted) is a 400. A private
|
|
17
|
+
# or missing repository is reported in the response, not refused.
|
|
16
18
|
#
|
|
17
19
|
# @return [String]
|
|
18
20
|
required :repository_url, String
|
|
@@ -21,8 +23,11 @@ module Anthropic
|
|
|
21
23
|
# The branch to validate the tip of, or the full 40-character SHA of the commit to
|
|
22
24
|
# validate. When omitted, the branch a synchronization would read (usually the
|
|
23
25
|
# repository's default branch); if that is not the default branch, the report's
|
|
24
|
-
# `ref` says which branch was read. An empty string,
|
|
25
|
-
#
|
|
26
|
+
# `ref` says which branch was read. An empty string, a value longer than 255
|
|
27
|
+
# characters, or one that contains `..` or a character other than ASCII letters,
|
|
28
|
+
# digits, `.`, `_`, `-`, `+`, and `/`, is a 400. Any other value that is not a
|
|
29
|
+
# 40-character SHA is read as a branch name; if the repository has no such branch,
|
|
30
|
+
# the response is a report with `valid: false`, not a 400.
|
|
26
31
|
#
|
|
27
32
|
# @return [String, nil]
|
|
28
33
|
optional :ref, String, nil?: true
|
|
@@ -56,7 +56,13 @@ module Anthropic
|
|
|
56
56
|
required :display_name, String, nil?: true
|
|
57
57
|
|
|
58
58
|
# @!attribute manifest_version
|
|
59
|
-
# The version
|
|
59
|
+
# The manifest's `version`, normalized for display: one leading `v` or `V` is
|
|
60
|
+
# dropped, and the result is returned only if it is 1 to 64 characters, starts
|
|
61
|
+
# with a digit, and uses only ASCII letters, digits, `.`, `+`, and `-`; otherwise
|
|
62
|
+
# `null`. For example, `"v1.4.0"` is returned as `"1.4.0"`, and `"latest"` as
|
|
63
|
+
# `null`. For a synchronized plugin, the `version` of its `marketplace.json` entry
|
|
64
|
+
# can take the place of the manifest's `version`. It is also `null` for a version
|
|
65
|
+
# stored before claude.ai began recording this field (August 2026).
|
|
60
66
|
#
|
|
61
67
|
# @return [String, nil]
|
|
62
68
|
required :manifest_version, String, nil?: true
|
|
@@ -68,8 +74,8 @@ module Anthropic
|
|
|
68
74
|
required :plugin_id, String
|
|
69
75
|
|
|
70
76
|
# @!attribute reach
|
|
71
|
-
# How far the version reaches: `remote`, `privileged` or `
|
|
72
|
-
#
|
|
77
|
+
# How far the version reaches: `remote`, `privileged`, `contained`, or `null`, as
|
|
78
|
+
# defined on the Plugin's `reach`.
|
|
73
79
|
#
|
|
74
80
|
# @return [Symbol, Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::Reach, nil]
|
|
75
81
|
required :reach,
|
|
@@ -109,11 +115,11 @@ module Anthropic
|
|
|
109
115
|
#
|
|
110
116
|
# @param display_name [String, nil] The manifest's display name; null when it declares none.
|
|
111
117
|
#
|
|
112
|
-
# @param manifest_version [String, nil] The version
|
|
118
|
+
# @param manifest_version [String, nil] The manifest's `version`, normalized for display: one leading `v` or `V` is drop
|
|
113
119
|
#
|
|
114
120
|
# @param plugin_id [String] The Plugin's ID.
|
|
115
121
|
#
|
|
116
|
-
# @param reach [Symbol, Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::Reach, nil] How far the version reaches: `remote`, `privileged` or `
|
|
122
|
+
# @param reach [Symbol, Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::Reach, nil] How far the version reaches: `remote`, `privileged`, `contained`, or `null`, as
|
|
117
123
|
#
|
|
118
124
|
# @param release_notes [String, nil] As supplied with the upload; null when none were supplied.
|
|
119
125
|
#
|
|
@@ -175,8 +181,8 @@ module Anthropic
|
|
|
175
181
|
end
|
|
176
182
|
end
|
|
177
183
|
|
|
178
|
-
# How far the version reaches: `remote`, `privileged` or `
|
|
179
|
-
#
|
|
184
|
+
# How far the version reaches: `remote`, `privileged`, `contained`, or `null`, as
|
|
185
|
+
# defined on the Plugin's `reach`.
|
|
180
186
|
#
|
|
181
187
|
# @see Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion#reach
|
|
182
188
|
module Reach
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#create
|
|
8
|
+
class WebhookCreateParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute enabled_events
|
|
13
|
+
# The event types to deliver to the endpoint. Must list at least one.
|
|
14
|
+
#
|
|
15
|
+
# @return [Array<Symbol, Anthropic::Models::Beta::Organization::WebhookCreateParams::EnabledEvent>]
|
|
16
|
+
required :enabled_events,
|
|
17
|
+
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent] }
|
|
18
|
+
|
|
19
|
+
# @!attribute url
|
|
20
|
+
# The HTTPS URL that deliveries are sent to.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :url, String
|
|
24
|
+
|
|
25
|
+
# @!attribute description
|
|
26
|
+
# Notes about the endpoint.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :description, String
|
|
30
|
+
|
|
31
|
+
# @!attribute name
|
|
32
|
+
# A short label for the endpoint.
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :name, String
|
|
36
|
+
|
|
37
|
+
# @!attribute betas
|
|
38
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
39
|
+
# header.
|
|
40
|
+
#
|
|
41
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
42
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
43
|
+
|
|
44
|
+
# @!method initialize(enabled_events:, url:, description: nil, name: nil, betas: nil, request_options: {})
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {Anthropic::Models::Beta::Organization::WebhookCreateParams} for more details.
|
|
47
|
+
#
|
|
48
|
+
# @param enabled_events [Array<Symbol, Anthropic::Models::Beta::Organization::WebhookCreateParams::EnabledEvent>] The event types to deliver to the endpoint. Must list at least one.
|
|
49
|
+
#
|
|
50
|
+
# @param url [String] The HTTPS URL that deliveries are sent to.
|
|
51
|
+
#
|
|
52
|
+
# @param description [String] Notes about the endpoint.
|
|
53
|
+
#
|
|
54
|
+
# @param name [String] A short label for the endpoint.
|
|
55
|
+
#
|
|
56
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
57
|
+
#
|
|
58
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
59
|
+
|
|
60
|
+
module EnabledEvent
|
|
61
|
+
extend Anthropic::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
USER_PROFILE_ENFORCEMENT_ACTION_OPENED = :"user_profile.enforcement_action_opened"
|
|
64
|
+
USER_PROFILE_ENFORCEMENT_ACTION_RESOLVED = :"user_profile.enforcement_action_resolved"
|
|
65
|
+
|
|
66
|
+
# @!method self.values
|
|
67
|
+
# @return [Array<Symbol>]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#delete
|
|
8
|
+
class WebhookDeleteParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute webhook_endpoint_id
|
|
13
|
+
# ID of the webhook endpoint.
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :webhook_endpoint_id, String
|
|
17
|
+
|
|
18
|
+
# @!attribute betas
|
|
19
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
20
|
+
# header.
|
|
21
|
+
#
|
|
22
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
23
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
24
|
+
|
|
25
|
+
# @!method initialize(webhook_endpoint_id:, betas: nil, request_options: {})
|
|
26
|
+
# Some parameter documentations has been truncated, see
|
|
27
|
+
# {Anthropic::Models::Beta::Organization::WebhookDeleteParams} for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param webhook_endpoint_id [String] ID of the webhook endpoint.
|
|
30
|
+
#
|
|
31
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
32
|
+
#
|
|
33
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# @see Anthropic::Resources::Beta::Organization::Webhooks#list
|
|
8
|
+
class WebhookListParams < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Anthropic::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute after_id
|
|
13
|
+
# ID of the object to use as a cursor for pagination. When provided, returns the
|
|
14
|
+
# page of results immediately after this object.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :after_id, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute before_id
|
|
20
|
+
# ID of a webhook endpoint to use as a cursor. Returns the first `limit` endpoints
|
|
21
|
+
# that come before it in list order, not the `limit` endpoints just before it.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :before_id, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute limit
|
|
27
|
+
# Number of items to return per page, up to `100`. The default, `0`, means `20`.
|
|
28
|
+
#
|
|
29
|
+
# @return [Integer, nil]
|
|
30
|
+
optional :limit, Integer
|
|
31
|
+
|
|
32
|
+
# @!attribute order
|
|
33
|
+
# Sort order by `created_at`. Defaults to `desc`, newest first.
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, Anthropic::Models::Beta::Organization::WebhookListParams::Order, nil]
|
|
36
|
+
optional :order, enum: -> { Anthropic::Beta::Organization::WebhookListParams::Order }, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute betas
|
|
39
|
+
# This endpoint is in beta: requests must send `webhooks-2026-10-07` in this
|
|
40
|
+
# header.
|
|
41
|
+
#
|
|
42
|
+
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
43
|
+
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
44
|
+
|
|
45
|
+
# @!method initialize(after_id: nil, before_id: nil, limit: nil, order: nil, betas: nil, request_options: {})
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {Anthropic::Models::Beta::Organization::WebhookListParams} for more details.
|
|
48
|
+
#
|
|
49
|
+
# @param after_id [String, nil] ID of the object to use as a cursor for pagination. When provided, returns the p
|
|
50
|
+
#
|
|
51
|
+
# @param before_id [String, nil] ID of a webhook endpoint to use as a cursor. Returns the first `limit` endpoints
|
|
52
|
+
#
|
|
53
|
+
# @param limit [Integer] Number of items to return per page, up to `100`. The default, `0`, means `20`.
|
|
54
|
+
#
|
|
55
|
+
# @param order [Symbol, Anthropic::Models::Beta::Organization::WebhookListParams::Order, nil] Sort order by `created_at`. Defaults to `desc`, newest first.
|
|
56
|
+
#
|
|
57
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `webhooks-2026-10-07` in this heade
|
|
58
|
+
#
|
|
59
|
+
# @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
+
|
|
61
|
+
# Sort order by `created_at`. Defaults to `desc`, newest first.
|
|
62
|
+
module Order
|
|
63
|
+
extend Anthropic::Internal::Type::Enum
|
|
64
|
+
|
|
65
|
+
ASC = :asc
|
|
66
|
+
DESC = :desc
|
|
67
|
+
|
|
68
|
+
# @!method self.values
|
|
69
|
+
# @return [Array<Symbol>]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|