openai 0.64.0 → 0.65.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 +8 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/audit_log_list_params.rb +6 -0
- data/lib/openai/models/admin/organization/audit_log_list_response.rb +231 -1
- data/lib/openai/models/chat/completion_create_params.rb +16 -0
- data/lib/openai/models/conversations/conversation_create_params.rb +2 -2
- data/lib/openai/models/conversations/conversation_item.rb +57 -1
- data/lib/openai/models/conversations/conversation_item_list.rb +2 -2
- data/lib/openai/models/conversations/item_create_params.rb +2 -2
- data/lib/openai/models/responses/compacted_response.rb +2 -2
- data/lib/openai/models/responses/input_token_count_params.rb +41 -4
- data/lib/openai/models/responses/response.rb +21 -5
- data/lib/openai/models/responses/response_compact_params.rb +3 -3
- data/lib/openai/models/responses/response_create_params.rb +19 -3
- data/lib/openai/models/responses/response_function_web_search.rb +11 -9
- data/lib/openai/models/responses/response_input_item.rb +38 -1
- data/lib/openai/models/responses/response_item.rb +57 -1
- data/lib/openai/models/responses/response_item_list.rb +2 -2
- data/lib/openai/models/responses/response_output_item.rb +57 -1
- data/lib/openai/models/responses/response_output_item_added_event.rb +2 -2
- data/lib/openai/models/responses/response_output_item_done_event.rb +2 -2
- data/lib/openai/models/responses/responses_client_event.rb +19 -3
- data/lib/openai/resources/conversations/items.rb +3 -3
- data/lib/openai/resources/conversations.rb +1 -1
- data/lib/openai/resources/responses/input_items.rb +1 -1
- data/lib/openai/resources/responses/input_tokens.rb +4 -2
- data/lib/openai/resources/responses.rb +3 -3
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/admin/organization/audit_log_list_params.rbi +30 -0
- data/rbi/openai/models/admin/organization/audit_log_list_response.rbi +489 -3
- data/rbi/openai/models/chat/completion_create_params.rbi +24 -0
- data/rbi/openai/models/conversations/conversation_create_params.rbi +3 -0
- data/rbi/openai/models/conversations/conversation_item.rbi +150 -0
- data/rbi/openai/models/conversations/conversation_item_list.rbi +1 -0
- data/rbi/openai/models/conversations/item_create_params.rbi +3 -0
- data/rbi/openai/models/responses/compacted_response.rbi +1 -0
- data/rbi/openai/models/responses/input_token_count_params.rbi +85 -0
- data/rbi/openai/models/responses/response.rbi +25 -0
- data/rbi/openai/models/responses/response_create_params.rbi +24 -0
- data/rbi/openai/models/responses/response_function_web_search.rbi +11 -8
- data/rbi/openai/models/responses/response_input_item.rbi +120 -0
- data/rbi/openai/models/responses/response_item.rbi +150 -0
- data/rbi/openai/models/responses/response_item_list.rbi +1 -0
- data/rbi/openai/models/responses/response_output_item.rbi +150 -0
- data/rbi/openai/models/responses/response_output_item_added_event.rbi +1 -0
- data/rbi/openai/models/responses/response_output_item_done_event.rbi +1 -0
- data/rbi/openai/models/responses/responses_client_event.rbi +24 -0
- data/rbi/openai/resources/chat/completions.rbi +16 -0
- data/rbi/openai/resources/conversations/items.rbi +1 -0
- data/rbi/openai/resources/conversations.rbi +1 -0
- data/rbi/openai/resources/responses/input_tokens.rbi +9 -0
- data/rbi/openai/resources/responses.rbi +16 -0
- data/sig/openai/models/admin/organization/audit_log_list_params.rbs +12 -0
- data/sig/openai/models/admin/organization/audit_log_list_response.rbs +216 -3
- data/sig/openai/models/conversations/conversation_item.rbs +58 -0
- data/sig/openai/models/responses/input_token_count_params.rbs +20 -0
- data/sig/openai/models/responses/response_function_web_search.rbs +7 -5
- data/sig/openai/models/responses/response_input_item.rbs +33 -0
- data/sig/openai/models/responses/response_item.rbs +58 -0
- data/sig/openai/models/responses/response_output_item.rbs +58 -0
- data/sig/openai/resources/responses/input_tokens.rbs +1 -0
- metadata +2 -2
|
@@ -894,6 +894,114 @@ module OpenAI
|
|
|
894
894
|
end
|
|
895
895
|
attr_writer :user_updated
|
|
896
896
|
|
|
897
|
+
# The details for events with this `type`.
|
|
898
|
+
sig do
|
|
899
|
+
returns(
|
|
900
|
+
T.nilable(
|
|
901
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated
|
|
902
|
+
)
|
|
903
|
+
)
|
|
904
|
+
end
|
|
905
|
+
attr_reader :workload_identity_provider_mapping_created
|
|
906
|
+
|
|
907
|
+
sig do
|
|
908
|
+
params(
|
|
909
|
+
workload_identity_provider_mapping_created:
|
|
910
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated::OrHash
|
|
911
|
+
).void
|
|
912
|
+
end
|
|
913
|
+
attr_writer :workload_identity_provider_mapping_created
|
|
914
|
+
|
|
915
|
+
# The details for events with this `type`.
|
|
916
|
+
sig do
|
|
917
|
+
returns(
|
|
918
|
+
T.nilable(
|
|
919
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted
|
|
920
|
+
)
|
|
921
|
+
)
|
|
922
|
+
end
|
|
923
|
+
attr_reader :workload_identity_provider_mapping_deleted
|
|
924
|
+
|
|
925
|
+
sig do
|
|
926
|
+
params(
|
|
927
|
+
workload_identity_provider_mapping_deleted:
|
|
928
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted::OrHash
|
|
929
|
+
).void
|
|
930
|
+
end
|
|
931
|
+
attr_writer :workload_identity_provider_mapping_deleted
|
|
932
|
+
|
|
933
|
+
# The details for events with this `type`.
|
|
934
|
+
sig do
|
|
935
|
+
returns(
|
|
936
|
+
T.nilable(
|
|
937
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated
|
|
938
|
+
)
|
|
939
|
+
)
|
|
940
|
+
end
|
|
941
|
+
attr_reader :workload_identity_provider_mapping_updated
|
|
942
|
+
|
|
943
|
+
sig do
|
|
944
|
+
params(
|
|
945
|
+
workload_identity_provider_mapping_updated:
|
|
946
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated::OrHash
|
|
947
|
+
).void
|
|
948
|
+
end
|
|
949
|
+
attr_writer :workload_identity_provider_mapping_updated
|
|
950
|
+
|
|
951
|
+
# The details for events with this `type`.
|
|
952
|
+
sig do
|
|
953
|
+
returns(
|
|
954
|
+
T.nilable(
|
|
955
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated
|
|
956
|
+
)
|
|
957
|
+
)
|
|
958
|
+
end
|
|
959
|
+
attr_reader :workload_identity_provider_created
|
|
960
|
+
|
|
961
|
+
sig do
|
|
962
|
+
params(
|
|
963
|
+
workload_identity_provider_created:
|
|
964
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated::OrHash
|
|
965
|
+
).void
|
|
966
|
+
end
|
|
967
|
+
attr_writer :workload_identity_provider_created
|
|
968
|
+
|
|
969
|
+
# The details for events with this `type`.
|
|
970
|
+
sig do
|
|
971
|
+
returns(
|
|
972
|
+
T.nilable(
|
|
973
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted
|
|
974
|
+
)
|
|
975
|
+
)
|
|
976
|
+
end
|
|
977
|
+
attr_reader :workload_identity_provider_deleted
|
|
978
|
+
|
|
979
|
+
sig do
|
|
980
|
+
params(
|
|
981
|
+
workload_identity_provider_deleted:
|
|
982
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted::OrHash
|
|
983
|
+
).void
|
|
984
|
+
end
|
|
985
|
+
attr_writer :workload_identity_provider_deleted
|
|
986
|
+
|
|
987
|
+
# The details for events with this `type`.
|
|
988
|
+
sig do
|
|
989
|
+
returns(
|
|
990
|
+
T.nilable(
|
|
991
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated
|
|
992
|
+
)
|
|
993
|
+
)
|
|
994
|
+
end
|
|
995
|
+
attr_reader :workload_identity_provider_updated
|
|
996
|
+
|
|
997
|
+
sig do
|
|
998
|
+
params(
|
|
999
|
+
workload_identity_provider_updated:
|
|
1000
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated::OrHash
|
|
1001
|
+
).void
|
|
1002
|
+
end
|
|
1003
|
+
attr_writer :workload_identity_provider_updated
|
|
1004
|
+
|
|
897
1005
|
# A log of a user action or configuration change within this organization.
|
|
898
1006
|
sig do
|
|
899
1007
|
params(
|
|
@@ -998,7 +1106,19 @@ module OpenAI
|
|
|
998
1106
|
user_deleted:
|
|
999
1107
|
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserDeleted::OrHash,
|
|
1000
1108
|
user_updated:
|
|
1001
|
-
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated::OrHash
|
|
1109
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated::OrHash,
|
|
1110
|
+
workload_identity_provider_mapping_created:
|
|
1111
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated::OrHash,
|
|
1112
|
+
workload_identity_provider_mapping_deleted:
|
|
1113
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted::OrHash,
|
|
1114
|
+
workload_identity_provider_mapping_updated:
|
|
1115
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated::OrHash,
|
|
1116
|
+
workload_identity_provider_created:
|
|
1117
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated::OrHash,
|
|
1118
|
+
workload_identity_provider_deleted:
|
|
1119
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted::OrHash,
|
|
1120
|
+
workload_identity_provider_updated:
|
|
1121
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated::OrHash
|
|
1002
1122
|
).returns(T.attached_class)
|
|
1003
1123
|
end
|
|
1004
1124
|
def self.new(
|
|
@@ -1108,7 +1228,19 @@ module OpenAI
|
|
|
1108
1228
|
# The details for events with this `type`.
|
|
1109
1229
|
user_deleted: nil,
|
|
1110
1230
|
# The details for events with this `type`.
|
|
1111
|
-
user_updated: nil
|
|
1231
|
+
user_updated: nil,
|
|
1232
|
+
# The details for events with this `type`.
|
|
1233
|
+
workload_identity_provider_mapping_created: nil,
|
|
1234
|
+
# The details for events with this `type`.
|
|
1235
|
+
workload_identity_provider_mapping_deleted: nil,
|
|
1236
|
+
# The details for events with this `type`.
|
|
1237
|
+
workload_identity_provider_mapping_updated: nil,
|
|
1238
|
+
# The details for events with this `type`.
|
|
1239
|
+
workload_identity_provider_created: nil,
|
|
1240
|
+
# The details for events with this `type`.
|
|
1241
|
+
workload_identity_provider_deleted: nil,
|
|
1242
|
+
# The details for events with this `type`.
|
|
1243
|
+
workload_identity_provider_updated: nil
|
|
1112
1244
|
)
|
|
1113
1245
|
end
|
|
1114
1246
|
|
|
@@ -1216,7 +1348,19 @@ module OpenAI
|
|
|
1216
1348
|
user_deleted:
|
|
1217
1349
|
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserDeleted,
|
|
1218
1350
|
user_updated:
|
|
1219
|
-
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated
|
|
1351
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated,
|
|
1352
|
+
workload_identity_provider_mapping_created:
|
|
1353
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated,
|
|
1354
|
+
workload_identity_provider_mapping_deleted:
|
|
1355
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted,
|
|
1356
|
+
workload_identity_provider_mapping_updated:
|
|
1357
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated,
|
|
1358
|
+
workload_identity_provider_created:
|
|
1359
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated,
|
|
1360
|
+
workload_identity_provider_deleted:
|
|
1361
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted,
|
|
1362
|
+
workload_identity_provider_updated:
|
|
1363
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated
|
|
1220
1364
|
}
|
|
1221
1365
|
)
|
|
1222
1366
|
end
|
|
@@ -1426,6 +1570,36 @@ module OpenAI
|
|
|
1426
1570
|
:"tunnel.deleted",
|
|
1427
1571
|
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1428
1572
|
)
|
|
1573
|
+
WORKLOAD_IDENTITY_PROVIDER_CREATED =
|
|
1574
|
+
T.let(
|
|
1575
|
+
:"workload_identity_provider.created",
|
|
1576
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1577
|
+
)
|
|
1578
|
+
WORKLOAD_IDENTITY_PROVIDER_UPDATED =
|
|
1579
|
+
T.let(
|
|
1580
|
+
:"workload_identity_provider.updated",
|
|
1581
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1582
|
+
)
|
|
1583
|
+
WORKLOAD_IDENTITY_PROVIDER_DELETED =
|
|
1584
|
+
T.let(
|
|
1585
|
+
:"workload_identity_provider.deleted",
|
|
1586
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1587
|
+
)
|
|
1588
|
+
WORKLOAD_IDENTITY_PROVIDER_MAPPING_CREATED =
|
|
1589
|
+
T.let(
|
|
1590
|
+
:"workload_identity_provider_mapping.created",
|
|
1591
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1592
|
+
)
|
|
1593
|
+
WORKLOAD_IDENTITY_PROVIDER_MAPPING_UPDATED =
|
|
1594
|
+
T.let(
|
|
1595
|
+
:"workload_identity_provider_mapping.updated",
|
|
1596
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1597
|
+
)
|
|
1598
|
+
WORKLOAD_IDENTITY_PROVIDER_MAPPING_DELETED =
|
|
1599
|
+
T.let(
|
|
1600
|
+
:"workload_identity_provider_mapping.deleted",
|
|
1601
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::Type::TaggedSymbol
|
|
1602
|
+
)
|
|
1429
1603
|
ROLE_CREATED =
|
|
1430
1604
|
T.let(
|
|
1431
1605
|
:"role.created",
|
|
@@ -5095,6 +5269,318 @@ module OpenAI
|
|
|
5095
5269
|
end
|
|
5096
5270
|
end
|
|
5097
5271
|
end
|
|
5272
|
+
|
|
5273
|
+
class WorkloadIdentityProviderMappingCreated < OpenAI::Internal::Type::BaseModel
|
|
5274
|
+
OrHash =
|
|
5275
|
+
T.type_alias do
|
|
5276
|
+
T.any(
|
|
5277
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated,
|
|
5278
|
+
OpenAI::Internal::AnyHash
|
|
5279
|
+
)
|
|
5280
|
+
end
|
|
5281
|
+
|
|
5282
|
+
# The workload identity provider mapping ID.
|
|
5283
|
+
sig { returns(T.nilable(String)) }
|
|
5284
|
+
attr_reader :id
|
|
5285
|
+
|
|
5286
|
+
sig { params(id: String).void }
|
|
5287
|
+
attr_writer :id
|
|
5288
|
+
|
|
5289
|
+
# The payload used to create the workload identity provider mapping.
|
|
5290
|
+
sig { returns(T.nilable(T.anything)) }
|
|
5291
|
+
attr_reader :data
|
|
5292
|
+
|
|
5293
|
+
sig { params(data: T.anything).void }
|
|
5294
|
+
attr_writer :data
|
|
5295
|
+
|
|
5296
|
+
# The workload identity provider ID.
|
|
5297
|
+
sig { returns(T.nilable(String)) }
|
|
5298
|
+
attr_reader :identity_provider_id
|
|
5299
|
+
|
|
5300
|
+
sig { params(identity_provider_id: String).void }
|
|
5301
|
+
attr_writer :identity_provider_id
|
|
5302
|
+
|
|
5303
|
+
# The details for events with this `type`.
|
|
5304
|
+
sig do
|
|
5305
|
+
params(
|
|
5306
|
+
id: String,
|
|
5307
|
+
data: T.anything,
|
|
5308
|
+
identity_provider_id: String
|
|
5309
|
+
).returns(T.attached_class)
|
|
5310
|
+
end
|
|
5311
|
+
def self.new(
|
|
5312
|
+
# The workload identity provider mapping ID.
|
|
5313
|
+
id: nil,
|
|
5314
|
+
# The payload used to create the workload identity provider mapping.
|
|
5315
|
+
data: nil,
|
|
5316
|
+
# The workload identity provider ID.
|
|
5317
|
+
identity_provider_id: nil
|
|
5318
|
+
)
|
|
5319
|
+
end
|
|
5320
|
+
|
|
5321
|
+
sig do
|
|
5322
|
+
override.returns(
|
|
5323
|
+
{ id: String, data: T.anything, identity_provider_id: String }
|
|
5324
|
+
)
|
|
5325
|
+
end
|
|
5326
|
+
def to_hash
|
|
5327
|
+
end
|
|
5328
|
+
end
|
|
5329
|
+
|
|
5330
|
+
class WorkloadIdentityProviderMappingDeleted < OpenAI::Internal::Type::BaseModel
|
|
5331
|
+
OrHash =
|
|
5332
|
+
T.type_alias do
|
|
5333
|
+
T.any(
|
|
5334
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted,
|
|
5335
|
+
OpenAI::Internal::AnyHash
|
|
5336
|
+
)
|
|
5337
|
+
end
|
|
5338
|
+
|
|
5339
|
+
# The workload identity provider mapping ID.
|
|
5340
|
+
sig { returns(T.nilable(String)) }
|
|
5341
|
+
attr_reader :id
|
|
5342
|
+
|
|
5343
|
+
sig { params(id: String).void }
|
|
5344
|
+
attr_writer :id
|
|
5345
|
+
|
|
5346
|
+
# The workload identity provider ID.
|
|
5347
|
+
sig { returns(T.nilable(String)) }
|
|
5348
|
+
attr_reader :identity_provider_id
|
|
5349
|
+
|
|
5350
|
+
sig { params(identity_provider_id: String).void }
|
|
5351
|
+
attr_writer :identity_provider_id
|
|
5352
|
+
|
|
5353
|
+
# The project ID.
|
|
5354
|
+
sig { returns(T.nilable(String)) }
|
|
5355
|
+
attr_reader :project_id
|
|
5356
|
+
|
|
5357
|
+
sig { params(project_id: String).void }
|
|
5358
|
+
attr_writer :project_id
|
|
5359
|
+
|
|
5360
|
+
# The mapped service account ID.
|
|
5361
|
+
sig { returns(T.nilable(String)) }
|
|
5362
|
+
attr_reader :service_account_id
|
|
5363
|
+
|
|
5364
|
+
sig { params(service_account_id: String).void }
|
|
5365
|
+
attr_writer :service_account_id
|
|
5366
|
+
|
|
5367
|
+
# The details for events with this `type`.
|
|
5368
|
+
sig do
|
|
5369
|
+
params(
|
|
5370
|
+
id: String,
|
|
5371
|
+
identity_provider_id: String,
|
|
5372
|
+
project_id: String,
|
|
5373
|
+
service_account_id: String
|
|
5374
|
+
).returns(T.attached_class)
|
|
5375
|
+
end
|
|
5376
|
+
def self.new(
|
|
5377
|
+
# The workload identity provider mapping ID.
|
|
5378
|
+
id: nil,
|
|
5379
|
+
# The workload identity provider ID.
|
|
5380
|
+
identity_provider_id: nil,
|
|
5381
|
+
# The project ID.
|
|
5382
|
+
project_id: nil,
|
|
5383
|
+
# The mapped service account ID.
|
|
5384
|
+
service_account_id: nil
|
|
5385
|
+
)
|
|
5386
|
+
end
|
|
5387
|
+
|
|
5388
|
+
sig do
|
|
5389
|
+
override.returns(
|
|
5390
|
+
{
|
|
5391
|
+
id: String,
|
|
5392
|
+
identity_provider_id: String,
|
|
5393
|
+
project_id: String,
|
|
5394
|
+
service_account_id: String
|
|
5395
|
+
}
|
|
5396
|
+
)
|
|
5397
|
+
end
|
|
5398
|
+
def to_hash
|
|
5399
|
+
end
|
|
5400
|
+
end
|
|
5401
|
+
|
|
5402
|
+
class WorkloadIdentityProviderMappingUpdated < OpenAI::Internal::Type::BaseModel
|
|
5403
|
+
OrHash =
|
|
5404
|
+
T.type_alias do
|
|
5405
|
+
T.any(
|
|
5406
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated,
|
|
5407
|
+
OpenAI::Internal::AnyHash
|
|
5408
|
+
)
|
|
5409
|
+
end
|
|
5410
|
+
|
|
5411
|
+
# The workload identity provider mapping ID.
|
|
5412
|
+
sig { returns(T.nilable(String)) }
|
|
5413
|
+
attr_reader :id
|
|
5414
|
+
|
|
5415
|
+
sig { params(id: String).void }
|
|
5416
|
+
attr_writer :id
|
|
5417
|
+
|
|
5418
|
+
# The payload used to update the workload identity provider mapping.
|
|
5419
|
+
sig { returns(T.nilable(T.anything)) }
|
|
5420
|
+
attr_reader :changes_requested
|
|
5421
|
+
|
|
5422
|
+
sig { params(changes_requested: T.anything).void }
|
|
5423
|
+
attr_writer :changes_requested
|
|
5424
|
+
|
|
5425
|
+
# The workload identity provider ID.
|
|
5426
|
+
sig { returns(T.nilable(String)) }
|
|
5427
|
+
attr_reader :identity_provider_id
|
|
5428
|
+
|
|
5429
|
+
sig { params(identity_provider_id: String).void }
|
|
5430
|
+
attr_writer :identity_provider_id
|
|
5431
|
+
|
|
5432
|
+
# The details for events with this `type`.
|
|
5433
|
+
sig do
|
|
5434
|
+
params(
|
|
5435
|
+
id: String,
|
|
5436
|
+
changes_requested: T.anything,
|
|
5437
|
+
identity_provider_id: String
|
|
5438
|
+
).returns(T.attached_class)
|
|
5439
|
+
end
|
|
5440
|
+
def self.new(
|
|
5441
|
+
# The workload identity provider mapping ID.
|
|
5442
|
+
id: nil,
|
|
5443
|
+
# The payload used to update the workload identity provider mapping.
|
|
5444
|
+
changes_requested: nil,
|
|
5445
|
+
# The workload identity provider ID.
|
|
5446
|
+
identity_provider_id: nil
|
|
5447
|
+
)
|
|
5448
|
+
end
|
|
5449
|
+
|
|
5450
|
+
sig do
|
|
5451
|
+
override.returns(
|
|
5452
|
+
{
|
|
5453
|
+
id: String,
|
|
5454
|
+
changes_requested: T.anything,
|
|
5455
|
+
identity_provider_id: String
|
|
5456
|
+
}
|
|
5457
|
+
)
|
|
5458
|
+
end
|
|
5459
|
+
def to_hash
|
|
5460
|
+
end
|
|
5461
|
+
end
|
|
5462
|
+
|
|
5463
|
+
class WorkloadIdentityProviderCreated < OpenAI::Internal::Type::BaseModel
|
|
5464
|
+
OrHash =
|
|
5465
|
+
T.type_alias do
|
|
5466
|
+
T.any(
|
|
5467
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated,
|
|
5468
|
+
OpenAI::Internal::AnyHash
|
|
5469
|
+
)
|
|
5470
|
+
end
|
|
5471
|
+
|
|
5472
|
+
# The workload identity provider ID.
|
|
5473
|
+
sig { returns(T.nilable(String)) }
|
|
5474
|
+
attr_reader :id
|
|
5475
|
+
|
|
5476
|
+
sig { params(id: String).void }
|
|
5477
|
+
attr_writer :id
|
|
5478
|
+
|
|
5479
|
+
# The payload used to create the workload identity provider.
|
|
5480
|
+
sig { returns(T.nilable(T.anything)) }
|
|
5481
|
+
attr_reader :data
|
|
5482
|
+
|
|
5483
|
+
sig { params(data: T.anything).void }
|
|
5484
|
+
attr_writer :data
|
|
5485
|
+
|
|
5486
|
+
# The details for events with this `type`.
|
|
5487
|
+
sig do
|
|
5488
|
+
params(id: String, data: T.anything).returns(T.attached_class)
|
|
5489
|
+
end
|
|
5490
|
+
def self.new(
|
|
5491
|
+
# The workload identity provider ID.
|
|
5492
|
+
id: nil,
|
|
5493
|
+
# The payload used to create the workload identity provider.
|
|
5494
|
+
data: nil
|
|
5495
|
+
)
|
|
5496
|
+
end
|
|
5497
|
+
|
|
5498
|
+
sig { override.returns({ id: String, data: T.anything }) }
|
|
5499
|
+
def to_hash
|
|
5500
|
+
end
|
|
5501
|
+
end
|
|
5502
|
+
|
|
5503
|
+
class WorkloadIdentityProviderDeleted < OpenAI::Internal::Type::BaseModel
|
|
5504
|
+
OrHash =
|
|
5505
|
+
T.type_alias do
|
|
5506
|
+
T.any(
|
|
5507
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted,
|
|
5508
|
+
OpenAI::Internal::AnyHash
|
|
5509
|
+
)
|
|
5510
|
+
end
|
|
5511
|
+
|
|
5512
|
+
# The workload identity provider ID.
|
|
5513
|
+
sig { returns(T.nilable(String)) }
|
|
5514
|
+
attr_reader :id
|
|
5515
|
+
|
|
5516
|
+
sig { params(id: String).void }
|
|
5517
|
+
attr_writer :id
|
|
5518
|
+
|
|
5519
|
+
# The workload identity provider name.
|
|
5520
|
+
sig { returns(T.nilable(String)) }
|
|
5521
|
+
attr_reader :name
|
|
5522
|
+
|
|
5523
|
+
sig { params(name: String).void }
|
|
5524
|
+
attr_writer :name
|
|
5525
|
+
|
|
5526
|
+
# The details for events with this `type`.
|
|
5527
|
+
sig { params(id: String, name: String).returns(T.attached_class) }
|
|
5528
|
+
def self.new(
|
|
5529
|
+
# The workload identity provider ID.
|
|
5530
|
+
id: nil,
|
|
5531
|
+
# The workload identity provider name.
|
|
5532
|
+
name: nil
|
|
5533
|
+
)
|
|
5534
|
+
end
|
|
5535
|
+
|
|
5536
|
+
sig { override.returns({ id: String, name: String }) }
|
|
5537
|
+
def to_hash
|
|
5538
|
+
end
|
|
5539
|
+
end
|
|
5540
|
+
|
|
5541
|
+
class WorkloadIdentityProviderUpdated < OpenAI::Internal::Type::BaseModel
|
|
5542
|
+
OrHash =
|
|
5543
|
+
T.type_alias do
|
|
5544
|
+
T.any(
|
|
5545
|
+
OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated,
|
|
5546
|
+
OpenAI::Internal::AnyHash
|
|
5547
|
+
)
|
|
5548
|
+
end
|
|
5549
|
+
|
|
5550
|
+
# The workload identity provider ID.
|
|
5551
|
+
sig { returns(T.nilable(String)) }
|
|
5552
|
+
attr_reader :id
|
|
5553
|
+
|
|
5554
|
+
sig { params(id: String).void }
|
|
5555
|
+
attr_writer :id
|
|
5556
|
+
|
|
5557
|
+
# The payload used to update the workload identity provider.
|
|
5558
|
+
sig { returns(T.nilable(T.anything)) }
|
|
5559
|
+
attr_reader :changes_requested
|
|
5560
|
+
|
|
5561
|
+
sig { params(changes_requested: T.anything).void }
|
|
5562
|
+
attr_writer :changes_requested
|
|
5563
|
+
|
|
5564
|
+
# The details for events with this `type`.
|
|
5565
|
+
sig do
|
|
5566
|
+
params(id: String, changes_requested: T.anything).returns(
|
|
5567
|
+
T.attached_class
|
|
5568
|
+
)
|
|
5569
|
+
end
|
|
5570
|
+
def self.new(
|
|
5571
|
+
# The workload identity provider ID.
|
|
5572
|
+
id: nil,
|
|
5573
|
+
# The payload used to update the workload identity provider.
|
|
5574
|
+
changes_requested: nil
|
|
5575
|
+
)
|
|
5576
|
+
end
|
|
5577
|
+
|
|
5578
|
+
sig do
|
|
5579
|
+
override.returns({ id: String, changes_requested: T.anything })
|
|
5580
|
+
end
|
|
5581
|
+
def to_hash
|
|
5582
|
+
end
|
|
5583
|
+
end
|
|
5098
5584
|
end
|
|
5099
5585
|
end
|
|
5100
5586
|
end
|
|
@@ -229,6 +229,14 @@ module OpenAI
|
|
|
229
229
|
# prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
230
230
|
# of 24 hours.
|
|
231
231
|
# [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
232
|
+
# For `gpt-5.5`, `gpt-5.5-pro`, and future models, only `24h` is supported.
|
|
233
|
+
#
|
|
234
|
+
# For older models that support both `in_memory` and `24h`, the default depends on
|
|
235
|
+
# your organization's data retention policy:
|
|
236
|
+
#
|
|
237
|
+
# - Organizations without ZDR enabled default to `24h`.
|
|
238
|
+
# - Organizations with ZDR enabled default to `in_memory` when
|
|
239
|
+
# `prompt_cache_retention` is not specified.
|
|
232
240
|
sig do
|
|
233
241
|
returns(
|
|
234
242
|
T.nilable(
|
|
@@ -693,6 +701,14 @@ module OpenAI
|
|
|
693
701
|
# prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
694
702
|
# of 24 hours.
|
|
695
703
|
# [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
704
|
+
# For `gpt-5.5`, `gpt-5.5-pro`, and future models, only `24h` is supported.
|
|
705
|
+
#
|
|
706
|
+
# For older models that support both `in_memory` and `24h`, the default depends on
|
|
707
|
+
# your organization's data retention policy:
|
|
708
|
+
#
|
|
709
|
+
# - Organizations without ZDR enabled default to `24h`.
|
|
710
|
+
# - Organizations with ZDR enabled default to `in_memory` when
|
|
711
|
+
# `prompt_cache_retention` is not specified.
|
|
696
712
|
prompt_cache_retention: nil,
|
|
697
713
|
# Constrains effort on reasoning for
|
|
698
714
|
# [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently
|
|
@@ -1106,6 +1122,14 @@ module OpenAI
|
|
|
1106
1122
|
# prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
1107
1123
|
# of 24 hours.
|
|
1108
1124
|
# [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
1125
|
+
# For `gpt-5.5`, `gpt-5.5-pro`, and future models, only `24h` is supported.
|
|
1126
|
+
#
|
|
1127
|
+
# For older models that support both `in_memory` and `24h`, the default depends on
|
|
1128
|
+
# your organization's data retention policy:
|
|
1129
|
+
#
|
|
1130
|
+
# - Organizations without ZDR enabled default to `24h`.
|
|
1131
|
+
# - Organizations with ZDR enabled default to `in_memory` when
|
|
1132
|
+
# `prompt_cache_retention` is not specified.
|
|
1109
1133
|
module PromptCacheRetention
|
|
1110
1134
|
extend OpenAI::Internal::Type::Enum
|
|
1111
1135
|
|
|
@@ -33,6 +33,7 @@ module OpenAI
|
|
|
33
33
|
OpenAI::Responses::ResponseInputItem::FunctionCallOutput,
|
|
34
34
|
OpenAI::Responses::ResponseInputItem::ToolSearchCall,
|
|
35
35
|
OpenAI::Responses::ResponseToolSearchOutputItemParam,
|
|
36
|
+
OpenAI::Responses::ResponseInputItem::AdditionalTools,
|
|
36
37
|
OpenAI::Responses::ResponseReasoningItem,
|
|
37
38
|
OpenAI::Responses::ResponseCompactionItemParam,
|
|
38
39
|
OpenAI::Responses::ResponseInputItem::ImageGenerationCall,
|
|
@@ -84,6 +85,7 @@ module OpenAI
|
|
|
84
85
|
OpenAI::Responses::ResponseInputItem::FunctionCallOutput::OrHash,
|
|
85
86
|
OpenAI::Responses::ResponseInputItem::ToolSearchCall::OrHash,
|
|
86
87
|
OpenAI::Responses::ResponseToolSearchOutputItemParam::OrHash,
|
|
88
|
+
OpenAI::Responses::ResponseInputItem::AdditionalTools::OrHash,
|
|
87
89
|
OpenAI::Responses::ResponseReasoningItem::OrHash,
|
|
88
90
|
OpenAI::Responses::ResponseCompactionItemParam::OrHash,
|
|
89
91
|
OpenAI::Responses::ResponseInputItem::ImageGenerationCall::OrHash,
|
|
@@ -142,6 +144,7 @@ module OpenAI
|
|
|
142
144
|
OpenAI::Responses::ResponseInputItem::FunctionCallOutput,
|
|
143
145
|
OpenAI::Responses::ResponseInputItem::ToolSearchCall,
|
|
144
146
|
OpenAI::Responses::ResponseToolSearchOutputItemParam,
|
|
147
|
+
OpenAI::Responses::ResponseInputItem::AdditionalTools,
|
|
145
148
|
OpenAI::Responses::ResponseReasoningItem,
|
|
146
149
|
OpenAI::Responses::ResponseCompactionItemParam,
|
|
147
150
|
OpenAI::Responses::ResponseInputItem::ImageGenerationCall,
|