Skip to content

Commit 8e3cb7e

Browse files
authored
refactor(connectors)!: move connector routes to /v1alpha/admin/connectors (#5659)
Connectors are admin controlled resources. Connector routes previously served at /v1beta/connectors/* are now served at /v1alpha/admin/connectors/* as part of the admin router. Admin protocol now extends Connectors, so AdminImpl satisfies both protocols. AdminImpl delegates connector methods to the injected ConnectorServiceImpl. The standalone connectors FastAPI router is removed; admin/fastapi_routes.py owns all connector routes. --------- Signed-off-by: Matthew Farrellee <matt@cs.wisc.edu>
1 parent 7308e13 commit 8e3cb7e

13 files changed

Lines changed: 1127 additions & 1144 deletions

File tree

client-sdks/stainless/openapi.yml

Lines changed: 305 additions & 305 deletions
Large diffs are not rendered by default.

docs/docs/api-overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ OGX implements the OpenAI API and organizes endpoints by stability level. Use an
3434
{ title: 'Rerank', endpoint: '/v1alpha/inference/rerank', href: '/docs/api-experimental/rerank-v-1-alpha-inference-rerank-post', blurb: 'Document reranking for search relevance' },
3535
{ title: 'File Processors', endpoint: '/v1alpha/file_processors', href: '/docs/api-experimental/file-processors', blurb: 'Document ingestion and chunking' },
3636
{ title: 'Interactions', endpoint: '/v1alpha/interactions', href: '/docs/api-experimental/interactions', blurb: 'Google Interactions API compatibility layer' },
37-
{ title: 'Connectors', endpoint: '/v1beta/connectors', href: '/docs/api-experimental/connectors', blurb: 'External tool and service connectors' },
37+
{ title: 'Connectors', endpoint: '/v1alpha/admin/connectors', href: '/docs/api-experimental/connectors', blurb: 'External tool and service connectors' },
3838
],
3939
},
4040
{

docs/static/deprecated-ogx-spec.yaml

Lines changed: 120 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -8772,63 +8772,6 @@ components:
87728772
- sequence_number
87738773
title: OpenAIResponseObjectStreamError
87748774
type: object
8775-
ListModelsResponse:
8776-
description: Response containing a list of model objects.
8777-
properties:
8778-
data:
8779-
description: List of model objects.
8780-
items:
8781-
$ref: '#/components/schemas/Model'
8782-
title: Data
8783-
type: array
8784-
required:
8785-
- data
8786-
title: ListModelsResponse
8787-
type: object
8788-
GetModelRequest:
8789-
description: Request model for getting a model by ID.
8790-
properties:
8791-
model_id:
8792-
description: The ID of the model to get.
8793-
title: Model Id
8794-
type: string
8795-
required:
8796-
- model_id
8797-
title: GetModelRequest
8798-
type: object
8799-
UnregisterModelRequest:
8800-
description: Request model for unregistering a model.
8801-
properties:
8802-
model_id:
8803-
description: The ID of the model to unregister.
8804-
title: Model Id
8805-
type: string
8806-
required:
8807-
- model_id
8808-
title: UnregisterModelRequest
8809-
type: object
8810-
GetShieldRequest:
8811-
description: Request model for getting a shield by identifier.
8812-
properties:
8813-
identifier:
8814-
description: The identifier of the shield to get.
8815-
title: Identifier
8816-
type: string
8817-
required:
8818-
- identifier
8819-
title: GetShieldRequest
8820-
type: object
8821-
UnregisterShieldRequest:
8822-
description: Request model for unregistering a shield.
8823-
properties:
8824-
identifier:
8825-
description: The identifier of the shield to unregister.
8826-
title: Identifier
8827-
type: string
8828-
required:
8829-
- identifier
8830-
title: UnregisterShieldRequest
8831-
type: object
88328775
TextDelta:
88338776
description: A text content delta for streaming responses.
88348777
properties:
@@ -8902,6 +8845,126 @@ components:
89028845
nullable: true
89038846
title: ListToolsRequest
89048847
type: object
8848+
ConnectorInput:
8849+
description: Input for creating a connector
8850+
properties:
8851+
connector_type:
8852+
$ref: '#/components/schemas/ConnectorType'
8853+
default: mcp
8854+
connector_id:
8855+
description: Identifier for the connector
8856+
title: Connector Id
8857+
type: string
8858+
url:
8859+
description: URL of the connector
8860+
title: Url
8861+
type: string
8862+
server_label:
8863+
anyOf:
8864+
- type: string
8865+
- type: 'null'
8866+
description: Label of the server
8867+
nullable: true
8868+
required:
8869+
- connector_id
8870+
- url
8871+
title: ConnectorInput
8872+
type: object
8873+
GetConnectorRequest:
8874+
description: Request model for getting a connector by ID.
8875+
properties:
8876+
connector_id:
8877+
description: Identifier for the connector
8878+
title: Connector Id
8879+
type: string
8880+
required:
8881+
- connector_id
8882+
title: GetConnectorRequest
8883+
type: object
8884+
ListConnectorToolsRequest:
8885+
description: Request model for listing tools from a connector.
8886+
properties:
8887+
connector_id:
8888+
description: Identifier for the connector
8889+
title: Connector Id
8890+
type: string
8891+
required:
8892+
- connector_id
8893+
title: ListConnectorToolsRequest
8894+
type: object
8895+
GetConnectorToolRequest:
8896+
description: Request model for getting a tool from a connector.
8897+
properties:
8898+
connector_id:
8899+
description: Identifier for the connector
8900+
title: Connector Id
8901+
type: string
8902+
tool_name:
8903+
description: Name of the tool
8904+
title: Tool Name
8905+
type: string
8906+
required:
8907+
- connector_id
8908+
- tool_name
8909+
title: GetConnectorToolRequest
8910+
type: object
8911+
ListModelsResponse:
8912+
description: Response containing a list of model objects.
8913+
properties:
8914+
data:
8915+
description: List of model objects.
8916+
items:
8917+
$ref: '#/components/schemas/Model'
8918+
title: Data
8919+
type: array
8920+
required:
8921+
- data
8922+
title: ListModelsResponse
8923+
type: object
8924+
GetModelRequest:
8925+
description: Request model for getting a model by ID.
8926+
properties:
8927+
model_id:
8928+
description: The ID of the model to get.
8929+
title: Model Id
8930+
type: string
8931+
required:
8932+
- model_id
8933+
title: GetModelRequest
8934+
type: object
8935+
UnregisterModelRequest:
8936+
description: Request model for unregistering a model.
8937+
properties:
8938+
model_id:
8939+
description: The ID of the model to unregister.
8940+
title: Model Id
8941+
type: string
8942+
required:
8943+
- model_id
8944+
title: UnregisterModelRequest
8945+
type: object
8946+
GetShieldRequest:
8947+
description: Request model for getting a shield by identifier.
8948+
properties:
8949+
identifier:
8950+
description: The identifier of the shield to get.
8951+
title: Identifier
8952+
type: string
8953+
required:
8954+
- identifier
8955+
title: GetShieldRequest
8956+
type: object
8957+
UnregisterShieldRequest:
8958+
description: Request model for unregistering a shield.
8959+
properties:
8960+
identifier:
8961+
description: The identifier of the shield to unregister.
8962+
title: Identifier
8963+
type: string
8964+
required:
8965+
- identifier
8966+
title: UnregisterShieldRequest
8967+
type: object
89058968
Api:
89068969
description: Enumeration of all available APIs in the OGX system.
89078970
enum:
@@ -9927,69 +9990,6 @@ components:
99279990
- dialog
99289991
title: DialogType
99299992
type: object
9930-
ConnectorInput:
9931-
description: Input for creating a connector
9932-
properties:
9933-
connector_type:
9934-
$ref: '#/components/schemas/ConnectorType'
9935-
default: mcp
9936-
connector_id:
9937-
description: Identifier for the connector
9938-
title: Connector Id
9939-
type: string
9940-
url:
9941-
description: URL of the connector
9942-
title: Url
9943-
type: string
9944-
server_label:
9945-
anyOf:
9946-
- type: string
9947-
- type: 'null'
9948-
description: Label of the server
9949-
nullable: true
9950-
required:
9951-
- connector_id
9952-
- url
9953-
title: ConnectorInput
9954-
type: object
9955-
GetConnectorRequest:
9956-
description: Request model for getting a connector by ID.
9957-
properties:
9958-
connector_id:
9959-
description: Identifier for the connector
9960-
title: Connector Id
9961-
type: string
9962-
required:
9963-
- connector_id
9964-
title: GetConnectorRequest
9965-
type: object
9966-
ListConnectorToolsRequest:
9967-
description: Request model for listing tools from a connector.
9968-
properties:
9969-
connector_id:
9970-
description: Identifier for the connector
9971-
title: Connector Id
9972-
type: string
9973-
required:
9974-
- connector_id
9975-
title: ListConnectorToolsRequest
9976-
type: object
9977-
GetConnectorToolRequest:
9978-
description: Request model for getting a tool from a connector.
9979-
properties:
9980-
connector_id:
9981-
description: Identifier for the connector
9982-
title: Connector Id
9983-
type: string
9984-
tool_name:
9985-
description: Name of the tool
9986-
title: Tool Name
9987-
type: string
9988-
required:
9989-
- connector_id
9990-
- tool_name
9991-
title: GetConnectorToolRequest
9992-
type: object
99939993
ConversationMessage:
99949994
description: OpenAI-compatible message item for conversations.
99959995
properties:

0 commit comments

Comments
 (0)