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: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
- **Search an organization's members.** `listOrganizationMembers` takes `search`, which narrows the
list to the members whose name or address starts with it or holds it, ignoring case, best
matches first. Only that organization's current members are ever listed.
- **TrustedRouter as an AI connection, and the AI provider in answers can gain values.**
`PUT /api/v2/organizations/{organizationId}/ai-connection` (`replaceAiConnection`) takes
`provider: trustedrouter` with `login: endpoint`, an address and a key, like `unbiased`. In
answers, the provider is now declared open (`x-extensible-enum`, `AiConnectionProviderAnswer`):
the organization's and a person's AI connection, a person's `signIns`, and a sign-in. A script
that reads one should show a provider it doesn't know by its id rather than fail. A request still
names one of the closed `AiConnectionProvider` list.
- New optional fields: `organizationId` on a conversation event and on a Recorder connection, and
`hostedSignIn` on `deployment`, true where people sign in through OpenBot by CopilotKit's own
sign-in, starting at `/api/auth/hosted/sign-in`.
Expand Down Expand Up @@ -569,6 +576,11 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.

### OpenBot Desktop

- **TrustedRouter is on the Connect your AI screen**, and in Settings where the AI connection is
changed. TrustedRouter is an OpenAI-compatible gateway in front of many providers. A TrustedRouter
API key is all the row asks for: OpenBot fills in `https://api.trustedrouter.com/v1` and the model
`anthropic/claude-sonnet-5.5`, which can be changed to any name the gateway lists. The model list
reads the gateway's `/models`, as it does for any other compatible endpoint.
- **OpenBot Desktop's back end moves to CopilotKit Intelligence 0.17.0-rc.4.** The bundled CLI
moves to `copilotkit@3e64135`, so an install or update runs Intelligence 0.17.0-rc.4.
- **Setup no longer stops for good after the back end's saved settings were deleted.** With
Expand Down
18 changes: 18 additions & 0 deletions api/accepted-breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,21 @@ it in those words when it is the reason, and the release run fails if the releas
- 2026-11-18 GET /api/v2/organizations/{organizationId}/settings the `mcpAllowlist/servers/items/` response's property pattern was changed from `^[^\x00]*\S[^\x00]*$` to `^[^\x00]*[^\s\x00][^\x00]*$` for the status `200` (shared schema: `AllowlistEntry`, also at `mcpAllowlist/servers/items`, `modelAllowlist/models/items`). The same change as worded by oasdiff 1.34: NUL refused in the one required character as everywhere else, as the server always has.
- 2026-11-18 PATCH /api/v2/organizations/{organizationId}/settings changed the pattern of the request property `mcpAllowlist/servers/items/` from `^[^\x00]*\S[^\x00]*$` to `^[^\x00]*[^\s\x00][^\x00]*$` (shared schema: `AllowlistEntry`, also at `mcpAllowlist/servers/items`, `modelAllowlist/models/items`). The same change as worded by oasdiff 1.34: NUL refused in the one required character as everywhere else, as the server always has.
- 2026-11-18 PATCH /api/v2/organizations/{organizationId}/settings the `mcpAllowlist/servers/items/` response's property pattern was changed from `^[^\x00]*\S[^\x00]*$` to `^[^\x00]*[^\s\x00][^\x00]*$` for the status `200` (shared schema: `AllowlistEntry`, also at `mcpAllowlist/servers/items`, `modelAllowlist/models/items`). The same change as worded by oasdiff 1.34: NUL refused in the one required character as everywhere else, as the server always has.
- 2026-11-20 GET /api/v2/organizations/{organizationId}/ai-connection removed the enum constraint from the `saved/items/provider` response property for the response status `200`. The AI provider a connection answers with is declared open with x-extensible-enum (AiConnectionProviderAnswer), so a provider such as trustedrouter can be added, and every client reads a value it doesn't know (api/README.md, Enums that grow). A request still names one of the closed AiConnectionProvider list.
- 2026-11-20 PUT /api/v2/organizations/{organizationId}/ai-connection removed the enum constraint from the `saved/items/provider` response property for the response status `200`. The same open provider in the answer to a switch.
- 2026-11-20 GET /api/v2/organizations/{organizationId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `provider` response property `oneOf` list for the response status `200`. The open copy of AiConnectionProvider, with its values, in place of the closed one beside null: the same change as the line above, as oasdiff words it for a nullable property.
- 2026-11-20 PUT /api/v2/organizations/{organizationId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `provider` response property `oneOf` list for the response status `200`. The same open provider in the answer to a switch.
- 2026-11-23 DELETE /api/v2/organizations/{organizationId}/ai-connection removed the enum constraint from the `saved/items/provider` response property for the response status `200`. The AI provider a connection answers with is declared open with x-extensible-enum (AiConnectionProviderAnswer), as for GET and PUT on the organization's AI connection; a request still names one of the closed AiConnectionProvider list.
- 2026-11-23 DELETE /api/v2/organizations/{organizationId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `provider` response property `oneOf` list for the response status `200`. The open copy of AiConnectionProvider, with its values, in place of the closed one beside null, as for GET and PUT on the organization's AI connection.
- 2026-11-23 DELETE /api/v2/organizations/{organizationId}/people/{personId}/ai-connection removed the enum constraint from the `connection/saved/items/provider` response property for the response status `200` (shared schema: `AiConnectionProviderAnswer`, also at `signIns/items`). The AI provider a connection answers with is declared open with x-extensible-enum (AiConnectionProviderAnswer), as for GET and PUT on the organization's AI connection; a request still names one of the closed AiConnectionProvider list.
- 2026-11-23 DELETE /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `connection/provider` response property `oneOf` list for the response status `200`. The open copy of AiConnectionProvider, with its values, in place of the closed one beside null, as for GET and PUT on the organization's AI connection.
- 2026-11-23 DELETE /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `organization/provider` response property `oneOf` list for the response status `200`. The organization's provider in a person's AI connection is the open AiConnectionProviderAnswer, the same as the organization's own answer.
- 2026-11-23 GET /api/v2/organizations/{organizationId}/people/{personId}/ai-connection removed the enum constraint from the `connection/saved/items/provider` response property for the response status `200` (shared schema: `AiConnectionProviderAnswer`, also at `signIns/items`). The AI provider a connection answers with is declared open with x-extensible-enum (AiConnectionProviderAnswer), as for GET and PUT on the organization's AI connection; a request still names one of the closed AiConnectionProvider list.
- 2026-11-23 GET /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `connection/provider` response property `oneOf` list for the response status `200`. The open copy of AiConnectionProvider, with its values, in place of the closed one beside null, as for GET and PUT on the organization's AI connection.
- 2026-11-23 GET /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `organization/provider` response property `oneOf` list for the response status `200`. The organization's provider in a person's AI connection is the open AiConnectionProviderAnswer, the same as the organization's own answer.
- 2026-11-23 PUT /api/v2/organizations/{organizationId}/people/{personId}/ai-connection removed the enum constraint from the `connection/saved/items/provider` response property for the response status `200` (shared schema: `AiConnectionProviderAnswer`, also at `signIns/items`). The AI provider a connection answers with is declared open with x-extensible-enum (AiConnectionProviderAnswer), as for GET and PUT on the organization's AI connection; a request still names one of the closed AiConnectionProvider list.
- 2026-11-23 PUT /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `connection/provider` response property `oneOf` list for the response status `200`. The open copy of AiConnectionProvider, with its values, in place of the closed one beside null, as for GET and PUT on the organization's AI connection.
- 2026-11-23 PUT /api/v2/organizations/{organizationId}/people/{personId}/ai-connection added `#/components/schemas/AiConnectionProviderAnswer` to the `organization/provider` response property `oneOf` list for the response status `200`. The organization's provider in a person's AI connection is the open AiConnectionProviderAnswer, the same as the organization's own answer.
- 2026-11-23 POST /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins removed the enum constraint from the `provider` response property for the response status `201`. The provider a sign-in answers with is declared open (AiConnectionProviderAnswer), as the AI connection's is, so a provider such as trustedrouter can be added without breaking a client. Starting a sign-in still names one of the closed AiConnectionProvider list.
- 2026-11-23 GET /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins/{signInId} removed the enum constraint from the `provider` response property for the response status `200`. The provider a sign-in answers with is declared open (AiConnectionProviderAnswer), as the AI connection's is, so a provider such as trustedrouter can be added without breaking a client. Starting a sign-in still names one of the closed AiConnectionProvider list.
- 2026-11-23 POST /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins/{signInId}/code removed the enum constraint from the `provider` response property for the response status `200`. The provider a sign-in answers with is declared open (AiConnectionProviderAnswer), as the AI connection's is, so a provider such as trustedrouter can be added without breaking a client. Starting a sign-in still names one of the closed AiConnectionProvider list.
34 changes: 34 additions & 0 deletions api/openapi-ai-connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,40 @@ test("every example the spec shows is one the generated client accepts", () => {
}
});

test("an answer may name a provider this client doesn't know, and a switch is refused one the server doesn't take", () => {
const answer = {
provider: "a-provider-added-later",
login: "endpoint",
model: "model-a",
endpointHost: "api.example.com",
keySet: true,
ready: true,
source: "stored",
editable: true,
saved: [
{
provider: "a-provider-added-later",
login: "endpoint",
endpointHost: "api.example.com",
},
],
changedAt: "2026-11-20T00:00:00Z",
};
expect(GetAiConnectionResponse.safeParse(answer).success).toBe(true);
const body = (provider: string) =>
ReplaceAiConnectionBody.safeParse({
provider,
login: "endpoint",
baseUrl: "https://api.trustedrouter.com/v1",
model: "anthropic/claude-sonnet-5.5",
apiKey: "sk-example",
}).success;
expect(body("trustedrouter")).toBe(true);
expect(body("unbiased")).toBe(true);
expect(body("a-provider-added-later")).toBe(false);
expect(body("")).toBe(false);
});

test("an endpoint address is http or https with nothing in it that signs in", () => {
const endpoint = (baseUrl: string) =>
ReplaceAiConnectionBody.safeParse({
Expand Down
34 changes: 23 additions & 11 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26827,19 +26827,20 @@ components:
label:
type: string
description: Its name, as a model picker shows it.
AiConnectionProvider:
AiConnectionProviderAnswer:
type: string
description: 'The AI provider OpenBot''s Bots run on. openai: OpenAI. anthropic: Anthropic. google: Google Gemini. xai: xAI. unbiased: Unbiased AI. openai-compatible: any server that speaks OpenAI''s API, at an address given.'
enum:
x-extensible-enum:
- openai
- anthropic
- google
- xai
- unbiased
- trustedrouter
- openai-compatible
description: 'The AI provider OpenBot''s Bots run on, as the server answers it. openai: OpenAI. anthropic: Anthropic. google: Google Gemini. xai: xAI. unbiased: Unbiased AI. trustedrouter: TrustedRouter. openai-compatible: any server that speaks OpenAI''s API, at an address given. The list can grow: a client shows a provider it doesn''t know by its id. A request still names one of AiConnectionProvider.'
AiConnectionLogin:
type: string
description: 'How OpenBot signs in to the provider. plan: the person''s Claude or ChatGPT plan (openai, anthropic). api-key: a key from the provider (openai, anthropic). endpoint: an address and, where it asks for one, a key (google, xai, unbiased, openai-compatible). oauth: the person''s Google or xAI sign-in (google, xai).'
description: 'How OpenBot signs in to the provider. plan: the person''s Claude or ChatGPT plan (openai, anthropic). api-key: a key from the provider (openai, anthropic). endpoint: an address and, where it asks for one, a key (google, xai, unbiased, trustedrouter, openai-compatible). oauth: the person''s Google or xAI sign-in (google, xai).'
enum:
- plan
- api-key
Expand All @@ -26854,7 +26855,7 @@ components:
- endpointHost
properties:
provider:
$ref: '#/components/schemas/AiConnectionProvider'
$ref: '#/components/schemas/AiConnectionProviderAnswer'
login:
$ref: '#/components/schemas/AiConnectionLogin'
endpointHost:
Expand Down Expand Up @@ -26897,7 +26898,7 @@ components:
provider:
description: The provider. Null while none is chosen yet.
oneOf:
- $ref: '#/components/schemas/AiConnectionProvider'
- $ref: '#/components/schemas/AiConnectionProviderAnswer'
- type: 'null'
login:
description: How OpenBot signs in to it. Null while none is chosen yet.
Expand Down Expand Up @@ -26946,10 +26947,21 @@ components:
oneOf:
- $ref: '#/components/schemas/AiConnectionSharedSignIn'
- type: 'null'
AiConnectionProvider:
type: string
description: 'The AI provider OpenBot''s Bots run on. openai: OpenAI. anthropic: Anthropic. google: Google Gemini. xai: xAI. unbiased: Unbiased AI. trustedrouter: TrustedRouter. openai-compatible: any server that speaks OpenAI''s API, at an address given.'
enum:
- openai
- anthropic
- google
- xai
- unbiased
- trustedrouter
- openai-compatible
AiConnectionInput:
type: object
additionalProperties: false
description: The connection to switch to. openai and anthropic take plan or api-key; google and xai take endpoint or oauth; unbiased and openai-compatible take endpoint. Any other pair is refused.
description: The connection to switch to. openai and anthropic take plan or api-key; google and xai take endpoint or oauth; unbiased, trustedrouter and openai-compatible take endpoint. Any other pair is refused.
required:
- provider
- login
Expand Down Expand Up @@ -26992,7 +27004,7 @@ components:
provider:
description: The organization's provider. Null while it has none.
oneOf:
- $ref: '#/components/schemas/AiConnectionProvider'
- $ref: '#/components/schemas/AiConnectionProviderAnswer'
- type: 'null'
PersonalAiConnection:
type: object
Expand Down Expand Up @@ -27026,7 +27038,7 @@ components:
type: array
description: 'The providers the server can sign the person in to itself (startPersonalAiSignIn): a ChatGPT plan (openai), a Claude plan (anthropic), Google and xAI sign-ins, and Unbiased AI, each where this server is set up for it. Each still connects with a key or an address too, and every provider not listed connects only that way.'
items:
$ref: '#/components/schemas/AiConnectionProvider'
$ref: '#/components/schemas/AiConnectionProviderAnswer'
AiSignInInput:
type: object
additionalProperties: false
Expand Down Expand Up @@ -27064,7 +27076,7 @@ components:
pattern: ^[A-Za-z0-9_-]+$
description: The sign-in's id, for reading where it stands.
provider:
$ref: '#/components/schemas/AiConnectionProvider'
$ref: '#/components/schemas/AiConnectionProviderAnswer'
url:
type: string
format: uri
Expand Down Expand Up @@ -27104,7 +27116,7 @@ components:
maxLength: 4096
pattern: ^[A-Za-z0-9_-]+$
provider:
$ref: '#/components/schemas/AiConnectionProvider'
$ref: '#/components/schemas/AiConnectionProviderAnswer'
status:
type: string
x-extensible-enum:
Expand Down
Loading
Loading