openai 0.69.0 → 0.71.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 +27 -0
- data/README.md +51 -1
- data/lib/openai/client.rb +62 -8
- data/lib/openai/internal/provider.rb +31 -0
- data/lib/openai/internal/transport/base_client.rb +65 -21
- data/lib/openai/internal/util.rb +1 -1
- data/lib/openai/models/admin/organization/audit_log_list_params.rb +84 -0
- data/lib/openai/models/admin/organization/audit_log_list_response.rb +84 -0
- data/lib/openai/models/admin/organization/projects/api_key_list_params.rb +30 -1
- data/lib/openai/models/admin/organization/projects/project_api_key.rb +23 -1
- data/lib/openai/models/admin/organization/projects/project_service_account.rb +4 -3
- data/lib/openai/models/admin/organization/projects/service_account_create_params.rb +9 -1
- data/lib/openai/models/admin/organization/projects/service_account_create_response.rb +26 -6
- data/lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb +54 -0
- data/lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb +57 -0
- data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_completions_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_costs_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_embeddings_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_images_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_moderations_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +88 -13
- data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +88 -13
- data/lib/openai/models/beta/beta_response_input_item.rb +16 -32
- data/lib/openai/models/beta/beta_response_reasoning_item.rb +4 -3
- data/lib/openai/models/responses/response_reasoning_item.rb +4 -3
- data/lib/openai/models/webhooks/unwrap_webhook_event.rb +1 -4
- data/lib/openai/provider.rb +18 -0
- data/lib/openai/providers/bedrock.rb +489 -0
- data/lib/openai/resources/admin/organization/projects/api_keys.rb +3 -1
- data/lib/openai/resources/admin/organization/projects/service_accounts/api_keys.rb +60 -0
- data/lib/openai/resources/admin/organization/projects/service_accounts.rb +10 -3
- data/lib/openai/resources/webhooks.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +6 -1
- data/rbi/openai/client.rbi +17 -0
- data/rbi/openai/internal/provider.rbi +51 -0
- data/rbi/openai/internal/transport/base_client.rbi +32 -0
- data/rbi/openai/models/admin/organization/audit_log_list_params.rbi +420 -0
- data/rbi/openai/models/admin/organization/audit_log_list_response.rbi +420 -0
- data/rbi/openai/models/admin/organization/projects/api_key_list_params.rbi +76 -0
- data/rbi/openai/models/admin/organization/projects/project_api_key.rbi +49 -0
- data/rbi/openai/models/admin/organization/projects/project_service_account.rbi +8 -3
- data/rbi/openai/models/admin/organization/projects/service_account_create_params.rbi +8 -0
- data/rbi/openai/models/admin/organization/projects/service_account_create_response.rbi +52 -8
- data/rbi/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbi +84 -0
- data/rbi/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbi +80 -0
- data/rbi/openai/models/admin/organization/usage_audio_speeches_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_audio_transcriptions_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_completions_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_costs_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_embeddings_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_file_search_calls_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_images_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_moderations_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_vector_stores_response.rbi +121 -16
- data/rbi/openai/models/admin/organization/usage_web_search_calls_response.rbi +121 -16
- data/rbi/openai/models/beta/beta_response_input_item.rbi +39 -46
- data/rbi/openai/models/beta/beta_response_reasoning_item.rbi +6 -4
- data/rbi/openai/models/responses/response_reasoning_item.rbi +6 -4
- data/rbi/openai/models/webhooks/unwrap_webhook_event.rbi +1 -2
- data/rbi/openai/provider.rbi +9 -0
- data/rbi/openai/providers.rbi +33 -0
- data/rbi/openai/resources/admin/organization/projects/api_keys.rbi +8 -0
- data/rbi/openai/resources/admin/organization/projects/service_accounts/api_keys.rbi +45 -0
- data/rbi/openai/resources/admin/organization/projects/service_accounts.rbi +12 -2
- data/rbi/openai/resources/webhooks.rbi +1 -2
- data/sig/openai/client.rbs +7 -0
- data/sig/openai/internal/provider.rbs +29 -0
- data/sig/openai/internal/transport/base_client.rbs +17 -1
- data/sig/openai/models/admin/organization/audit_log_list_params.rbs +168 -0
- data/sig/openai/models/admin/organization/audit_log_list_response.rbs +168 -0
- data/sig/openai/models/admin/organization/projects/api_key_list_params.rbs +26 -1
- data/sig/openai/models/admin/organization/projects/project_api_key.rbs +16 -0
- data/sig/openai/models/admin/organization/projects/project_service_account.rbs +2 -1
- data/sig/openai/models/admin/organization/projects/service_account_create_params.rbs +9 -1
- data/sig/openai/models/admin/organization/projects/service_account_create_response.rbs +16 -5
- data/sig/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbs +53 -0
- data/sig/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbs +48 -0
- data/sig/openai/models/admin/organization/usage_audio_speeches_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_audio_transcriptions_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_completions_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_costs_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_embeddings_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_file_search_calls_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_images_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_moderations_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_vector_stores_response.rbs +63 -0
- data/sig/openai/models/admin/organization/usage_web_search_calls_response.rbs +63 -0
- data/sig/openai/models/beta/beta_response_input_item.rbs +18 -24
- data/sig/openai/models/webhooks/unwrap_webhook_event.rbs +0 -1
- data/sig/openai/provider.rbs +5 -0
- data/sig/openai/providers.rbs +15 -0
- data/sig/openai/resources/admin/organization/projects/api_keys.rbs +1 -0
- data/sig/openai/resources/admin/organization/projects/service_accounts/api_keys.rbs +23 -0
- data/sig/openai/resources/admin/organization/projects/service_accounts.rbs +3 -0
- data/sig/openai/resources/webhooks.rbs +1 -2
- metadata +20 -5
- data/lib/openai/models/webhooks/safety_identifier_blocked_webhook_event.rb +0 -118
- data/rbi/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbi +0 -209
- data/sig/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbs +0 -99
|
@@ -552,7 +552,7 @@ module OpenAI
|
|
|
552
552
|
{
|
|
553
553
|
text: String,
|
|
554
554
|
type: :output_text,
|
|
555
|
-
annotations: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
555
|
+
annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
class Output < OpenAI::Internal::Type::BaseModel
|
|
@@ -560,33 +560,33 @@ module OpenAI
|
|
|
560
560
|
|
|
561
561
|
attr_accessor type: :output_text
|
|
562
562
|
|
|
563
|
-
attr_reader annotations: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
563
|
+
attr_reader annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]?
|
|
564
564
|
|
|
565
565
|
def annotations=: (
|
|
566
|
-
OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
567
|
-
) -> OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
566
|
+
::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
|
|
567
|
+
) -> ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
|
|
568
568
|
|
|
569
569
|
def initialize: (
|
|
570
570
|
text: String,
|
|
571
|
-
?annotations: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
571
|
+
?annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation],
|
|
572
572
|
?type: :output_text
|
|
573
573
|
) -> void
|
|
574
574
|
|
|
575
575
|
def to_hash: -> {
|
|
576
576
|
text: String,
|
|
577
577
|
type: :output_text,
|
|
578
|
-
annotations: OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
578
|
+
annotations: ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
-
type
|
|
582
|
-
|
|
583
|
-
|
|
|
584
|
-
|
|
|
581
|
+
type annotation =
|
|
582
|
+
OpenAI::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::Annotation::FileCitation
|
|
583
|
+
| OpenAI::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::Annotation::URLCitation
|
|
584
|
+
| OpenAI::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::Annotation::ContainerFileCitation
|
|
585
585
|
|
|
586
|
-
module
|
|
586
|
+
module Annotation
|
|
587
587
|
extend OpenAI::Internal::Type::Union
|
|
588
588
|
|
|
589
|
-
type
|
|
589
|
+
type file_citation =
|
|
590
590
|
{
|
|
591
591
|
file_id: String,
|
|
592
592
|
filename: String,
|
|
@@ -594,7 +594,7 @@ module OpenAI
|
|
|
594
594
|
type: :file_citation
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
class
|
|
597
|
+
class FileCitation < OpenAI::Internal::Type::BaseModel
|
|
598
598
|
attr_accessor file_id: String
|
|
599
599
|
|
|
600
600
|
attr_accessor filename: String
|
|
@@ -618,7 +618,7 @@ module OpenAI
|
|
|
618
618
|
}
|
|
619
619
|
end
|
|
620
620
|
|
|
621
|
-
type
|
|
621
|
+
type url_citation =
|
|
622
622
|
{
|
|
623
623
|
end_index: Integer,
|
|
624
624
|
start_index: Integer,
|
|
@@ -627,7 +627,7 @@ module OpenAI
|
|
|
627
627
|
url: String
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
class
|
|
630
|
+
class URLCitation < OpenAI::Internal::Type::BaseModel
|
|
631
631
|
attr_accessor end_index: Integer
|
|
632
632
|
|
|
633
633
|
attr_accessor start_index: Integer
|
|
@@ -655,7 +655,7 @@ module OpenAI
|
|
|
655
655
|
}
|
|
656
656
|
end
|
|
657
657
|
|
|
658
|
-
type
|
|
658
|
+
type container_file_citation =
|
|
659
659
|
{
|
|
660
660
|
container_id: String,
|
|
661
661
|
end_index: Integer,
|
|
@@ -665,7 +665,7 @@ module OpenAI
|
|
|
665
665
|
type: :container_file_citation
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
class
|
|
668
|
+
class ContainerFileCitation < OpenAI::Internal::Type::BaseModel
|
|
669
669
|
attr_accessor container_id: String
|
|
670
670
|
|
|
671
671
|
attr_accessor end_index: Integer
|
|
@@ -697,13 +697,7 @@ module OpenAI
|
|
|
697
697
|
}
|
|
698
698
|
end
|
|
699
699
|
|
|
700
|
-
def self?.variants: -> ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::
|
|
701
|
-
|
|
702
|
-
UnionMember0Array: OpenAI::Internal::Type::Converter
|
|
703
|
-
|
|
704
|
-
UnionMember1Array: OpenAI::Internal::Type::Converter
|
|
705
|
-
|
|
706
|
-
UnionMember2Array: OpenAI::Internal::Type::Converter
|
|
700
|
+
def self?.variants: -> ::Array[OpenAI::Models::Beta::BetaResponseInputItem::MultiAgentCallOutput::Output::annotation]
|
|
707
701
|
end
|
|
708
702
|
end
|
|
709
703
|
|
|
@@ -17,7 +17,6 @@ module OpenAI
|
|
|
17
17
|
| OpenAI::Webhooks::ResponseCompletedWebhookEvent
|
|
18
18
|
| OpenAI::Webhooks::ResponseFailedWebhookEvent
|
|
19
19
|
| OpenAI::Webhooks::ResponseIncompleteWebhookEvent
|
|
20
|
-
| OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent
|
|
21
20
|
|
|
22
21
|
module UnwrapWebhookEvent
|
|
23
22
|
extend OpenAI::Internal::Type::Union
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Providers
|
|
3
|
+
def self.bedrock: (
|
|
4
|
+
?region: String?,
|
|
5
|
+
?base_url: String?,
|
|
6
|
+
?api_key: String?,
|
|
7
|
+
?token_provider: (^-> String)?,
|
|
8
|
+
?access_key_id: String?,
|
|
9
|
+
?secret_access_key: String?,
|
|
10
|
+
?session_token: String?,
|
|
11
|
+
?profile: String?,
|
|
12
|
+
?credentials_provider: untyped
|
|
13
|
+
) -> OpenAI::Provider
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -14,6 +14,7 @@ module OpenAI
|
|
|
14
14
|
String project_id,
|
|
15
15
|
?after: String,
|
|
16
16
|
?limit: Integer,
|
|
17
|
+
?owner_project_access: OpenAI::Models::Admin::Organization::Projects::APIKeyListParams::owner_project_access,
|
|
17
18
|
?request_options: OpenAI::request_opts
|
|
18
19
|
) -> OpenAI::Internal::ConversationCursorPage[OpenAI::Admin::Organization::Projects::ProjectAPIKey]
|
|
19
20
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Resources
|
|
3
|
+
class Admin
|
|
4
|
+
class Organization
|
|
5
|
+
class Projects
|
|
6
|
+
class ServiceAccounts
|
|
7
|
+
class APIKeys
|
|
8
|
+
def create: (
|
|
9
|
+
String service_account_id,
|
|
10
|
+
project_id: String,
|
|
11
|
+
?name: String,
|
|
12
|
+
?scopes: ::Array[String],
|
|
13
|
+
?request_options: OpenAI::request_opts
|
|
14
|
+
) -> OpenAI::Models::Admin::Organization::Projects::ServiceAccounts::APIKeyCreateResponse
|
|
15
|
+
|
|
16
|
+
def initialize: (client: OpenAI::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -4,9 +4,12 @@ module OpenAI
|
|
|
4
4
|
class Organization
|
|
5
5
|
class Projects
|
|
6
6
|
class ServiceAccounts
|
|
7
|
+
attr_reader api_keys: OpenAI::Resources::Admin::Organization::Projects::ServiceAccounts::APIKeys
|
|
8
|
+
|
|
7
9
|
def create: (
|
|
8
10
|
String project_id,
|
|
9
11
|
name: String,
|
|
12
|
+
?create_service_account_only: bool?,
|
|
10
13
|
?request_options: OpenAI::request_opts
|
|
11
14
|
) -> OpenAI::Models::Admin::Organization::Projects::ServiceAccountCreateResponse
|
|
12
15
|
|
|
@@ -19,8 +19,7 @@ module OpenAI
|
|
|
19
19
|
| OpenAI::Webhooks::ResponseCancelledWebhookEvent
|
|
20
20
|
| OpenAI::Webhooks::ResponseCompletedWebhookEvent
|
|
21
21
|
| OpenAI::Webhooks::ResponseFailedWebhookEvent
|
|
22
|
-
| OpenAI::Webhooks::ResponseIncompleteWebhookEvent
|
|
23
|
-
| OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent)
|
|
22
|
+
| OpenAI::Webhooks::ResponseIncompleteWebhookEvent)
|
|
24
23
|
|
|
25
24
|
def verify_signature: (
|
|
26
25
|
String payload,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.71.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-07-
|
|
11
|
+
date: 2026-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -92,6 +92,7 @@ files:
|
|
|
92
92
|
- lib/openai/internal/cursor_page.rb
|
|
93
93
|
- lib/openai/internal/next_cursor_page.rb
|
|
94
94
|
- lib/openai/internal/page.rb
|
|
95
|
+
- lib/openai/internal/provider.rb
|
|
95
96
|
- lib/openai/internal/stream.rb
|
|
96
97
|
- lib/openai/internal/transport/base_client.rb
|
|
97
98
|
- lib/openai/internal/transport/pooled_net_requester.rb
|
|
@@ -228,6 +229,8 @@ files:
|
|
|
228
229
|
- lib/openai/models/admin/organization/projects/service_account_list_params.rb
|
|
229
230
|
- lib/openai/models/admin/organization/projects/service_account_retrieve_params.rb
|
|
230
231
|
- lib/openai/models/admin/organization/projects/service_account_update_params.rb
|
|
232
|
+
- lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb
|
|
233
|
+
- lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb
|
|
231
234
|
- lib/openai/models/admin/organization/projects/spend_alert_create_params.rb
|
|
232
235
|
- lib/openai/models/admin/organization/projects/spend_alert_delete_params.rb
|
|
233
236
|
- lib/openai/models/admin/organization/projects/spend_alert_list_params.rb
|
|
@@ -1177,9 +1180,10 @@ files:
|
|
|
1177
1180
|
- lib/openai/models/webhooks/response_completed_webhook_event.rb
|
|
1178
1181
|
- lib/openai/models/webhooks/response_failed_webhook_event.rb
|
|
1179
1182
|
- lib/openai/models/webhooks/response_incomplete_webhook_event.rb
|
|
1180
|
-
- lib/openai/models/webhooks/safety_identifier_blocked_webhook_event.rb
|
|
1181
1183
|
- lib/openai/models/webhooks/unwrap_webhook_event.rb
|
|
1182
1184
|
- lib/openai/models/webhooks/webhook_unwrap_params.rb
|
|
1185
|
+
- lib/openai/provider.rb
|
|
1186
|
+
- lib/openai/providers/bedrock.rb
|
|
1183
1187
|
- lib/openai/request_options.rb
|
|
1184
1188
|
- lib/openai/resources/admin.rb
|
|
1185
1189
|
- lib/openai/resources/admin/organization.rb
|
|
@@ -1202,6 +1206,7 @@ files:
|
|
|
1202
1206
|
- lib/openai/resources/admin/organization/projects/rate_limits.rb
|
|
1203
1207
|
- lib/openai/resources/admin/organization/projects/roles.rb
|
|
1204
1208
|
- lib/openai/resources/admin/organization/projects/service_accounts.rb
|
|
1209
|
+
- lib/openai/resources/admin/organization/projects/service_accounts/api_keys.rb
|
|
1205
1210
|
- lib/openai/resources/admin/organization/projects/spend_alerts.rb
|
|
1206
1211
|
- lib/openai/resources/admin/organization/projects/users.rb
|
|
1207
1212
|
- lib/openai/resources/admin/organization/projects/users/roles.rb
|
|
@@ -1293,6 +1298,7 @@ files:
|
|
|
1293
1298
|
- rbi/openai/internal/cursor_page.rbi
|
|
1294
1299
|
- rbi/openai/internal/next_cursor_page.rbi
|
|
1295
1300
|
- rbi/openai/internal/page.rbi
|
|
1301
|
+
- rbi/openai/internal/provider.rbi
|
|
1296
1302
|
- rbi/openai/internal/stream.rbi
|
|
1297
1303
|
- rbi/openai/internal/transport/base_client.rbi
|
|
1298
1304
|
- rbi/openai/internal/transport/pooled_net_requester.rbi
|
|
@@ -1429,6 +1435,8 @@ files:
|
|
|
1429
1435
|
- rbi/openai/models/admin/organization/projects/service_account_list_params.rbi
|
|
1430
1436
|
- rbi/openai/models/admin/organization/projects/service_account_retrieve_params.rbi
|
|
1431
1437
|
- rbi/openai/models/admin/organization/projects/service_account_update_params.rbi
|
|
1438
|
+
- rbi/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbi
|
|
1439
|
+
- rbi/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbi
|
|
1432
1440
|
- rbi/openai/models/admin/organization/projects/spend_alert_create_params.rbi
|
|
1433
1441
|
- rbi/openai/models/admin/organization/projects/spend_alert_delete_params.rbi
|
|
1434
1442
|
- rbi/openai/models/admin/organization/projects/spend_alert_list_params.rbi
|
|
@@ -2377,9 +2385,10 @@ files:
|
|
|
2377
2385
|
- rbi/openai/models/webhooks/response_completed_webhook_event.rbi
|
|
2378
2386
|
- rbi/openai/models/webhooks/response_failed_webhook_event.rbi
|
|
2379
2387
|
- rbi/openai/models/webhooks/response_incomplete_webhook_event.rbi
|
|
2380
|
-
- rbi/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbi
|
|
2381
2388
|
- rbi/openai/models/webhooks/unwrap_webhook_event.rbi
|
|
2382
2389
|
- rbi/openai/models/webhooks/webhook_unwrap_params.rbi
|
|
2390
|
+
- rbi/openai/provider.rbi
|
|
2391
|
+
- rbi/openai/providers.rbi
|
|
2383
2392
|
- rbi/openai/request_options.rbi
|
|
2384
2393
|
- rbi/openai/resources/admin.rbi
|
|
2385
2394
|
- rbi/openai/resources/admin/organization.rbi
|
|
@@ -2402,6 +2411,7 @@ files:
|
|
|
2402
2411
|
- rbi/openai/resources/admin/organization/projects/rate_limits.rbi
|
|
2403
2412
|
- rbi/openai/resources/admin/organization/projects/roles.rbi
|
|
2404
2413
|
- rbi/openai/resources/admin/organization/projects/service_accounts.rbi
|
|
2414
|
+
- rbi/openai/resources/admin/organization/projects/service_accounts/api_keys.rbi
|
|
2405
2415
|
- rbi/openai/resources/admin/organization/projects/spend_alerts.rbi
|
|
2406
2416
|
- rbi/openai/resources/admin/organization/projects/users.rbi
|
|
2407
2417
|
- rbi/openai/resources/admin/organization/projects/users/roles.rbi
|
|
@@ -2482,6 +2492,7 @@ files:
|
|
|
2482
2492
|
- sig/openai/internal/cursor_page.rbs
|
|
2483
2493
|
- sig/openai/internal/next_cursor_page.rbs
|
|
2484
2494
|
- sig/openai/internal/page.rbs
|
|
2495
|
+
- sig/openai/internal/provider.rbs
|
|
2485
2496
|
- sig/openai/internal/stream.rbs
|
|
2486
2497
|
- sig/openai/internal/transport/base_client.rbs
|
|
2487
2498
|
- sig/openai/internal/transport/pooled_net_requester.rbs
|
|
@@ -2618,6 +2629,8 @@ files:
|
|
|
2618
2629
|
- sig/openai/models/admin/organization/projects/service_account_list_params.rbs
|
|
2619
2630
|
- sig/openai/models/admin/organization/projects/service_account_retrieve_params.rbs
|
|
2620
2631
|
- sig/openai/models/admin/organization/projects/service_account_update_params.rbs
|
|
2632
|
+
- sig/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rbs
|
|
2633
|
+
- sig/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rbs
|
|
2621
2634
|
- sig/openai/models/admin/organization/projects/spend_alert_create_params.rbs
|
|
2622
2635
|
- sig/openai/models/admin/organization/projects/spend_alert_delete_params.rbs
|
|
2623
2636
|
- sig/openai/models/admin/organization/projects/spend_alert_list_params.rbs
|
|
@@ -3566,9 +3579,10 @@ files:
|
|
|
3566
3579
|
- sig/openai/models/webhooks/response_completed_webhook_event.rbs
|
|
3567
3580
|
- sig/openai/models/webhooks/response_failed_webhook_event.rbs
|
|
3568
3581
|
- sig/openai/models/webhooks/response_incomplete_webhook_event.rbs
|
|
3569
|
-
- sig/openai/models/webhooks/safety_identifier_blocked_webhook_event.rbs
|
|
3570
3582
|
- sig/openai/models/webhooks/unwrap_webhook_event.rbs
|
|
3571
3583
|
- sig/openai/models/webhooks/webhook_unwrap_params.rbs
|
|
3584
|
+
- sig/openai/provider.rbs
|
|
3585
|
+
- sig/openai/providers.rbs
|
|
3572
3586
|
- sig/openai/request_options.rbs
|
|
3573
3587
|
- sig/openai/resources/admin.rbs
|
|
3574
3588
|
- sig/openai/resources/admin/organization.rbs
|
|
@@ -3591,6 +3605,7 @@ files:
|
|
|
3591
3605
|
- sig/openai/resources/admin/organization/projects/rate_limits.rbs
|
|
3592
3606
|
- sig/openai/resources/admin/organization/projects/roles.rbs
|
|
3593
3607
|
- sig/openai/resources/admin/organization/projects/service_accounts.rbs
|
|
3608
|
+
- sig/openai/resources/admin/organization/projects/service_accounts/api_keys.rbs
|
|
3594
3609
|
- sig/openai/resources/admin/organization/projects/spend_alerts.rbs
|
|
3595
3610
|
- sig/openai/resources/admin/organization/projects/users.rbs
|
|
3596
3611
|
- sig/openai/resources/admin/organization/projects/users/roles.rbs
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Webhooks
|
|
6
|
-
class SafetyIdentifierBlockedWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The unique ID of the event.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute created_at
|
|
14
|
-
# The Unix timestamp (in seconds) of when the request was blocked.
|
|
15
|
-
#
|
|
16
|
-
# @return [Integer]
|
|
17
|
-
required :created_at, Integer
|
|
18
|
-
|
|
19
|
-
# @!attribute data
|
|
20
|
-
# Event data payload.
|
|
21
|
-
#
|
|
22
|
-
# @return [OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data]
|
|
23
|
-
required :data, -> { OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data }
|
|
24
|
-
|
|
25
|
-
# @!attribute type
|
|
26
|
-
# The type of the event. Always `safety_identifier.blocked`.
|
|
27
|
-
#
|
|
28
|
-
# @return [Symbol, :"safety_identifier.blocked"]
|
|
29
|
-
required :type, const: :"safety_identifier.blocked"
|
|
30
|
-
|
|
31
|
-
# @!attribute object
|
|
32
|
-
# The object of the event. Always `event`.
|
|
33
|
-
#
|
|
34
|
-
# @return [Symbol, OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object, nil]
|
|
35
|
-
optional :object, enum: -> { OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object }
|
|
36
|
-
|
|
37
|
-
# @!method initialize(id:, created_at:, data:, object: nil, type: :"safety_identifier.blocked")
|
|
38
|
-
# Some parameter documentations has been truncated, see
|
|
39
|
-
# {OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent} for more
|
|
40
|
-
# details.
|
|
41
|
-
#
|
|
42
|
-
# Sent when a request associated with a safety identifier has been blocked.
|
|
43
|
-
#
|
|
44
|
-
# @param id [String] The unique ID of the event.
|
|
45
|
-
#
|
|
46
|
-
# @param created_at [Integer] The Unix timestamp (in seconds) of when the request was blocked.
|
|
47
|
-
#
|
|
48
|
-
# @param data [OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data] Event data payload.
|
|
49
|
-
#
|
|
50
|
-
# @param object [Symbol, OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object] The object of the event. Always `event`.
|
|
51
|
-
#
|
|
52
|
-
# @param type [Symbol, :"safety_identifier.blocked"] The type of the event. Always `safety_identifier.blocked`.
|
|
53
|
-
|
|
54
|
-
# @see OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent#data
|
|
55
|
-
class Data < OpenAI::Internal::Type::BaseModel
|
|
56
|
-
# @!attribute safety_category
|
|
57
|
-
# The safety category that triggered the block, such as `bio` or `cyber`.
|
|
58
|
-
#
|
|
59
|
-
# @return [String]
|
|
60
|
-
required :safety_category, String
|
|
61
|
-
|
|
62
|
-
# @!attribute safety_identifier
|
|
63
|
-
# The stable safety identifier associated with the blocked request.
|
|
64
|
-
#
|
|
65
|
-
# @return [String]
|
|
66
|
-
required :safety_identifier, String
|
|
67
|
-
|
|
68
|
-
# @!attribute model
|
|
69
|
-
# The model used for the blocked request, if available.
|
|
70
|
-
#
|
|
71
|
-
# @return [String, nil]
|
|
72
|
-
optional :model, String
|
|
73
|
-
|
|
74
|
-
# @!attribute project_id
|
|
75
|
-
# The project associated with the blocked request, if available.
|
|
76
|
-
#
|
|
77
|
-
# @return [String, nil]
|
|
78
|
-
optional :project_id, String
|
|
79
|
-
|
|
80
|
-
# @!attribute request_id
|
|
81
|
-
# The OpenAI request ID for the blocked request, if available.
|
|
82
|
-
#
|
|
83
|
-
# @return [String, nil]
|
|
84
|
-
optional :request_id, String
|
|
85
|
-
|
|
86
|
-
# @!method initialize(safety_category:, safety_identifier:, model: nil, project_id: nil, request_id: nil)
|
|
87
|
-
# Some parameter documentations has been truncated, see
|
|
88
|
-
# {OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data} for more
|
|
89
|
-
# details.
|
|
90
|
-
#
|
|
91
|
-
# Event data payload.
|
|
92
|
-
#
|
|
93
|
-
# @param safety_category [String] The safety category that triggered the block, such as `bio` or `cyber`.
|
|
94
|
-
#
|
|
95
|
-
# @param safety_identifier [String] The stable safety identifier associated with the blocked request.
|
|
96
|
-
#
|
|
97
|
-
# @param model [String] The model used for the blocked request, if available.
|
|
98
|
-
#
|
|
99
|
-
# @param project_id [String] The project associated with the blocked request, if available.
|
|
100
|
-
#
|
|
101
|
-
# @param request_id [String] The OpenAI request ID for the blocked request, if available.
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
# The object of the event. Always `event`.
|
|
105
|
-
#
|
|
106
|
-
# @see OpenAI::Models::Webhooks::SafetyIdentifierBlockedWebhookEvent#object
|
|
107
|
-
module Object
|
|
108
|
-
extend OpenAI::Internal::Type::Enum
|
|
109
|
-
|
|
110
|
-
EVENT = :event
|
|
111
|
-
|
|
112
|
-
# @!method self.values
|
|
113
|
-
# @return [Array<Symbol>]
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
end
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module OpenAI
|
|
4
|
-
module Models
|
|
5
|
-
module Webhooks
|
|
6
|
-
class SafetyIdentifierBlockedWebhookEvent < OpenAI::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent,
|
|
11
|
-
OpenAI::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# The unique ID of the event.
|
|
16
|
-
sig { returns(String) }
|
|
17
|
-
attr_accessor :id
|
|
18
|
-
|
|
19
|
-
# The Unix timestamp (in seconds) of when the request was blocked.
|
|
20
|
-
sig { returns(Integer) }
|
|
21
|
-
attr_accessor :created_at
|
|
22
|
-
|
|
23
|
-
# Event data payload.
|
|
24
|
-
sig do
|
|
25
|
-
returns(OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data)
|
|
26
|
-
end
|
|
27
|
-
attr_reader :data
|
|
28
|
-
|
|
29
|
-
sig do
|
|
30
|
-
params(
|
|
31
|
-
data:
|
|
32
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data::OrHash
|
|
33
|
-
).void
|
|
34
|
-
end
|
|
35
|
-
attr_writer :data
|
|
36
|
-
|
|
37
|
-
# The type of the event. Always `safety_identifier.blocked`.
|
|
38
|
-
sig { returns(Symbol) }
|
|
39
|
-
attr_accessor :type
|
|
40
|
-
|
|
41
|
-
# The object of the event. Always `event`.
|
|
42
|
-
sig do
|
|
43
|
-
returns(
|
|
44
|
-
T.nilable(
|
|
45
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::TaggedSymbol
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
end
|
|
49
|
-
attr_reader :object
|
|
50
|
-
|
|
51
|
-
sig do
|
|
52
|
-
params(
|
|
53
|
-
object:
|
|
54
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::OrSymbol
|
|
55
|
-
).void
|
|
56
|
-
end
|
|
57
|
-
attr_writer :object
|
|
58
|
-
|
|
59
|
-
# Sent when a request associated with a safety identifier has been blocked.
|
|
60
|
-
sig do
|
|
61
|
-
params(
|
|
62
|
-
id: String,
|
|
63
|
-
created_at: Integer,
|
|
64
|
-
data:
|
|
65
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data::OrHash,
|
|
66
|
-
object:
|
|
67
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::OrSymbol,
|
|
68
|
-
type: Symbol
|
|
69
|
-
).returns(T.attached_class)
|
|
70
|
-
end
|
|
71
|
-
def self.new(
|
|
72
|
-
# The unique ID of the event.
|
|
73
|
-
id:,
|
|
74
|
-
# The Unix timestamp (in seconds) of when the request was blocked.
|
|
75
|
-
created_at:,
|
|
76
|
-
# Event data payload.
|
|
77
|
-
data:,
|
|
78
|
-
# The object of the event. Always `event`.
|
|
79
|
-
object: nil,
|
|
80
|
-
# The type of the event. Always `safety_identifier.blocked`.
|
|
81
|
-
type: :"safety_identifier.blocked"
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
sig do
|
|
86
|
-
override.returns(
|
|
87
|
-
{
|
|
88
|
-
id: String,
|
|
89
|
-
created_at: Integer,
|
|
90
|
-
data: OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data,
|
|
91
|
-
type: Symbol,
|
|
92
|
-
object:
|
|
93
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::TaggedSymbol
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
end
|
|
97
|
-
def to_hash
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
class Data < OpenAI::Internal::Type::BaseModel
|
|
101
|
-
OrHash =
|
|
102
|
-
T.type_alias do
|
|
103
|
-
T.any(
|
|
104
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Data,
|
|
105
|
-
OpenAI::Internal::AnyHash
|
|
106
|
-
)
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
# The safety category that triggered the block, such as `bio` or `cyber`.
|
|
110
|
-
sig { returns(String) }
|
|
111
|
-
attr_accessor :safety_category
|
|
112
|
-
|
|
113
|
-
# The stable safety identifier associated with the blocked request.
|
|
114
|
-
sig { returns(String) }
|
|
115
|
-
attr_accessor :safety_identifier
|
|
116
|
-
|
|
117
|
-
# The model used for the blocked request, if available.
|
|
118
|
-
sig { returns(T.nilable(String)) }
|
|
119
|
-
attr_reader :model
|
|
120
|
-
|
|
121
|
-
sig { params(model: String).void }
|
|
122
|
-
attr_writer :model
|
|
123
|
-
|
|
124
|
-
# The project associated with the blocked request, if available.
|
|
125
|
-
sig { returns(T.nilable(String)) }
|
|
126
|
-
attr_reader :project_id
|
|
127
|
-
|
|
128
|
-
sig { params(project_id: String).void }
|
|
129
|
-
attr_writer :project_id
|
|
130
|
-
|
|
131
|
-
# The OpenAI request ID for the blocked request, if available.
|
|
132
|
-
sig { returns(T.nilable(String)) }
|
|
133
|
-
attr_reader :request_id
|
|
134
|
-
|
|
135
|
-
sig { params(request_id: String).void }
|
|
136
|
-
attr_writer :request_id
|
|
137
|
-
|
|
138
|
-
# Event data payload.
|
|
139
|
-
sig do
|
|
140
|
-
params(
|
|
141
|
-
safety_category: String,
|
|
142
|
-
safety_identifier: String,
|
|
143
|
-
model: String,
|
|
144
|
-
project_id: String,
|
|
145
|
-
request_id: String
|
|
146
|
-
).returns(T.attached_class)
|
|
147
|
-
end
|
|
148
|
-
def self.new(
|
|
149
|
-
# The safety category that triggered the block, such as `bio` or `cyber`.
|
|
150
|
-
safety_category:,
|
|
151
|
-
# The stable safety identifier associated with the blocked request.
|
|
152
|
-
safety_identifier:,
|
|
153
|
-
# The model used for the blocked request, if available.
|
|
154
|
-
model: nil,
|
|
155
|
-
# The project associated with the blocked request, if available.
|
|
156
|
-
project_id: nil,
|
|
157
|
-
# The OpenAI request ID for the blocked request, if available.
|
|
158
|
-
request_id: nil
|
|
159
|
-
)
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
sig do
|
|
163
|
-
override.returns(
|
|
164
|
-
{
|
|
165
|
-
safety_category: String,
|
|
166
|
-
safety_identifier: String,
|
|
167
|
-
model: String,
|
|
168
|
-
project_id: String,
|
|
169
|
-
request_id: String
|
|
170
|
-
}
|
|
171
|
-
)
|
|
172
|
-
end
|
|
173
|
-
def to_hash
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
# The object of the event. Always `event`.
|
|
178
|
-
module Object
|
|
179
|
-
extend OpenAI::Internal::Type::Enum
|
|
180
|
-
|
|
181
|
-
TaggedSymbol =
|
|
182
|
-
T.type_alias do
|
|
183
|
-
T.all(
|
|
184
|
-
Symbol,
|
|
185
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object
|
|
186
|
-
)
|
|
187
|
-
end
|
|
188
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
189
|
-
|
|
190
|
-
EVENT =
|
|
191
|
-
T.let(
|
|
192
|
-
:event,
|
|
193
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::TaggedSymbol
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
sig do
|
|
197
|
-
override.returns(
|
|
198
|
-
T::Array[
|
|
199
|
-
OpenAI::Webhooks::SafetyIdentifierBlockedWebhookEvent::Object::TaggedSymbol
|
|
200
|
-
]
|
|
201
|
-
)
|
|
202
|
-
end
|
|
203
|
-
def self.values
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
end
|