openai 0.116.0 → 0.118.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 +20 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/projects/project_optional_service_tier.rb +24 -0
- data/lib/openai/models/admin/organization/projects/project_service_tier_settings.rb +88 -0
- data/lib/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rb +29 -0
- data/lib/openai/models/admin/organization/projects/service_tier_setting_update_params.rb +92 -0
- data/lib/openai/models/admin/organization/workload_identity_provider.rb +158 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_create_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_delete_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_deleted.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_list_params.rb +58 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_retrieve_params.rb +24 -0
- data/lib/openai/models/admin/organization/workload_identity_provider_update_params.rb +143 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule.rb +161 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rb +144 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rb +34 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rb +85 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rb +32 -0
- data/lib/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rb +134 -0
- data/lib/openai/models/beta/beta_response.rb +1 -0
- data/lib/openai/models/beta/beta_response_usage.rb +33 -1
- data/lib/openai/models/beta/beta_responses_client_event.rb +10 -9
- data/lib/openai/models/beta/chatkit/chat_session_workflow_param.rb +5 -3
- data/lib/openai/models/beta/chatkit_workflow.rb +5 -3
- data/lib/openai/models/beta/response_compact_params.rb +3 -3
- data/lib/openai/models/beta/response_create_params.rb +10 -9
- data/lib/openai/models/chat/completion_create_params.rb +3 -3
- data/lib/openai/models/responses/response.rb +1 -0
- data/lib/openai/models/responses/response_compact_params.rb +3 -3
- data/lib/openai/models/responses/response_create_params.rb +10 -9
- data/lib/openai/models/responses/response_usage.rb +33 -1
- data/lib/openai/models/responses/responses_client_event.rb +10 -9
- data/lib/openai/resources/admin/organization/projects/service_tier_settings.rb +77 -0
- data/lib/openai/resources/admin/organization/projects.rb +6 -0
- data/lib/openai/resources/admin/organization/workload_identity_providers/federation_rules.rb +198 -0
- data/lib/openai/resources/admin/organization/workload_identity_providers.rb +148 -0
- data/lib/openai/resources/admin/organization.rb +6 -0
- data/lib/openai/resources/beta/responses.rb +6 -6
- data/lib/openai/resources/chat/completions.rb +2 -2
- data/lib/openai/resources/responses.rb +3 -3
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +21 -0
- data/rbi/openai/models/admin/organization/projects/project_optional_service_tier.rbi +45 -0
- data/rbi/openai/models/admin/organization/projects/project_service_tier_settings.rbi +143 -0
- data/rbi/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rbi +63 -0
- data/rbi/openai/models/admin/organization/projects/service_tier_setting_update_params.rbi +183 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider.rbi +288 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_create_params.rbi +311 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_delete_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_deleted.rbi +64 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_list_params.rbi +111 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbi +57 -0
- data/rbi/openai/models/admin/organization/workload_identity_provider_update_params.rbi +317 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule.rbi +276 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbi +282 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbi +68 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbi +153 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbi +72 -0
- data/rbi/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbi +281 -0
- data/rbi/openai/models/beta/beta_response.rbi +1 -0
- data/rbi/openai/models/beta/beta_response_usage.rbi +66 -3
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +13 -9
- data/rbi/openai/models/beta/chatkit/chat_session_workflow_param.rbi +1 -1
- data/rbi/openai/models/beta/chatkit_workflow.rbi +1 -1
- data/rbi/openai/models/beta/response_compact_params.rbi +3 -3
- data/rbi/openai/models/beta/response_create_params.rbi +10 -9
- data/rbi/openai/models/chat/completion_create_params.rbi +3 -3
- data/rbi/openai/models/responses/response.rbi +1 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +3 -3
- data/rbi/openai/models/responses/response_create_params.rbi +10 -9
- data/rbi/openai/models/responses/response_usage.rbi +66 -3
- data/rbi/openai/models/responses/responses_client_event.rbi +13 -9
- data/rbi/openai/resources/admin/organization/projects/service_tier_settings.rbi +67 -0
- data/rbi/openai/resources/admin/organization/projects.rbi +3 -0
- data/rbi/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbi +148 -0
- data/rbi/openai/resources/admin/organization/workload_identity_providers.rbi +123 -0
- data/rbi/openai/resources/admin/organization.rbi +3 -0
- data/rbi/openai/resources/beta/responses.rbi +6 -6
- data/rbi/openai/resources/chat/completions.rbi +2 -2
- data/rbi/openai/resources/responses.rbi +3 -3
- data/sig/openai/models/admin/organization/external_key_create_params.rbs +9 -9
- data/sig/openai/models/admin/organization/projects/project_optional_service_tier.rbs +23 -0
- data/sig/openai/models/admin/organization/projects/project_service_tier_settings.rbs +72 -0
- data/sig/openai/models/admin/organization/projects/service_tier_setting_retrieve_params.rbs +32 -0
- data/sig/openai/models/admin/organization/projects/service_tier_setting_update_params.rbs +91 -0
- data/sig/openai/models/admin/organization/workload_identity_provider.rbs +136 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_create_params.rbs +140 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_delete_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_deleted.rbs +34 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_list_params.rbs +59 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_retrieve_params.rbs +30 -0
- data/sig/openai/models/admin/organization/workload_identity_provider_update_params.rbs +145 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule.rbs +124 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_create_params.rbs +126 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_delete_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbs +36 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_list_params.rbs +73 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_retrieve_params.rbs +37 -0
- data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_update_params.rbs +123 -0
- data/sig/openai/models/audio/transcription_create_params.rbs +3 -3
- data/sig/openai/models/audio/voice_create_params.rbs +6 -6
- data/sig/openai/models/beta/assistant_create_params.rbs +14 -2
- data/sig/openai/models/beta/beta_response.rbs +2 -1
- data/sig/openai/models/beta/beta_response_usage.rbs +40 -3
- data/sig/openai/models/beta/beta_responses_client_event.rbs +11 -10
- data/sig/openai/models/beta/chatkit/chat_session_workflow_param.rbs +1 -1
- data/sig/openai/models/beta/chatkit_workflow.rbs +1 -1
- data/sig/openai/models/beta/response_compact_params.rbs +2 -2
- data/sig/openai/models/beta/response_create_params.rbs +11 -10
- data/sig/openai/models/beta/thread_create_and_run_params.rbs +14 -2
- data/sig/openai/models/beta/thread_create_params.rbs +14 -2
- data/sig/openai/models/chat/completion_create_params.rbs +3 -3
- data/sig/openai/models/decision_create_params.rbs +42 -0
- data/sig/openai/models/eval_create_params.rbs +29 -2
- data/sig/openai/models/evals/run_create_params.rbs +53 -2
- data/sig/openai/models/responses/response.rbs +2 -1
- data/sig/openai/models/responses/response_compact_params.rbs +2 -2
- data/sig/openai/models/responses/response_create_params.rbs +11 -10
- data/sig/openai/models/responses/response_usage.rbs +40 -3
- data/sig/openai/models/responses/responses_client_event.rbs +11 -10
- data/sig/openai/resources/admin/organization/external_keys.rbs +3 -3
- data/sig/openai/resources/admin/organization/projects/service_tier_settings.rbs +25 -0
- data/sig/openai/resources/admin/organization/projects.rbs +2 -0
- data/sig/openai/resources/admin/organization/workload_identity_providers/federation_rules.rbs +61 -0
- data/sig/openai/resources/admin/organization/workload_identity_providers.rbs +58 -0
- data/sig/openai/resources/admin/organization.rbs +2 -0
- data/sig/openai/resources/audio/transcriptions.rbs +2 -2
- data/sig/openai/resources/audio/voices.rbs +2 -2
- data/sig/openai/resources/decisions.rbs +14 -0
- data/sig/openai/resources/evals.rbs +8 -1
- metadata +64 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module WorkloadIdentityProviders
|
|
6
|
+
type federation_rule_delete_params =
|
|
7
|
+
{
|
|
8
|
+
workload_identity_provider_id: String,
|
|
9
|
+
workload_identity_federation_rule_id: String,
|
|
10
|
+
?request_options: OpenAI::request_opts
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class FederationRuleDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor workload_identity_provider_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor workload_identity_federation_rule_id: String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
workload_identity_provider_id: String,
|
|
23
|
+
workload_identity_federation_rule_id: String,
|
|
24
|
+
?request_options: OpenAI::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
workload_identity_provider_id: String,
|
|
29
|
+
workload_identity_federation_rule_id: String,
|
|
30
|
+
?request_options: OpenAI::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
data/sig/openai/models/admin/organization/workload_identity_providers/federation_rule_deleted.rbs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module WorkloadIdentityProviders
|
|
6
|
+
type federation_rule_deleted =
|
|
7
|
+
{
|
|
8
|
+
id: String,
|
|
9
|
+
deleted: bool,
|
|
10
|
+
?object: :"organization.workload_identity_federation_rule.deleted"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class FederationRuleDeleted < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor deleted: bool
|
|
17
|
+
|
|
18
|
+
attr_accessor object: :"organization.workload_identity_federation_rule.deleted"
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
deleted: bool,
|
|
23
|
+
?object: :"organization.workload_identity_federation_rule.deleted"
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
id: String,
|
|
28
|
+
deleted: bool,
|
|
29
|
+
?object: :"organization.workload_identity_federation_rule.deleted"
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module WorkloadIdentityProviders
|
|
6
|
+
type federation_rule_list_params =
|
|
7
|
+
{
|
|
8
|
+
workload_identity_provider_id: String,
|
|
9
|
+
?after: String,
|
|
10
|
+
?limit: Integer,
|
|
11
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order,
|
|
12
|
+
?service_account_id: String,
|
|
13
|
+
?request_options: OpenAI::request_opts
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class FederationRuleListParams < OpenAI::Internal::Type::BaseModel
|
|
17
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor workload_identity_provider_id: String
|
|
21
|
+
|
|
22
|
+
attr_reader after: String?
|
|
23
|
+
|
|
24
|
+
def after=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader limit: Integer?
|
|
27
|
+
|
|
28
|
+
def limit=: (Integer) -> Integer
|
|
29
|
+
|
|
30
|
+
attr_reader order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order?
|
|
31
|
+
|
|
32
|
+
def order=: (
|
|
33
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order
|
|
34
|
+
) -> OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order
|
|
35
|
+
|
|
36
|
+
attr_reader service_account_id: String?
|
|
37
|
+
|
|
38
|
+
def service_account_id=: (String) -> String
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
workload_identity_provider_id: String,
|
|
42
|
+
?after: String,
|
|
43
|
+
?limit: Integer,
|
|
44
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order,
|
|
45
|
+
?service_account_id: String,
|
|
46
|
+
?request_options: OpenAI::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
workload_identity_provider_id: String,
|
|
51
|
+
?after: String,
|
|
52
|
+
?limit: Integer,
|
|
53
|
+
?order: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order,
|
|
54
|
+
?service_account_id: String,
|
|
55
|
+
?request_options: OpenAI::RequestOptions
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type order = :asc | :desc
|
|
59
|
+
|
|
60
|
+
module Order
|
|
61
|
+
extend OpenAI::Internal::Type::Union
|
|
62
|
+
|
|
63
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleListParams::order]
|
|
64
|
+
|
|
65
|
+
ASC: :asc
|
|
66
|
+
DESC: :desc
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module WorkloadIdentityProviders
|
|
6
|
+
type federation_rule_retrieve_params =
|
|
7
|
+
{
|
|
8
|
+
workload_identity_provider_id: String,
|
|
9
|
+
workload_identity_federation_rule_id: String,
|
|
10
|
+
?request_options: OpenAI::request_opts
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class FederationRuleRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
14
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor workload_identity_provider_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor workload_identity_federation_rule_id: String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
workload_identity_provider_id: String,
|
|
23
|
+
workload_identity_federation_rule_id: String,
|
|
24
|
+
?request_options: OpenAI::request_opts
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
workload_identity_provider_id: String,
|
|
29
|
+
workload_identity_federation_rule_id: String,
|
|
30
|
+
?request_options: OpenAI::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module WorkloadIdentityProviders
|
|
6
|
+
type federation_rule_update_params =
|
|
7
|
+
{
|
|
8
|
+
workload_identity_provider_id: String,
|
|
9
|
+
workload_identity_federation_rule_id: String,
|
|
10
|
+
?attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher],
|
|
11
|
+
?description: String?,
|
|
12
|
+
?enabled: bool,
|
|
13
|
+
?name: String?,
|
|
14
|
+
?permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions,
|
|
15
|
+
?request_options: OpenAI::request_opts
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class FederationRuleUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
19
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
20
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
21
|
+
|
|
22
|
+
attr_accessor workload_identity_provider_id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor workload_identity_federation_rule_id: String
|
|
25
|
+
|
|
26
|
+
attr_reader attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher]?
|
|
27
|
+
|
|
28
|
+
def attribute_matchers=: (
|
|
29
|
+
::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher]
|
|
30
|
+
) -> ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher]
|
|
31
|
+
|
|
32
|
+
attr_accessor description: String?
|
|
33
|
+
|
|
34
|
+
attr_reader enabled: bool?
|
|
35
|
+
|
|
36
|
+
def enabled=: (bool) -> bool
|
|
37
|
+
|
|
38
|
+
attr_accessor name: String?
|
|
39
|
+
|
|
40
|
+
attr_reader permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions?
|
|
41
|
+
|
|
42
|
+
def permissions=: (
|
|
43
|
+
OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions
|
|
44
|
+
| { type: :service_account_default }
|
|
45
|
+
| { scopes: ::Array[String], type: :restricted }
|
|
46
|
+
) -> (OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions
|
|
47
|
+
| { type: :service_account_default }
|
|
48
|
+
| { scopes: ::Array[String], type: :restricted })
|
|
49
|
+
|
|
50
|
+
def initialize: (
|
|
51
|
+
workload_identity_provider_id: String,
|
|
52
|
+
workload_identity_federation_rule_id: String,
|
|
53
|
+
?attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher],
|
|
54
|
+
?description: String?,
|
|
55
|
+
?enabled: bool,
|
|
56
|
+
?name: String?,
|
|
57
|
+
?permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions
|
|
58
|
+
| { type: :service_account_default }
|
|
59
|
+
| { scopes: ::Array[String], type: :restricted },
|
|
60
|
+
?request_options: OpenAI::request_opts
|
|
61
|
+
) -> void
|
|
62
|
+
|
|
63
|
+
def to_hash: -> {
|
|
64
|
+
workload_identity_provider_id: String,
|
|
65
|
+
workload_identity_federation_rule_id: String,
|
|
66
|
+
?attribute_matchers: ::Hash[Symbol, OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher],
|
|
67
|
+
?description: String?,
|
|
68
|
+
?enabled: bool,
|
|
69
|
+
?name: String?,
|
|
70
|
+
?permissions: OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions,
|
|
71
|
+
?request_options: OpenAI::RequestOptions
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type attribute_matcher = String | bool | Integer | Float
|
|
75
|
+
|
|
76
|
+
module AttributeMatcher
|
|
77
|
+
extend OpenAI::Internal::Type::Union
|
|
78
|
+
|
|
79
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::attribute_matcher]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
type permissions =
|
|
83
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::DefaultPermissionsParam
|
|
84
|
+
| OpenAI::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::Permissions::RestrictedPermissionsParam
|
|
85
|
+
|
|
86
|
+
module Permissions
|
|
87
|
+
extend OpenAI::Internal::Type::Union
|
|
88
|
+
|
|
89
|
+
type default_permissions_param =
|
|
90
|
+
{ ?type: :service_account_default }
|
|
91
|
+
|
|
92
|
+
class DefaultPermissionsParam < OpenAI::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor type: :service_account_default
|
|
94
|
+
|
|
95
|
+
def initialize: (?type: :service_account_default) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { ?type: :service_account_default }
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type restricted_permissions_param =
|
|
101
|
+
{ scopes: ::Array[String], ?type: :restricted }
|
|
102
|
+
|
|
103
|
+
class RestrictedPermissionsParam < OpenAI::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor scopes: ::Array[String]
|
|
105
|
+
|
|
106
|
+
attr_accessor type: :restricted
|
|
107
|
+
|
|
108
|
+
def initialize: (
|
|
109
|
+
scopes: ::Array[String],
|
|
110
|
+
?type: :restricted
|
|
111
|
+
) -> void
|
|
112
|
+
|
|
113
|
+
def to_hash: -> { scopes: ::Array[String], ?type: :restricted }
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProviders::FederationRuleUpdateParams::permissions]
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -56,14 +56,14 @@ module OpenAI
|
|
|
56
56
|
def chunking_strategy=: (
|
|
57
57
|
(OpenAI::Models::Audio::TranscriptionCreateParams::chunking_strategy
|
|
58
58
|
| {
|
|
59
|
-
type:
|
|
59
|
+
type: OpenAI::Models::Audio::TranscriptionCreateParams::ChunkingStrategy::VadConfig::type_,
|
|
60
60
|
?prefix_padding_ms: Integer,
|
|
61
61
|
?silence_duration_ms: Integer,
|
|
62
62
|
?threshold: Float
|
|
63
63
|
})?
|
|
64
64
|
) -> (OpenAI::Models::Audio::TranscriptionCreateParams::chunking_strategy
|
|
65
65
|
| {
|
|
66
|
-
type:
|
|
66
|
+
type: OpenAI::Models::Audio::TranscriptionCreateParams::ChunkingStrategy::VadConfig::type_,
|
|
67
67
|
?prefix_padding_ms: Integer,
|
|
68
68
|
?silence_duration_ms: Integer,
|
|
69
69
|
?threshold: Float
|
|
@@ -280,7 +280,7 @@ module OpenAI
|
|
|
280
280
|
model: OpenAI::Models::Audio::TranscriptionCreateParams::model,
|
|
281
281
|
?chunking_strategy: (OpenAI::Models::Audio::TranscriptionCreateParams::chunking_strategy
|
|
282
282
|
| {
|
|
283
|
-
type:
|
|
283
|
+
type: OpenAI::Models::Audio::TranscriptionCreateParams::ChunkingStrategy::VadConfig::type_,
|
|
284
284
|
?prefix_padding_ms: Integer,
|
|
285
285
|
?silence_duration_ms: Integer,
|
|
286
286
|
?threshold: Float
|
|
@@ -23,12 +23,12 @@ module OpenAI
|
|
|
23
23
|
audio_sample: OpenAI::Internal::file_input,
|
|
24
24
|
consent: String,
|
|
25
25
|
name: String,
|
|
26
|
-
?type:
|
|
26
|
+
?type: OpenAI::Models::Audio::VoiceCreateParams::Body::AudioSample::type_
|
|
27
27
|
}
|
|
28
28
|
| {
|
|
29
29
|
name: String,
|
|
30
30
|
prompt: String,
|
|
31
|
-
type:
|
|
31
|
+
type: OpenAI::Models::Audio::VoiceCreateParams::Body::Prompt::type_,
|
|
32
32
|
?model: String | :auto | :"2026-10-08",
|
|
33
33
|
?script_hint: String
|
|
34
34
|
}
|
|
@@ -37,12 +37,12 @@ module OpenAI
|
|
|
37
37
|
audio_sample: OpenAI::Internal::file_input,
|
|
38
38
|
consent: String,
|
|
39
39
|
name: String,
|
|
40
|
-
?type:
|
|
40
|
+
?type: OpenAI::Models::Audio::VoiceCreateParams::Body::AudioSample::type_
|
|
41
41
|
}
|
|
42
42
|
| {
|
|
43
43
|
name: String,
|
|
44
44
|
prompt: String,
|
|
45
|
-
type:
|
|
45
|
+
type: OpenAI::Models::Audio::VoiceCreateParams::Body::Prompt::type_,
|
|
46
46
|
?model: (String | :auto | :"2026-10-08"),
|
|
47
47
|
?script_hint: String
|
|
48
48
|
})
|
|
@@ -56,12 +56,12 @@ module OpenAI
|
|
|
56
56
|
audio_sample: OpenAI::Internal::file_input,
|
|
57
57
|
consent: String,
|
|
58
58
|
name: String,
|
|
59
|
-
?type:
|
|
59
|
+
?type: OpenAI::Models::Audio::VoiceCreateParams::Body::AudioSample::type_
|
|
60
60
|
}
|
|
61
61
|
| {
|
|
62
62
|
name: String,
|
|
63
63
|
prompt: String,
|
|
64
|
-
type:
|
|
64
|
+
type: OpenAI::Models::Audio::VoiceCreateParams::Body::Prompt::type_,
|
|
65
65
|
?model: String | :auto | :"2026-10-08",
|
|
66
66
|
?script_hint: String
|
|
67
67
|
},
|
|
@@ -332,8 +332,16 @@ module OpenAI
|
|
|
332
332
|
def chunking_strategy=: (
|
|
333
333
|
OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
334
334
|
| { type: :auto }
|
|
335
|
+
| {
|
|
336
|
+
static: OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
337
|
+
type: :static
|
|
338
|
+
}
|
|
335
339
|
) -> (OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
336
|
-
| { type: :auto }
|
|
340
|
+
| { type: :auto }
|
|
341
|
+
| {
|
|
342
|
+
static: OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
343
|
+
type: :static
|
|
344
|
+
})
|
|
337
345
|
|
|
338
346
|
# A list of [file](https://developers.openai.com/api/reference/resources/files)
|
|
339
347
|
# IDs to add to the vector store. For vector stores created before Nov 2025, there
|
|
@@ -372,7 +380,11 @@ module OpenAI
|
|
|
372
380
|
# a maximum length of 512 characters.
|
|
373
381
|
def initialize: (
|
|
374
382
|
?chunking_strategy: OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::chunking_strategy
|
|
375
|
-
| { type: :auto }
|
|
383
|
+
| { type: :auto }
|
|
384
|
+
| {
|
|
385
|
+
static: OpenAI::Models::Beta::AssistantCreateParams::ToolResources::FileSearch::VectorStore::ChunkingStrategy::Static::Static,
|
|
386
|
+
type: :static
|
|
387
|
+
},
|
|
376
388
|
?file_ids: ::Array[String],
|
|
377
389
|
?metadata: OpenAI::Models::metadata?
|
|
378
390
|
) -> void
|
|
@@ -1414,12 +1414,13 @@ module OpenAI
|
|
|
1414
1414
|
def self?.values: -> ::Array[OpenAI::Models::Beta::BetaResponse::PromptCacheOptions::mode]
|
|
1415
1415
|
end
|
|
1416
1416
|
|
|
1417
|
-
type ttl = :"30m"
|
|
1417
|
+
type ttl = :"30m" | :"12h"
|
|
1418
1418
|
|
|
1419
1419
|
module Ttl
|
|
1420
1420
|
extend OpenAI::Internal::Type::Enum
|
|
1421
1421
|
|
|
1422
1422
|
TTL_30M: :"30m"
|
|
1423
|
+
TTL_12H: :"12h"
|
|
1423
1424
|
|
|
1424
1425
|
def self?.values: -> ::Array[OpenAI::Models::Beta::BetaResponse::PromptCacheOptions::ttl]
|
|
1425
1426
|
end
|
|
@@ -55,7 +55,11 @@ module OpenAI
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
type input_tokens_details =
|
|
58
|
-
{
|
|
58
|
+
{
|
|
59
|
+
cache_write_tokens: Integer,
|
|
60
|
+
cached_tokens: Integer,
|
|
61
|
+
?cache_write_tokens_details: OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
62
|
+
}
|
|
59
63
|
|
|
60
64
|
class InputTokensDetails < OpenAI::Internal::Type::BaseModel
|
|
61
65
|
# The number of input tokens that were written to the cache.
|
|
@@ -65,6 +69,12 @@ module OpenAI
|
|
|
65
69
|
# [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
66
70
|
attr_accessor cached_tokens: Integer
|
|
67
71
|
|
|
72
|
+
attr_reader cache_write_tokens_details: OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails?
|
|
73
|
+
|
|
74
|
+
def cache_write_tokens_details=: (
|
|
75
|
+
OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
76
|
+
) -> OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
77
|
+
|
|
68
78
|
# @param cache_write_tokens
|
|
69
79
|
# The number of input tokens that were written to the cache.
|
|
70
80
|
# @param cached_tokens
|
|
@@ -72,13 +82,40 @@ module OpenAI
|
|
|
72
82
|
# [More on prompt caching](https://developers.openai.com/api/docs/guides/prompt-caching).
|
|
73
83
|
def initialize: (
|
|
74
84
|
cache_write_tokens: Integer,
|
|
75
|
-
cached_tokens: Integer
|
|
85
|
+
cached_tokens: Integer,
|
|
86
|
+
?cache_write_tokens_details: OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
76
87
|
) -> void
|
|
77
88
|
|
|
78
89
|
def to_hash: -> {
|
|
79
90
|
cache_write_tokens: Integer,
|
|
80
|
-
cached_tokens: Integer
|
|
91
|
+
cached_tokens: Integer,
|
|
92
|
+
?cache_write_tokens_details: OpenAI::Beta::BetaResponseUsage::InputTokensDetails::CacheWriteTokensDetails
|
|
81
93
|
}
|
|
94
|
+
|
|
95
|
+
type cache_write_tokens_details =
|
|
96
|
+
{ :ttl_12h_tokens => Integer, :ttl_30m_tokens => Integer }
|
|
97
|
+
|
|
98
|
+
class CacheWriteTokensDetails < OpenAI::Internal::Type::BaseModel
|
|
99
|
+
# The number of input tokens written with 12-hour retention.
|
|
100
|
+
attr_accessor ttl_12h_tokens: Integer
|
|
101
|
+
|
|
102
|
+
# The number of input tokens written with 30-minute retention.
|
|
103
|
+
attr_accessor ttl_30m_tokens: Integer
|
|
104
|
+
|
|
105
|
+
# @param ttl_12h_tokens
|
|
106
|
+
# The number of input tokens written with 12-hour retention.
|
|
107
|
+
# @param ttl_30m_tokens
|
|
108
|
+
# The number of input tokens written with 30-minute retention.
|
|
109
|
+
def initialize: (
|
|
110
|
+
ttl_12h_tokens: Integer,
|
|
111
|
+
ttl_30m_tokens: Integer
|
|
112
|
+
) -> void
|
|
113
|
+
|
|
114
|
+
def to_hash: -> {
|
|
115
|
+
:ttl_12h_tokens => Integer,
|
|
116
|
+
:ttl_30m_tokens => Integer
|
|
117
|
+
}
|
|
118
|
+
end
|
|
82
119
|
end
|
|
83
120
|
|
|
84
121
|
type output_tokens_details = { reasoning_tokens: Integer }
|
|
@@ -202,7 +202,7 @@ module OpenAI
|
|
|
202
202
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
203
203
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
204
204
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
205
|
-
# `ttl` defaults to `30m
|
|
205
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
206
206
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
207
207
|
# for current details.
|
|
208
208
|
attr_reader prompt_cache_options: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions?
|
|
@@ -213,7 +213,7 @@ module OpenAI
|
|
|
213
213
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
214
214
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
215
215
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
216
|
-
# `ttl` defaults to `30m
|
|
216
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
217
217
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
218
218
|
# for current details.
|
|
219
219
|
def prompt_cache_options=: (
|
|
@@ -523,7 +523,7 @@ module OpenAI
|
|
|
523
523
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
524
524
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
525
525
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
526
|
-
# `ttl` defaults to `30m
|
|
526
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
527
527
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
528
528
|
# for current details.
|
|
529
529
|
# @param prompt_cache_retention
|
|
@@ -1268,13 +1268,13 @@ module OpenAI
|
|
|
1268
1268
|
def prewarm=: (bool) -> bool
|
|
1269
1269
|
|
|
1270
1270
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1271
|
-
# written by the request.
|
|
1272
|
-
#
|
|
1271
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1272
|
+
# backend may retain cache entries for longer.
|
|
1273
1273
|
attr_reader ttl: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl?
|
|
1274
1274
|
|
|
1275
1275
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1276
|
-
# written by the request.
|
|
1277
|
-
#
|
|
1276
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1277
|
+
# backend may retain cache entries for longer.
|
|
1278
1278
|
def ttl=: (
|
|
1279
1279
|
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl
|
|
1280
1280
|
) -> OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl
|
|
@@ -1294,8 +1294,8 @@ module OpenAI
|
|
|
1294
1294
|
# set to `true`, overrides the `generate` field to `false`.
|
|
1295
1295
|
# @param ttl
|
|
1296
1296
|
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
1297
|
-
# written by the request.
|
|
1298
|
-
#
|
|
1297
|
+
# written by the request. Supported values are `30m` (the default) and `12h`. The
|
|
1298
|
+
# backend may retain cache entries for longer.
|
|
1299
1299
|
def initialize: (
|
|
1300
1300
|
?comparison_response_id: String?,
|
|
1301
1301
|
?mode: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::mode,
|
|
@@ -1321,12 +1321,13 @@ module OpenAI
|
|
|
1321
1321
|
def self?.values: -> ::Array[OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::mode]
|
|
1322
1322
|
end
|
|
1323
1323
|
|
|
1324
|
-
type ttl = :"30m"
|
|
1324
|
+
type ttl = :"30m" | :"12h"
|
|
1325
1325
|
|
|
1326
1326
|
module Ttl
|
|
1327
1327
|
extend OpenAI::Internal::Type::Enum
|
|
1328
1328
|
|
|
1329
1329
|
TTL_30M: :"30m"
|
|
1330
|
+
TTL_12H: :"12h"
|
|
1330
1331
|
|
|
1331
1332
|
def self?.values: -> ::Array[OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::PromptCacheOptions::ttl]
|
|
1332
1333
|
end
|
|
@@ -50,7 +50,7 @@ module OpenAI
|
|
|
50
50
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
51
51
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
52
52
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
53
|
-
# `ttl` defaults to `30m
|
|
53
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
54
54
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
55
55
|
# for current details.
|
|
56
56
|
attr_accessor prompt_cache_options: OpenAI::Beta::ResponseCompactParams::PromptCacheOptions?
|
|
@@ -109,7 +109,7 @@ module OpenAI
|
|
|
109
109
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
110
110
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
111
111
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
112
|
-
# `ttl` defaults to `30m
|
|
112
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
113
113
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
114
114
|
# for current details.
|
|
115
115
|
# @param prompt_cache_retention
|