Skip to content

Commit 868891f

Browse files
feat(api): update OpenAPI spec or Stainless config
1 parent 8b6b6a7 commit 868891f

5 files changed

Lines changed: 56 additions & 20 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 251
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-4db8edc05bd5503d4aaad74e8b9c783aa1f4d40382a8075c53355bd18dfaf68c.yml
3-
openapi_spec_hash: 2466f6ad496b27334217999202e185c0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-b5b621065906a2579dc180db1236ee3b08a4fca9539accc2fbbf88da0ca3923f.yml
3+
openapi_spec_hash: 45b1b4692b26e714008d8120ccfc7433
44
config_hash: ef3ce17315a31703e7af0567b3e9738c

‎realtime/clientsecret.go‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,9 @@ type RealtimeSessionCreateResponseToolUnion struct {
623623
ServerDescription string `json:"server_description"`
624624
// This field is from variant [RealtimeSessionCreateResponseToolMcpTool].
625625
ServerURL string `json:"server_url"`
626-
JSON struct {
626+
// This field is from variant [RealtimeSessionCreateResponseToolMcpTool].
627+
TunnelID string `json:"tunnel_id"`
628+
JSON struct {
627629
Description respjson.Field
628630
Name respjson.Field
629631
Parameters respjson.Field
@@ -637,6 +639,7 @@ type RealtimeSessionCreateResponseToolUnion struct {
637639
RequireApproval respjson.Field
638640
ServerDescription respjson.Field
639641
ServerURL respjson.Field
642+
TunnelID respjson.Field
640643
raw string
641644
} `json:"-"`
642645
}
@@ -673,8 +676,8 @@ type RealtimeSessionCreateResponseToolMcpTool struct {
673676
// OAuth authorization flow and provide the token here.
674677
Authorization string `json:"authorization"`
675678
// Identifier for service connectors, like those available in ChatGPT. One of
676-
// `server_url` or `connector_id` must be provided. Learn more about service
677-
// connectors
679+
// `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
680+
// service connectors
678681
// [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
679682
//
680683
// Currently supported `connector_id` values are:
@@ -701,9 +704,12 @@ type RealtimeSessionCreateResponseToolMcpTool struct {
701704
RequireApproval RealtimeSessionCreateResponseToolMcpToolRequireApprovalUnion `json:"require_approval" api:"nullable"`
702705
// Optional description of the MCP server, used to provide more context.
703706
ServerDescription string `json:"server_description"`
704-
// The URL for the MCP server. One of `server_url` or `connector_id` must be
705-
// provided.
707+
// The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
708+
// must be provided.
706709
ServerURL string `json:"server_url" format:"uri"`
710+
// The Secure MCP Tunnel ID to use instead of a direct server URL. One of
711+
// `server_url`, `connector_id`, or `tunnel_id` must be provided.
712+
TunnelID string `json:"tunnel_id"`
707713
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
708714
JSON struct {
709715
ServerLabel respjson.Field
@@ -716,6 +722,7 @@ type RealtimeSessionCreateResponseToolMcpTool struct {
716722
RequireApproval respjson.Field
717723
ServerDescription respjson.Field
718724
ServerURL respjson.Field
725+
TunnelID respjson.Field
719726
ExtraFields map[string]respjson.Field
720727
raw string
721728
} `json:"-"`

‎realtime/realtime.go‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,14 @@ func (u RealtimeToolsConfigUnionParam) GetServerURL() *string {
12831283
return nil
12841284
}
12851285

1286+
// Returns a pointer to the underlying variant's property, if present.
1287+
func (u RealtimeToolsConfigUnionParam) GetTunnelID() *string {
1288+
if vt := u.OfMcp; vt != nil && vt.TunnelID.Valid() {
1289+
return &vt.TunnelID.Value
1290+
}
1291+
return nil
1292+
}
1293+
12861294
// Returns a pointer to the underlying variant's property, if present.
12871295
func (u RealtimeToolsConfigUnionParam) GetType() *string {
12881296
if vt := u.OfFunction; vt != nil {
@@ -1317,9 +1325,12 @@ type RealtimeToolsConfigUnionMcpParam struct {
13171325
DeferLoading param.Opt[bool] `json:"defer_loading,omitzero"`
13181326
// Optional description of the MCP server, used to provide more context.
13191327
ServerDescription param.Opt[string] `json:"server_description,omitzero"`
1320-
// The URL for the MCP server. One of `server_url` or `connector_id` must be
1321-
// provided.
1328+
// The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
1329+
// must be provided.
13221330
ServerURL param.Opt[string] `json:"server_url,omitzero" format:"uri"`
1331+
// The Secure MCP Tunnel ID to use instead of a direct server URL. One of
1332+
// `server_url`, `connector_id`, or `tunnel_id` must be provided.
1333+
TunnelID param.Opt[string] `json:"tunnel_id,omitzero"`
13231334
// List of allowed tool names or a filter object.
13241335
AllowedTools RealtimeToolsConfigUnionMcpAllowedToolsParam `json:"allowed_tools,omitzero"`
13251336
// Optional HTTP headers to send to the MCP server. Use for authentication or other
@@ -1328,8 +1339,8 @@ type RealtimeToolsConfigUnionMcpParam struct {
13281339
// Specify which of the MCP server's tools require approval.
13291340
RequireApproval RealtimeToolsConfigUnionMcpRequireApprovalParam `json:"require_approval,omitzero"`
13301341
// Identifier for service connectors, like those available in ChatGPT. One of
1331-
// `server_url` or `connector_id` must be provided. Learn more about service
1332-
// connectors
1342+
// `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
1343+
// service connectors
13331344
// [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
13341345
//
13351346
// Currently supported `connector_id` values are:

‎responses/response.go‎

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19182,6 +19182,8 @@ type ToolUnion struct {
1918219182
ServerDescription string `json:"server_description"`
1918319183
// This field is from variant [ToolMcp].
1918419184
ServerURL string `json:"server_url"`
19185+
// This field is from variant [ToolMcp].
19186+
TunnelID string `json:"tunnel_id"`
1918519187
// This field is from variant [ToolCodeInterpreter].
1918619188
Container ToolCodeInterpreterContainerUnion `json:"container"`
1918719189
// This field is from variant [ToolImageGeneration].
@@ -19238,6 +19240,7 @@ type ToolUnion struct {
1923819240
RequireApproval respjson.Field
1923919241
ServerDescription respjson.Field
1924019242
ServerURL respjson.Field
19243+
TunnelID respjson.Field
1924119244
Container respjson.Field
1924219245
Action respjson.Field
1924319246
Background respjson.Field
@@ -19482,8 +19485,8 @@ type ToolMcp struct {
1948219485
// OAuth authorization flow and provide the token here.
1948319486
Authorization string `json:"authorization"`
1948419487
// Identifier for service connectors, like those available in ChatGPT. One of
19485-
// `server_url` or `connector_id` must be provided. Learn more about service
19486-
// connectors
19488+
// `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
19489+
// service connectors
1948719490
// [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1948819491
//
1948919492
// Currently supported `connector_id` values are:
@@ -19510,9 +19513,12 @@ type ToolMcp struct {
1951019513
RequireApproval ToolMcpRequireApprovalUnion `json:"require_approval" api:"nullable"`
1951119514
// Optional description of the MCP server, used to provide more context.
1951219515
ServerDescription string `json:"server_description"`
19513-
// The URL for the MCP server. One of `server_url` or `connector_id` must be
19514-
// provided.
19516+
// The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
19517+
// must be provided.
1951519518
ServerURL string `json:"server_url" format:"uri"`
19519+
// The Secure MCP Tunnel ID to use instead of a direct server URL. One of
19520+
// `server_url`, `connector_id`, or `tunnel_id` must be provided.
19521+
TunnelID string `json:"tunnel_id"`
1951619522
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
1951719523
JSON struct {
1951819524
ServerLabel respjson.Field
@@ -19525,6 +19531,7 @@ type ToolMcp struct {
1952519531
RequireApproval respjson.Field
1952619532
ServerDescription respjson.Field
1952719533
ServerURL respjson.Field
19534+
TunnelID respjson.Field
1952819535
ExtraFields map[string]respjson.Field
1952919536
raw string
1953019537
} `json:"-"`
@@ -20283,6 +20290,14 @@ func (u ToolUnionParam) GetServerURL() *string {
2028320290
return nil
2028420291
}
2028520292

20293+
// Returns a pointer to the underlying variant's property, if present.
20294+
func (u ToolUnionParam) GetTunnelID() *string {
20295+
if vt := u.OfMcp; vt != nil && vt.TunnelID.Valid() {
20296+
return &vt.TunnelID.Value
20297+
}
20298+
return nil
20299+
}
20300+
2028620301
// Returns a pointer to the underlying variant's property, if present.
2028720302
func (u ToolUnionParam) GetContainer() *ToolCodeInterpreterContainerUnionParam {
2028820303
if vt := u.OfCodeInterpreter; vt != nil {
@@ -20787,9 +20802,12 @@ type ToolMcpParam struct {
2078720802
DeferLoading param.Opt[bool] `json:"defer_loading,omitzero"`
2078820803
// Optional description of the MCP server, used to provide more context.
2078920804
ServerDescription param.Opt[string] `json:"server_description,omitzero"`
20790-
// The URL for the MCP server. One of `server_url` or `connector_id` must be
20791-
// provided.
20805+
// The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
20806+
// must be provided.
2079220807
ServerURL param.Opt[string] `json:"server_url,omitzero" format:"uri"`
20808+
// The Secure MCP Tunnel ID to use instead of a direct server URL. One of
20809+
// `server_url`, `connector_id`, or `tunnel_id` must be provided.
20810+
TunnelID param.Opt[string] `json:"tunnel_id,omitzero"`
2079320811
// List of allowed tool names or a filter object.
2079420812
AllowedTools ToolMcpAllowedToolsUnionParam `json:"allowed_tools,omitzero"`
2079520813
// Optional HTTP headers to send to the MCP server. Use for authentication or other
@@ -20798,8 +20816,8 @@ type ToolMcpParam struct {
2079820816
// Specify which of the MCP server's tools require approval.
2079920817
RequireApproval ToolMcpRequireApprovalUnionParam `json:"require_approval,omitzero"`
2080020818
// Identifier for service connectors, like those available in ChatGPT. One of
20801-
// `server_url` or `connector_id` must be provided. Learn more about service
20802-
// connectors
20819+
// `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
20820+
// service connectors
2080320821
// [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
2080420822
//
2080520823
// Currently supported `connector_id` values are:

‎video.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func (u *VideoEditParamsVideoUnion) asAny() any {
581581
return nil
582582
}
583583

584-
// Reference to the completed video.
584+
// Reference to the completed video to edit.
585585
//
586586
// The property ID is required.
587587
type VideoEditParamsVideoVideoReferenceInputParam struct {

0 commit comments

Comments
 (0)