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,123 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Resources
|
|
5
|
+
|
|
6
|
+
class Admin
|
|
7
|
+
|
|
8
|
+
class Organization
|
|
9
|
+
|
|
10
|
+
class WorkloadIdentityProviders
|
|
11
|
+
|
|
12
|
+
sig { returns(OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders::FederationRules) }
|
|
13
|
+
attr_reader :federation_rules
|
|
14
|
+
|
|
15
|
+
# Register an OIDC provider for keyless project service-account authentication.
|
|
16
|
+
sig {
|
|
17
|
+
params(
|
|
18
|
+
audience: String,
|
|
19
|
+
issuer: String,
|
|
20
|
+
name: String,
|
|
21
|
+
attribute_transformations: T::Array[
|
|
22
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::AttributeTransformation::OrHash
|
|
23
|
+
],
|
|
24
|
+
description: String,
|
|
25
|
+
enabled: T::Boolean,
|
|
26
|
+
verification: T.any(
|
|
27
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::Discovery::OrHash,
|
|
28
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderCreateParams::Verification::UploadedJwks::OrHash
|
|
29
|
+
),
|
|
30
|
+
type: Symbol,
|
|
31
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
32
|
+
)
|
|
33
|
+
.returns(OpenAI::Admin::Organization::WorkloadIdentityProvider)
|
|
34
|
+
}
|
|
35
|
+
def create(
|
|
36
|
+
audience:,
|
|
37
|
+
issuer:,
|
|
38
|
+
name:,
|
|
39
|
+
attribute_transformations: nil,
|
|
40
|
+
description: nil,
|
|
41
|
+
enabled: nil,
|
|
42
|
+
verification: nil,
|
|
43
|
+
type: :oidc,
|
|
44
|
+
request_options: {}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Retrieve an OIDC provider in the authenticated organization.
|
|
49
|
+
sig {
|
|
50
|
+
params(workload_identity_provider_id: String, request_options: OpenAI::RequestOptions::OrHash).returns(
|
|
51
|
+
OpenAI::Admin::Organization::WorkloadIdentityProvider
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
def retrieve(workload_identity_provider_id, request_options: {})
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Update supplied provider fields, preserving omitted fields.
|
|
58
|
+
sig {
|
|
59
|
+
params(
|
|
60
|
+
workload_identity_provider_id: String,
|
|
61
|
+
attribute_transformations: T::Array[
|
|
62
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::AttributeTransformation::OrHash
|
|
63
|
+
],
|
|
64
|
+
audience: String,
|
|
65
|
+
description: T.nilable(String),
|
|
66
|
+
enabled: T::Boolean,
|
|
67
|
+
issuer: String,
|
|
68
|
+
name: String,
|
|
69
|
+
verification: T.any(
|
|
70
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::Verification::DiscoveryVerificationParam::OrHash,
|
|
71
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderUpdateParams::Verification::UploadedJwksVerificationParam::OrHash
|
|
72
|
+
),
|
|
73
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
74
|
+
)
|
|
75
|
+
.returns(OpenAI::Admin::Organization::WorkloadIdentityProvider)
|
|
76
|
+
}
|
|
77
|
+
def update(
|
|
78
|
+
workload_identity_provider_id,
|
|
79
|
+
attribute_transformations: nil,
|
|
80
|
+
audience: nil,
|
|
81
|
+
description: nil,
|
|
82
|
+
enabled: nil,
|
|
83
|
+
issuer: nil,
|
|
84
|
+
name: nil,
|
|
85
|
+
verification: nil,
|
|
86
|
+
request_options: {}
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# List OIDC providers in the authenticated Admin API key's organization.
|
|
91
|
+
sig {
|
|
92
|
+
params(
|
|
93
|
+
after: String,
|
|
94
|
+
limit: Integer,
|
|
95
|
+
order: OpenAI::Admin::Organization::WorkloadIdentityProviderListParams::Order::OrSymbol,
|
|
96
|
+
request_options: OpenAI::RequestOptions::OrHash
|
|
97
|
+
)
|
|
98
|
+
.returns(OpenAI::Internal::CursorPage[OpenAI::Admin::Organization::WorkloadIdentityProvider])
|
|
99
|
+
}
|
|
100
|
+
def list(after: nil, limit: nil, order: nil, request_options: {})
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Delete a provider after deleting all its federation rules.
|
|
104
|
+
sig {
|
|
105
|
+
params(workload_identity_provider_id: String, request_options: OpenAI::RequestOptions::OrHash).returns(
|
|
106
|
+
OpenAI::Admin::Organization::WorkloadIdentityProviderDeleted
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
def delete(workload_identity_provider_id, request_options: {})
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @api private
|
|
113
|
+
sig { params(client: OpenAI::Client).returns(T.attached_class) }
|
|
114
|
+
def self.new(client:)
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
end
|
|
123
|
+
end
|
|
@@ -50,6 +50,9 @@ module OpenAI
|
|
|
50
50
|
sig { returns(OpenAI::Resources::Admin::Organization::Projects) }
|
|
51
51
|
attr_reader :projects
|
|
52
52
|
|
|
53
|
+
sig { returns(OpenAI::Resources::Admin::Organization::WorkloadIdentityProviders) }
|
|
54
|
+
attr_reader :workload_identity_providers
|
|
55
|
+
|
|
53
56
|
# @api private
|
|
54
57
|
sig { params(client: OpenAI::Client).returns(T.attached_class) }
|
|
55
58
|
def self.new(client:)
|
|
@@ -218,8 +218,8 @@ module OpenAI
|
|
|
218
218
|
# `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For
|
|
219
219
|
# cache matching, OpenAI considers up to the latest 80 breakpoints in the
|
|
220
220
|
# conversation, without a content-block lookback limit. Set `mode` to `explicit`
|
|
221
|
-
# to disable the implicit breakpoint. The `ttl` defaults to `30m
|
|
222
|
-
#
|
|
221
|
+
# to disable the implicit breakpoint. The `ttl` defaults to `30m`. Supported
|
|
222
|
+
# lifetimes depend on the API. See the
|
|
223
223
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
224
224
|
# for current details.
|
|
225
225
|
prompt_cache_options: nil,
|
|
@@ -540,8 +540,8 @@ module OpenAI
|
|
|
540
540
|
# `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For
|
|
541
541
|
# cache matching, OpenAI considers up to the latest 80 breakpoints in the
|
|
542
542
|
# conversation, without a content-block lookback limit. Set `mode` to `explicit`
|
|
543
|
-
# to disable the implicit breakpoint. The `ttl` defaults to `30m
|
|
544
|
-
#
|
|
543
|
+
# to disable the implicit breakpoint. The `ttl` defaults to `30m`. Supported
|
|
544
|
+
# lifetimes depend on the API. See the
|
|
545
545
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
546
546
|
# for current details.
|
|
547
547
|
prompt_cache_options: nil,
|
|
@@ -852,8 +852,8 @@ module OpenAI
|
|
|
852
852
|
# `prompt_cache_breakpoint`. Each request can write up to four breakpoints. For
|
|
853
853
|
# cache matching, OpenAI considers up to the latest 80 breakpoints in the
|
|
854
854
|
# conversation, without a content-block lookback limit. Set `mode` to `explicit`
|
|
855
|
-
# to disable the implicit breakpoint. The `ttl` defaults to `30m
|
|
856
|
-
#
|
|
855
|
+
# to disable the implicit breakpoint. The `ttl` defaults to `30m`. Supported
|
|
856
|
+
# lifetimes depend on the API. See the
|
|
857
857
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
858
858
|
# for current details.
|
|
859
859
|
prompt_cache_options: nil,
|
|
@@ -222,7 +222,7 @@ module OpenAI
|
|
|
222
222
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
223
223
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
224
224
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
225
|
-
# `ttl` defaults to `30m
|
|
225
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
226
226
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
227
227
|
# for current details.
|
|
228
228
|
prompt_cache_options: nil,
|
|
@@ -567,7 +567,7 @@ module OpenAI
|
|
|
567
567
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
568
568
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
569
569
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
570
|
-
# `ttl` defaults to `30m
|
|
570
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
571
571
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
572
572
|
# for current details.
|
|
573
573
|
prompt_cache_options: nil,
|
|
@@ -210,7 +210,7 @@ module OpenAI
|
|
|
210
210
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
211
211
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
212
212
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
213
|
-
# `ttl` defaults to `30m
|
|
213
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
214
214
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
215
215
|
# for current details.
|
|
216
216
|
prompt_cache_options: nil,
|
|
@@ -521,7 +521,7 @@ module OpenAI
|
|
|
521
521
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
522
522
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
523
523
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
524
|
-
# `ttl` defaults to `30m
|
|
524
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
525
525
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
526
526
|
# for current details.
|
|
527
527
|
prompt_cache_options: nil,
|
|
@@ -815,7 +815,7 @@ module OpenAI
|
|
|
815
815
|
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
816
816
|
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
817
817
|
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
818
|
-
# `ttl` defaults to `30m
|
|
818
|
+
# `ttl` defaults to `30m`. Supported lifetimes depend on the API. See the
|
|
819
819
|
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
820
820
|
# for current details.
|
|
821
821
|
prompt_cache_options: nil,
|
|
@@ -22,7 +22,7 @@ module OpenAI
|
|
|
22
22
|
name: String,
|
|
23
23
|
role_arn: String,
|
|
24
24
|
type: :aws,
|
|
25
|
-
?purpose:
|
|
25
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
26
26
|
}
|
|
27
27
|
| {
|
|
28
28
|
audience: String,
|
|
@@ -36,7 +36,7 @@ module OpenAI
|
|
|
36
36
|
workload_identity_project_number: String,
|
|
37
37
|
workload_identity_provider_id: String,
|
|
38
38
|
?kms_key_version: String,
|
|
39
|
-
?purpose:
|
|
39
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
40
40
|
}
|
|
41
41
|
| {
|
|
42
42
|
key_name: String,
|
|
@@ -45,7 +45,7 @@ module OpenAI
|
|
|
45
45
|
type: :azure,
|
|
46
46
|
vault_uri: String,
|
|
47
47
|
?key_version: String,
|
|
48
|
-
?purpose:
|
|
48
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
49
49
|
}
|
|
50
50
|
) -> (OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::body
|
|
51
51
|
| {
|
|
@@ -54,7 +54,7 @@ module OpenAI
|
|
|
54
54
|
name: String,
|
|
55
55
|
role_arn: String,
|
|
56
56
|
type: :aws,
|
|
57
|
-
?purpose:
|
|
57
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
58
58
|
}
|
|
59
59
|
| {
|
|
60
60
|
audience: String,
|
|
@@ -68,7 +68,7 @@ module OpenAI
|
|
|
68
68
|
workload_identity_project_number: String,
|
|
69
69
|
workload_identity_provider_id: String,
|
|
70
70
|
?kms_key_version: String,
|
|
71
|
-
?purpose:
|
|
71
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
72
72
|
}
|
|
73
73
|
| {
|
|
74
74
|
key_name: String,
|
|
@@ -77,7 +77,7 @@ module OpenAI
|
|
|
77
77
|
type: :azure,
|
|
78
78
|
vault_uri: String,
|
|
79
79
|
?key_version: String,
|
|
80
|
-
?purpose:
|
|
80
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
81
81
|
})
|
|
82
82
|
|
|
83
83
|
def initialize: (
|
|
@@ -88,7 +88,7 @@ module OpenAI
|
|
|
88
88
|
name: String,
|
|
89
89
|
role_arn: String,
|
|
90
90
|
type: :aws,
|
|
91
|
-
?purpose:
|
|
91
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Aws::purpose
|
|
92
92
|
}
|
|
93
93
|
| {
|
|
94
94
|
audience: String,
|
|
@@ -102,7 +102,7 @@ module OpenAI
|
|
|
102
102
|
workload_identity_project_number: String,
|
|
103
103
|
workload_identity_provider_id: String,
|
|
104
104
|
?kms_key_version: String,
|
|
105
|
-
?purpose:
|
|
105
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Gcp::purpose
|
|
106
106
|
}
|
|
107
107
|
| {
|
|
108
108
|
key_name: String,
|
|
@@ -111,7 +111,7 @@ module OpenAI
|
|
|
111
111
|
type: :azure,
|
|
112
112
|
vault_uri: String,
|
|
113
113
|
?key_version: String,
|
|
114
|
-
?purpose:
|
|
114
|
+
?purpose: OpenAI::Models::Admin::Organization::ExternalKeyCreateParams::Body::Azure::purpose
|
|
115
115
|
},
|
|
116
116
|
?request_options: OpenAI::request_opts
|
|
117
117
|
) -> void
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module ProjectOptionalServiceTier = Projects::ProjectOptionalServiceTier
|
|
6
|
+
|
|
7
|
+
module Projects
|
|
8
|
+
type project_optional_service_tier = :flex | :fast | :ultrafast
|
|
9
|
+
|
|
10
|
+
module ProjectOptionalServiceTier
|
|
11
|
+
extend OpenAI::Internal::Type::Enum
|
|
12
|
+
|
|
13
|
+
FLEX: :flex
|
|
14
|
+
FAST: :fast
|
|
15
|
+
ULTRAFAST: :ultrafast
|
|
16
|
+
|
|
17
|
+
def self?.values: -> ::Array[OpenAI::Models::Admin::Organization::Projects::project_optional_service_tier]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
class ProjectServiceTierSettings = Projects::ProjectServiceTierSettings
|
|
6
|
+
|
|
7
|
+
module Projects
|
|
8
|
+
type project_service_tier_settings =
|
|
9
|
+
{
|
|
10
|
+
default: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::default,
|
|
11
|
+
enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::enabled_tiers,
|
|
12
|
+
?object: :"project.service_tier_settings"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class ProjectServiceTierSettings < OpenAI::Internal::Type::BaseModel
|
|
16
|
+
# Default tier for requests that omit service_tier or use auto.
|
|
17
|
+
attr_accessor default: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::default
|
|
18
|
+
|
|
19
|
+
# Additional service tiers enabled for this project. "all" includes future tiers.
|
|
20
|
+
# An empty array allows only Standard. Organization policy and eligibility still
|
|
21
|
+
# apply.
|
|
22
|
+
attr_accessor enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::enabled_tiers
|
|
23
|
+
|
|
24
|
+
attr_accessor object: :"project.service_tier_settings"
|
|
25
|
+
|
|
26
|
+
# @param default
|
|
27
|
+
# Default tier for requests that omit service_tier or use auto.
|
|
28
|
+
# @param enabled_tiers
|
|
29
|
+
# Additional service tiers enabled for this project. "all" includes future tiers.
|
|
30
|
+
# An empty array allows only Standard. Organization policy and eligibility still
|
|
31
|
+
# apply.
|
|
32
|
+
def initialize: (
|
|
33
|
+
default: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::default,
|
|
34
|
+
enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::enabled_tiers,
|
|
35
|
+
?object: :"project.service_tier_settings"
|
|
36
|
+
) -> void
|
|
37
|
+
|
|
38
|
+
def to_hash: -> {
|
|
39
|
+
default: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::default,
|
|
40
|
+
enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::enabled_tiers,
|
|
41
|
+
?object: :"project.service_tier_settings"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type default = :standard | :fast | :scale
|
|
45
|
+
|
|
46
|
+
module Default
|
|
47
|
+
extend OpenAI::Internal::Type::Enum
|
|
48
|
+
|
|
49
|
+
STANDARD: :standard
|
|
50
|
+
FAST: :fast
|
|
51
|
+
SCALE: :scale
|
|
52
|
+
|
|
53
|
+
def self?.values: -> ::Array[OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::default]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
type enabled_tiers =
|
|
57
|
+
:all
|
|
58
|
+
| ::Array[OpenAI::Models::Admin::Organization::Projects::project_optional_service_tier]
|
|
59
|
+
|
|
60
|
+
module EnabledTiers
|
|
61
|
+
extend OpenAI::Internal::Type::Union
|
|
62
|
+
|
|
63
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::Projects::ProjectServiceTierSettings::enabled_tiers]
|
|
64
|
+
|
|
65
|
+
ProjectOptionalServiceTierArray: OpenAI::Internal::Type::Converter
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module Projects
|
|
6
|
+
type service_tier_setting_retrieve_params =
|
|
7
|
+
{ project_id: String, ?request_options: OpenAI::request_opts }
|
|
8
|
+
|
|
9
|
+
class ServiceTierSettingRetrieveParams < OpenAI::Internal::Type::BaseModel
|
|
10
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# The ID of the project
|
|
14
|
+
attr_accessor project_id: String
|
|
15
|
+
|
|
16
|
+
# @param project_id
|
|
17
|
+
# The ID of the project
|
|
18
|
+
def initialize: (
|
|
19
|
+
project_id: String,
|
|
20
|
+
?request_options: OpenAI::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
project_id: String,
|
|
25
|
+
?request_options: OpenAI::RequestOptions
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
module Projects
|
|
6
|
+
type service_tier_setting_update_params =
|
|
7
|
+
{
|
|
8
|
+
project_id: String,
|
|
9
|
+
?default: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default,
|
|
10
|
+
?enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers,
|
|
11
|
+
?request_options: OpenAI::request_opts
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ServiceTierSettingUpdateParams < OpenAI::Internal::Type::BaseModel
|
|
15
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
# The ID of the project
|
|
19
|
+
attr_accessor project_id: String
|
|
20
|
+
|
|
21
|
+
# Default tier for requests that omit service_tier or use auto.
|
|
22
|
+
attr_reader default: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default?
|
|
23
|
+
|
|
24
|
+
# Default tier for requests that omit service_tier or use auto.
|
|
25
|
+
def default=: (
|
|
26
|
+
OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default
|
|
27
|
+
) -> OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default
|
|
28
|
+
|
|
29
|
+
# Additional service tiers enabled for this project. "all" includes future tiers.
|
|
30
|
+
# An empty array allows only Standard. Organization policy and eligibility still
|
|
31
|
+
# apply.
|
|
32
|
+
attr_reader enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers?
|
|
33
|
+
|
|
34
|
+
# Additional service tiers enabled for this project. "all" includes future tiers.
|
|
35
|
+
# An empty array allows only Standard. Organization policy and eligibility still
|
|
36
|
+
# apply.
|
|
37
|
+
def enabled_tiers=: (
|
|
38
|
+
OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers
|
|
39
|
+
) -> OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers
|
|
40
|
+
|
|
41
|
+
# @param project_id
|
|
42
|
+
# The ID of the project
|
|
43
|
+
# @param default
|
|
44
|
+
# Default tier for requests that omit service_tier or use auto.
|
|
45
|
+
# @param enabled_tiers
|
|
46
|
+
# Additional service tiers enabled for this project. "all" includes future tiers.
|
|
47
|
+
# An empty array allows only Standard. Organization policy and eligibility still
|
|
48
|
+
# apply.
|
|
49
|
+
def initialize: (
|
|
50
|
+
project_id: String,
|
|
51
|
+
?default: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default,
|
|
52
|
+
?enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers,
|
|
53
|
+
?request_options: OpenAI::request_opts
|
|
54
|
+
) -> void
|
|
55
|
+
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
project_id: String,
|
|
58
|
+
?default: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default,
|
|
59
|
+
?enabled_tiers: OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers,
|
|
60
|
+
?request_options: OpenAI::RequestOptions
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type default = :standard | :fast | :scale
|
|
64
|
+
|
|
65
|
+
module Default
|
|
66
|
+
extend OpenAI::Internal::Type::Enum
|
|
67
|
+
|
|
68
|
+
STANDARD: :standard
|
|
69
|
+
FAST: :fast
|
|
70
|
+
SCALE: :scale
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::default]
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
type enabled_tiers =
|
|
76
|
+
:all
|
|
77
|
+
| ::Array[OpenAI::Models::Admin::Organization::Projects::project_optional_service_tier]
|
|
78
|
+
|
|
79
|
+
module EnabledTiers
|
|
80
|
+
extend OpenAI::Internal::Type::Union
|
|
81
|
+
|
|
82
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::Projects::ServiceTierSettingUpdateParams::enabled_tiers]
|
|
83
|
+
|
|
84
|
+
ProjectOptionalServiceTierArray: OpenAI::Internal::Type::Converter
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Admin
|
|
4
|
+
module Organization
|
|
5
|
+
type workload_identity_provider =
|
|
6
|
+
{
|
|
7
|
+
id: String,
|
|
8
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
9
|
+
audience: String,
|
|
10
|
+
created_at: Integer,
|
|
11
|
+
description: String?,
|
|
12
|
+
enabled: bool,
|
|
13
|
+
issuer: String,
|
|
14
|
+
name: String,
|
|
15
|
+
?object: :"organization.workload_identity_provider",
|
|
16
|
+
?type: :oidc,
|
|
17
|
+
updated_at: Integer,
|
|
18
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class WorkloadIdentityProvider < OpenAI::Internal::Type::BaseModel
|
|
22
|
+
attr_accessor id: String
|
|
23
|
+
|
|
24
|
+
attr_accessor attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation]
|
|
25
|
+
|
|
26
|
+
attr_accessor audience: String
|
|
27
|
+
|
|
28
|
+
attr_accessor created_at: Integer
|
|
29
|
+
|
|
30
|
+
attr_accessor description: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor enabled: bool
|
|
33
|
+
|
|
34
|
+
attr_accessor issuer: String
|
|
35
|
+
|
|
36
|
+
attr_accessor name: String
|
|
37
|
+
|
|
38
|
+
attr_accessor object: :"organization.workload_identity_provider"
|
|
39
|
+
|
|
40
|
+
attr_accessor type: :oidc
|
|
41
|
+
|
|
42
|
+
attr_accessor updated_at: Integer
|
|
43
|
+
|
|
44
|
+
attr_accessor verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
id: String,
|
|
48
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
49
|
+
audience: String,
|
|
50
|
+
created_at: Integer,
|
|
51
|
+
description: String?,
|
|
52
|
+
enabled: bool,
|
|
53
|
+
issuer: String,
|
|
54
|
+
name: String,
|
|
55
|
+
updated_at: Integer,
|
|
56
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification,
|
|
57
|
+
?object: :"organization.workload_identity_provider",
|
|
58
|
+
?type: :oidc
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
attribute_transformations: ::Array[OpenAI::Admin::Organization::WorkloadIdentityProvider::AttributeTransformation],
|
|
64
|
+
audience: String,
|
|
65
|
+
created_at: Integer,
|
|
66
|
+
description: String?,
|
|
67
|
+
enabled: bool,
|
|
68
|
+
issuer: String,
|
|
69
|
+
name: String,
|
|
70
|
+
?object: :"organization.workload_identity_provider",
|
|
71
|
+
?type: :oidc,
|
|
72
|
+
updated_at: Integer,
|
|
73
|
+
verification: OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type attribute_transformation =
|
|
77
|
+
{ attribute: String, expression: String }
|
|
78
|
+
|
|
79
|
+
class AttributeTransformation < OpenAI::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor attribute: String
|
|
81
|
+
|
|
82
|
+
attr_accessor expression: String
|
|
83
|
+
|
|
84
|
+
def initialize: (attribute: String, expression: String) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> { attribute: String, expression: String }
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
type verification =
|
|
90
|
+
OpenAI::Admin::Organization::WorkloadIdentityProvider::Verification::Discovery
|
|
91
|
+
| OpenAI::Admin::Organization::WorkloadIdentityProvider::Verification::UploadedJwks
|
|
92
|
+
|
|
93
|
+
module Verification
|
|
94
|
+
extend OpenAI::Internal::Type::Union
|
|
95
|
+
|
|
96
|
+
type discovery = { discovery_url: String?, ?type: :discovery }
|
|
97
|
+
|
|
98
|
+
class Discovery < OpenAI::Internal::Type::BaseModel
|
|
99
|
+
attr_accessor discovery_url: String?
|
|
100
|
+
|
|
101
|
+
attr_accessor type: :discovery
|
|
102
|
+
|
|
103
|
+
def initialize: (
|
|
104
|
+
discovery_url: String?,
|
|
105
|
+
?type: :discovery
|
|
106
|
+
) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> { discovery_url: String?, ?type: :discovery }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
type uploaded_jwks =
|
|
112
|
+
{ jwks: ::Hash[Symbol, top], ?type: :uploaded_jwks }
|
|
113
|
+
|
|
114
|
+
class UploadedJwks < OpenAI::Internal::Type::BaseModel
|
|
115
|
+
attr_accessor jwks: ::Hash[Symbol, top]
|
|
116
|
+
|
|
117
|
+
attr_accessor type: :uploaded_jwks
|
|
118
|
+
|
|
119
|
+
def initialize: (
|
|
120
|
+
jwks: ::Hash[Symbol, top],
|
|
121
|
+
?type: :uploaded_jwks
|
|
122
|
+
) -> void
|
|
123
|
+
|
|
124
|
+
def to_hash: -> {
|
|
125
|
+
jwks: ::Hash[Symbol, top],
|
|
126
|
+
?type: :uploaded_jwks
|
|
127
|
+
}
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
def self?.variants: -> ::Array[OpenAI::Models::Admin::Organization::WorkloadIdentityProvider::verification]
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|