anthropic 2.0.0 → 2.2.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 +35 -0
- data/README.md +1 -1
- data/lib/anthropic/client.rb +8 -0
- data/lib/anthropic/helpers/bedrock/client.rb +5 -0
- data/lib/anthropic/helpers/bedrock/mantle_client.rb +5 -0
- data/lib/anthropic/helpers/stainless_helper_header.rb +1 -0
- data/lib/anthropic/helpers/threads/beta_message_thread.rb +635 -0
- data/lib/anthropic/helpers/tools/runner.rb +79 -11
- data/lib/anthropic/helpers/vertex/client.rb +5 -0
- data/lib/anthropic/internal/report_page_cursor.rb +2 -2
- data/lib/anthropic/internal/tracing.rb +2 -0
- data/lib/anthropic/models/anthropic_beta.rb +6 -0
- data/lib/anthropic/models/beta/beta_message_thread_param.rb +61 -0
- data/lib/anthropic/models/beta/beta_thread_continue_params.rb +29 -0
- data/lib/anthropic/models/beta/beta_thread_create_params.rb +21 -0
- data/lib/anthropic/models/beta/message_create_params.rb +13 -1
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +13 -1
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rb +271 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rb +40 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rb +57 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rb +57 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_cost_order_by.rb +22 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rb +247 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rb +38 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_item.rb +57 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_metrics.rb +79 -0
- data/lib/anthropic/models/beta/organization/analytics/beta_analytics_usage_order_by.rb +24 -0
- data/lib/anthropic/models/beta/organization/analytics/cost_list_params.rb +360 -0
- data/lib/anthropic/models/beta/organization/analytics/usage_list_params.rb +353 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_actor.rb +81 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_actor_type.rb +22 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_api_actor.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor.rb +42 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor_aws_provider.rb +35 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor_azure_provider.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor_gcp_provider.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor_oidc_provider.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_federated_actor_provider.rb +72 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_grouped_cost_type.rb +21 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_report_user_actor.rb +65 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_service_account_actor.rb +27 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_service_tier.rb +23 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_speed.rb +19 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_time_bucket_width.rb +20 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_cost_inference_geo.rb +19 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_cost_product_filter.rb +34 -0
- data/lib/anthropic/models/beta/organization/beta_analytics_usage_cost_sort_order.rb +19 -0
- data/lib/anthropic/models/beta/organization/beta_organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/beta/organization/beta_plugin.rb +12 -6
- data/lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb +11 -5
- data/lib/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rb +2 -1
- data/lib/anthropic/models/organization/organization_rate_limit.rb +2 -1
- data/lib/anthropic/models/organization/workspaces/workspace_rate_limit.rb +2 -1
- data/lib/anthropic/models/user_profile.rb +26 -1
- data/lib/anthropic/models/user_profile_enforcement_action.rb +66 -0
- data/lib/anthropic/models/user_profile_enforcement_action_ban.rb +62 -0
- data/lib/anthropic/models/user_profile_enforcement_action_next_step.rb +17 -0
- data/lib/anthropic/models/user_profile_enforcement_action_reason.rb +23 -0
- data/lib/anthropic/models/user_profile_enforcement_action_restriction.rb +67 -0
- data/lib/anthropic/models/user_profile_enforcement_status.rb +20 -0
- data/lib/anthropic/models/user_profile_list_params.rb +17 -1
- data/lib/anthropic/models.rb +12 -0
- data/lib/anthropic/resources/beta/messages.rb +78 -4
- data/lib/anthropic/resources/beta/organization/analytics/cost.rb +175 -0
- data/lib/anthropic/resources/beta/organization/analytics/cost_report.rb +13 -6
- data/lib/anthropic/resources/beta/organization/analytics/usage.rb +176 -0
- data/lib/anthropic/resources/beta/organization/analytics/usage_report.rb +9 -2
- data/lib/anthropic/resources/beta/organization/analytics/user_cost_report.rb +12 -5
- data/lib/anthropic/resources/beta/organization/analytics/user_usage_report.rb +15 -8
- data/lib/anthropic/resources/beta/organization/analytics.rb +8 -0
- data/lib/anthropic/resources/beta/organization/plugin_marketplaces.rb +6 -6
- data/lib/anthropic/resources/beta/organization/plugins.rb +12 -9
- data/lib/anthropic/resources/user_profiles.rb +5 -3
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +42 -0
- data/rbi/anthropic/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/client.rbi +5 -0
- data/rbi/anthropic/helpers/bedrock/mantle_client.rbi +5 -0
- data/rbi/anthropic/helpers/threads/beta_message_thread.rbi +100 -0
- data/rbi/anthropic/helpers/vertex/client.rbi +5 -0
- data/rbi/anthropic/internal/tracing.rbi +4 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +10 -0
- data/rbi/anthropic/models/beta/beta_message_thread_param.rbi +80 -0
- data/rbi/anthropic/models/beta/beta_thread_continue_params.rbi +43 -0
- data/rbi/anthropic/models/beta/beta_thread_create_params.rbi +31 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +37 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +37 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbi +439 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbi +140 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rbi +110 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rbi +79 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_cost_order_by.rbi +50 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbi +399 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbi +130 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_item.rbi +110 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_metrics.rbi +120 -0
- data/rbi/anthropic/models/beta/organization/analytics/beta_analytics_usage_order_by.rbi +60 -0
- data/rbi/anthropic/models/beta/organization/analytics/cost_list_params.rbi +624 -0
- data/rbi/anthropic/models/beta/organization/analytics/usage_list_params.rbi +612 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_actor.rbi +134 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_actor_type.rbi +54 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_api_actor.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor.rbi +75 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor_aws_provider.rbi +54 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor_azure_provider.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor_gcp_provider.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor_oidc_provider.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_federated_actor_provider.rbi +107 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_grouped_cost_type.rbi +53 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_report_user_actor.rbi +94 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_service_account_actor.rbi +42 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_service_tier.rbi +63 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_speed.rbi +40 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_time_bucket_width.rbi +48 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_cost_inference_geo.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_cost_product_filter.rbi +98 -0
- data/rbi/anthropic/models/beta/organization/beta_analytics_usage_cost_sort_order.rbi +43 -0
- data/rbi/anthropic/models/beta/organization/beta_organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/beta_plugin.rbi +20 -8
- data/rbi/anthropic/models/beta/organization/beta_plugin_content_scan.rbi +15 -6
- data/rbi/anthropic/models/beta/organization/workspaces/beta_workspace_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/organization/organization_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/organization/workspaces/workspace_rate_limit.rbi +4 -2
- data/rbi/anthropic/models/user_profile.rbi +42 -0
- data/rbi/anthropic/models/user_profile_enforcement_action.rbi +95 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_ban.rbi +96 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_next_step.rbi +34 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_reason.rbi +58 -0
- data/rbi/anthropic/models/user_profile_enforcement_action_restriction.rbi +106 -0
- data/rbi/anthropic/models/user_profile_enforcement_status.rbi +39 -0
- data/rbi/anthropic/models/user_profile_list_params.rbi +36 -0
- data/rbi/anthropic/models.rbi +16 -0
- data/rbi/anthropic/resources/beta/messages.rbi +191 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost.rbi +245 -0
- data/rbi/anthropic/resources/beta/organization/analytics/cost_report.rbi +12 -5
- data/rbi/anthropic/resources/beta/organization/analytics/usage.rbi +240 -0
- data/rbi/anthropic/resources/beta/organization/analytics/usage_report.rbi +9 -2
- data/rbi/anthropic/resources/beta/organization/analytics/user_cost_report.rbi +12 -5
- data/rbi/anthropic/resources/beta/organization/analytics/user_usage_report.rbi +14 -7
- data/rbi/anthropic/resources/beta/organization/analytics.rbi +10 -0
- data/rbi/anthropic/resources/beta/organization/plugin_marketplaces.rbi +6 -6
- data/rbi/anthropic/resources/beta/organization/plugins.rbi +12 -9
- data/rbi/anthropic/resources/user_profiles.rbi +12 -0
- data/rbi/lib/anthropic/helpers/stainless_helper_header.rbi +2 -0
- data/sig/anthropic/client.rbs +2 -0
- data/sig/anthropic/helpers/bedrock/client.rbs +2 -0
- data/sig/anthropic/helpers/threads/beta_message_thread.rbs +40 -0
- data/sig/anthropic/helpers/tools/runner.rbs +40 -0
- data/sig/anthropic/helpers/vertex/client.rbs +2 -0
- data/sig/anthropic/internal/tracing.rbs +2 -0
- data/sig/anthropic/models/anthropic_beta.rbs +4 -0
- data/sig/anthropic/models/beta/beta_message_thread_param.rbs +40 -0
- data/sig/anthropic/models/beta/beta_thread_continue_params.rbs +20 -0
- data/sig/anthropic/models/beta/beta_thread_create_params.rbs +17 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group.rbs +126 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_group_by.rbs +60 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_item.rbs +41 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_metrics.rbs +41 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_cost_order_by.rbs +21 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group.rbs +116 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_group_by.rbs +56 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_item.rbs +41 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_metrics.rbs +56 -0
- data/sig/anthropic/models/beta/organization/analytics/beta_analytics_usage_order_by.rbs +28 -0
- data/sig/anthropic/models/beta/organization/analytics/cost_list_params.rbs +188 -0
- data/sig/anthropic/models/beta/organization/analytics/usage_list_params.rbs +188 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_actor.rbs +67 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_actor_type.rbs +21 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_api_actor.rbs +19 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor.rbs +34 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor_aws_provider.rbs +30 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor_azure_provider.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor_gcp_provider.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor_oidc_provider.rbs +20 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_federated_actor_provider.rbs +60 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_grouped_cost_type.rbs +21 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_report_user_actor.rbs +44 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_service_account_actor.rbs +26 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_service_tier.rbs +28 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_speed.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_time_bucket_width.rbs +19 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_usage_cost_inference_geo.rbs +18 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_usage_cost_product_filter.rbs +40 -0
- data/sig/anthropic/models/beta/organization/beta_analytics_usage_cost_sort_order.rbs +18 -0
- data/sig/anthropic/models/user_profile.rbs +10 -0
- data/sig/anthropic/models/user_profile_enforcement_action.rbs +50 -0
- data/sig/anthropic/models/user_profile_enforcement_action_ban.rbs +45 -0
- data/sig/anthropic/models/user_profile_enforcement_action_next_step.rbs +13 -0
- data/sig/anthropic/models/user_profile_enforcement_action_reason.rbs +24 -0
- data/sig/anthropic/models/user_profile_enforcement_action_restriction.rbs +45 -0
- data/sig/anthropic/models/user_profile_enforcement_status.rbs +17 -0
- data/sig/anthropic/models/user_profile_list_params.rbs +9 -0
- data/sig/anthropic/models.rbs +12 -0
- data/sig/anthropic/resources/beta/messages.rbs +33 -0
- data/sig/anthropic/resources/beta/organization/analytics/cost.rbs +46 -0
- data/sig/anthropic/resources/beta/organization/analytics/usage.rbs +46 -0
- data/sig/anthropic/resources/beta/organization/analytics.rbs +4 -0
- data/sig/anthropic/resources/user_profiles.rbs +1 -0
- metadata +130 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_grouped_cost_type =
|
|
6
|
+
:code_execution | :session_usage | :tokens | :web_search
|
|
7
|
+
|
|
8
|
+
module BetaAnalyticsGroupedCostType
|
|
9
|
+
extend Anthropic::Internal::Type::Enum
|
|
10
|
+
|
|
11
|
+
CODE_EXECUTION: :code_execution
|
|
12
|
+
SESSION_USAGE: :session_usage
|
|
13
|
+
TOKENS: :tokens
|
|
14
|
+
WEB_SEARCH: :web_search
|
|
15
|
+
|
|
16
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_grouped_cost_type]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_report_user_actor =
|
|
6
|
+
{
|
|
7
|
+
deleted: bool,
|
|
8
|
+
email_address: String?,
|
|
9
|
+
name: String?,
|
|
10
|
+
type: :user_actor,
|
|
11
|
+
user_id: String
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class BetaAnalyticsReportUserActor < Anthropic::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor deleted: bool
|
|
16
|
+
|
|
17
|
+
attr_accessor email_address: String?
|
|
18
|
+
|
|
19
|
+
attr_accessor name: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :user_actor
|
|
22
|
+
|
|
23
|
+
attr_accessor user_id: String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
deleted: bool,
|
|
27
|
+
email_address: String?,
|
|
28
|
+
name: String?,
|
|
29
|
+
user_id: String,
|
|
30
|
+
?type: :user_actor
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
deleted: bool,
|
|
35
|
+
email_address: String?,
|
|
36
|
+
name: String?,
|
|
37
|
+
type: :user_actor,
|
|
38
|
+
user_id: String
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_service_account_actor =
|
|
6
|
+
{ service_account_id: String, type: :service_account_actor }
|
|
7
|
+
|
|
8
|
+
class BetaAnalyticsServiceAccountActor < Anthropic::Internal::Type::BaseModel
|
|
9
|
+
attr_accessor service_account_id: String
|
|
10
|
+
|
|
11
|
+
attr_accessor type: :service_account_actor
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
service_account_id: String,
|
|
15
|
+
?type: :service_account_actor
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
service_account_id: String,
|
|
20
|
+
type: :service_account_actor
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_service_tier =
|
|
6
|
+
:batch
|
|
7
|
+
| :flex
|
|
8
|
+
| :flex_discount
|
|
9
|
+
| :priority
|
|
10
|
+
| :priority_on_demand
|
|
11
|
+
| :standard
|
|
12
|
+
|
|
13
|
+
module BetaAnalyticsServiceTier
|
|
14
|
+
extend Anthropic::Internal::Type::Enum
|
|
15
|
+
|
|
16
|
+
BATCH: :batch
|
|
17
|
+
FLEX: :flex
|
|
18
|
+
FLEX_DISCOUNT: :flex_discount
|
|
19
|
+
PRIORITY: :priority
|
|
20
|
+
PRIORITY_ON_DEMAND: :priority_on_demand
|
|
21
|
+
STANDARD: :standard
|
|
22
|
+
|
|
23
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_service_tier]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_speed = :fast | :standard
|
|
6
|
+
|
|
7
|
+
module BetaAnalyticsSpeed
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
FAST: :fast
|
|
11
|
+
STANDARD: :standard
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_speed]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_time_bucket_width = :"1d" | :"1h" | :"1m"
|
|
6
|
+
|
|
7
|
+
module BetaAnalyticsTimeBucketWidth
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
DAY: :"1d"
|
|
11
|
+
HOUR: :"1h"
|
|
12
|
+
MINUTE: :"1m"
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_time_bucket_width]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_usage_cost_inference_geo = :global | :us
|
|
6
|
+
|
|
7
|
+
module BetaAnalyticsUsageCostInferenceGeo
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
GLOBAL: :global
|
|
11
|
+
US: :us
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_inference_geo]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_usage_cost_product_filter =
|
|
6
|
+
:chat
|
|
7
|
+
| :chat_cowork_unified
|
|
8
|
+
| :claude_code
|
|
9
|
+
| :claude_console
|
|
10
|
+
| :claude_design
|
|
11
|
+
| :claude_in_chrome
|
|
12
|
+
| :claude_tag
|
|
13
|
+
| :cowork
|
|
14
|
+
| :managed_agents_api
|
|
15
|
+
| :message_batches_api
|
|
16
|
+
| :messages_api
|
|
17
|
+
| :office_agent
|
|
18
|
+
|
|
19
|
+
module BetaAnalyticsUsageCostProductFilter
|
|
20
|
+
extend Anthropic::Internal::Type::Enum
|
|
21
|
+
|
|
22
|
+
CHAT: :chat
|
|
23
|
+
CHAT_COWORK_UNIFIED: :chat_cowork_unified
|
|
24
|
+
CLAUDE_CODE: :claude_code
|
|
25
|
+
CLAUDE_CONSOLE: :claude_console
|
|
26
|
+
CLAUDE_DESIGN: :claude_design
|
|
27
|
+
CLAUDE_IN_CHROME: :claude_in_chrome
|
|
28
|
+
CLAUDE_TAG: :claude_tag
|
|
29
|
+
COWORK: :cowork
|
|
30
|
+
MANAGED_AGENTS_API: :managed_agents_api
|
|
31
|
+
MESSAGE_BATCHES_API: :message_batches_api
|
|
32
|
+
MESSAGES_API: :messages_api
|
|
33
|
+
OFFICE_AGENT: :office_agent
|
|
34
|
+
|
|
35
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
module Organization
|
|
5
|
+
type beta_analytics_usage_cost_sort_order = :asc | :desc
|
|
6
|
+
|
|
7
|
+
module BetaAnalyticsUsageCostSortOrder
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
ASC: :asc
|
|
11
|
+
DESC: :desc
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -5,6 +5,8 @@ module Anthropic
|
|
|
5
5
|
id: String,
|
|
6
6
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
7
7
|
created_at: Time,
|
|
8
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
9
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
8
10
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
9
11
|
metadata: ::Hash[Symbol, String],
|
|
10
12
|
name: String?,
|
|
@@ -20,6 +22,10 @@ module Anthropic
|
|
|
20
22
|
|
|
21
23
|
attr_accessor created_at: Time
|
|
22
24
|
|
|
25
|
+
attr_accessor enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action]
|
|
26
|
+
|
|
27
|
+
attr_accessor enforcement_status: Anthropic::Models::user_profile_enforcement_status
|
|
28
|
+
|
|
23
29
|
attr_accessor external_user_details: Anthropic::UserProfileExternalUserDetails
|
|
24
30
|
|
|
25
31
|
attr_accessor metadata: ::Hash[Symbol, String]
|
|
@@ -36,6 +42,8 @@ module Anthropic
|
|
|
36
42
|
id: String,
|
|
37
43
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
38
44
|
created_at: Time,
|
|
45
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
46
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
39
47
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
40
48
|
metadata: ::Hash[Symbol, String],
|
|
41
49
|
name: String?,
|
|
@@ -48,6 +56,8 @@ module Anthropic
|
|
|
48
56
|
id: String,
|
|
49
57
|
access_type: Anthropic::Models::user_profile_access_type,
|
|
50
58
|
created_at: Time,
|
|
59
|
+
enforcement_actions: ::Array[Anthropic::Models::user_profile_enforcement_action],
|
|
60
|
+
enforcement_status: Anthropic::Models::user_profile_enforcement_status,
|
|
51
61
|
external_user_details: Anthropic::UserProfileExternalUserDetails,
|
|
52
62
|
metadata: ::Hash[Symbol, String],
|
|
53
63
|
name: String?,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action =
|
|
4
|
+
Anthropic::UserProfileEnforcementActionRestriction
|
|
5
|
+
| Anthropic::UserProfileEnforcementActionBan
|
|
6
|
+
|
|
7
|
+
module UserProfileEnforcementAction
|
|
8
|
+
extend Anthropic::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
type type_ = :restriction | :ban
|
|
11
|
+
|
|
12
|
+
module Type
|
|
13
|
+
extend Anthropic::Internal::Type::Enum
|
|
14
|
+
|
|
15
|
+
RESTRICTION: :restriction
|
|
16
|
+
BAN: :ban
|
|
17
|
+
|
|
18
|
+
def self?.values: -> ::Array[Anthropic::Models::UserProfileEnforcementAction::type_]
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self?.variants: -> ::Array[Anthropic::Models::user_profile_enforcement_action]
|
|
22
|
+
|
|
23
|
+
def self.new:
|
|
24
|
+
(
|
|
25
|
+
type: :restriction | "restriction",
|
|
26
|
+
id: String,
|
|
27
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
28
|
+
expires_at: Time?,
|
|
29
|
+
opened_at: Time,
|
|
30
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
31
|
+
) -> Anthropic::UserProfileEnforcementActionRestriction
|
|
32
|
+
| (
|
|
33
|
+
type: :ban | "ban",
|
|
34
|
+
id: String,
|
|
35
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
36
|
+
expires_at: Time?,
|
|
37
|
+
opened_at: Time,
|
|
38
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
39
|
+
) -> Anthropic::UserProfileEnforcementActionBan
|
|
40
|
+
| (
|
|
41
|
+
type: Anthropic::Models::UserProfileEnforcementAction::type_ | String,
|
|
42
|
+
id: String,
|
|
43
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
44
|
+
expires_at: Time?,
|
|
45
|
+
opened_at: Time,
|
|
46
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
47
|
+
) -> Anthropic::Models::user_profile_enforcement_action
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_ban =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
7
|
+
expires_at: Time?,
|
|
8
|
+
opened_at: Time,
|
|
9
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
10
|
+
type: :ban
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class UserProfileEnforcementActionBan < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor action: Anthropic::Models::user_profile_enforcement_action_next_step?
|
|
17
|
+
|
|
18
|
+
attr_accessor expires_at: Time?
|
|
19
|
+
|
|
20
|
+
attr_accessor opened_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
23
|
+
|
|
24
|
+
attr_accessor type: :ban
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
29
|
+
expires_at: Time?,
|
|
30
|
+
opened_at: Time,
|
|
31
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
32
|
+
?type: :ban
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
38
|
+
expires_at: Time?,
|
|
39
|
+
opened_at: Time,
|
|
40
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
41
|
+
type: :ban
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_next_step = :verify
|
|
4
|
+
|
|
5
|
+
module UserProfileEnforcementActionNextStep
|
|
6
|
+
extend Anthropic::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
VERIFY: :verify
|
|
9
|
+
|
|
10
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_action_next_step]
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_reason =
|
|
4
|
+
:unsupported_region
|
|
5
|
+
| :fraud_or_abuse
|
|
6
|
+
| :high_harm
|
|
7
|
+
| :usage_policy_violation
|
|
8
|
+
| :account_compromise
|
|
9
|
+
| :unspecified
|
|
10
|
+
|
|
11
|
+
module UserProfileEnforcementActionReason
|
|
12
|
+
extend Anthropic::Internal::Type::Enum
|
|
13
|
+
|
|
14
|
+
UNSUPPORTED_REGION: :unsupported_region
|
|
15
|
+
FRAUD_OR_ABUSE: :fraud_or_abuse
|
|
16
|
+
HIGH_HARM: :high_harm
|
|
17
|
+
USAGE_POLICY_VIOLATION: :usage_policy_violation
|
|
18
|
+
ACCOUNT_COMPROMISE: :account_compromise
|
|
19
|
+
UNSPECIFIED: :unspecified
|
|
20
|
+
|
|
21
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_action_reason]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_action_restriction =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
7
|
+
expires_at: Time?,
|
|
8
|
+
opened_at: Time,
|
|
9
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
10
|
+
type: :restriction
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class UserProfileEnforcementActionRestriction < Anthropic::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor action: Anthropic::Models::user_profile_enforcement_action_next_step?
|
|
17
|
+
|
|
18
|
+
attr_accessor expires_at: Time?
|
|
19
|
+
|
|
20
|
+
attr_accessor opened_at: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor reason: Anthropic::Models::user_profile_enforcement_action_reason
|
|
23
|
+
|
|
24
|
+
attr_accessor type: :restriction
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
29
|
+
expires_at: Time?,
|
|
30
|
+
opened_at: Time,
|
|
31
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
32
|
+
?type: :restriction
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
action: Anthropic::Models::user_profile_enforcement_action_next_step?,
|
|
38
|
+
expires_at: Time?,
|
|
39
|
+
opened_at: Time,
|
|
40
|
+
reason: Anthropic::Models::user_profile_enforcement_action_reason,
|
|
41
|
+
type: :restriction
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Models
|
|
3
|
+
type user_profile_enforcement_status =
|
|
4
|
+
:unrestricted | :pending | :restricted | :banned
|
|
5
|
+
|
|
6
|
+
module UserProfileEnforcementStatus
|
|
7
|
+
extend Anthropic::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
UNRESTRICTED: :unrestricted
|
|
10
|
+
PENDING: :pending
|
|
11
|
+
RESTRICTED: :restricted
|
|
12
|
+
BANNED: :banned
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -2,6 +2,7 @@ module Anthropic
|
|
|
2
2
|
module Models
|
|
3
3
|
type user_profile_list_params =
|
|
4
4
|
{
|
|
5
|
+
enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
5
6
|
limit: Integer,
|
|
6
7
|
order: Anthropic::Models::user_profile_list_order,
|
|
7
8
|
order_by: Anthropic::Models::user_profile_list_order_by,
|
|
@@ -14,6 +15,12 @@ module Anthropic
|
|
|
14
15
|
extend Anthropic::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Anthropic::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_reader enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status]?
|
|
19
|
+
|
|
20
|
+
def enforcement_status=: (
|
|
21
|
+
::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
22
|
+
) -> ::Array[Anthropic::Models::user_profile_enforcement_status]
|
|
23
|
+
|
|
17
24
|
attr_reader limit: Integer?
|
|
18
25
|
|
|
19
26
|
def limit=: (Integer) -> Integer
|
|
@@ -39,6 +46,7 @@ module Anthropic
|
|
|
39
46
|
def workspace_id=: (String) -> String
|
|
40
47
|
|
|
41
48
|
def initialize: (
|
|
49
|
+
?enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
42
50
|
?limit: Integer,
|
|
43
51
|
?order: Anthropic::Models::user_profile_list_order,
|
|
44
52
|
?order_by: Anthropic::Models::user_profile_list_order_by,
|
|
@@ -48,6 +56,7 @@ module Anthropic
|
|
|
48
56
|
) -> void
|
|
49
57
|
|
|
50
58
|
def to_hash: -> {
|
|
59
|
+
enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
|
|
51
60
|
limit: Integer,
|
|
52
61
|
order: Anthropic::Models::user_profile_list_order,
|
|
53
62
|
order_by: Anthropic::Models::user_profile_list_order_by,
|
data/sig/anthropic/models.rbs
CHANGED
|
@@ -789,6 +789,18 @@ module Anthropic
|
|
|
789
789
|
|
|
790
790
|
class UserProfileEfsProgram = Anthropic::Models::UserProfileEfsProgram
|
|
791
791
|
|
|
792
|
+
module UserProfileEnforcementAction = Anthropic::Models::UserProfileEnforcementAction
|
|
793
|
+
|
|
794
|
+
class UserProfileEnforcementActionBan = Anthropic::Models::UserProfileEnforcementActionBan
|
|
795
|
+
|
|
796
|
+
module UserProfileEnforcementActionNextStep = Anthropic::Models::UserProfileEnforcementActionNextStep
|
|
797
|
+
|
|
798
|
+
module UserProfileEnforcementActionReason = Anthropic::Models::UserProfileEnforcementActionReason
|
|
799
|
+
|
|
800
|
+
class UserProfileEnforcementActionRestriction = Anthropic::Models::UserProfileEnforcementActionRestriction
|
|
801
|
+
|
|
802
|
+
module UserProfileEnforcementStatus = Anthropic::Models::UserProfileEnforcementStatus
|
|
803
|
+
|
|
792
804
|
module UserProfileExternalUserAccountStatus = Anthropic::Models::UserProfileExternalUserAccountStatus
|
|
793
805
|
|
|
794
806
|
class UserProfileExternalUserDetails = Anthropic::Models::UserProfileExternalUserDetails
|
|
@@ -4,6 +4,36 @@ module Anthropic
|
|
|
4
4
|
class Messages
|
|
5
5
|
attr_reader batches: Anthropic::Resources::Beta::Messages::Batches
|
|
6
6
|
|
|
7
|
+
def thread: (
|
|
8
|
+
max_tokens: Integer,
|
|
9
|
+
model: Anthropic::Models::model,
|
|
10
|
+
?messages: ::Array[Anthropic::Models::Beta::beta_message_param],
|
|
11
|
+
?cache_control: Anthropic::Beta::BetaCacheControlEphemeral?,
|
|
12
|
+
?compaction: Anthropic::Beta::BetaCompactionConfig?,
|
|
13
|
+
?container: Anthropic::Models::Beta::MessageCreateParams::container?,
|
|
14
|
+
?context_management: Anthropic::Beta::BetaContextManagementConfig?,
|
|
15
|
+
?diagnostics: Anthropic::Beta::BetaDiagnosticsParam?,
|
|
16
|
+
?fallback_credit_token: Anthropic::Models::Beta::MessageCreateParams::fallback_credit_token?,
|
|
17
|
+
?fallbacks: Anthropic::Models::Beta::beta_fallbacks_param?,
|
|
18
|
+
?inference_geo: String?,
|
|
19
|
+
?mcp_servers: ::Array[Anthropic::Beta::BetaRequestMCPServerURLDefinition],
|
|
20
|
+
?metadata: Anthropic::Beta::BetaMetadata,
|
|
21
|
+
?output_config: Anthropic::Beta::BetaOutputConfig,
|
|
22
|
+
?output_format: Anthropic::Beta::BetaJSONOutputFormat?,
|
|
23
|
+
?service_tier: Anthropic::Models::Beta::MessageCreateParams::service_tier,
|
|
24
|
+
?speed: Anthropic::Models::Beta::MessageCreateParams::speed?,
|
|
25
|
+
?stop_sequences: ::Array[String],
|
|
26
|
+
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
27
|
+
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
28
|
+
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
29
|
+
?tools: ::Array[Anthropic::Models::Beta::beta_tool_union],
|
|
30
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
31
|
+
?user_profile_id: String,
|
|
32
|
+
?workspace_id: String,
|
|
33
|
+
?unsupported_request_behavior: Anthropic::Helpers::Threads::BetaMessageThread::unsupported_request_behavior,
|
|
34
|
+
?request_options: Anthropic::request_opts
|
|
35
|
+
) -> Anthropic::Helpers::Threads::BetaMessageThread
|
|
36
|
+
|
|
7
37
|
def create: (
|
|
8
38
|
max_tokens: Integer,
|
|
9
39
|
messages: ::Array[Anthropic::Models::Beta::beta_message_param],
|
|
@@ -25,6 +55,7 @@ module Anthropic
|
|
|
25
55
|
?stop_sequences: ::Array[String],
|
|
26
56
|
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
27
57
|
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
58
|
+
?thread: Anthropic::Models::Beta::beta_message_thread_param?,
|
|
28
59
|
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
29
60
|
?tools: ::Array[Anthropic::Models::Beta::beta_tool_union],
|
|
30
61
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
@@ -54,6 +85,7 @@ module Anthropic
|
|
|
54
85
|
?stop_sequences: ::Array[String],
|
|
55
86
|
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
56
87
|
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
88
|
+
?thread: Anthropic::Models::Beta::beta_message_thread_param?,
|
|
57
89
|
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
58
90
|
?tools: ::Array[Anthropic::Models::Beta::beta_tool_union],
|
|
59
91
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
@@ -103,6 +135,7 @@ module Anthropic
|
|
|
103
135
|
?stop_sequences: ::Array[String],
|
|
104
136
|
?system_: Anthropic::Models::Beta::MessageCreateParams::system_,
|
|
105
137
|
?thinking: Anthropic::Models::Beta::beta_thinking_config_param,
|
|
138
|
+
?thread: Anthropic::Models::Beta::beta_message_thread_param?,
|
|
106
139
|
?tool_choice: Anthropic::Models::Beta::beta_tool_choice,
|
|
107
140
|
?tools: ::Array[Anthropic::Models::Beta::beta_tool_union],
|
|
108
141
|
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Anthropic
|
|
2
|
+
module Resources
|
|
3
|
+
class Beta
|
|
4
|
+
class Organization
|
|
5
|
+
class Analytics
|
|
6
|
+
class Cost
|
|
7
|
+
def list: (
|
|
8
|
+
starting_at: Time,
|
|
9
|
+
?actor_ids: ::Array[String]?,
|
|
10
|
+
?actor_types: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_actor_type]?,
|
|
11
|
+
?agent_ids: ::Array[String]?,
|
|
12
|
+
?api_key_ids: ::Array[String]?,
|
|
13
|
+
?claude_tag_categories: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_claude_tag_category]?,
|
|
14
|
+
?claude_tag_user_ids: ::Array[String]?,
|
|
15
|
+
?context_windows: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_context_window]?,
|
|
16
|
+
?deployment_ids: ::Array[String]?,
|
|
17
|
+
?ending_at: Time?,
|
|
18
|
+
?environment_ids: ::Array[String]?,
|
|
19
|
+
?exclude_deleted_users: bool,
|
|
20
|
+
?group_by: ::Array[Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_group_by]?,
|
|
21
|
+
?inference_geos: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_inference_geo_filter]?,
|
|
22
|
+
?limit: Integer,
|
|
23
|
+
?models: ::Array[String]?,
|
|
24
|
+
?order: Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_sort_order,
|
|
25
|
+
?order_by: Anthropic::Models::Beta::Organization::Analytics::beta_analytics_cost_order_by,
|
|
26
|
+
?page: String?,
|
|
27
|
+
?products: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_usage_cost_product_filter]?,
|
|
28
|
+
?rbac_group_ids: ::Array[String]?,
|
|
29
|
+
?service_tiers: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_service_tier]?,
|
|
30
|
+
?session_ids: ::Array[String]?,
|
|
31
|
+
?slack_channel_ids: ::Array[String]?,
|
|
32
|
+
?speeds: ::Array[Anthropic::Models::Beta::Organization::beta_analytics_speed]?,
|
|
33
|
+
?time_bucket_width: Anthropic::Models::Beta::Organization::beta_analytics_time_bucket_width?,
|
|
34
|
+
?user_profile_ids: ::Array[String]?,
|
|
35
|
+
?workspace_ids: ::Array[String]?,
|
|
36
|
+
?betas: ::Array[Anthropic::Models::anthropic_beta],
|
|
37
|
+
?request_options: Anthropic::request_opts
|
|
38
|
+
) -> Anthropic::Internal::ReportPageCursor[Anthropic::Beta::Organization::Analytics::BetaAnalyticsCostItem]
|
|
39
|
+
|
|
40
|
+
def initialize: (client: Anthropic::Client) -> void
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|