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: d5a836a1-a288-4f85-82fe-0acd3029dd32
openapi_spec_hash: 5aa98e120f6bf7b33a6b37f70ab7c0cc
openapi_transformed_spec_hash: 713f7faec0360a06874a5c192506b8c9
config_hash: fb6bc01fab5ad1159ebbfcd9580b679d
codegen_sha: 5ab04658b2ade60c1e2b9cbbd28be11e8a9fcd2d
codegen_hash: 16e60637734eedab73950020a48df8f5c41b7ee0cd1d89a2f848e88e3fb39739
generation_id: c42efbb5-43e9-44f9-8f53-8cb2a9ed8eb9
openapi_spec_hash: 1403763f6039e921885b467cd2a6434c
openapi_transformed_spec_hash: c6c28455ed2114dd8c1e303072f3fe7d
config_hash: 58da74f4c4c6660f376fa9007e3c4fa2
codegen_sha: 1e18b7c3085cae651cff6472bde1cba31289cb10
codegen_hash: c8556f71e15a60487833ee790cfbc15048ed59cc911cb617af8a232ba3d98640
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,7 @@ Types:
from openai.types.admin.organization import (
AwsExternalStorageProvider,
AzureExternalStorageProvider,
CustomEndpointProvider,
ExternalStorageConfiguration,
ExternalStorageDeleted,
GcpExternalStorageProvider,
Expand Down
194 changes: 185 additions & 9 deletions api_reference/openapi.transformed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28235,6 +28235,35 @@ paths:
"status": "pending",
"created_at": 1711471300
}
- title: Custom HTTPS endpoint
request:
curl: |
curl -X POST https://api.openai.com/v1/organization/external_storage \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"project_id": "proj_abc123",
"provider": {
"type": "custom_endpoint",
"endpoint_url": "https://storage.example.com",
"geography": "US"
}
}'
response: |
{
"object": "organization.external_storage",
"id": "extstorage_example",
"project_id": "proj_abc123",
"provider": {
"type": "custom_endpoint",
"endpoint_url": "https://storage.example.com",
"signing_secret": "whsec_ZXhhbXBsZS1vbmx5LW5vdC1hLXNpZ25pbmcta2V5ISE=",
"signing_secret_hint": "whsec_...ISE="
},
"geography": "US",
"status": "pending",
"created_at": 1711471533
}
security:
- AdminApiKeyAuth: []
/organization/external_storage/{external_storage_id}:
Expand Down Expand Up @@ -40737,8 +40766,22 @@ components:
description: The configuration for the external storage.
properties:
provider:
$ref: '#/components/schemas/provider'
description: The external storage provider configuration.
discriminator:
propertyName: type
anyOf:
- $ref: '#/components/schemas/AwsExternalStorageProviderResponse'
- $ref: '#/components/schemas/AzureExternalStorageProviderResponse'
- $ref: '#/components/schemas/GcpExternalStorageProviderResponse'
- $ref: '#/components/schemas/OciExternalStorageProviderResponse'
- type: object
description: Registration of a custom endpoint. The audit event records only the provider type.
properties:
type:
type: string
const: custom_endpoint
required:
- type
geography:
type: string
description: The OpenAI geography derived from the storage region.
Expand Down Expand Up @@ -47040,6 +47083,8 @@ components:
Options for background execution on HTTP requests. The `2h` and `8h`
completion windows require `background: true`, Standard processing,
and `stream: false` or omitted.
storage_routing:
$ref: '#/components/schemas/storage_routing'
CreateRunRequest:
type: object
additionalProperties: false
Expand Down Expand Up @@ -81985,14 +82030,6 @@ components:
- tenancy_ocid
- region
- bucket
provider:
discriminator:
propertyName: type
anyOf:
- $ref: '#/components/schemas/AwsExternalStorageProviderResponse'
- $ref: '#/components/schemas/AzureExternalStorageProviderResponse'
- $ref: '#/components/schemas/GcpExternalStorageProviderResponse'
- $ref: '#/components/schemas/OciExternalStorageProviderResponse'
PublicProjectResidency:
type: string
enum:
Expand Down Expand Up @@ -83821,6 +83858,7 @@ components:
- $ref: '#/components/schemas/AzureExternalStorageProviderResponse'
- $ref: '#/components/schemas/GcpExternalStorageProviderResponse'
- $ref: '#/components/schemas/OciExternalStorageProviderResponse'
- $ref: '#/components/schemas/CustomEndpointProviderResponse'
geography:
type: string
status:
Expand Down Expand Up @@ -83965,6 +84003,7 @@ components:
- $ref: '#/components/schemas/AzureExternalStorageProviderParams'
- $ref: '#/components/schemas/GcpExternalStorageProviderParams'
- $ref: '#/components/schemas/OciExternalStorageProviderParams'
- $ref: '#/components/schemas/CustomEndpointProviderParams'
type: object
required:
- project_id
Expand Down Expand Up @@ -114080,6 +114119,8 @@ components:
Options for background execution on HTTP requests. The `2h` and `8h`
completion windows require `background: true`, Standard processing,
and `stream: false` or omitted.
storage_routing:
$ref: '#/components/schemas/Betastorage_routing'
BetaMultiAgentParam:
properties:
enabled:
Expand Down Expand Up @@ -115562,6 +115603,141 @@ components:
format: unixtime
description: The Unix timestamp (in seconds) when the key was revoked, or null if unavailable.
- type: 'null'
CreatedCustomEndpointProviderResponse:
properties:
type:
type: string
enum:
- custom_endpoint
default: custom_endpoint
x-stainless-const: true
endpoint_url:
type: string
signing_secret_hint:
type: string
signing_secret:
type: string
description: Signing secret returned only on creation.
x-openai-client-repr: false
type: object
required:
- type
- endpoint_url
- signing_secret_hint
- signing_secret
CustomEndpointProviderParams:
properties:
type:
type: string
enum:
- custom_endpoint
default: custom_endpoint
x-stainless-const: true
endpoint_url:
type: string
maxLength: 2048
description: The base URL for your storage endpoint. Use an absolute `https://` URL of up to 2,048 characters without credentials, a query string, or a fragment.
geography:
type: string
description: Required for a global project. Defaults to the assigned geography for a regional project and must match it when supplied.
type: object
required:
- type
- endpoint_url
CustomEndpointProviderResponse:
properties:
type:
type: string
enum:
- custom_endpoint
default: custom_endpoint
x-stainless-const: true
endpoint_url:
type: string
signing_secret_hint:
type: string
signing_secret:
type: string
description: Returned only when creating a custom endpoint. Save it when you create the endpoint.
x-openai-python-repr: false
type: object
required:
- type
- endpoint_url
- signing_secret_hint
ExternalStorageCreateResource:
properties:
object:
type: string
enum:
- organization.external_storage
default: organization.external_storage
x-stainless-const: true
id:
type: string
project_id:
type: string
provider:
discriminator:
propertyName: type
anyOf:
- $ref: '#/components/schemas/AwsExternalStorageProviderResponse'
- $ref: '#/components/schemas/AzureExternalStorageProviderResponse'
- $ref: '#/components/schemas/GcpExternalStorageProviderResponse'
- $ref: '#/components/schemas/OciExternalStorageProviderResponse'
- $ref: '#/components/schemas/CreatedCustomEndpointProviderResponse'
geography:
type: string
status:
$ref: '#/components/schemas/ExternalStorageStatus'
created_at:
type: integer
format: unixtime
type: object
required:
- object
- id
- project_id
- provider
- geography
- status
- created_at
storage_routing:
anyOf:
- $ref: '#/components/schemas/StorageRoutingParam'
description: Routing for customer-hosted PSP storage.
- type: 'null'
StorageRoutingParam:
properties:
routing_key:
anyOf:
- type: string
maxLength: 128
minLength: 1
description: Customer-provided routing key for PSP storage.
- type: 'null'
additionalProperties: false
type: object
required: []
description: Routing for customer-hosted PSP storage.
Betastorage_routing:
anyOf:
- $ref: '#/components/schemas/BetaStorageRoutingParam'
description: Routing for customer-hosted PSP storage.
- type: 'null'
BetaStorageRoutingParam:
properties:
routing_key:
anyOf:
- type: string
maxLength: 128
minLength: 1
description: Customer-provided routing key for PSP storage.
- type: 'null'
additionalProperties: false
type: object
required: []
description: Routing for customer-hosted PSP storage.
CostsResultWithDimensions:
type: object
description: The aggregated costs details of the specific time bucket.
Expand Down
Loading
Loading