anthropic 2.3.0 → 2.4.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 +36 -0
- data/README.md +1 -42
- data/lib/anthropic/errors.rb +1 -1
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +1 -2
- data/lib/anthropic/internal/bidirectional_page_cursor.rb +1 -1
- data/lib/anthropic/internal/page.rb +1 -1
- data/lib/anthropic/internal/page_cursor.rb +1 -1
- data/lib/anthropic/internal/report_page_cursor.rb +1 -1
- data/lib/anthropic/internal/token_page.rb +1 -1
- data/lib/anthropic/internal/tracing.rb +28 -28
- data/lib/anthropic/internal/transport/base_client.rb +1 -1
- data/lib/anthropic/models/anthropic_beta.rb +4 -0
- data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +1 -1
- data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +0 -4
- data/lib/anthropic/models/beta/dream_create_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/analytics/apps/chat/project_list_params.rb +6 -34
- data/lib/anthropic/models/beta/organization/analytics/artifact_list_params.rb +3 -14
- data/lib/anthropic/models/beta/organization/analytics/connector_list_params.rb +6 -33
- data/lib/anthropic/models/beta/organization/analytics/plugin_list_params.rb +6 -33
- data/lib/anthropic/models/beta/organization/analytics/skill_list_params.rb +6 -35
- data/lib/anthropic/models/beta/organization/analytics/user_list_params.rb +6 -33
- data/lib/anthropic/models/beta/organization/beta_analytics_artifact_group_by.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_metrics.rb +36 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_activity.rb +85 -120
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics.rb +38 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_connector_group_by.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_cowork_metrics.rb +35 -35
- data/lib/anthropic/models/beta/organization/beta_analytics_order.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_plugin_activity.rb +14 -39
- data/lib/anthropic/models/beta/organization/beta_analytics_plugin_chat_cowork_unified_metrics.rb +29 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_plugin_group_by.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_project_activity.rb +28 -45
- data/lib/anthropic/models/beta/organization/beta_analytics_project_group_by.rb +20 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_activity.rb +102 -135
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_metrics.rb +38 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_skill_group_by.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_user_activity.rb +23 -53
- data/lib/anthropic/models/beta/organization/beta_analytics_user_group_by.rb +19 -0
- data/lib/anthropic/models/beta/organization/beta_aws_external_key_config.rb +6 -8
- data/lib/anthropic/models/beta/organization/{rbac_group_delete_response.rb → beta_deleted_rbac_group.rb} +2 -3
- data/lib/anthropic/models/beta/organization/beta_external_key.rb +17 -6
- data/lib/anthropic/models/beta/organization/beta_workspace.rb +30 -20
- data/lib/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rb +4 -5
- data/lib/anthropic/models/beta/organization/external_key_create_params.rb +18 -3
- data/lib/anthropic/models/beta/organization/external_key_update_params.rb +2 -2
- data/lib/anthropic/models/beta/organization/rbac_groups/{member_remove_response.rb → beta_deleted_rbac_group_member.rb} +3 -3
- data/lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb +12 -11
- data/lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rb +6 -128
- data/lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_actor.rb +73 -0
- data/lib/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rb +73 -0
- data/lib/anthropic/models/beta/organization/spend_limits/effective_list_params.rb +3 -14
- data/lib/anthropic/models/beta/organization/spend_limits/increase_request_approve_response.rb +11 -131
- data/lib/anthropic/models/beta/organization/workspace_create_params.rb +19 -8
- data/lib/anthropic/models/beta/organization/workspace_update_params.rb +20 -8
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rb +95 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rb +18 -4
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +1 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rb +96 -0
- data/lib/anthropic/models/organization/analytics/apps/chat/project_list_params.rb +139 -0
- data/lib/anthropic/models/organization/analytics/artifact_list_params.rb +90 -0
- data/lib/anthropic/models/organization/analytics/connector_list_params.rb +141 -0
- data/lib/anthropic/models/organization/analytics/plugin_list_params.rb +139 -0
- data/lib/anthropic/models/organization/analytics/skill_list_params.rb +138 -0
- data/lib/anthropic/models/organization/analytics/summary_list_params.rb +79 -0
- data/lib/anthropic/models/organization/analytics/user_list_params.rb +141 -0
- data/lib/anthropic/models/organization/analytics_artifact_activity.rb +116 -0
- data/lib/anthropic/models/organization/analytics_artifact_group_by.rb +19 -0
- data/lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb +140 -0
- data/lib/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rb +34 -0
- data/lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb +184 -0
- data/lib/anthropic/models/organization/analytics_chat_metrics.rb +128 -0
- data/lib/anthropic/models/organization/analytics_claude_code_metrics.rb +28 -0
- data/lib/anthropic/models/organization/analytics_connector_activity.rb +228 -0
- data/lib/anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics.rb +28 -0
- data/lib/anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics.rb +35 -0
- data/lib/anthropic/models/organization/analytics_connector_chat_cowork_unified_sessions_metrics.rb +28 -0
- data/lib/anthropic/models/organization/analytics_connector_chat_metrics.rb +26 -0
- data/lib/anthropic/models/organization/analytics_connector_claude_code_metrics.rb +26 -0
- data/lib/anthropic/models/organization/analytics_connector_cowork_metrics.rb +26 -0
- data/lib/anthropic/models/organization/analytics_connector_group_by.rb +19 -0
- data/lib/anthropic/models/organization/analytics_connector_office_metrics.rb +53 -0
- data/lib/anthropic/models/organization/analytics_connector_office_product_metrics.rb +27 -0
- data/lib/anthropic/models/organization/analytics_core_code_metrics.rb +61 -0
- data/lib/anthropic/models/organization/analytics_cowork_metrics.rb +174 -0
- data/lib/anthropic/models/organization/analytics_design_metrics.rb +53 -0
- data/lib/anthropic/models/organization/analytics_lines_of_code.rb +28 -0
- data/lib/anthropic/models/organization/analytics_office_metrics.rb +52 -0
- data/lib/anthropic/models/organization/analytics_office_product_metrics.rb +71 -0
- data/lib/anthropic/models/organization/analytics_order.rb +21 -0
- data/lib/anthropic/models/organization/analytics_plugin_activity.rb +141 -0
- data/lib/anthropic/models/organization/analytics_plugin_chat_cowork_unified_metrics.rb +27 -0
- data/lib/anthropic/models/organization/analytics_plugin_claude_code_metrics.rb +25 -0
- data/lib/anthropic/models/organization/analytics_plugin_cowork_metrics.rb +25 -0
- data/lib/anthropic/models/organization/analytics_plugin_group_by.rb +19 -0
- data/lib/anthropic/models/organization/analytics_project_activity.rb +104 -0
- data/lib/anthropic/models/organization/analytics_project_group_by.rb +18 -0
- data/lib/anthropic/models/organization/analytics_science_metrics.rb +58 -0
- data/lib/anthropic/models/organization/analytics_single_day_activity_summary.rb +321 -0
- data/lib/anthropic/models/organization/analytics_skill_activity.rb +280 -0
- data/lib/anthropic/models/organization/analytics_skill_chat_cowork_unified_chat_metrics.rb +28 -0
- data/lib/anthropic/models/organization/analytics_skill_chat_cowork_unified_metrics.rb +35 -0
- data/lib/anthropic/models/organization/analytics_skill_chat_cowork_unified_sessions_metrics.rb +28 -0
- data/lib/anthropic/models/organization/analytics_skill_chat_metrics.rb +30 -0
- data/lib/anthropic/models/organization/analytics_skill_claude_code_metrics.rb +31 -0
- data/lib/anthropic/models/organization/analytics_skill_cowork_metrics.rb +30 -0
- data/lib/anthropic/models/organization/analytics_skill_group_by.rb +19 -0
- data/lib/anthropic/models/organization/analytics_skill_office_metrics.rb +52 -0
- data/lib/anthropic/models/organization/analytics_skill_office_product_metrics.rb +32 -0
- data/lib/anthropic/models/organization/analytics_tool_action_counts.rb +28 -0
- data/lib/anthropic/models/organization/analytics_tool_actions.rb +44 -0
- data/lib/anthropic/models/organization/analytics_user.rb +36 -0
- data/lib/anthropic/models/organization/analytics_user_activity.rb +140 -0
- data/lib/anthropic/models/organization/analytics_user_group_by.rb +17 -0
- data/lib/anthropic/models/organization/aws_external_key_config.rb +4 -4
- data/lib/anthropic/models/organization/deleted_rbac_group.rb +32 -0
- data/lib/anthropic/models/organization/external_key.rb +16 -5
- data/lib/anthropic/models/organization/external_key_create_params.rb +16 -2
- data/lib/anthropic/models/organization/external_key_update_params.rb +1 -1
- data/lib/anthropic/models/organization/rbac_group.rb +91 -0
- data/lib/anthropic/models/organization/rbac_group_create_params.rb +24 -0
- data/lib/anthropic/models/organization/rbac_group_delete_params.rb +24 -0
- data/lib/anthropic/models/organization/rbac_group_list_params.rb +37 -0
- data/lib/anthropic/models/organization/rbac_group_retrieve_params.rb +24 -0
- data/lib/anthropic/models/organization/rbac_group_update_params.rb +32 -0
- data/lib/anthropic/models/organization/rbac_groups/deleted_rbac_group_member.rb +42 -0
- data/lib/anthropic/models/organization/rbac_groups/member_add_params.rb +34 -0
- data/lib/anthropic/models/organization/rbac_groups/member_list_params.rb +48 -0
- data/lib/anthropic/models/organization/rbac_groups/member_remove_params.rb +34 -0
- data/lib/anthropic/models/organization/rbac_groups/rbac_group_member.rb +60 -0
- data/lib/anthropic/models/organization/rbac_role.rb +58 -0
- data/lib/anthropic/models/organization/rbac_role_list_params.rb +37 -0
- data/lib/anthropic/models/organization/rbac_role_retrieve_params.rb +24 -0
- data/lib/anthropic/models/organization/rbac_roles/permission_list_params.rb +48 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_all_connectors_permission_resource.rb +20 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_connector_permission_resource.rb +28 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_connector_scope_permission_resource.rb +46 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_connector_tool_permission_resource.rb +45 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_organization_permission_resource.rb +28 -0
- data/lib/anthropic/models/organization/rbac_roles/rbac_role_permission.rb +140 -0
- data/lib/anthropic/models/organization/spend_limit.rb +182 -0
- data/lib/anthropic/models/organization/spend_limit_organization_scope.rb +17 -0
- data/lib/anthropic/models/organization/spend_limit_organization_service_scope.rb +23 -0
- data/lib/anthropic/models/organization/spend_limit_period.rb +18 -0
- data/lib/anthropic/models/organization/spend_limit_rbac_group_scope.rb +23 -0
- data/lib/anthropic/models/organization/spend_limit_scoped_api_key_actor.rb +25 -0
- data/lib/anthropic/models/organization/spend_limit_seat_tier_scope.rb +23 -0
- data/lib/anthropic/models/organization/spend_limit_usage_tier_scope.rb +23 -0
- data/lib/anthropic/models/organization/spend_limit_user_actor.rb +59 -0
- data/lib/anthropic/models/organization/spend_limit_user_scope.rb +28 -0
- data/lib/anthropic/models/organization/spend_limit_workspace_scope.rb +28 -0
- data/lib/anthropic/models/organization/spend_limits/effective_list_params.rb +59 -0
- data/lib/anthropic/models/organization/spend_limits/increase_request_approve_params.rb +52 -0
- data/lib/anthropic/models/organization/spend_limits/increase_request_approve_response.rb +89 -0
- data/lib/anthropic/models/organization/spend_limits/increase_request_deny_params.rb +33 -0
- data/lib/anthropic/models/organization/spend_limits/increase_request_list_params.rb +53 -0
- data/lib/anthropic/models/organization/spend_limits/increase_request_retrieve_params.rb +26 -0
- data/lib/anthropic/models/organization/spend_limits/spend_limit_increase_request.rb +83 -0
- data/lib/anthropic/models/organization/spend_limits/spend_limit_increase_request_actor.rb +73 -0
- data/lib/anthropic/models/organization/spend_limits/spend_limit_increase_request_resolved_by.rb +73 -0
- data/lib/anthropic/models/organization/spend_limits/spend_limit_increase_request_status.rb +22 -0
- data/lib/anthropic/models/organization/spend_summary.rb +316 -0
- data/lib/anthropic/models/organization/workspace.rb +30 -20
- data/lib/anthropic/models/organization/workspace_create_params.rb +19 -8
- data/lib/anthropic/models/organization/workspace_update_params.rb +20 -8
- data/lib/anthropic/request_options.rb +1 -1
- data/lib/anthropic/resources/beta/organization/analytics/apps/chat/projects.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/artifacts.rb +1 -1
- data/lib/anthropic/resources/beta/organization/analytics/connectors.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/plugins.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/skills.rb +2 -2
- data/lib/anthropic/resources/beta/organization/analytics/users.rb +2 -2
- data/lib/anthropic/resources/beta/organization/compliance_settings.rb +5 -2
- data/lib/anthropic/resources/beta/organization/external_keys.rb +7 -1
- data/lib/anthropic/resources/beta/organization/rbac_groups/members.rb +2 -2
- data/lib/anthropic/resources/beta/organization/rbac_groups.rb +2 -2
- data/lib/anthropic/resources/beta/organization/spend_limits/effective.rb +1 -1
- data/lib/anthropic/resources/beta/organization/workspaces.rb +6 -2
- data/lib/anthropic/resources/organization/analytics/apps/chat/projects.rb +75 -0
- data/lib/anthropic/resources/organization/analytics/apps/chat.rb +24 -0
- data/lib/anthropic/resources/organization/analytics/apps.rb +22 -0
- data/lib/anthropic/resources/organization/analytics/artifacts.rb +62 -0
- data/lib/anthropic/resources/organization/analytics/connectors.rb +74 -0
- data/lib/anthropic/resources/organization/analytics/plugins.rb +76 -0
- data/lib/anthropic/resources/organization/analytics/skills.rb +71 -0
- data/lib/anthropic/resources/organization/analytics/summaries.rb +67 -0
- data/lib/anthropic/resources/organization/analytics/users.rb +71 -0
- data/lib/anthropic/resources/organization/analytics.rb +44 -0
- data/lib/anthropic/resources/organization/compliance_settings.rb +5 -2
- data/lib/anthropic/resources/organization/external_keys.rb +6 -1
- data/lib/anthropic/resources/organization/rbac_groups/members.rb +125 -0
- data/lib/anthropic/resources/organization/rbac_groups.rb +165 -0
- data/lib/anthropic/resources/organization/rbac_roles/permissions.rb +56 -0
- data/lib/anthropic/resources/organization/rbac_roles.rb +79 -0
- data/lib/anthropic/resources/organization/spend_limits/effective.rb +60 -0
- data/lib/anthropic/resources/organization/spend_limits/increase_requests.rb +155 -0
- data/lib/anthropic/resources/organization/spend_limits.rb +25 -0
- data/lib/anthropic/resources/organization/workspaces.rb +6 -2
- data/lib/anthropic/resources/organization.rb +16 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +133 -2
- data/rbi/anthropic/internal/tracing.rbi +45 -45
- data/rbi/anthropic/models/anthropic_beta.rbi +4 -0
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +0 -4
- data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +0 -8
- data/rbi/anthropic/models/beta/dream_create_params.rbi +3 -3
- data/rbi/anthropic/models/beta/organization/analytics/apps/chat/project_list_params.rbi +6 -78
- data/rbi/anthropic/models/beta/organization/analytics/artifact_list_params.rbi +3 -42
- data/rbi/anthropic/models/beta/organization/analytics/connector_list_params.rbi +6 -83
- data/rbi/anthropic/models/beta/organization/analytics/plugin_list_params.rbi +6 -83
- data/rbi/anthropic/models/beta/organization/analytics/skill_list_params.rbi +6 -83
- data/rbi/anthropic/models/beta/organization/analytics/user_list_params.rbi +6 -73
- data/rbi/anthropic/models/beta/organization/beta_analytics_artifact_group_by.rbi +49 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_metrics.rbi +84 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_activity.rbi +141 -221
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_connector_group_by.rbi +49 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_cowork_metrics.rbi +37 -37
- data/rbi/anthropic/models/beta/organization/beta_analytics_order.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbi +16 -57
- data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_chat_cowork_unified_metrics.rbi +48 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_plugin_group_by.rbi +49 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_project_activity.rbi +34 -60
- data/rbi/anthropic/models/beta/organization/beta_analytics_project_group_by.rbi +44 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_activity.rbi +168 -248
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_metrics.rbi +86 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_skill_group_by.rbi +49 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_user_activity.rbi +45 -122
- data/rbi/anthropic/models/beta/organization/beta_analytics_user_group_by.rbi +39 -0
- data/rbi/anthropic/models/beta/organization/beta_aws_external_key_config.rbi +8 -12
- data/rbi/anthropic/models/beta/organization/{rbac_group_delete_response.rbi → beta_deleted_rbac_group.rbi} +2 -2
- data/rbi/anthropic/models/beta/organization/beta_external_key.rbi +23 -11
- data/rbi/anthropic/models/beta/organization/beta_workspace.rbi +49 -37
- data/rbi/anthropic/models/beta/organization/claude_tag/beta_claude_tag_slack_channel.rbi +8 -10
- data/rbi/anthropic/models/beta/organization/external_key_create_params.rbi +18 -6
- data/rbi/anthropic/models/beta/organization/external_key_update_params.rbi +4 -6
- data/rbi/anthropic/models/beta/organization/rbac_groups/{member_remove_response.rbi → beta_deleted_rbac_group_member.rbi} +2 -2
- data/rbi/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rbi +24 -22
- data/rbi/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rbi +8 -178
- data/rbi/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_actor.rbi +99 -0
- data/rbi/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rbi +99 -0
- data/rbi/anthropic/models/beta/organization/spend_limits/effective_list_params.rbi +3 -42
- data/rbi/anthropic/models/beta/organization/spend_limits/increase_request_approve_response.rbi +19 -182
- data/rbi/anthropic/models/beta/organization/workspace_create_params.rbi +28 -14
- data/rbi/anthropic/models/beta/organization/workspace_update_params.rbi +33 -14
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbi +148 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbi +14 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +2 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +2 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +2 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbi +149 -0
- data/rbi/anthropic/models/organization/analytics/apps/chat/project_list_params.rbi +220 -0
- data/rbi/anthropic/models/organization/analytics/artifact_list_params.rbi +148 -0
- data/rbi/anthropic/models/organization/analytics/connector_list_params.rbi +224 -0
- data/rbi/anthropic/models/organization/analytics/plugin_list_params.rbi +222 -0
- data/rbi/anthropic/models/organization/analytics/skill_list_params.rbi +220 -0
- data/rbi/anthropic/models/organization/analytics/summary_list_params.rbi +116 -0
- data/rbi/anthropic/models/organization/analytics/user_list_params.rbi +226 -0
- data/rbi/anthropic/models/organization/analytics_artifact_activity.rbi +156 -0
- data/rbi/anthropic/models/organization/analytics_artifact_group_by.rbi +44 -0
- data/rbi/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rbi +187 -0
- data/rbi/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rbi +82 -0
- data/rbi/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rbi +234 -0
- data/rbi/anthropic/models/organization/analytics_chat_metrics.rbi +165 -0
- data/rbi/anthropic/models/organization/analytics_claude_code_metrics.rbi +67 -0
- data/rbi/anthropic/models/organization/analytics_connector_activity.rbi +389 -0
- data/rbi/anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics.rbi +48 -0
- data/rbi/anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics.rbi +84 -0
- data/rbi/anthropic/models/organization/analytics_connector_chat_cowork_unified_sessions_metrics.rbi +48 -0
- data/rbi/anthropic/models/organization/analytics_connector_chat_metrics.rbi +45 -0
- data/rbi/anthropic/models/organization/analytics_connector_claude_code_metrics.rbi +45 -0
- data/rbi/anthropic/models/organization/analytics_connector_cowork_metrics.rbi +45 -0
- data/rbi/anthropic/models/organization/analytics_connector_group_by.rbi +44 -0
- data/rbi/anthropic/models/organization/analytics_connector_office_metrics.rbi +132 -0
- data/rbi/anthropic/models/organization/analytics_connector_office_product_metrics.rbi +46 -0
- data/rbi/anthropic/models/organization/analytics_core_code_metrics.rbi +95 -0
- data/rbi/anthropic/models/organization/analytics_cowork_metrics.rbi +217 -0
- data/rbi/anthropic/models/organization/analytics_design_metrics.rbi +79 -0
- data/rbi/anthropic/models/organization/analytics_lines_of_code.rbi +45 -0
- data/rbi/anthropic/models/organization/analytics_office_metrics.rbi +111 -0
- data/rbi/anthropic/models/organization/analytics_office_product_metrics.rbi +96 -0
- data/rbi/anthropic/models/organization/analytics_order.rbi +33 -0
- data/rbi/anthropic/models/organization/analytics_plugin_activity.rbi +226 -0
- data/rbi/anthropic/models/organization/analytics_plugin_chat_cowork_unified_metrics.rbi +46 -0
- data/rbi/anthropic/models/organization/analytics_plugin_claude_code_metrics.rbi +43 -0
- data/rbi/anthropic/models/organization/analytics_plugin_cowork_metrics.rbi +43 -0
- data/rbi/anthropic/models/organization/analytics_plugin_group_by.rbi +44 -0
- data/rbi/anthropic/models/organization/analytics_project_activity.rbi +142 -0
- data/rbi/anthropic/models/organization/analytics_project_group_by.rbi +39 -0
- data/rbi/anthropic/models/organization/analytics_science_metrics.rbi +81 -0
- data/rbi/anthropic/models/organization/analytics_single_day_activity_summary.rbi +389 -0
- data/rbi/anthropic/models/organization/analytics_skill_activity.rbi +497 -0
- data/rbi/anthropic/models/organization/analytics_skill_chat_cowork_unified_chat_metrics.rbi +48 -0
- data/rbi/anthropic/models/organization/analytics_skill_chat_cowork_unified_metrics.rbi +84 -0
- data/rbi/anthropic/models/organization/analytics_skill_chat_cowork_unified_sessions_metrics.rbi +48 -0
- data/rbi/anthropic/models/organization/analytics_skill_chat_metrics.rbi +55 -0
- data/rbi/anthropic/models/organization/analytics_skill_claude_code_metrics.rbi +55 -0
- data/rbi/anthropic/models/organization/analytics_skill_cowork_metrics.rbi +55 -0
- data/rbi/anthropic/models/organization/analytics_skill_group_by.rbi +44 -0
- data/rbi/anthropic/models/organization/analytics_skill_office_metrics.rbi +123 -0
- data/rbi/anthropic/models/organization/analytics_skill_office_product_metrics.rbi +56 -0
- data/rbi/anthropic/models/organization/analytics_tool_action_counts.rbi +45 -0
- data/rbi/anthropic/models/organization/analytics_tool_actions.rbi +105 -0
- data/rbi/anthropic/models/organization/analytics_user.rbi +51 -0
- data/rbi/anthropic/models/organization/analytics_user_activity.rbi +259 -0
- data/rbi/anthropic/models/organization/analytics_user_group_by.rbi +34 -0
- data/rbi/anthropic/models/organization/aws_external_key_config.rbi +6 -6
- data/rbi/anthropic/models/organization/deleted_rbac_group.rbi +42 -0
- data/rbi/anthropic/models/organization/external_key.rbi +22 -8
- data/rbi/anthropic/models/organization/external_key_create_params.rbi +17 -3
- data/rbi/anthropic/models/organization/external_key_update_params.rbi +3 -3
- data/rbi/anthropic/models/organization/rbac_group.rbi +140 -0
- data/rbi/anthropic/models/organization/rbac_group_create_params.rbi +45 -0
- data/rbi/anthropic/models/organization/rbac_group_delete_params.rbi +48 -0
- data/rbi/anthropic/models/organization/rbac_group_list_params.rbi +63 -0
- data/rbi/anthropic/models/organization/rbac_group_retrieve_params.rbi +48 -0
- data/rbi/anthropic/models/organization/rbac_group_update_params.rbi +56 -0
- data/rbi/anthropic/models/organization/rbac_groups/deleted_rbac_group_member.rbi +58 -0
- data/rbi/anthropic/models/organization/rbac_groups/member_add_params.rbi +58 -0
- data/rbi/anthropic/models/organization/rbac_groups/member_list_params.rbi +73 -0
- data/rbi/anthropic/models/organization/rbac_groups/member_remove_params.rbi +58 -0
- data/rbi/anthropic/models/organization/rbac_groups/rbac_group_member.rbi +82 -0
- data/rbi/anthropic/models/organization/rbac_role.rbi +82 -0
- data/rbi/anthropic/models/organization/rbac_role_list_params.rbi +63 -0
- data/rbi/anthropic/models/organization/rbac_role_retrieve_params.rbi +45 -0
- data/rbi/anthropic/models/organization/rbac_roles/permission_list_params.rbi +73 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_all_connectors_permission_resource.rbi +34 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_connector_permission_resource.rbi +42 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_connector_scope_permission_resource.rbi +66 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_connector_tool_permission_resource.rbi +66 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_organization_permission_resource.rbi +44 -0
- data/rbi/anthropic/models/organization/rbac_roles/rbac_role_permission.rbi +232 -0
- data/rbi/anthropic/models/organization/spend_limit.rbi +235 -0
- data/rbi/anthropic/models/organization/spend_limit_organization_scope.rbi +28 -0
- data/rbi/anthropic/models/organization/spend_limit_organization_service_scope.rbi +31 -0
- data/rbi/anthropic/models/organization/spend_limit_period.rbi +38 -0
- data/rbi/anthropic/models/organization/spend_limit_rbac_group_scope.rbi +33 -0
- data/rbi/anthropic/models/organization/spend_limit_scoped_api_key_actor.rbi +36 -0
- data/rbi/anthropic/models/organization/spend_limit_seat_tier_scope.rbi +33 -0
- data/rbi/anthropic/models/organization/spend_limit_usage_tier_scope.rbi +36 -0
- data/rbi/anthropic/models/organization/spend_limit_user_actor.rbi +81 -0
- data/rbi/anthropic/models/organization/spend_limit_user_scope.rbi +39 -0
- data/rbi/anthropic/models/organization/spend_limit_workspace_scope.rbi +41 -0
- data/rbi/anthropic/models/organization/spend_limits/effective_list_params.rbi +97 -0
- data/rbi/anthropic/models/organization/spend_limits/increase_request_approve_params.rbi +81 -0
- data/rbi/anthropic/models/organization/spend_limits/increase_request_approve_response.rbi +154 -0
- data/rbi/anthropic/models/organization/spend_limits/increase_request_deny_params.rbi +59 -0
- data/rbi/anthropic/models/organization/spend_limits/increase_request_list_params.rbi +93 -0
- data/rbi/anthropic/models/organization/spend_limits/increase_request_retrieve_params.rbi +50 -0
- data/rbi/anthropic/models/organization/spend_limits/spend_limit_increase_request.rbi +139 -0
- data/rbi/anthropic/models/organization/spend_limits/spend_limit_increase_request_actor.rbi +100 -0
- data/rbi/anthropic/models/organization/spend_limits/spend_limit_increase_request_resolved_by.rbi +100 -0
- data/rbi/anthropic/models/organization/spend_limits/spend_limit_increase_request_status.rbi +51 -0
- data/rbi/anthropic/models/organization/spend_summary.rbi +430 -0
- data/rbi/anthropic/models/organization/workspace.rbi +49 -37
- data/rbi/anthropic/models/organization/workspace_create_params.rbi +28 -14
- data/rbi/anthropic/models/organization/workspace_update_params.rbi +33 -14
- data/rbi/anthropic/request_options.rbi +1 -1
- data/rbi/anthropic/resources/beta/dreams.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/apps/chat/projects.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/analytics/artifacts.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/analytics/connectors.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/analytics/plugins.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/analytics/skills.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/analytics/users.rbi +2 -2
- data/rbi/anthropic/resources/beta/organization/compliance_settings.rbi +5 -2
- data/rbi/anthropic/resources/beta/organization/external_keys.rbi +6 -0
- data/rbi/anthropic/resources/beta/organization/rbac_groups/members.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/rbac_groups.rbi +1 -3
- data/rbi/anthropic/resources/beta/organization/spend_limits/effective.rbi +1 -1
- data/rbi/anthropic/resources/beta/organization/workspaces.rbi +27 -14
- data/rbi/anthropic/resources/organization/analytics/apps/chat/projects.rbi +115 -0
- data/rbi/anthropic/resources/organization/analytics/apps/chat.rbi +25 -0
- data/rbi/anthropic/resources/organization/analytics/apps.rbi +21 -0
- data/rbi/anthropic/resources/organization/analytics/artifacts.rbi +80 -0
- data/rbi/anthropic/resources/organization/analytics/connectors.rbi +115 -0
- data/rbi/anthropic/resources/organization/analytics/plugins.rbi +117 -0
- data/rbi/anthropic/resources/organization/analytics/skills.rbi +111 -0
- data/rbi/anthropic/resources/organization/analytics/summaries.rbi +73 -0
- data/rbi/anthropic/resources/organization/analytics/users.rbi +114 -0
- data/rbi/anthropic/resources/organization/analytics.rbi +41 -0
- data/rbi/anthropic/resources/organization/compliance_settings.rbi +5 -2
- data/rbi/anthropic/resources/organization/external_keys.rbi +6 -0
- data/rbi/anthropic/resources/organization/rbac_groups/members.rbi +88 -0
- data/rbi/anthropic/resources/organization/rbac_groups.rbi +112 -0
- data/rbi/anthropic/resources/organization/rbac_roles/permissions.rbi +44 -0
- data/rbi/anthropic/resources/organization/rbac_roles.rbi +58 -0
- data/rbi/anthropic/resources/organization/spend_limits/effective.rbi +54 -0
- data/rbi/anthropic/resources/organization/spend_limits/increase_requests.rbi +118 -0
- data/rbi/anthropic/resources/organization/spend_limits.rbi +26 -0
- data/rbi/anthropic/resources/organization/workspaces.rbi +27 -14
- data/rbi/anthropic/resources/organization.rbi +12 -0
- data/sig/anthropic/internal/tracing.rbs +23 -23
- data/sig/anthropic/models/beta/organization/analytics/apps/chat/project_list_params.rbs +8 -30
- data/sig/anthropic/models/beta/organization/analytics/artifact_list_params.rbs +4 -16
- data/sig/anthropic/models/beta/organization/analytics/connector_list_params.rbs +8 -31
- data/sig/anthropic/models/beta/organization/analytics/plugin_list_params.rbs +8 -31
- data/sig/anthropic/models/beta/organization/analytics/skill_list_params.rbs +8 -31
- data/sig/anthropic/models/beta/organization/analytics/user_list_params.rbs +8 -29
- data/sig/anthropic/models/beta/organization/beta_analytics_artifact_group_by.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_chat_cowork_unified_metrics.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_activity.rbs +32 -54
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_chat_cowork_unified_metrics.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_connector_group_by.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_cowork_metrics.rbs +20 -20
- data/sig/anthropic/models/beta/organization/beta_analytics_order.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_plugin_activity.rbs +9 -22
- data/sig/anthropic/models/beta/organization/beta_analytics_plugin_chat_cowork_unified_metrics.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_plugin_group_by.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_project_activity.rbs +15 -20
- data/sig/anthropic/models/beta/organization/beta_analytics_project_group_by.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_activity.rbs +34 -56
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_chat_cowork_unified_metrics.rbs +29 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_skill_group_by.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_user_activity.rbs +17 -39
- data/sig/anthropic/models/beta/organization/beta_analytics_user_group_by.rbs +17 -0
- data/sig/anthropic/models/beta/organization/{rbac_group_delete_response.rbs → beta_deleted_rbac_group.rbs} +2 -3
- data/sig/anthropic/models/beta/organization/beta_external_key.rbs +7 -2
- data/sig/anthropic/models/beta/organization/beta_workspace.rbs +7 -2
- data/sig/anthropic/models/beta/organization/external_key_create_params.rbs +6 -1
- data/sig/anthropic/models/beta/organization/rbac_groups/{member_remove_response.rbs → beta_deleted_rbac_group_member.rbs} +2 -2
- data/sig/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request.rbs +8 -94
- data/sig/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_actor.rbs +52 -0
- data/sig/anthropic/models/beta/organization/spend_limits/beta_spend_limit_increase_request_resolved_by.rbs +52 -0
- data/sig/anthropic/models/beta/organization/spend_limits/effective_list_params.rbs +4 -16
- data/sig/anthropic/models/beta/organization/spend_limits/increase_request_approve_response.rbs +12 -98
- data/sig/anthropic/models/beta/organization/workspace_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/workspace_update_params.rbs +8 -1
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_compaction_limit_reached_error.rbs +72 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_error_event.rbs +20 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_tool_use_limit_reached_error.rbs +72 -0
- data/sig/anthropic/models/organization/analytics/apps/chat/project_list_params.rbs +74 -0
- data/sig/anthropic/models/organization/analytics/artifact_list_params.rbs +50 -0
- data/sig/anthropic/models/organization/analytics/connector_list_params.rbs +70 -0
- data/sig/anthropic/models/organization/analytics/plugin_list_params.rbs +70 -0
- data/sig/anthropic/models/organization/analytics/skill_list_params.rbs +70 -0
- data/sig/anthropic/models/organization/analytics/summary_list_params.rbs +50 -0
- data/sig/anthropic/models/organization/analytics/user_list_params.rbs +70 -0
- data/sig/anthropic/models/organization/analytics_artifact_activity.rbs +62 -0
- data/sig/anthropic/models/organization/analytics_artifact_group_by.rbs +17 -0
- data/sig/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rbs +77 -0
- data/sig/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rbs +27 -0
- data/sig/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rbs +102 -0
- data/sig/anthropic/models/organization/analytics_chat_metrics.rbs +77 -0
- data/sig/anthropic/models/organization/analytics_claude_code_metrics.rbs +27 -0
- data/sig/anthropic/models/organization/analytics_connector_activity.rbs +102 -0
- data/sig/anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_connector_chat_cowork_unified_metrics.rbs +27 -0
- data/sig/anthropic/models/organization/analytics_connector_chat_cowork_unified_sessions_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_connector_chat_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_connector_claude_code_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_connector_cowork_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_connector_group_by.rbs +17 -0
- data/sig/anthropic/models/organization/analytics_connector_office_metrics.rbs +37 -0
- data/sig/anthropic/models/organization/analytics_connector_office_product_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_core_code_metrics.rbs +42 -0
- data/sig/anthropic/models/organization/analytics_cowork_metrics.rbs +102 -0
- data/sig/anthropic/models/organization/analytics_design_metrics.rbs +37 -0
- data/sig/anthropic/models/organization/analytics_lines_of_code.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_office_metrics.rbs +37 -0
- data/sig/anthropic/models/organization/analytics_office_product_metrics.rbs +47 -0
- data/sig/anthropic/models/organization/analytics_order.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_plugin_activity.rbs +77 -0
- data/sig/anthropic/models/organization/analytics_plugin_chat_cowork_unified_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_plugin_claude_code_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_plugin_cowork_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_plugin_group_by.rbs +17 -0
- data/sig/anthropic/models/organization/analytics_project_activity.rbs +67 -0
- data/sig/anthropic/models/organization/analytics_project_group_by.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_science_metrics.rbs +42 -0
- data/sig/anthropic/models/organization/analytics_single_day_activity_summary.rbs +177 -0
- data/sig/anthropic/models/organization/analytics_skill_activity.rbs +119 -0
- data/sig/anthropic/models/organization/analytics_skill_chat_cowork_unified_chat_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_skill_chat_cowork_unified_metrics.rbs +27 -0
- data/sig/anthropic/models/organization/analytics_skill_chat_cowork_unified_sessions_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_skill_chat_metrics.rbs +18 -0
- data/sig/anthropic/models/organization/analytics_skill_claude_code_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_skill_cowork_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_skill_group_by.rbs +17 -0
- data/sig/anthropic/models/organization/analytics_skill_office_metrics.rbs +37 -0
- data/sig/anthropic/models/organization/analytics_skill_office_product_metrics.rbs +16 -0
- data/sig/anthropic/models/organization/analytics_tool_action_counts.rbs +21 -0
- data/sig/anthropic/models/organization/analytics_tool_actions.rbs +37 -0
- data/sig/anthropic/models/organization/analytics_user.rbs +23 -0
- data/sig/anthropic/models/organization/analytics_user_activity.rbs +82 -0
- data/sig/anthropic/models/organization/analytics_user_group_by.rbs +15 -0
- data/sig/anthropic/models/organization/deleted_rbac_group.rbs +17 -0
- data/sig/anthropic/models/organization/external_key.rbs +7 -2
- data/sig/anthropic/models/organization/external_key_create_params.rbs +6 -1
- data/sig/anthropic/models/organization/rbac_group.rbs +63 -0
- data/sig/anthropic/models/organization/rbac_group_create_params.rbs +25 -0
- data/sig/anthropic/models/organization/rbac_group_delete_params.rbs +26 -0
- data/sig/anthropic/models/organization/rbac_group_list_params.rbs +32 -0
- data/sig/anthropic/models/organization/rbac_group_retrieve_params.rbs +26 -0
- data/sig/anthropic/models/organization/rbac_group_update_params.rbs +30 -0
- data/sig/anthropic/models/organization/rbac_groups/deleted_rbac_group_member.rbs +34 -0
- data/sig/anthropic/models/organization/rbac_groups/member_add_params.rbs +32 -0
- data/sig/anthropic/models/organization/rbac_groups/member_list_params.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_groups/member_remove_params.rbs +32 -0
- data/sig/anthropic/models/organization/rbac_groups/rbac_group_member.rbs +46 -0
- data/sig/anthropic/models/organization/rbac_role.rbs +42 -0
- data/sig/anthropic/models/organization/rbac_role_list_params.rbs +32 -0
- data/sig/anthropic/models/organization/rbac_role_retrieve_params.rbs +25 -0
- data/sig/anthropic/models/organization/rbac_roles/permission_list_params.rbs +38 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_all_connectors_permission_resource.rbs +17 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_connector_permission_resource.rbs +20 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_connector_scope_permission_resource.rbs +30 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_connector_tool_permission_resource.rbs +30 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_organization_permission_resource.rbs +23 -0
- data/sig/anthropic/models/organization/rbac_roles/rbac_role_permission.rbs +99 -0
- data/sig/anthropic/models/organization/spend_limit.rbs +137 -0
- data/sig/anthropic/models/organization/spend_limit_organization_scope.rbs +15 -0
- data/sig/anthropic/models/organization/spend_limit_organization_service_scope.rbs +18 -0
- data/sig/anthropic/models/organization/spend_limit_period.rbs +17 -0
- data/sig/anthropic/models/organization/spend_limit_rbac_group_scope.rbs +18 -0
- data/sig/anthropic/models/organization/spend_limit_scoped_api_key_actor.rbs +24 -0
- data/sig/anthropic/models/organization/spend_limit_seat_tier_scope.rbs +17 -0
- data/sig/anthropic/models/organization/spend_limit_usage_tier_scope.rbs +15 -0
- data/sig/anthropic/models/organization/spend_limit_user_actor.rbs +42 -0
- data/sig/anthropic/models/organization/spend_limit_user_scope.rbs +17 -0
- data/sig/anthropic/models/organization/spend_limit_workspace_scope.rbs +18 -0
- data/sig/anthropic/models/organization/spend_limits/effective_list_params.rbs +47 -0
- data/sig/anthropic/models/organization/spend_limits/increase_request_approve_params.rbs +47 -0
- data/sig/anthropic/models/organization/spend_limits/increase_request_approve_response.rbs +69 -0
- data/sig/anthropic/models/organization/spend_limits/increase_request_deny_params.rbs +37 -0
- data/sig/anthropic/models/organization/spend_limits/increase_request_list_params.rbs +47 -0
- data/sig/anthropic/models/organization/spend_limits/increase_request_retrieve_params.rbs +28 -0
- data/sig/anthropic/models/organization/spend_limits/spend_limit_increase_request.rbs +66 -0
- data/sig/anthropic/models/organization/spend_limits/spend_limit_increase_request_actor.rbs +52 -0
- data/sig/anthropic/models/organization/spend_limits/spend_limit_increase_request_resolved_by.rbs +52 -0
- data/sig/anthropic/models/organization/spend_limits/spend_limit_increase_request_status.rbs +22 -0
- data/sig/anthropic/models/organization/spend_summary.rbs +250 -0
- data/sig/anthropic/models/organization/workspace.rbs +7 -2
- data/sig/anthropic/models/organization/workspace_create_params.rbs +6 -1
- data/sig/anthropic/models/organization/workspace_update_params.rbs +8 -1
- data/sig/anthropic/resources/beta/organization/analytics/apps/chat/projects.rbs +2 -2
- data/sig/anthropic/resources/beta/organization/analytics/artifacts.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/analytics/connectors.rbs +2 -2
- data/sig/anthropic/resources/beta/organization/analytics/plugins.rbs +2 -2
- data/sig/anthropic/resources/beta/organization/analytics/skills.rbs +2 -2
- data/sig/anthropic/resources/beta/organization/analytics/users.rbs +2 -2
- data/sig/anthropic/resources/beta/organization/external_keys.rbs +1 -0
- data/sig/anthropic/resources/beta/organization/rbac_groups/members.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/rbac_groups.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/spend_limits/effective.rbs +1 -1
- data/sig/anthropic/resources/beta/organization/workspaces.rbs +2 -0
- data/sig/anthropic/resources/organization/analytics/apps/chat/projects.rbs +28 -0
- data/sig/anthropic/resources/organization/analytics/apps/chat.rbs +15 -0
- data/sig/anthropic/resources/organization/analytics/apps.rbs +13 -0
- data/sig/anthropic/resources/organization/analytics/artifacts.rbs +20 -0
- data/sig/anthropic/resources/organization/analytics/connectors.rbs +24 -0
- data/sig/anthropic/resources/organization/analytics/plugins.rbs +24 -0
- data/sig/anthropic/resources/organization/analytics/skills.rbs +24 -0
- data/sig/anthropic/resources/organization/analytics/summaries.rbs +20 -0
- data/sig/anthropic/resources/organization/analytics/users.rbs +24 -0
- data/sig/anthropic/resources/organization/analytics.rbs +23 -0
- data/sig/anthropic/resources/organization/external_keys.rbs +1 -0
- data/sig/anthropic/resources/organization/rbac_groups/members.rbs +30 -0
- data/sig/anthropic/resources/organization/rbac_groups.rbs +38 -0
- data/sig/anthropic/resources/organization/rbac_roles/permissions.rbs +18 -0
- data/sig/anthropic/resources/organization/rbac_roles.rbs +22 -0
- data/sig/anthropic/resources/organization/spend_limits/effective.rbs +19 -0
- data/sig/anthropic/resources/organization/spend_limits/increase_requests.rbs +38 -0
- data/sig/anthropic/resources/organization/spend_limits.rbs +13 -0
- data/sig/anthropic/resources/organization/workspaces.rbs +2 -0
- data/sig/anthropic/resources/organization.rbs +8 -0
- metadata +401 -8
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute action_count
|
|
8
|
+
# Same measure as `cowork_metrics.action_count`, for activity recorded while
|
|
9
|
+
# members had Chat and Cowork unified turned on.
|
|
10
|
+
#
|
|
11
|
+
# @return [Integer]
|
|
12
|
+
required :action_count, Integer
|
|
13
|
+
|
|
14
|
+
# @!attribute artifacts_created_count
|
|
15
|
+
# Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
|
|
16
|
+
# while members had Chat and Cowork unified turned on. Exact in date-range mode: a
|
|
17
|
+
# creation belongs to exactly one day, so the per-day counts never overlap and
|
|
18
|
+
# their sum over the window is the exact count of distinct creations in it.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :artifacts_created_count, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute connectors_used_count
|
|
24
|
+
# Same measure as `cowork_metrics.connectors_used_count`, for activity recorded
|
|
25
|
+
# while members had Chat and Cowork unified turned on.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer]
|
|
28
|
+
required :connectors_used_count, Integer
|
|
29
|
+
|
|
30
|
+
# @!attribute dispatch_turn_count
|
|
31
|
+
# Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded
|
|
32
|
+
# while members had Chat and Cowork unified turned on.
|
|
33
|
+
#
|
|
34
|
+
# @return [Integer]
|
|
35
|
+
required :dispatch_turn_count, Integer
|
|
36
|
+
|
|
37
|
+
# @!attribute distinct_connectors_used_count
|
|
38
|
+
# Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity
|
|
39
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
40
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
41
|
+
# count cannot be computed.
|
|
42
|
+
#
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
required :distinct_connectors_used_count, Integer, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute distinct_plugins_used_count
|
|
47
|
+
# Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity
|
|
48
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
49
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
50
|
+
# count cannot be computed.
|
|
51
|
+
#
|
|
52
|
+
# @return [Integer, nil]
|
|
53
|
+
required :distinct_plugins_used_count, Integer, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!attribute distinct_session_count
|
|
56
|
+
# Same measure as `cowork_metrics.distinct_session_count`, for activity recorded
|
|
57
|
+
# while members had Chat and Cowork unified turned on. Approximate (HLL, typical
|
|
58
|
+
# error <2%) in date-range mode. Null on aggregated rows where a distinct count
|
|
59
|
+
# cannot be computed.
|
|
60
|
+
#
|
|
61
|
+
# @return [Integer, nil]
|
|
62
|
+
required :distinct_session_count, Integer, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute distinct_skills_used_count
|
|
65
|
+
# Same measure as `cowork_metrics.distinct_skills_used_count`, for activity
|
|
66
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
67
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
68
|
+
# count cannot be computed.
|
|
69
|
+
#
|
|
70
|
+
# @return [Integer, nil]
|
|
71
|
+
required :distinct_skills_used_count, Integer, nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute edit_tool_count
|
|
74
|
+
# Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while
|
|
75
|
+
# members had Chat and Cowork unified turned on.
|
|
76
|
+
#
|
|
77
|
+
# @return [Integer, nil]
|
|
78
|
+
required :edit_tool_count, Integer, nil?: true
|
|
79
|
+
|
|
80
|
+
# @!attribute file_edit_count
|
|
81
|
+
# Same measure as `cowork_metrics.file_edit_count`, for activity recorded while
|
|
82
|
+
# members had Chat and Cowork unified turned on.
|
|
83
|
+
#
|
|
84
|
+
# @return [Integer, nil]
|
|
85
|
+
required :file_edit_count, Integer, nil?: true
|
|
86
|
+
|
|
87
|
+
# @!attribute message_count
|
|
88
|
+
# Same measure as `cowork_metrics.message_count`, for activity recorded while
|
|
89
|
+
# members had Chat and Cowork unified turned on.
|
|
90
|
+
#
|
|
91
|
+
# @return [Integer]
|
|
92
|
+
required :message_count, Integer
|
|
93
|
+
|
|
94
|
+
# @!attribute multi_edit_tool_count
|
|
95
|
+
# Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded
|
|
96
|
+
# while members had Chat and Cowork unified turned on. Claude no longer has a
|
|
97
|
+
# multi-edit tool, so expect 0 when not null; each edit is now a separate Edit
|
|
98
|
+
# tool call, counted in `edit_tool_count` and `file_edit_count`.
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer, nil]
|
|
101
|
+
required :multi_edit_tool_count, Integer, nil?: true
|
|
102
|
+
|
|
103
|
+
# @!attribute notebook_edit_tool_count
|
|
104
|
+
# Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
|
|
105
|
+
# while members had Chat and Cowork unified turned on.
|
|
106
|
+
#
|
|
107
|
+
# @return [Integer, nil]
|
|
108
|
+
required :notebook_edit_tool_count, Integer, nil?: true
|
|
109
|
+
|
|
110
|
+
# @!attribute plugins_used_count
|
|
111
|
+
# Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
|
|
112
|
+
# members had Chat and Cowork unified turned on.
|
|
113
|
+
#
|
|
114
|
+
# @return [Integer, nil]
|
|
115
|
+
required :plugins_used_count, Integer, nil?: true
|
|
116
|
+
|
|
117
|
+
# @!attribute sessions_with_file_edits_count
|
|
118
|
+
# Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity
|
|
119
|
+
# recorded while members had Chat and Cowork unified turned on. Approximate (HLL,
|
|
120
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
121
|
+
# count cannot be computed.
|
|
122
|
+
#
|
|
123
|
+
# @return [Integer, nil]
|
|
124
|
+
required :sessions_with_file_edits_count, Integer, nil?: true
|
|
125
|
+
|
|
126
|
+
# @!attribute skills_used_count
|
|
127
|
+
# Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
|
|
128
|
+
# members had Chat and Cowork unified turned on.
|
|
129
|
+
#
|
|
130
|
+
# @return [Integer]
|
|
131
|
+
required :skills_used_count, Integer
|
|
132
|
+
|
|
133
|
+
# @!attribute write_tool_count
|
|
134
|
+
# Same measure as `cowork_metrics.write_tool_count`, for activity recorded while
|
|
135
|
+
# members had Chat and Cowork unified turned on.
|
|
136
|
+
#
|
|
137
|
+
# @return [Integer, nil]
|
|
138
|
+
required :write_tool_count, Integer, nil?: true
|
|
139
|
+
|
|
140
|
+
# @!method initialize(action_count:, artifacts_created_count:, connectors_used_count:, dispatch_turn_count:, distinct_connectors_used_count:, distinct_plugins_used_count:, distinct_session_count:, distinct_skills_used_count:, edit_tool_count:, file_edit_count:, message_count:, multi_edit_tool_count:, notebook_edit_tool_count:, plugins_used_count:, sessions_with_file_edits_count:, skills_used_count:, write_tool_count:)
|
|
141
|
+
# Cowork session activity recorded while members had Chat and Cowork unified
|
|
142
|
+
# turned on.
|
|
143
|
+
#
|
|
144
|
+
# Some parameter documentations has been truncated, see
|
|
145
|
+
# {Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics} for
|
|
146
|
+
# more details.
|
|
147
|
+
#
|
|
148
|
+
# @param action_count [Integer] Same measure as `cowork_metrics.action_count`, for activity recorded while membe
|
|
149
|
+
#
|
|
150
|
+
# @param artifacts_created_count [Integer] Same measure as `cowork_metrics.artifacts_created_count`, for activity recorded
|
|
151
|
+
#
|
|
152
|
+
# @param connectors_used_count [Integer] Same measure as `cowork_metrics.connectors_used_count`, for activity recorded wh
|
|
153
|
+
#
|
|
154
|
+
# @param dispatch_turn_count [Integer] Same measure as `cowork_metrics.dispatch_turn_count`, for activity recorded whil
|
|
155
|
+
#
|
|
156
|
+
# @param distinct_connectors_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_connectors_used_count`, for activity re
|
|
157
|
+
#
|
|
158
|
+
# @param distinct_plugins_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_plugins_used_count`, for activity recor
|
|
159
|
+
#
|
|
160
|
+
# @param distinct_session_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_count`, for activity recorded w
|
|
161
|
+
#
|
|
162
|
+
# @param distinct_skills_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_skills_used_count`, for activity record
|
|
163
|
+
#
|
|
164
|
+
# @param edit_tool_count [Integer, nil] Same measure as `cowork_metrics.edit_tool_count`, for activity recorded while me
|
|
165
|
+
#
|
|
166
|
+
# @param file_edit_count [Integer, nil] Same measure as `cowork_metrics.file_edit_count`, for activity recorded while me
|
|
167
|
+
#
|
|
168
|
+
# @param message_count [Integer] Same measure as `cowork_metrics.message_count`, for activity recorded while memb
|
|
169
|
+
#
|
|
170
|
+
# @param multi_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.multi_edit_tool_count`, for activity recorded wh
|
|
171
|
+
#
|
|
172
|
+
# @param notebook_edit_tool_count [Integer, nil] Same measure as `cowork_metrics.notebook_edit_tool_count`, for activity recorded
|
|
173
|
+
#
|
|
174
|
+
# @param plugins_used_count [Integer, nil] Same measure as `cowork_metrics.plugins_used_count`, for activity recorded while
|
|
175
|
+
#
|
|
176
|
+
# @param sessions_with_file_edits_count [Integer, nil] Same measure as `cowork_metrics.sessions_with_file_edits_count`, for activity re
|
|
177
|
+
#
|
|
178
|
+
# @param skills_used_count [Integer] Same measure as `cowork_metrics.skills_used_count`, for activity recorded while
|
|
179
|
+
#
|
|
180
|
+
# @param write_tool_count [Integer, nil] Same measure as `cowork_metrics.write_tool_count`, for activity recorded while m
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsChatMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute connectors_used_count
|
|
8
|
+
# Number of MCP connector invocations.
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
required :connectors_used_count, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute distinct_artifacts_created_count
|
|
14
|
+
# Number of distinct artifacts created. Exact in date-range mode: a creation
|
|
15
|
+
# belongs to exactly one day, so the per-day counts never overlap and their sum
|
|
16
|
+
# over the window is the exact count of distinct creations in it.
|
|
17
|
+
#
|
|
18
|
+
# @return [Integer]
|
|
19
|
+
required :distinct_artifacts_created_count, Integer
|
|
20
|
+
|
|
21
|
+
# @!attribute distinct_connectors_used_count
|
|
22
|
+
# Distinct claude.ai connectors this user used. Excludes calls whose connector
|
|
23
|
+
# could not be identified and all calls from organizations with zero data
|
|
24
|
+
# retention. Approximate (HLL, typical error <2%) in date-range mode. Null on
|
|
25
|
+
# aggregated rows where a distinct count cannot be computed.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
required :distinct_connectors_used_count, Integer, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!attribute distinct_conversation_count
|
|
31
|
+
# Number of distinct conversations the user participated in. Approximate (HLL,
|
|
32
|
+
# typical error <2%) in date-range mode. Null on aggregated rows where a distinct
|
|
33
|
+
# count cannot be computed.
|
|
34
|
+
#
|
|
35
|
+
# @return [Integer, nil]
|
|
36
|
+
required :distinct_conversation_count, Integer, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute distinct_files_uploaded_count
|
|
39
|
+
# Number of distinct files uploaded. Approximate (HLL, typical error <2%) in
|
|
40
|
+
# date-range mode. Null on aggregated rows where a distinct count cannot be
|
|
41
|
+
# computed.
|
|
42
|
+
#
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
required :distinct_files_uploaded_count, Integer, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute distinct_projects_created_count
|
|
47
|
+
# Number of distinct projects created. Exact in date-range mode: a creation
|
|
48
|
+
# belongs to exactly one day, so the per-day counts never overlap and their sum
|
|
49
|
+
# over the window is the exact count of distinct creations in it.
|
|
50
|
+
#
|
|
51
|
+
# @return [Integer]
|
|
52
|
+
required :distinct_projects_created_count, Integer
|
|
53
|
+
|
|
54
|
+
# @!attribute distinct_projects_used_count
|
|
55
|
+
# Number of distinct projects used. Approximate (HLL, typical error <2%) in
|
|
56
|
+
# date-range mode. Null on aggregated rows where a distinct count cannot be
|
|
57
|
+
# computed.
|
|
58
|
+
#
|
|
59
|
+
# @return [Integer, nil]
|
|
60
|
+
required :distinct_projects_used_count, Integer, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute distinct_shared_artifacts_viewed_count
|
|
63
|
+
# Number of distinct shared artifacts the user viewed. Approximate (HLL, typical
|
|
64
|
+
# error <2%) in date-range mode. Null on aggregated rows where a distinct count
|
|
65
|
+
# cannot be computed.
|
|
66
|
+
#
|
|
67
|
+
# @return [Integer, nil]
|
|
68
|
+
required :distinct_shared_artifacts_viewed_count, Integer, nil?: true
|
|
69
|
+
|
|
70
|
+
# @!attribute distinct_skills_used_count
|
|
71
|
+
# Number of distinct skills used. Approximate (HLL, typical error <2%) in
|
|
72
|
+
# date-range mode. Null on aggregated rows where a distinct count cannot be
|
|
73
|
+
# computed.
|
|
74
|
+
#
|
|
75
|
+
# @return [Integer, nil]
|
|
76
|
+
required :distinct_skills_used_count, Integer, nil?: true
|
|
77
|
+
|
|
78
|
+
# @!attribute message_count
|
|
79
|
+
# Number of messages sent
|
|
80
|
+
#
|
|
81
|
+
# @return [Integer]
|
|
82
|
+
required :message_count, Integer
|
|
83
|
+
|
|
84
|
+
# @!attribute shared_conversations_viewed_count
|
|
85
|
+
# Number of times the user opened a shared conversation in a project
|
|
86
|
+
#
|
|
87
|
+
# @return [Integer]
|
|
88
|
+
required :shared_conversations_viewed_count, Integer
|
|
89
|
+
|
|
90
|
+
# @!attribute thinking_message_count
|
|
91
|
+
# Number of messages that used extended thinking
|
|
92
|
+
#
|
|
93
|
+
# @return [Integer]
|
|
94
|
+
required :thinking_message_count, Integer
|
|
95
|
+
|
|
96
|
+
# @!method initialize(connectors_used_count:, distinct_artifacts_created_count:, distinct_connectors_used_count:, distinct_conversation_count:, distinct_files_uploaded_count:, distinct_projects_created_count:, distinct_projects_used_count:, distinct_shared_artifacts_viewed_count:, distinct_skills_used_count:, message_count:, shared_conversations_viewed_count:, thinking_message_count:)
|
|
97
|
+
# Claude.ai activity metrics for a single user on a given day.
|
|
98
|
+
#
|
|
99
|
+
# Some parameter documentations has been truncated, see
|
|
100
|
+
# {Anthropic::Models::Organization::AnalyticsChatMetrics} for more details.
|
|
101
|
+
#
|
|
102
|
+
# @param connectors_used_count [Integer] Number of MCP connector invocations.
|
|
103
|
+
#
|
|
104
|
+
# @param distinct_artifacts_created_count [Integer] Number of distinct artifacts created. Exact in date-range mode: a creation belon
|
|
105
|
+
#
|
|
106
|
+
# @param distinct_connectors_used_count [Integer, nil] Distinct claude.ai connectors this user used. Excludes calls whose connector cou
|
|
107
|
+
#
|
|
108
|
+
# @param distinct_conversation_count [Integer, nil] Number of distinct conversations the user participated in. Approximate (HLL, typ
|
|
109
|
+
#
|
|
110
|
+
# @param distinct_files_uploaded_count [Integer, nil] Number of distinct files uploaded. Approximate (HLL, typical error <2%) in date-
|
|
111
|
+
#
|
|
112
|
+
# @param distinct_projects_created_count [Integer] Number of distinct projects created. Exact in date-range mode: a creation belong
|
|
113
|
+
#
|
|
114
|
+
# @param distinct_projects_used_count [Integer, nil] Number of distinct projects used. Approximate (HLL, typical error <2%) in date-r
|
|
115
|
+
#
|
|
116
|
+
# @param distinct_shared_artifacts_viewed_count [Integer, nil] Number of distinct shared artifacts the user viewed. Approximate (HLL, typical e
|
|
117
|
+
#
|
|
118
|
+
# @param distinct_skills_used_count [Integer, nil] Number of distinct skills used. Approximate (HLL, typical error <2%) in date-ran
|
|
119
|
+
#
|
|
120
|
+
# @param message_count [Integer] Number of messages sent
|
|
121
|
+
#
|
|
122
|
+
# @param shared_conversations_viewed_count [Integer] Number of times the user opened a shared conversation in a project
|
|
123
|
+
#
|
|
124
|
+
# @param thinking_message_count [Integer] Number of messages that used extended thinking
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsClaudeCodeMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute core_metrics
|
|
8
|
+
# Core Claude Code activity metrics for a single user on a given day.
|
|
9
|
+
#
|
|
10
|
+
# @return [Anthropic::Models::Organization::AnalyticsCoreCodeMetrics]
|
|
11
|
+
required :core_metrics, -> { Anthropic::Organization::AnalyticsCoreCodeMetrics }
|
|
12
|
+
|
|
13
|
+
# @!attribute tool_actions
|
|
14
|
+
# Per-tool accepted/rejected counts for Claude Code file modification tools.
|
|
15
|
+
#
|
|
16
|
+
# @return [Anthropic::Models::Organization::AnalyticsToolActions]
|
|
17
|
+
required :tool_actions, -> { Anthropic::Organization::AnalyticsToolActions }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(core_metrics:, tool_actions:)
|
|
20
|
+
# Claude Code activity metrics for a single user on a given day.
|
|
21
|
+
#
|
|
22
|
+
# @param core_metrics [Anthropic::Models::Organization::AnalyticsCoreCodeMetrics] Core Claude Code activity metrics for a single user on a given day.
|
|
23
|
+
#
|
|
24
|
+
# @param tool_actions [Anthropic::Models::Organization::AnalyticsToolActions] Per-tool accepted/rejected counts for Claude Code file modification tools.
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsConnectorActivity < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute chat_metrics
|
|
8
|
+
# Claude.ai activity metrics for a single connector on a given day.
|
|
9
|
+
#
|
|
10
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorChatMetrics]
|
|
11
|
+
required :chat_metrics, -> { Anthropic::Organization::AnalyticsConnectorChatMetrics }
|
|
12
|
+
|
|
13
|
+
# @!attribute claude_code_metrics
|
|
14
|
+
# Claude Code activity metrics for a single connector on a given day.
|
|
15
|
+
#
|
|
16
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorClaudeCodeMetrics]
|
|
17
|
+
required :claude_code_metrics, -> { Anthropic::Organization::AnalyticsConnectorClaudeCodeMetrics }
|
|
18
|
+
|
|
19
|
+
# @!attribute connector_display_name
|
|
20
|
+
# Human-readable display name for rows whose `connector_name` is an opaque
|
|
21
|
+
# connector id rather than a readable name, resolved at request time from the
|
|
22
|
+
# organization's connectors (including connectors that have since been removed).
|
|
23
|
+
# `connector_name` remains the row's stable key for sorting and pagination, and
|
|
24
|
+
# `filter[]=connector_name:{value}` also matches these rows by display name.
|
|
25
|
+
# Display names are not unique, and the same connector's claude.ai usage can
|
|
26
|
+
# appear under a separate row with a readable `connector_name`. Null when
|
|
27
|
+
# `connector_name` is already a readable name, when the id cannot be resolved to
|
|
28
|
+
# one of the organization's connectors, or when display-name resolution is not
|
|
29
|
+
# enabled for this organization.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
required :connector_display_name, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute connector_name
|
|
35
|
+
# Name of the connector. Some rows carry an opaque connector id here instead of a
|
|
36
|
+
# readable name; `connector_display_name` holds the resolved name for those rows.
|
|
37
|
+
#
|
|
38
|
+
# @return [String]
|
|
39
|
+
required :connector_name, String
|
|
40
|
+
|
|
41
|
+
# @!attribute cowork_metrics
|
|
42
|
+
# Cowork activity metrics for a single connector on a given day.
|
|
43
|
+
#
|
|
44
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorCoworkMetrics]
|
|
45
|
+
required :cowork_metrics, -> { Anthropic::Organization::AnalyticsConnectorCoworkMetrics }
|
|
46
|
+
|
|
47
|
+
# @!attribute distinct_user_count
|
|
48
|
+
# Number of distinct users who used the connector on the requested day, or, in
|
|
49
|
+
# date-range mode, over the requested window — recomputed as an exact distinct
|
|
50
|
+
# count over the window's per-member daily rows, never a sum of per-day values.
|
|
51
|
+
#
|
|
52
|
+
# @return [Integer]
|
|
53
|
+
required :distinct_user_count, Integer
|
|
54
|
+
|
|
55
|
+
# @!attribute individual_auth_distinct_user_count
|
|
56
|
+
# Number of distinct users whose use of this connector on the requested day ran on
|
|
57
|
+
# their own individual credential, connected through their own consent flow.
|
|
58
|
+
# Companion bucket to `managed_auth_distinct_user_count`, which carries the
|
|
59
|
+
# measurement, attribution, and null rules. Users whose requests used no stored
|
|
60
|
+
# credential count in neither bucket.
|
|
61
|
+
#
|
|
62
|
+
# @return [Integer, nil]
|
|
63
|
+
required :individual_auth_distinct_user_count, Integer, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute managed_auth_distinct_user_count
|
|
66
|
+
# Number of distinct users whose use of this connector on the requested day ran on
|
|
67
|
+
# Enterprise Managed Auth (an organization-managed credential provisioned through
|
|
68
|
+
# the organization's identity provider), read from the token record each request
|
|
69
|
+
# used. Null, never 0, when managed-auth reporting is not enabled for the
|
|
70
|
+
# organization, the value cannot be attributed to the row, no credentialed
|
|
71
|
+
# requests and no managed-token mint events (a managed credential being
|
|
72
|
+
# provisioned for a user's use of the connector) were observed that day, or the
|
|
73
|
+
# day predates 2026-07-01, the first day the backing data exists (forward-only
|
|
74
|
+
# data, no backfill). When credentialed requests or mint events were observed and
|
|
75
|
+
# attributed, both managed-auth fields populate, reporting 0 for a bucket with no
|
|
76
|
+
# users; the two counts are independent, not a partition — a user whose requests
|
|
77
|
+
# that day used both kinds of credential counts in both. Mint events carry user
|
|
78
|
+
# but not surface attribution, so they count as observed auth activity on
|
|
79
|
+
# `user_id` and `rbac_group_id` cuts — attributed to the user the credential was
|
|
80
|
+
# provisioned for — but never on a cut that references `product` (group or
|
|
81
|
+
# filter). Date-range rollup mode (`starting_date`/`ending_date`) computes both
|
|
82
|
+
# fields exactly over the window — distinct users with at least one qualifying day
|
|
83
|
+
# — when the whole window starts on or after 2026-07-01, with the null-versus-0
|
|
84
|
+
# and mint-event rules applying with the window in place of the day; a range
|
|
85
|
+
# starting earlier reports every managed-auth field as null, never a
|
|
86
|
+
# partial-window value.
|
|
87
|
+
#
|
|
88
|
+
# @return [Integer, nil]
|
|
89
|
+
required :managed_auth_distinct_user_count, Integer, nil?: true
|
|
90
|
+
|
|
91
|
+
# @!attribute office_metrics
|
|
92
|
+
# Office Agent activity metrics for a single connector on a given day, broken out
|
|
93
|
+
# by Office product.
|
|
94
|
+
#
|
|
95
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorOfficeMetrics]
|
|
96
|
+
required :office_metrics, -> { Anthropic::Organization::AnalyticsConnectorOfficeMetrics }
|
|
97
|
+
|
|
98
|
+
# @!attribute read_call_count
|
|
99
|
+
# Number of connector tool calls on the requested day whose trusted read-only
|
|
100
|
+
# annotation marked them read-only. Call count, not distinct users. Every call
|
|
101
|
+
# recorded on a classified surface lands in exactly one of `read_call_count`,
|
|
102
|
+
# `write_call_count`, or `unclassified_call_count`, so the three sum to the day's
|
|
103
|
+
# classified calls. Classification is forward-only per surface: claude.ai from
|
|
104
|
+
# 2026-06-01, Claude Code from 2026-05-30, Claude in Office from 2026-05-29,
|
|
105
|
+
# Cowork from 2026-06-02 (Cowork clients predating annotation forwarding land in
|
|
106
|
+
# `unclassified_call_count`). Null, never 0, when the value cannot be stated: the
|
|
107
|
+
# read/write split is not enabled for this organization, or the day predates
|
|
108
|
+
# 2026-05-29. For a date-range total, sum the per-day values, but treat a window
|
|
109
|
+
# that extends before 2026-05-29 as null rather than summing only its covered days
|
|
110
|
+
# — date-range rollup mode (`starting_date`/`ending_date`) applies both rules
|
|
111
|
+
# server-side.
|
|
112
|
+
#
|
|
113
|
+
# @return [Integer, nil]
|
|
114
|
+
required :read_call_count, Integer, nil?: true
|
|
115
|
+
|
|
116
|
+
# @!attribute unclassified_call_count
|
|
117
|
+
# Number of connector tool calls on the requested day with no trusted read-only
|
|
118
|
+
# annotation — the annotation is optional in the MCP spec and is discarded when
|
|
119
|
+
# connector access controls are active, so unclassified calls are common. This
|
|
120
|
+
# field shows how much of the day's classified activity the read/write split
|
|
121
|
+
# actually covers. Call count, not distinct users. One of the three
|
|
122
|
+
# call-classification buckets; see `read_call_count` for the per-surface
|
|
123
|
+
# data-start dates, null conditions, and date-range guidance.
|
|
124
|
+
#
|
|
125
|
+
# @return [Integer, nil]
|
|
126
|
+
required :unclassified_call_count, Integer, nil?: true
|
|
127
|
+
|
|
128
|
+
# @!attribute write_call_count
|
|
129
|
+
# Number of connector tool calls on the requested day whose trusted read-only
|
|
130
|
+
# annotation marked them not read-only. Call count, not distinct users. One of the
|
|
131
|
+
# three call-classification buckets; see `read_call_count` for the per-surface
|
|
132
|
+
# data-start dates, null conditions, and date-range guidance.
|
|
133
|
+
#
|
|
134
|
+
# @return [Integer, nil]
|
|
135
|
+
required :write_call_count, Integer, nil?: true
|
|
136
|
+
|
|
137
|
+
# @!attribute chat_cowork_unified_metrics
|
|
138
|
+
# Connector use recorded while members had Chat and Cowork unified (Cowork's
|
|
139
|
+
# features inside claude.ai chat) turned on, split into chat conversations and
|
|
140
|
+
# Cowork sessions. A count is null in date-range mode where it cannot be computed.
|
|
141
|
+
# Omitted from the response on deployments that do not offer Chat and Cowork
|
|
142
|
+
# unified.
|
|
143
|
+
#
|
|
144
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedMetrics, nil]
|
|
145
|
+
optional :chat_cowork_unified_metrics,
|
|
146
|
+
-> { Anthropic::Organization::AnalyticsConnectorChatCoworkUnifiedMetrics },
|
|
147
|
+
nil?: true
|
|
148
|
+
|
|
149
|
+
# @!attribute product
|
|
150
|
+
# Product that produced this row's activity: one of `chat`, `claude_code`,
|
|
151
|
+
# `cowork`, `office_agent`, or `chat_cowork_unified` (Chat and Cowork unified).
|
|
152
|
+
# These are the canonical Cost & Usage product names; an `office_agent` row's
|
|
153
|
+
# per-surface breakdown is in its `office_metrics`. On `/plugins` only `cowork`,
|
|
154
|
+
# `claude_code` and `chat_cowork_unified` occur (the only surfaces with plugin
|
|
155
|
+
# attribution); on `/artifacts` only `chat`, `claude_code`, `cowork` and
|
|
156
|
+
# `chat_cowork_unified` occur (the surfaces that create artifacts);
|
|
157
|
+
# `/apps/chat/projects` does not support the product dimension (a `product` entry
|
|
158
|
+
# in `group_by[]` or `filter[]` there is rejected). Present only when the request
|
|
159
|
+
# grouped by `product`.
|
|
160
|
+
#
|
|
161
|
+
# @return [String, nil]
|
|
162
|
+
optional :product, String, nil?: true
|
|
163
|
+
|
|
164
|
+
# @!attribute rbac_group_id
|
|
165
|
+
# Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API
|
|
166
|
+
# spelling. Present only when the request grouped by `rbac_group_id`.
|
|
167
|
+
#
|
|
168
|
+
# @return [String, nil]
|
|
169
|
+
optional :rbac_group_id, String, nil?: true
|
|
170
|
+
|
|
171
|
+
# @!attribute rbac_group_name
|
|
172
|
+
# Resolved RBAC group display name, alongside `rbac_group_id` when name resolution
|
|
173
|
+
# is available. Null if the group has been deleted or its name could not be
|
|
174
|
+
# resolved; `rbac_group_id` remains the stable key.
|
|
175
|
+
#
|
|
176
|
+
# @return [String, nil]
|
|
177
|
+
optional :rbac_group_name, String, nil?: true
|
|
178
|
+
|
|
179
|
+
# @!attribute user_id
|
|
180
|
+
# Tagged user identifier (e.g. `user_...`). Present only when the request grouped
|
|
181
|
+
# by `user_id`.
|
|
182
|
+
#
|
|
183
|
+
# @return [String, nil]
|
|
184
|
+
optional :user_id, String, nil?: true
|
|
185
|
+
|
|
186
|
+
# @!method initialize(chat_metrics:, claude_code_metrics:, connector_display_name:, connector_name:, cowork_metrics:, distinct_user_count:, individual_auth_distinct_user_count:, managed_auth_distinct_user_count:, office_metrics:, read_call_count:, unclassified_call_count:, write_call_count:, chat_cowork_unified_metrics: nil, product: nil, rbac_group_id: nil, rbac_group_name: nil, user_id: nil)
|
|
187
|
+
# Per-connector activity data for a given day.
|
|
188
|
+
#
|
|
189
|
+
# Some parameter documentations has been truncated, see
|
|
190
|
+
# {Anthropic::Models::Organization::AnalyticsConnectorActivity} for more details.
|
|
191
|
+
#
|
|
192
|
+
# @param chat_metrics [Anthropic::Models::Organization::AnalyticsConnectorChatMetrics] Claude.ai activity metrics for a single connector on a given day.
|
|
193
|
+
#
|
|
194
|
+
# @param claude_code_metrics [Anthropic::Models::Organization::AnalyticsConnectorClaudeCodeMetrics] Claude Code activity metrics for a single connector on a given day.
|
|
195
|
+
#
|
|
196
|
+
# @param connector_display_name [String, nil] Human-readable display name for rows whose `connector_name` is an opaque connect
|
|
197
|
+
#
|
|
198
|
+
# @param connector_name [String] Name of the connector. Some rows carry an opaque connector id here instead of a
|
|
199
|
+
#
|
|
200
|
+
# @param cowork_metrics [Anthropic::Models::Organization::AnalyticsConnectorCoworkMetrics] Cowork activity metrics for a single connector on a given day.
|
|
201
|
+
#
|
|
202
|
+
# @param distinct_user_count [Integer] Number of distinct users who used the connector on the requested day, or, in dat
|
|
203
|
+
#
|
|
204
|
+
# @param individual_auth_distinct_user_count [Integer, nil] Number of distinct users whose use of this connector on the requested day ran on
|
|
205
|
+
#
|
|
206
|
+
# @param managed_auth_distinct_user_count [Integer, nil] Number of distinct users whose use of this connector on the requested day ran on
|
|
207
|
+
#
|
|
208
|
+
# @param office_metrics [Anthropic::Models::Organization::AnalyticsConnectorOfficeMetrics] Office Agent activity metrics for a single connector on a given day, broken out
|
|
209
|
+
#
|
|
210
|
+
# @param read_call_count [Integer, nil] Number of connector tool calls on the requested day whose trusted read-only anno
|
|
211
|
+
#
|
|
212
|
+
# @param unclassified_call_count [Integer, nil] Number of connector tool calls on the requested day with no trusted read-only an
|
|
213
|
+
#
|
|
214
|
+
# @param write_call_count [Integer, nil] Number of connector tool calls on the requested day whose trusted read-only anno
|
|
215
|
+
#
|
|
216
|
+
# @param chat_cowork_unified_metrics [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedMetrics, nil] Connector use recorded while members had Chat and Cowork unified (Cowork's featu
|
|
217
|
+
#
|
|
218
|
+
# @param product [String, nil] Product that produced this row's activity: one of `chat`, `claude_code`, `cowork
|
|
219
|
+
#
|
|
220
|
+
# @param rbac_group_id [String, nil] Tagged RBAC group identifier (`rbac_group_...`), matching the spend-limits API s
|
|
221
|
+
#
|
|
222
|
+
# @param rbac_group_name [String, nil] Resolved RBAC group display name, alongside `rbac_group_id` when name resolution
|
|
223
|
+
#
|
|
224
|
+
# @param user_id [String, nil] Tagged user identifier (e.g. `user_...`). Present only when the request grouped
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
end
|
data/lib/anthropic/models/organization/analytics_connector_chat_cowork_unified_chat_metrics.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsConnectorChatCoworkUnifiedChatMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute distinct_conversation_connector_used_count
|
|
8
|
+
# Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for
|
|
9
|
+
# activity recorded while members had Chat and Cowork unified turned on.
|
|
10
|
+
# Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
|
|
11
|
+
# where a distinct count cannot be computed.
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer, nil]
|
|
14
|
+
required :distinct_conversation_connector_used_count, Integer, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(distinct_conversation_connector_used_count:)
|
|
17
|
+
# A connector's use in chat conversations recorded while members had Chat and
|
|
18
|
+
# Cowork unified turned on.
|
|
19
|
+
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedChatMetrics}
|
|
22
|
+
# for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param distinct_conversation_connector_used_count [Integer, nil] Same measure as `chat_metrics.distinct_conversation_connector_used_count`, for a
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsConnectorChatCoworkUnifiedMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute chat
|
|
8
|
+
# A connector's use in chat conversations recorded while members had Chat and
|
|
9
|
+
# Cowork unified turned on.
|
|
10
|
+
#
|
|
11
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedChatMetrics]
|
|
12
|
+
required :chat, -> { Anthropic::Organization::AnalyticsConnectorChatCoworkUnifiedChatMetrics }
|
|
13
|
+
|
|
14
|
+
# @!attribute sessions
|
|
15
|
+
# A connector's use in Cowork sessions recorded while members had Chat and Cowork
|
|
16
|
+
# unified turned on.
|
|
17
|
+
#
|
|
18
|
+
# @return [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedSessionsMetrics]
|
|
19
|
+
required :sessions, -> { Anthropic::Organization::AnalyticsConnectorChatCoworkUnifiedSessionsMetrics }
|
|
20
|
+
|
|
21
|
+
# @!method initialize(chat:, sessions:)
|
|
22
|
+
# A connector's use in Chat and Cowork unified on one day: `chat` holds its use in
|
|
23
|
+
# chat conversations and `sessions` its use in Cowork sessions.
|
|
24
|
+
#
|
|
25
|
+
# Some parameter documentations has been truncated, see
|
|
26
|
+
# {Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedMetrics}
|
|
27
|
+
# for more details.
|
|
28
|
+
#
|
|
29
|
+
# @param chat [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedChatMetrics] A connector's use in chat conversations recorded while members had
|
|
30
|
+
#
|
|
31
|
+
# @param sessions [Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedSessionsMetrics] A connector's use in Cowork sessions recorded while members had
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
data/lib/anthropic/models/organization/analytics_connector_chat_cowork_unified_sessions_metrics.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Organization
|
|
6
|
+
class AnalyticsConnectorChatCoworkUnifiedSessionsMetrics < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute distinct_session_connector_used_count
|
|
8
|
+
# Same measure as `cowork_metrics.distinct_session_connector_used_count`, for
|
|
9
|
+
# activity recorded while members had Chat and Cowork unified turned on.
|
|
10
|
+
# Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows
|
|
11
|
+
# where a distinct count cannot be computed.
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer, nil]
|
|
14
|
+
required :distinct_session_connector_used_count, Integer, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(distinct_session_connector_used_count:)
|
|
17
|
+
# A connector's use in Cowork sessions recorded while members had Chat and Cowork
|
|
18
|
+
# unified turned on.
|
|
19
|
+
#
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Anthropic::Models::Organization::AnalyticsConnectorChatCoworkUnifiedSessionsMetrics}
|
|
22
|
+
# for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param distinct_session_connector_used_count [Integer, nil] Same measure as `cowork_metrics.distinct_session_connector_used_count`, for acti
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|