feat(governance,connectors,ui): identify model providers and keys by UUID (#2129)

This commit is contained in:
sam committed 2026-11-24 06:52:58 +11:00
1 parent c5591d95da
commit 26e19f3de4
16 files changed
+896 -213

No files matched your search

+78 -11
View File
@@ -579,6 +579,8 @@ components:
ConnectorsCredentialSaved:
additionalProperties: false
properties:
id:
type: string
kind:
type: string
name:
@@ -596,6 +598,7 @@ components:
- person
type: string
required:
- id
- name
- kind
- scope
@@ -608,6 +611,8 @@ components:
additionalProperties:
type: string
type: object
id:
type: string
kind:
type: string
name:
@@ -619,6 +624,7 @@ components:
- person
type: string
required:
- id
- name
- kind
- scope
@@ -2415,6 +2421,10 @@ components:
api_key_credential:
readOnly: true
type: string
api_key_credential_id:
format: uuid
readOnly: true
type: string
base_url:
readOnly: true
type: string
@@ -2425,10 +2435,14 @@ components:
description: The model's name on the provider
type: string
provider:
readOnly: true
type: string
provider_id:
description: The provider the model is called on
format: uuid
type: string
required:
- provider
- provider_id
- model
type: object
GovernanceModelAnswer:
@@ -2477,12 +2491,39 @@ components:
additionalProperties: false
properties:
api_key_credential:
readOnly: true
type: string
api_key_credential_id:
format: uuid
type: string
base_url:
type: string
class:
description: A provider class from the model classes catalogue
type: string
id:
type: string
name:
description: Lowercase letters, digits, dots, underscores or hyphens
type: string
required:
- id
- name
- class
type: object
GovernanceModelProviderInput:
additionalProperties: false
properties:
api_key_credential_id:
description: The bearer credential whose token authenticates the provider
format: uuid
type: string
base_url:
description: The endpoint; empty uses the class's default
type: string
class:
description: A provider class from the model classes catalogue
type: string
name:
description: Lowercase letters, digits, dots, underscores or hyphens
type: string
@@ -8878,9 +8919,11 @@ paths:
content:
application/json:
schema:
additionalProperties:
items:
$ref: "#/components/schemas/GovernanceModelProvider"
type: object
type:
- array
- "null"
description: OK
default:
content:
@@ -8891,14 +8934,39 @@ paths:
summary: List model providers
tags:
- Governance
/api/settings/model-providers/{name}:
post:
operationId: create-model-provider
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/GovernanceModelProviderInput"
required: true
responses:
"201":
content:
application/json:
schema:
$ref: "#/components/schemas/GovernanceModelProvider"
description: Created
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Create a model provider
tags:
- Governance
/api/settings/model-providers/{id}:
delete:
operationId: delete-model-provider
parameters:
- in: path
name: name
name: id
required: true
schema:
format: uuid
type: string
responses:
"204":
@@ -8915,18 +8983,17 @@ paths:
put:
operationId: put-model-provider
parameters:
- description: Lowercase letters, digits, dots, underscores or hyphens
in: path
name: name
- in: path
name: id
required: true
schema:
description: Lowercase letters, digits, dots, underscores or hyphens
format: uuid
type: string
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/GovernanceModelProvider"
$ref: "#/components/schemas/GovernanceModelProviderInput"
required: true
responses:
"200":
@@ -8941,7 +9008,7 @@ paths:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Save a model provider
summary: Save a model provider, including its name; aliases refer to it by id and are unchanged
tags:
- Governance
/api/sources: