Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 7 additions & 7 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
schema_version: 1
generation_id: 7f5b669b-5cfb-49a0-a069-b34e47bd12e9
openapi_spec_hash: 0ac5ea4ab2546a188a36a0d370367637
openapi_transformed_spec_hash: 6be6c39576ec27111cab26c251d2ab65
config_hash: d92ec885ac2a08b6a4c1ff90420f0327
codegen_sha: 23ba3d180f14bc59feb714e1ab25d5d341f5c213
codegen_hash: 1e48d0bf25ef090cada933936c2c23c5843d9fc1504a36983ab2970b4a51971d
public_codegen_sha: 0e6ccf8a94ca9c81a24ae4309a74e49d91639708
generation_id: 343c25e0-559d-4268-b40d-eb35fc7f8a2a
openapi_spec_hash: cc8bc0e9cda20d98cbcab338ff08b50c
openapi_transformed_spec_hash: 2f1cea3510c46bd2b681baf83d8724c5
config_hash: d7b82262337a543ff59106e4a32ead4e
codegen_sha: 6799e2136ecd93934219fe9881be618dbfdd9dd4
codegen_hash: 3504e760c08cb4da862788b5cfacf2640f6b54ee67df10fc084873006e706594
public_codegen_sha: 6a0bbe3b03ee4bc30789c39fe36a80fcac312007
944 changes: 528 additions & 416 deletions api_reference/openapi.transformed.yml

Large diffs are not rendered by default.

39 changes: 26 additions & 13 deletions lib/openai/models/admin/organization/admin_api_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,28 @@ class AdminAPIKey < OpenAI::Internal::Type::BaseModel
# @!method initialize(id:, created_at:, expires_at:, owner:, redacted_value:, last_used_at: nil, name: nil, object: :"organization.admin_api_key")
# Represents an individual Admin API key in an org.
#
# @param id [String] The identifier, which can be referenced in API endpoints
# @param id [String]
# The identifier, which can be referenced in API endpoints
#
# @param created_at [Integer] The Unix timestamp (in seconds) of when the API key was created
# @param created_at [Integer]
# The Unix timestamp (in seconds) of when the API key was created
#
# @param expires_at [Integer, nil] The Unix timestamp (in seconds) of when the API key expires
# @param expires_at [Integer, nil]
# The Unix timestamp (in seconds) of when the API key expires
#
# @param owner [OpenAI::Models::Admin::Organization::AdminAPIKey::Owner]
#
# @param redacted_value [String] The redacted value of the API key
# @param redacted_value [String]
# The redacted value of the API key
#
# @param last_used_at [Integer, nil] The Unix timestamp (in seconds) of when the API key was last used
# @param last_used_at [Integer, nil]
# The Unix timestamp (in seconds) of when the API key was last used
#
# @param name [String, nil] The name of the API key
# @param name [String, nil]
# The name of the API key
#
# @param object [Symbol, :"organization.admin_api_key"] The object type, which is always `organization.admin_api_key`
# @param object [Symbol, :"organization.admin_api_key"]
# The object type, which is always `organization.admin_api_key`

# @see OpenAI::Models::Admin::Organization::AdminAPIKey#owner
class Owner < OpenAI::Internal::Type::BaseModel
Expand Down Expand Up @@ -111,17 +118,23 @@ class Owner < OpenAI::Internal::Type::BaseModel
optional :type, String

# @!method initialize(id: nil, created_at: nil, name: nil, object: nil, role: nil, type: nil)
# @param id [String] The identifier, which can be referenced in API endpoints
# @param id [String]
# The identifier, which can be referenced in API endpoints
#
# @param created_at [Integer] The Unix timestamp (in seconds) of when the user was created
# @param created_at [Integer]
# The Unix timestamp (in seconds) of when the user was created
#
# @param name [String] The name of the user
# @param name [String]
# The name of the user
#
# @param object [String] The object type, which is always organization.user
# @param object [String]
# The object type, which is always organization.user
#
# @param role [String] Always `owner`
# @param role [String]
# Always `owner`
#
# @param type [String] Always `user`
# @param type [String]
# Always `user`
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ class AdminAPIKeyCreateParams < OpenAI::Internal::Type::BaseModel
optional :expires_in_seconds, Integer

# @!method initialize(name:, expires_in_seconds: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::AdminAPIKeyCreateParams} for more details.
#
# @param name [String]
#
# @param expires_in_seconds [Integer] The number of seconds until the API key expires. Omit this field for a key that
# @param expires_in_seconds [Integer]
# The number of seconds until the API key expires. Omit this field for a key that
# does not expire.
#
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,31 @@ class AdminAPIKeyCreateResponse < OpenAI::Models::Admin::Organization::AdminAPIK
# @!method initialize(id:, created_at:, expires_at:, owner:, redacted_value:, value:, last_used_at: nil, name: nil, object: :"organization.admin_api_key")
# Represents an individual Admin API key in an org.
#
# @param id [String] The identifier, which can be referenced in API endpoints
# @param id [String]
# The identifier, which can be referenced in API endpoints
#
# @param created_at [Integer] The Unix timestamp (in seconds) of when the API key was created
# @param created_at [Integer]
# The Unix timestamp (in seconds) of when the API key was created
#
# @param expires_at [Integer, nil] The Unix timestamp (in seconds) of when the API key expires
# @param expires_at [Integer, nil]
# The Unix timestamp (in seconds) of when the API key expires
#
# @param owner [OpenAI::Models::Admin::Organization::AdminAPIKey::Owner]
#
# @param redacted_value [String] The redacted value of the API key
# @param redacted_value [String]
# The redacted value of the API key
#
# @param value [String] The value of the API key. Only shown on create.
# @param value [String]
# The value of the API key. Only shown on create.
#
# @param last_used_at [Integer, nil] The Unix timestamp (in seconds) of when the API key was last used
# @param last_used_at [Integer, nil]
# The Unix timestamp (in seconds) of when the API key was last used
#
# @param name [String, nil] The name of the API key
# @param name [String, nil]
# The name of the API key
#
# @param object [Symbol, :"organization.admin_api_key"] The object type, which is always `organization.admin_api_key`
# @param object [Symbol, :"organization.admin_api_key"]
# The object type, which is always `organization.admin_api_key`
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class AdminAPIKeyDeleteParams < OpenAI::Internal::Type::BaseModel
required :key_id, String

# @!method initialize(key_id:, request_options: {})
# @param key_id [String] The ID of the API key to be deleted.
# @param key_id [String]
# The ID of the API key to be deleted.
#
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ class AdminAPIKeyListParams < OpenAI::Internal::Type::BaseModel
optional :order, enum: -> { OpenAI::Admin::Organization::AdminAPIKeyListParams::Order }

# @!method initialize(after: nil, limit: nil, order: nil, request_options: {})
# @param after [String, nil] Return keys with IDs that come after this ID in the pagination order.
# @param after [String, nil]
# Return keys with IDs that come after this ID in the pagination order.
#
# @param limit [Integer] Maximum number of keys to return.
# @param limit [Integer]
# Maximum number of keys to return.
#
# @param order [Symbol, OpenAI::Models::Admin::Organization::AdminAPIKeyListParams::Order] Order results by creation time, ascending or descending.
# @param order [Symbol, OpenAI::Models::Admin::Organization::AdminAPIKeyListParams::Order]
# Order results by creation time, ascending or descending.
#
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class AdminAPIKeyRetrieveParams < OpenAI::Internal::Type::BaseModel
required :key_id, String

# @!method initialize(key_id:, request_options: {})
# @param key_id [String] The ID of the API key.
# @param key_id [String]
# The ID of the API key.
#
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
end
Expand Down
69 changes: 47 additions & 22 deletions lib/openai/models/admin/organization/audit_log_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AuditLogListParams < OpenAI::Internal::Type::BaseModel
# @!attribute event_types
# Return only events with a `type` in one of these values. For example,
# `project.created`. For all options, see the documentation for the
# [audit log object](https://platform.openai.com/docs/api-reference/audit-logs/object).
# [audit log object](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/audit_logs).
#
# @return [Array<Symbol, OpenAI::Models::Admin::Organization::AuditLogListParams::EventType>, nil]
optional(
Expand Down Expand Up @@ -88,28 +88,50 @@ class AuditLogListParams < OpenAI::Internal::Type::BaseModel
optional :tenant_only, OpenAI::Internal::Type::Boolean

# @!method initialize(actor_emails: nil, actor_ids: nil, after: nil, before: nil, effective_at: nil, event_types: nil, limit: nil, project_ids: nil, resource_ids: nil, tenant_only: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::AuditLogListParams} for more details.
# @param actor_emails [Array<String>]
# Return only events performed by users with these emails.
#
# @param actor_emails [Array<String>] Return only events performed by users with these emails.
# @param actor_ids [Array<String>]
# Return only events performed by these actors. Can be a user ID, a service
# account ID, or an api key tracking ID.
#
# @param actor_ids [Array<String>] Return only events performed by these actors. Can be a user ID, a service accoun
# @param after [String]
# A cursor for use in pagination. `after` is an object ID that defines your place
# in the list. For instance, if you make a list request and receive 100 objects,
# ending with obj_foo, your subsequent call can include after=obj_foo in order to
# fetch the next page of the list.
#
# @param after [String] A cursor for use in pagination. `after` is an object ID that defines your place
# @param before [String]
# A cursor for use in pagination. `before` is an object ID that defines your place
# in the list. For instance, if you make a list request and receive 100 objects,
# starting with obj_foo, your subsequent call can include before=obj_foo in order
# to fetch the previous page of the list.
#
# @param before [String] A cursor for use in pagination. `before` is an object ID that defines your place
# @param effective_at [OpenAI::Models::Admin::Organization::AuditLogListParams::EffectiveAt]
# Return only events whose `effective_at` (Unix seconds) is in this range.
#
# @param effective_at [OpenAI::Models::Admin::Organization::AuditLogListParams::EffectiveAt] Return only events whose `effective_at` (Unix seconds) is in this range.
# @param event_types [Array<Symbol, OpenAI::Models::Admin::Organization::AuditLogListParams::EventType>]
# Return only events with a `type` in one of these values. For example,
# `project.created`. For all options, see the documentation for the
# [audit log object](https://developers.openai.com/api/reference/resources/admin/subresources/organization/subresources/audit_logs).
#
# @param event_types [Array<Symbol, OpenAI::Models::Admin::Organization::AuditLogListParams::EventType>] Return only events with a `type` in one of these values. For example, `project.c
# @param limit [Integer]
# A limit on the number of objects to be returned. Limit can range between 1 and
# 100, and the default is 20.
#
# @param limit [Integer] A limit on the number of objects to be returned. Limit can range between 1 and 1
# @param project_ids [Array<String>]
# Return only events for these projects.
#
# @param project_ids [Array<String>] Return only events for these projects.
# @param resource_ids [Array<String>]
# Return only events performed on these targets. For example, a project ID
# updated. For ChatGPT connector role events, use the workspace connector resource
# ID shown in `details.id`, such as `<workspace_id>__<connector_id>`.
#
# @param resource_ids [Array<String>] Return only events performed on these targets. For example, a project ID updated
#
# @param tenant_only [Boolean] Return only tenant-scoped events associated with this organization. Required for
# @param tenant_only [Boolean]
# Return only tenant-scoped events associated with this organization. Required for
# tenant-scoped events such as `role.bound_to_resource` and
# `role.unbound_from_resource`. When `true`, all supplied event types must be
# tenant-scoped.
#
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]

Expand Down Expand Up @@ -142,19 +164,22 @@ class EffectiveAt < OpenAI::Internal::Type::BaseModel
optional :lte, Integer

# @!method initialize(gt: nil, gte: nil, lt: nil, lte: nil)
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::AuditLogListParams::EffectiveAt} for more
# details.
#
# Return only events whose `effective_at` (Unix seconds) is in this range.
#
# @param gt [Integer] Return only events whose `effective_at` (Unix seconds) is greater than this valu
# @param gt [Integer]
# Return only events whose `effective_at` (Unix seconds) is greater than this
# value.
#
# @param gte [Integer] Return only events whose `effective_at` (Unix seconds) is greater than or equal
# @param gte [Integer]
# Return only events whose `effective_at` (Unix seconds) is greater than or equal
# to this value.
#
# @param lt [Integer] Return only events whose `effective_at` (Unix seconds) is less than this value.
# @param lt [Integer]
# Return only events whose `effective_at` (Unix seconds) is less than this value.
#
# @param lte [Integer] Return only events whose `effective_at` (Unix seconds) is less than or equal to
# @param lte [Integer]
# Return only events whose `effective_at` (Unix seconds) is less than or equal to
# this value.
end

# The event type.
Expand Down
Loading
Loading