From d58f796d6bcdb4986cd942b892c22fd64a02837e Mon Sep 17 00:00:00 2001 From: Thomas Baker Date: Thu, 23 Oct 2025 11:51:58 -0400 Subject: [PATCH 1/2] make ServerMessage a discriminated union --- fern/apis/api/openapi.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index 55b794f63..30ce7743e 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -52620,6 +52620,9 @@ "properties": { "message": { "description": "These are all the messages that can be sent to your server before, after and during the call. Configure the messages you'd like to receive in `assistant.serverMessages`.\n\nThe server where the message is sent is determined by the following precedence order:\n\n1. `tool.server.url` (if configured, and only for \"tool-calls\" message)\n2. `assistant.serverUrl` (if configure)\n3. `phoneNumber.serverUrl` (if configured)\n4. `org.serverUrl` (if configured)", + "discriminator": { + "propertyName": "type" + }, "oneOf": [ { "$ref": "#/components/schemas/ServerMessageAssistantRequest", From aeb8317d9a13684ca61586027801b64903ad5c43 Mon Sep 17 00:00:00 2001 From: Thomas Baker Date: Fri, 24 Oct 2025 16:00:21 -0400 Subject: [PATCH 2/2] undo spec change, upgrade fern-python --- fern/apis/api/generators.yml | 2 +- fern/apis/api/openapi.json | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index 381bbc389..a096dd97f 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -11,7 +11,7 @@ groups: python-sdk: generators: - name: fernapi/fern-python-sdk - version: 4.31.1 + version: 4.31.2 api: settings: unions: v1 diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index 30ce7743e..55b794f63 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -52620,9 +52620,6 @@ "properties": { "message": { "description": "These are all the messages that can be sent to your server before, after and during the call. Configure the messages you'd like to receive in `assistant.serverMessages`.\n\nThe server where the message is sent is determined by the following precedence order:\n\n1. `tool.server.url` (if configured, and only for \"tool-calls\" message)\n2. `assistant.serverUrl` (if configure)\n3. `phoneNumber.serverUrl` (if configured)\n4. `org.serverUrl` (if configured)", - "discriminator": { - "propertyName": "type" - }, "oneOf": [ { "$ref": "#/components/schemas/ServerMessageAssistantRequest",