diff --git a/fern/apis/api/openapi.json b/fern/apis/api/openapi.json index e5f694138..430e2da91 100644 --- a/fern/apis/api/openapi.json +++ b/fern/apis/api/openapi.json @@ -1450,252 +1450,6 @@ ] } }, - "/chat/export": { - "get": { - "operationId": "ChatController_chatsExport", - "summary": "Export Chats to CSV", - "parameters": [ - { - "name": "id", - "required": false, - "in": "query", - "description": "This is the unique identifier for the chat to filter by.", - "schema": { - "type": "string" - } - }, - { - "name": "assistantId", - "required": false, - "in": "query", - "description": "This is the unique identifier for the assistant that will be used for the chat.", - "schema": { - "type": "string" - } - }, - { - "name": "assistantIdAny", - "required": false, - "in": "query", - "description": "Filter by multiple assistant IDs. Provide as comma-separated values.", - "schema": { - "example": "assistant-1,assistant-2,assistant-3", - "type": "string" - } - }, - { - "name": "squadId", - "required": false, - "in": "query", - "description": "This is the unique identifier for the squad that will be used for the chat.", - "schema": { - "type": "string" - } - }, - { - "name": "sessionId", - "required": false, - "in": "query", - "description": "This is the unique identifier for the session that will be used for the chat.", - "schema": { - "type": "string" - } - }, - { - "name": "previousChatId", - "required": false, - "in": "query", - "description": "This is the unique identifier for the previous chat to filter by.", - "schema": { - "type": "string" - } - }, - { - "name": "columns", - "required": false, - "in": "query", - "description": "Columns to include in the CSV export", - "schema": { - "default": [ - "id", - "assistantId", - "squadId", - "sessionId", - "previousChatId", - "cost", - "messages", - "output", - "createdAt", - "updatedAt" - ], - "enum": [ - "id", - "assistantId", - "squadId", - "sessionId", - "previousChatId", - "cost", - "messages", - "output", - "createdAt", - "updatedAt" - ], - "type": "string" - } - }, - { - "name": "email", - "required": false, - "in": "query", - "description": "This is the email address to send the export to.\nRequired if userId is not available in the request context.", - "schema": { - "type": "string" - } - }, - { - "name": "format", - "required": false, - "in": "query", - "description": "This is the format of the export.\n\n@default csv", - "schema": { - "default": "csv", - "enum": [ - "csv", - "json" - ], - "type": "string" - } - }, - { - "name": "page", - "required": false, - "in": "query", - "description": "This is the page number to return. Defaults to 1.", - "schema": { - "minimum": 1, - "type": "number" - } - }, - { - "name": "sortOrder", - "required": false, - "in": "query", - "description": "This is the sort order for pagination. Defaults to 'DESC'.", - "schema": { - "enum": [ - "ASC", - "DESC" - ], - "type": "string" - } - }, - { - "name": "limit", - "required": false, - "in": "query", - "description": "This is the maximum number of items to return. Defaults to 100.", - "schema": { - "minimum": 0, - "maximum": 1000, - "type": "number" - } - }, - { - "name": "createdAtGt", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is greater than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtLt", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is less than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtGe", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is greater than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtLe", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is less than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtGt", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is greater than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtLt", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is less than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtGe", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is greater than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtLe", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is less than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "tags": [ - "Chats" - ], - "security": [ - { - "bearer": [] - } - ] - } - }, "/chat/{id}": { "get": { "operationId": "ChatController_getChat", @@ -2487,370 +2241,6 @@ ] } }, - "/session/export": { - "get": { - "operationId": "SessionController_sessionsExport", - "summary": "Export Sessions to CSV", - "parameters": [ - { - "name": "id", - "required": false, - "in": "query", - "description": "This is the unique identifier for the session to filter by.", - "schema": { - "type": "string" - } - }, - { - "name": "name", - "required": false, - "in": "query", - "description": "This is the name of the session to filter by.", - "schema": { - "type": "string" - } - }, - { - "name": "assistantId", - "required": false, - "in": "query", - "description": "This is the ID of the assistant to filter sessions by.", - "schema": { - "type": "string" - } - }, - { - "name": "assistantIdAny", - "required": false, - "in": "query", - "description": "Filter by multiple assistant IDs. Provide as comma-separated values.", - "schema": { - "example": "assistant-1,assistant-2,assistant-3", - "type": "string" - } - }, - { - "name": "squadId", - "required": false, - "in": "query", - "description": "This is the ID of the squad to filter sessions by.", - "schema": { - "type": "string" - } - }, - { - "name": "workflowId", - "required": false, - "in": "query", - "description": "This is the ID of the workflow to filter sessions by.", - "schema": { - "type": "string" - } - }, - { - "required": false, - "description": "This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it.\n\nUse cases:\n- `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks.\n- `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls.\n\nIf `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\\+?[a-zA-Z0-9]+$/`).\n\n@default true (E164 check is enabled)", - "name": "numberE164CheckEnabled", - "in": "query", - "schema": { - "default": true, - "type": "boolean" - } - }, - { - "required": false, - "description": "This is the extension that will be dialed after the call is answered.", - "name": "extension", - "in": "query", - "schema": { - "maxLength": 10, - "example": null, - "type": "string" - } - }, - { - "name": "assistantOverrides", - "required": false, - "description": "These are the overrides for the assistant's settings and template variables specific to this customer.\nThis allows customization of the assistant's behavior for individual customers in batch calls.", - "allOf": [ - { - "$ref": "#/components/schemas/AssistantOverrides" - } - ], - "in": "query", - "schema": {} - }, - { - "required": false, - "description": "This is the number of the customer.", - "name": "number", - "in": "query", - "schema": { - "minLength": 3, - "maxLength": 40, - "type": "string" - } - }, - { - "required": false, - "description": "This is the SIP URI of the customer.", - "name": "sipUri", - "in": "query", - "schema": { - "type": "string" - } - }, - { - "required": false, - "description": "This is the name of the customer. This is just for your own reference.\n\nFor SIP inbound calls, this is extracted from the `From` SIP header with format `\"Display Name\" `.", - "name": "name", - "in": "query", - "schema": { - "maxLength": 40, - "type": "string" - } - }, - { - "required": false, - "description": "This is the email of the customer.", - "name": "email", - "in": "query", - "schema": { - "maxLength": 40, - "type": "string" - } - }, - { - "required": false, - "description": "This is the external ID of the customer.", - "name": "externalId", - "in": "query", - "schema": { - "maxLength": 40, - "type": "string" - } - }, - { - "name": "customerNumberAny", - "required": false, - "in": "query", - "description": "Filter by any of the specified customer phone numbers (comma-separated).", - "schema": { - "example": "+1234567890,+0987654321", - "type": "string" - } - }, - { - "name": "columns", - "required": false, - "in": "query", - "description": "Columns to include in the CSV export", - "schema": { - "default": [ - "id", - "name", - "status", - "assistantId", - "squadId", - "customerName", - "customerNumber", - "phoneNumberId", - "cost", - "messages", - "createdAt", - "updatedAt" - ], - "enum": [ - "id", - "name", - "status", - "assistantId", - "squadId", - "customerName", - "customerNumber", - "phoneNumberId", - "cost", - "messages", - "createdAt", - "updatedAt" - ], - "type": "string" - } - }, - { - "name": "email", - "required": false, - "in": "query", - "description": "This is the email address to send the export to.\nRequired if userId is not available in the request context.", - "schema": { - "type": "string" - } - }, - { - "name": "format", - "required": false, - "in": "query", - "description": "This is the format of the export.\n\n@default csv", - "schema": { - "default": "csv", - "enum": [ - "csv", - "json" - ], - "type": "string" - } - }, - { - "name": "phoneNumberId", - "required": false, - "in": "query", - "description": "This will return sessions with the specified phoneNumberId.", - "schema": { - "type": "string" - } - }, - { - "name": "phoneNumberIdAny", - "required": false, - "in": "query", - "description": "This will return sessions with any of the specified phoneNumberIds.", - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "name": "page", - "required": false, - "in": "query", - "description": "This is the page number to return. Defaults to 1.", - "schema": { - "minimum": 1, - "type": "number" - } - }, - { - "name": "sortOrder", - "required": false, - "in": "query", - "description": "This is the sort order for pagination. Defaults to 'DESC'.", - "schema": { - "enum": [ - "ASC", - "DESC" - ], - "type": "string" - } - }, - { - "name": "limit", - "required": false, - "in": "query", - "description": "This is the maximum number of items to return. Defaults to 100.", - "schema": { - "minimum": 0, - "maximum": 1000, - "type": "number" - } - }, - { - "name": "createdAtGt", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is greater than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtLt", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is less than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtGe", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is greater than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "createdAtLe", - "required": false, - "in": "query", - "description": "This will return items where the createdAt is less than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtGt", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is greater than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtLt", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is less than the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtGe", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is greater than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - }, - { - "name": "updatedAtLe", - "required": false, - "in": "query", - "description": "This will return items where the updatedAt is less than or equal to the specified value.", - "schema": { - "format": "date-time", - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "" - } - }, - "tags": [ - "Sessions" - ], - "security": [ - { - "bearer": [] - } - ] - } - }, "/session/{id}": { "get": { "operationId": "SessionController_findOne", @@ -9039,6 +8429,7 @@ "type": "string", "description": "This is the model that will be used for the transcription.", "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", @@ -10807,6 +10198,7 @@ "type": "string", "description": "This is the model that will be used for the transcription.", "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", @@ -13382,6 +12774,7 @@ "type": "string", "description": "The model to use for the knowledge base", "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", @@ -15150,6 +14543,7 @@ "type": "string", "description": "This is the Google model that will be used.", "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", @@ -16664,6 +16058,7 @@ "description": "This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b", "maxLength": 100, "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", @@ -45533,6 +44928,7 @@ "description": "This is the name of the model. Ex. gpt-4o", "maxLength": 100, "enum": [ + "gemini-3-flash-preview", "gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite",