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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .castiron.stats.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: 1
generation_id: d3732c59-427f-42ed-b0e7-16dd57cdb7a4
openapi_spec_hash: 11f466b784d962b4fea3ebfc456d34d6
openapi_transformed_spec_hash: 261b64a48d73529dd8f0b83a6fc08002
config_hash: 3a5d490bd74541b3de242f261148388e
codegen_sha: 0ed78a4a11581dfb7e24dac0d06315478513124e
codegen_hash: 9220d40724b8e9981083957597f4a91aa79959ed57326b8d052c75e28dc4077f
generation_id: d21791a8-b3e7-41d2-abdc-232aada7b32d
openapi_spec_hash: dc67b858448bc4409d6ef706e01e67ac
openapi_transformed_spec_hash: 36be70d35d74cab52f58f7b138b416da
config_hash: ade9fd21e52129aa7bab6c409e1f2901
codegen_sha: 1a18b55ce1552e1e54d85127af498ca2e9321da1
codegen_hash: 6a39d8117431cc7b3d11dd33e93f20ba61a8c64adf5d5cf42597c69e0b3a029f
291 changes: 291 additions & 0 deletions api_reference/openapi.transformed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,123 @@ tags:
- name: Audit Logs
description: List user actions and configuration changes within this organization.
paths:
/organization:
get:
summary: Get organization
description: Retrieve the organization bound to the Admin API key. Requires organization.read.
operationId: GetOrganizationProfile
parameters: []
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TypedOrganizationResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
post:
summary: Update organization
description: Update the organization bound to the Admin API key. Requires organization.write.
operationId: UpdateOrganizationProfile
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOrganizationProfileBody'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/TypedOrganizationResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
/organization/service_tier_settings:
get:
summary: Retrieve organization service tier settings
description: Retrieve the enabled tiers for the organization bound to the Admin API key.
operationId: Retrieveorganizationservicetiersettings
parameters: []
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationServiceTierSettingsResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
post:
summary: Update organization service tier settings
description: Choose which service tiers requests in this organization can use. Requires organization.read and organization.write. See [`service_tier` in the Responses API](https://developers.openai.com/api/reference/resources/responses/methods/create).
operationId: Updateorganizationservicetiersettings
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOrganizationServiceTierSettingsBody'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationServiceTierSettingsResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
/organization/api_key_settings:
get:
summary: Retrieve organization API key settings
description: Retrieve the organization policy for creating new project-attached keys.
operationId: RetrieveorganizationAPIkeysettings
parameters: []
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationApiKeySettingsResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
post:
summary: Update organization API key settings
description: Update which project-attached keys can be created. Requires organization.read and organization.write. Omitted key types retain their current policy.
operationId: UpdateorganizationAPIkeysettings
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOrganizationApiKeySettingsBody'
required: true
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OrganizationApiKeySettingsResource'
x-oaiMeta:
group: administration
security:
- AdminApiKeyAuth: []
/assistants:
get:
operationId: listAssistants
Expand Down Expand Up @@ -39911,6 +40028,180 @@ webhooks:
status codes will be retried.
components:
schemas:
ApiKeyCreationAllowance:
properties:
allowed:
type: boolean
description: Whether new keys of this type can be created.
type: object
required:
- allowed
ApiKeyCreationAllowanceInputParam:
properties:
allowed:
type: boolean
description: Whether new keys of this type can be created.
type: object
required:
- allowed
ApiKeyCreationSettings:
properties:
user_owned_project_keys:
$ref: '#/components/schemas/ApiKeyCreationAllowance'
service_account_keys:
$ref: '#/components/schemas/ApiKeyCreationAllowance'
type: object
required:
- user_owned_project_keys
- service_account_keys
ApiKeyCreationSettingsInputParam:
anyOf:
- required:
- user_owned_project_keys
- required:
- service_account_keys
properties:
user_owned_project_keys:
$ref: '#/components/schemas/ApiKeyCreationAllowanceInputParam'
service_account_keys:
$ref: '#/components/schemas/ApiKeyCreationAllowanceInputParam'
type: object
required: []
x-openai-client-required-alternatives: non-null
OrganizationApiKeySettingsResource:
properties:
object:
type: string
enum:
- organization.api_key_settings
default: organization.api_key_settings
x-stainless-const: true
creation:
anyOf:
- $ref: '#/components/schemas/ApiKeyCreationSettings'
description: Null when governance is unavailable.
- type: 'null'
type: object
required:
- object
- creation
OrganizationServiceTierSettingsResource:
properties:
object:
type: string
enum:
- organization.service_tier_settings
default: organization.service_tier_settings
x-stainless-const: true
enabled_tiers:
description: Additional service tiers that requests in this organization can use. Use `"all"` to allow current and future tiers, or `[]` to allow only Standard. Project settings and tier eligibility still apply.
anyOf:
- type: string
enum:
- all
default: all
x-stainless-const: true
- items:
$ref: '#/components/schemas/ProjectOptionalServiceTier'
type: array
type: object
required:
- object
- enabled_tiers
TypedOrganizationResource:
properties:
object:
type: string
enum:
- organization
default: organization
x-stainless-const: true
id:
type: string
description: The public organization ID.
created_at:
type: integer
format: unixtime
title:
anyOf:
- type: string
description: The organization display name.
- type: 'null'
name:
anyOf:
- type: string
description: The organization slug.
- type: 'null'
description:
anyOf:
- type: string
- type: 'null'
personal:
type: boolean
type: object
required:
- object
- id
- created_at
- title
- name
- description
- personal
UpdateOrganizationApiKeySettingsBody:
properties:
creation:
$ref: '#/components/schemas/ApiKeyCreationSettingsInputParam'
type: object
required:
- creation
UpdateOrganizationProfileBody:
anyOf:
- required:
- title
properties:
title:
type: string
maxLength: 96
minLength: 1
pattern: ^\s*\S
description: Organization display name, with at least one non-whitespace character.
description:
type: string
description: Organization description. Send an empty string to clear it.
type: object
title: TitleUpdate
- required:
- description
properties:
title:
type: string
maxLength: 96
minLength: 1
pattern: ^\s*\S
description: Organization display name, with at least one non-whitespace character.
description:
type: string
description: Organization description. Send an empty string to clear it.
type: object
title: DescriptionUpdate
x-openai-client-required-alternatives: non-null
type: object
UpdateOrganizationServiceTierSettingsBody:
properties:
enabled_tiers:
description: Additional service tiers that requests in this organization can use. Use `"all"` to allow current and future tiers, or `[]` to allow only Standard. Project settings and tier eligibility still apply.
anyOf:
- type: string
enum:
- all
default: all
x-stainless-const: true
- items:
$ref: '#/components/schemas/ProjectOptionalServiceTier'
type: array
type: object
required:
- enabled_tiers
AddUploadPartRequest:
type: object
additionalProperties: false
Expand Down
Loading
Loading