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,94 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsReportUserActor < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAnalyticsReportUserActor,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# True when the account has been deleted, or when the user is no longer a member
|
|
17
|
+
# of the organization or its associated organizations (for example, their
|
|
18
|
+
# membership was removed or they were deprovisioned via your identity provider).
|
|
19
|
+
# `email_address` stays populated for removed users and is null when the account
|
|
20
|
+
# has been deleted. `name` follows the rules described on that field. The
|
|
21
|
+
# `user_id` is still populated for reconciliation.
|
|
22
|
+
sig { returns(T::Boolean) }
|
|
23
|
+
attr_accessor :deleted
|
|
24
|
+
|
|
25
|
+
# The user's current email address, including for users who are no longer members
|
|
26
|
+
# of the organization. Null when the account has been deleted and for
|
|
27
|
+
# system-minted service accounts.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :email_address
|
|
30
|
+
|
|
31
|
+
# The user's current full name. Null when the user has not set one.
|
|
32
|
+
# `"Deleted User"` when the account has been deleted, or when the user is no
|
|
33
|
+
# longer a member and the organization hides removed users' names.
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_accessor :name
|
|
36
|
+
|
|
37
|
+
# Actor type. Always `"user_actor"`.
|
|
38
|
+
sig { returns(Symbol) }
|
|
39
|
+
attr_accessor :type
|
|
40
|
+
|
|
41
|
+
# Tagged user ID.
|
|
42
|
+
sig { returns(String) }
|
|
43
|
+
attr_accessor :user_id
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
deleted: T::Boolean,
|
|
48
|
+
email_address: T.nilable(String),
|
|
49
|
+
name: T.nilable(String),
|
|
50
|
+
user_id: String,
|
|
51
|
+
type: Symbol
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
# True when the account has been deleted, or when the user is no longer a member
|
|
56
|
+
# of the organization or its associated organizations (for example, their
|
|
57
|
+
# membership was removed or they were deprovisioned via your identity provider).
|
|
58
|
+
# `email_address` stays populated for removed users and is null when the account
|
|
59
|
+
# has been deleted. `name` follows the rules described on that field. The
|
|
60
|
+
# `user_id` is still populated for reconciliation.
|
|
61
|
+
deleted:,
|
|
62
|
+
# The user's current email address, including for users who are no longer members
|
|
63
|
+
# of the organization. Null when the account has been deleted and for
|
|
64
|
+
# system-minted service accounts.
|
|
65
|
+
email_address:,
|
|
66
|
+
# The user's current full name. Null when the user has not set one.
|
|
67
|
+
# `"Deleted User"` when the account has been deleted, or when the user is no
|
|
68
|
+
# longer a member and the organization hides removed users' names.
|
|
69
|
+
name:,
|
|
70
|
+
# Tagged user ID.
|
|
71
|
+
user_id:,
|
|
72
|
+
# Actor type. Always `"user_actor"`.
|
|
73
|
+
type: :user_actor
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
sig do
|
|
78
|
+
override.returns(
|
|
79
|
+
{
|
|
80
|
+
deleted: T::Boolean,
|
|
81
|
+
email_address: T.nilable(String),
|
|
82
|
+
name: T.nilable(String),
|
|
83
|
+
type: Symbol,
|
|
84
|
+
user_id: String
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
def to_hash
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
class BetaAnalyticsServiceAccountActor < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceAccountActor,
|
|
12
|
+
Anthropic::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Tagged service account ID.
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :service_account_id
|
|
19
|
+
|
|
20
|
+
sig { returns(Symbol) }
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(service_account_id: String, type: Symbol).returns(
|
|
25
|
+
T.attached_class
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
def self.new(
|
|
29
|
+
# Tagged service account ID.
|
|
30
|
+
service_account_id:,
|
|
31
|
+
type: :service_account_actor
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { override.returns({ service_account_id: String, type: Symbol }) }
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaAnalyticsServiceTier
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(
|
|
13
|
+
Symbol,
|
|
14
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
18
|
+
|
|
19
|
+
BATCH =
|
|
20
|
+
T.let(
|
|
21
|
+
:batch,
|
|
22
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
23
|
+
)
|
|
24
|
+
FLEX =
|
|
25
|
+
T.let(
|
|
26
|
+
:flex,
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
FLEX_DISCOUNT =
|
|
30
|
+
T.let(
|
|
31
|
+
:flex_discount,
|
|
32
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
PRIORITY =
|
|
35
|
+
T.let(
|
|
36
|
+
:priority,
|
|
37
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
38
|
+
)
|
|
39
|
+
PRIORITY_ON_DEMAND =
|
|
40
|
+
T.let(
|
|
41
|
+
:priority_on_demand,
|
|
42
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
43
|
+
)
|
|
44
|
+
STANDARD =
|
|
45
|
+
T.let(
|
|
46
|
+
:standard,
|
|
47
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
override.returns(
|
|
52
|
+
T::Array[
|
|
53
|
+
Anthropic::Beta::Organization::BetaAnalyticsServiceTier::TaggedSymbol
|
|
54
|
+
]
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
def self.values
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaAnalyticsSpeed
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(Symbol, Anthropic::Beta::Organization::BetaAnalyticsSpeed)
|
|
13
|
+
end
|
|
14
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
15
|
+
|
|
16
|
+
FAST =
|
|
17
|
+
T.let(
|
|
18
|
+
:fast,
|
|
19
|
+
Anthropic::Beta::Organization::BetaAnalyticsSpeed::TaggedSymbol
|
|
20
|
+
)
|
|
21
|
+
STANDARD =
|
|
22
|
+
T.let(
|
|
23
|
+
:standard,
|
|
24
|
+
Anthropic::Beta::Organization::BetaAnalyticsSpeed::TaggedSymbol
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
override.returns(
|
|
29
|
+
T::Array[
|
|
30
|
+
Anthropic::Beta::Organization::BetaAnalyticsSpeed::TaggedSymbol
|
|
31
|
+
]
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def self.values
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaAnalyticsTimeBucketWidth
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(
|
|
13
|
+
Symbol,
|
|
14
|
+
Anthropic::Beta::Organization::BetaAnalyticsTimeBucketWidth
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
18
|
+
|
|
19
|
+
DAY =
|
|
20
|
+
T.let(
|
|
21
|
+
:"1d",
|
|
22
|
+
Anthropic::Beta::Organization::BetaAnalyticsTimeBucketWidth::TaggedSymbol
|
|
23
|
+
)
|
|
24
|
+
HOUR =
|
|
25
|
+
T.let(
|
|
26
|
+
:"1h",
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnalyticsTimeBucketWidth::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
MINUTE =
|
|
30
|
+
T.let(
|
|
31
|
+
:"1m",
|
|
32
|
+
Anthropic::Beta::Organization::BetaAnalyticsTimeBucketWidth::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
T::Array[
|
|
38
|
+
Anthropic::Beta::Organization::BetaAnalyticsTimeBucketWidth::TaggedSymbol
|
|
39
|
+
]
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
def self.values
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaAnalyticsUsageCostInferenceGeo
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(
|
|
13
|
+
Symbol,
|
|
14
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
18
|
+
|
|
19
|
+
GLOBAL =
|
|
20
|
+
T.let(
|
|
21
|
+
:global,
|
|
22
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
23
|
+
)
|
|
24
|
+
US =
|
|
25
|
+
T.let(
|
|
26
|
+
:us,
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
T::Array[
|
|
33
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostInferenceGeo::TaggedSymbol
|
|
34
|
+
]
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def self.values
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
# Publicly documented product surfaces. `claude_tag` is Claude Tag, the Claude
|
|
8
|
+
# product in Slack. `chat_cowork_unified` is Chat and Cowork unified, Cowork's
|
|
9
|
+
# features inside claude.ai chat: chat and Cowork usage by a member who has it
|
|
10
|
+
# turned on is reported under this value instead of `chat` or `cowork`. It is
|
|
11
|
+
# accepted as a filter only on deployments that offer Chat and Cowork unified.
|
|
12
|
+
module BetaAnalyticsUsageCostProductFilter
|
|
13
|
+
extend Anthropic::Internal::Type::Enum
|
|
14
|
+
|
|
15
|
+
TaggedSymbol =
|
|
16
|
+
T.type_alias do
|
|
17
|
+
T.all(
|
|
18
|
+
Symbol,
|
|
19
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
23
|
+
|
|
24
|
+
CHAT =
|
|
25
|
+
T.let(
|
|
26
|
+
:chat,
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
CHAT_COWORK_UNIFIED =
|
|
30
|
+
T.let(
|
|
31
|
+
:chat_cowork_unified,
|
|
32
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
33
|
+
)
|
|
34
|
+
CLAUDE_CODE =
|
|
35
|
+
T.let(
|
|
36
|
+
:claude_code,
|
|
37
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
38
|
+
)
|
|
39
|
+
CLAUDE_CONSOLE =
|
|
40
|
+
T.let(
|
|
41
|
+
:claude_console,
|
|
42
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
43
|
+
)
|
|
44
|
+
CLAUDE_DESIGN =
|
|
45
|
+
T.let(
|
|
46
|
+
:claude_design,
|
|
47
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
48
|
+
)
|
|
49
|
+
CLAUDE_IN_CHROME =
|
|
50
|
+
T.let(
|
|
51
|
+
:claude_in_chrome,
|
|
52
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
53
|
+
)
|
|
54
|
+
CLAUDE_TAG =
|
|
55
|
+
T.let(
|
|
56
|
+
:claude_tag,
|
|
57
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
58
|
+
)
|
|
59
|
+
COWORK =
|
|
60
|
+
T.let(
|
|
61
|
+
:cowork,
|
|
62
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
63
|
+
)
|
|
64
|
+
MANAGED_AGENTS_API =
|
|
65
|
+
T.let(
|
|
66
|
+
:managed_agents_api,
|
|
67
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
68
|
+
)
|
|
69
|
+
MESSAGE_BATCHES_API =
|
|
70
|
+
T.let(
|
|
71
|
+
:message_batches_api,
|
|
72
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
73
|
+
)
|
|
74
|
+
MESSAGES_API =
|
|
75
|
+
T.let(
|
|
76
|
+
:messages_api,
|
|
77
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
78
|
+
)
|
|
79
|
+
OFFICE_AGENT =
|
|
80
|
+
T.let(
|
|
81
|
+
:office_agent,
|
|
82
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
sig do
|
|
86
|
+
override.returns(
|
|
87
|
+
T::Array[
|
|
88
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostProductFilter::TaggedSymbol
|
|
89
|
+
]
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def self.values
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
module Organization
|
|
7
|
+
module BetaAnalyticsUsageCostSortOrder
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
TaggedSymbol =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.all(
|
|
13
|
+
Symbol,
|
|
14
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
18
|
+
|
|
19
|
+
ASC =
|
|
20
|
+
T.let(
|
|
21
|
+
:asc,
|
|
22
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::TaggedSymbol
|
|
23
|
+
)
|
|
24
|
+
DESC =
|
|
25
|
+
T.let(
|
|
26
|
+
:desc,
|
|
27
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::TaggedSymbol
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
T::Array[
|
|
33
|
+
Anthropic::Beta::Organization::BetaAnalyticsUsageCostSortOrder::TaggedSymbol
|
|
34
|
+
]
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
def self.values
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -38,7 +38,8 @@ module Anthropic
|
|
|
38
38
|
attr_accessor :limits
|
|
39
39
|
|
|
40
40
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
41
|
-
# `group.type` is not `"model_group"`.
|
|
41
|
+
# `group.type` is not `"model_group"`. The list covers the models your
|
|
42
|
+
# organization has access to, so it can differ between organizations.
|
|
42
43
|
sig { returns(T.nilable(T::Array[String])) }
|
|
43
44
|
attr_accessor :models
|
|
44
45
|
|
|
@@ -76,7 +77,8 @@ module Anthropic
|
|
|
76
77
|
# The limiter values that apply to this group.
|
|
77
78
|
limits:,
|
|
78
79
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
79
|
-
# `group.type` is not `"model_group"`.
|
|
80
|
+
# `group.type` is not `"model_group"`. The list covers the models your
|
|
81
|
+
# organization has access to, so it can differ between organizations.
|
|
80
82
|
models:,
|
|
81
83
|
# Object type. Always `rate_limit` for organization rate-limit entries.
|
|
82
84
|
type: :rate_limit
|
|
@@ -141,8 +141,11 @@ module Anthropic
|
|
|
141
141
|
sig { returns(String) }
|
|
142
142
|
attr_accessor :served_version_id
|
|
143
143
|
|
|
144
|
-
#
|
|
145
|
-
#
|
|
144
|
+
# True once the served version has been pinned, through Update Plugin or in
|
|
145
|
+
# claude.ai. While false, a new version normally becomes the served version when
|
|
146
|
+
# it is stored. While the newest version is not the served version, as when a
|
|
147
|
+
# version saved in claude.ai is waiting for its content scan, `served_version_id`
|
|
148
|
+
# differs from `latest_version_id`.
|
|
146
149
|
sig { returns(T::Boolean) }
|
|
147
150
|
attr_accessor :served_version_pinned
|
|
148
151
|
|
|
@@ -150,8 +153,11 @@ module Anthropic
|
|
|
150
153
|
sig { returns(Symbol) }
|
|
151
154
|
attr_accessor :type
|
|
152
155
|
|
|
153
|
-
# RFC 3339. Moves on a
|
|
154
|
-
#
|
|
156
|
+
# RFC 3339. Moves on a served-version change (including pinning an unpinned Plugin
|
|
157
|
+
# to the version it already serves) and, normally, on a new version. A version
|
|
158
|
+
# saved in claude.ai that waits for its content scan moves it when it becomes the
|
|
159
|
+
# served version, and not necessarily when it is stored. A change to the Plugin's
|
|
160
|
+
# installation settings or shares does not move it.
|
|
155
161
|
sig { returns(Time) }
|
|
156
162
|
attr_accessor :updated_at
|
|
157
163
|
|
|
@@ -260,11 +266,17 @@ module Anthropic
|
|
|
260
266
|
reach:,
|
|
261
267
|
# The version claude.ai serves to members.
|
|
262
268
|
served_version_id:,
|
|
263
|
-
#
|
|
264
|
-
#
|
|
269
|
+
# True once the served version has been pinned, through Update Plugin or in
|
|
270
|
+
# claude.ai. While false, a new version normally becomes the served version when
|
|
271
|
+
# it is stored. While the newest version is not the served version, as when a
|
|
272
|
+
# version saved in claude.ai is waiting for its content scan, `served_version_id`
|
|
273
|
+
# differs from `latest_version_id`.
|
|
265
274
|
served_version_pinned:,
|
|
266
|
-
# RFC 3339. Moves on a
|
|
267
|
-
#
|
|
275
|
+
# RFC 3339. Moves on a served-version change (including pinning an unpinned Plugin
|
|
276
|
+
# to the version it already serves) and, normally, on a new version. A version
|
|
277
|
+
# saved in claude.ai that waits for its content scan moves it when it becomes the
|
|
278
|
+
# served version, and not necessarily when it is stored. A change to the Plugin's
|
|
279
|
+
# installation settings or shares does not move it.
|
|
268
280
|
updated_at:,
|
|
269
281
|
# Always `plugin`.
|
|
270
282
|
type: :plugin
|
|
@@ -13,7 +13,8 @@ module Anthropic
|
|
|
13
13
|
)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
# The scan's verdict; set only when `status` is `completed`.
|
|
16
|
+
# The scan's verdict; set only when `status` is `completed`. A `warn` can mean a
|
|
17
|
+
# `fail` that was allowed in claude.ai.
|
|
17
18
|
sig do
|
|
18
19
|
returns(
|
|
19
20
|
T.nilable(
|
|
@@ -31,7 +32,9 @@ module Anthropic
|
|
|
31
32
|
attr_accessor :reason
|
|
32
33
|
|
|
33
34
|
# `processing` while a scan runs, `completed` when it ran to completion, `errored`
|
|
34
|
-
# when it could not run
|
|
35
|
+
# when it could not run. Once a scan of the version has completed, `content_scan`
|
|
36
|
+
# describes the newest completed scan, even while a later scan runs. While the
|
|
37
|
+
# scan outcome cannot be read, `status` is `errored` instead.
|
|
35
38
|
sig do
|
|
36
39
|
returns(
|
|
37
40
|
Anthropic::Beta::Organization::BetaPluginContentScan::Status::TaggedSymbol
|
|
@@ -51,7 +54,8 @@ module Anthropic
|
|
|
51
54
|
).returns(T.attached_class)
|
|
52
55
|
end
|
|
53
56
|
def self.new(
|
|
54
|
-
# The scan's verdict; set only when `status` is `completed`.
|
|
57
|
+
# The scan's verdict; set only when `status` is `completed`. A `warn` can mean a
|
|
58
|
+
# `fail` that was allowed in claude.ai.
|
|
55
59
|
assessment:,
|
|
56
60
|
# The primary mechanism behind a `warn` or `fail`, such as `credential-exposure`
|
|
57
61
|
# or `guardrail-tampering`; a mechanism this API does not yet name reads as
|
|
@@ -59,7 +63,9 @@ module Anthropic
|
|
|
59
63
|
# is reported for the verdict.
|
|
60
64
|
reason:,
|
|
61
65
|
# `processing` while a scan runs, `completed` when it ran to completion, `errored`
|
|
62
|
-
# when it could not run
|
|
66
|
+
# when it could not run. Once a scan of the version has completed, `content_scan`
|
|
67
|
+
# describes the newest completed scan, even while a later scan runs. While the
|
|
68
|
+
# scan outcome cannot be read, `status` is `errored` instead.
|
|
63
69
|
status:
|
|
64
70
|
)
|
|
65
71
|
end
|
|
@@ -80,7 +86,8 @@ module Anthropic
|
|
|
80
86
|
def to_hash
|
|
81
87
|
end
|
|
82
88
|
|
|
83
|
-
# The scan's verdict; set only when `status` is `completed`.
|
|
89
|
+
# The scan's verdict; set only when `status` is `completed`. A `warn` can mean a
|
|
90
|
+
# `fail` that was allowed in claude.ai.
|
|
84
91
|
module Assessment
|
|
85
92
|
extend Anthropic::Internal::Type::Enum
|
|
86
93
|
|
|
@@ -126,7 +133,9 @@ module Anthropic
|
|
|
126
133
|
end
|
|
127
134
|
|
|
128
135
|
# `processing` while a scan runs, `completed` when it ran to completion, `errored`
|
|
129
|
-
# when it could not run
|
|
136
|
+
# when it could not run. Once a scan of the version has completed, `content_scan`
|
|
137
|
+
# describes the newest completed scan, even while a later scan runs. While the
|
|
138
|
+
# scan outcome cannot be read, `status` is `errored` instead.
|
|
130
139
|
module Status
|
|
131
140
|
extend Anthropic::Internal::Type::Enum
|
|
132
141
|
|
|
@@ -36,7 +36,8 @@ module Anthropic
|
|
|
36
36
|
attr_accessor :limits
|
|
37
37
|
|
|
38
38
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
39
|
-
# `group.type` is not `"model_group"`.
|
|
39
|
+
# `group.type` is not `"model_group"`. The list covers the models this workspace
|
|
40
|
+
# has access to, so it can differ between workspaces.
|
|
40
41
|
sig { returns(T.nilable(T::Array[String])) }
|
|
41
42
|
attr_accessor :models
|
|
42
43
|
|
|
@@ -82,7 +83,8 @@ module Anthropic
|
|
|
82
83
|
# listed too, each marked by `source`.
|
|
83
84
|
limits:,
|
|
84
85
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
85
|
-
# `group.type` is not `"model_group"`.
|
|
86
|
+
# `group.type` is not `"model_group"`. The list covers the models this workspace
|
|
87
|
+
# has access to, so it can differ between workspaces.
|
|
86
88
|
models:,
|
|
87
89
|
# The `id` of the organization's RateLimit entry this entry applies to.
|
|
88
90
|
rate_limit_id:,
|
|
@@ -35,7 +35,8 @@ module Anthropic
|
|
|
35
35
|
attr_accessor :limits
|
|
36
36
|
|
|
37
37
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
38
|
-
# `group.type` is not `"model_group"`.
|
|
38
|
+
# `group.type` is not `"model_group"`. The list covers the models your
|
|
39
|
+
# organization has access to, so it can differ between organizations.
|
|
39
40
|
sig { returns(T.nilable(T::Array[String])) }
|
|
40
41
|
attr_accessor :models
|
|
41
42
|
|
|
@@ -73,7 +74,8 @@ module Anthropic
|
|
|
73
74
|
# The limiter values that apply to this group.
|
|
74
75
|
limits:,
|
|
75
76
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
76
|
-
# `group.type` is not `"model_group"`.
|
|
77
|
+
# `group.type` is not `"model_group"`. The list covers the models your
|
|
78
|
+
# organization has access to, so it can differ between organizations.
|
|
77
79
|
models:,
|
|
78
80
|
# Object type. Always `rate_limit` for organization rate-limit entries.
|
|
79
81
|
type: :rate_limit
|
|
@@ -37,7 +37,8 @@ module Anthropic
|
|
|
37
37
|
attr_accessor :limits
|
|
38
38
|
|
|
39
39
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
40
|
-
# `group.type` is not `"model_group"`.
|
|
40
|
+
# `group.type` is not `"model_group"`. The list covers the models this workspace
|
|
41
|
+
# has access to, so it can differ between workspaces.
|
|
41
42
|
sig { returns(T.nilable(T::Array[String])) }
|
|
42
43
|
attr_accessor :models
|
|
43
44
|
|
|
@@ -83,7 +84,8 @@ module Anthropic
|
|
|
83
84
|
# listed too, each marked by `source`.
|
|
84
85
|
limits:,
|
|
85
86
|
# Model names this entry's limits apply to, including aliases. `null` when
|
|
86
|
-
# `group.type` is not `"model_group"`.
|
|
87
|
+
# `group.type` is not `"model_group"`. The list covers the models this workspace
|
|
88
|
+
# has access to, so it can differ between workspaces.
|
|
87
89
|
models:,
|
|
88
90
|
# The `id` of the organization's RateLimit entry this entry applies to.
|
|
89
91
|
rate_limit_id:,
|