@@ -677,6 +677,9 @@ export interface paths {
677677 "/v1/agent/thread/{sessionId}/escalate" : {
678678 post : operations [ "EscalateThread" ] ;
679679 } ;
680+ "/v1/agent/thread/create-and-escalate" : {
681+ post : operations [ "CreateAndEscalateThread" ] ;
682+ } ;
680683 "/v1/agent/threads" : {
681684 get : operations [ "GetAllThreads" ] ;
682685 } ;
@@ -3728,227 +3731,6 @@ Json: JsonObject;
37283731 error : null ;
37293732 } ;
37303733 "Result_InAppThread.string_" : components [ "schemas" ] [ "ResultSuccess_InAppThread_" ] | components [ "schemas" ] [ "ResultError_string_" ] ;
3731- /**
3732- * @description Learn about
3733- * [text inputs](https://platform.openai.com/docs/guides/text-generation).
3734- */
3735- ChatCompletionContentPartText : {
3736- /** @description The text content. */
3737- text : string ;
3738- /**
3739- * @description The type of the content part.
3740- * @enum {string}
3741- */
3742- type : "text" ;
3743- } ;
3744- /**
3745- * @description Developer-provided instructions that the model should follow, regardless of
3746- * messages sent by the user. With o1 models and newer, `developer` messages
3747- * replace the previous `system` messages.
3748- */
3749- ChatCompletionDeveloperMessageParam : {
3750- /** @description The contents of the developer message. */
3751- content : string | components [ "schemas" ] [ "ChatCompletionContentPartText" ] [ ] ;
3752- /**
3753- * @description The role of the messages author, in this case `developer`.
3754- * @enum {string}
3755- */
3756- role : "developer" ;
3757- /**
3758- * @description An optional name for the participant. Provides the model information to
3759- * differentiate between participants of the same role.
3760- */
3761- name ?: string ;
3762- } ;
3763- /**
3764- * @description Developer-provided instructions that the model should follow, regardless of
3765- * messages sent by the user. With o1 models and newer, use `developer` messages
3766- * for this purpose instead.
3767- */
3768- ChatCompletionSystemMessageParam : {
3769- /** @description The contents of the system message. */
3770- content : string | components [ "schemas" ] [ "ChatCompletionContentPartText" ] [ ] ;
3771- /**
3772- * @description The role of the messages author, in this case `system`.
3773- * @enum {string}
3774- */
3775- role : "system" ;
3776- /**
3777- * @description An optional name for the participant. Provides the model information to
3778- * differentiate between participants of the same role.
3779- */
3780- name ?: string ;
3781- } ;
3782- "ChatCompletionContentPartImage.ImageURL" : {
3783- /** @description Either a URL of the image or the base64 encoded image data. */
3784- url : string ;
3785- /**
3786- * @description Specifies the detail level of the image. Learn more in the
3787- * [Vision guide](https://platform.openai.com/docs/guides/vision#low-or-high-fidelity-image-understanding).
3788- * @enum {string}
3789- */
3790- detail ?: "auto" | "low" | "high" ;
3791- } ;
3792- /** @description Learn about [image inputs](https://platform.openai.com/docs/guides/vision). */
3793- ChatCompletionContentPartImage : {
3794- image_url : components [ "schemas" ] [ "ChatCompletionContentPartImage.ImageURL" ] ;
3795- /**
3796- * @description The type of the content part.
3797- * @enum {string}
3798- */
3799- type : "image_url" ;
3800- } ;
3801- "ChatCompletionContentPartInputAudio.InputAudio" : {
3802- /** @description Base64 encoded audio data. */
3803- data : string ;
3804- /**
3805- * @description The format of the encoded audio data. Currently supports "wav" and "mp3".
3806- * @enum {string}
3807- */
3808- format : "wav" | "mp3" ;
3809- } ;
3810- /** @description Learn about [audio inputs](https://platform.openai.com/docs/guides/audio). */
3811- ChatCompletionContentPartInputAudio : {
3812- input_audio : components [ "schemas" ] [ "ChatCompletionContentPartInputAudio.InputAudio" ] ;
3813- /**
3814- * @description The type of the content part. Always `input_audio`.
3815- * @enum {string}
3816- */
3817- type : "input_audio" ;
3818- } ;
3819- "ChatCompletionContentPart.File.File" : {
3820- /**
3821- * @description The base64 encoded file data, used when passing the file to the model as a
3822- * string.
3823- */
3824- file_data ?: string ;
3825- /** @description The ID of an uploaded file to use as input. */
3826- file_id ?: string ;
3827- /** @description The name of the file, used when passing the file to the model as a string. */
3828- filename ?: string ;
3829- } ;
3830- /**
3831- * @description Learn about [file inputs](https://platform.openai.com/docs/guides/text) for text
3832- * generation.
3833- */
3834- "ChatCompletionContentPart.File" : {
3835- file : components [ "schemas" ] [ "ChatCompletionContentPart.File.File" ] ;
3836- /**
3837- * @description The type of the content part. Always `file`.
3838- * @enum {string}
3839- */
3840- type : "file" ;
3841- } ;
3842- /**
3843- * @description Learn about
3844- * [text inputs](https://platform.openai.com/docs/guides/text-generation).
3845- */
3846- ChatCompletionContentPart : components [ "schemas" ] [ "ChatCompletionContentPartText" ] | components [ "schemas" ] [ "ChatCompletionContentPartImage" ] | components [ "schemas" ] [ "ChatCompletionContentPartInputAudio" ] | components [ "schemas" ] [ "ChatCompletionContentPart.File" ] ;
3847- /**
3848- * @description Messages sent by an end user, containing prompts or additional context
3849- * information.
3850- */
3851- ChatCompletionUserMessageParam : {
3852- /** @description The contents of the user message. */
3853- content : string | components [ "schemas" ] [ "ChatCompletionContentPart" ] [ ] ;
3854- /**
3855- * @description The role of the messages author, in this case `user`.
3856- * @enum {string}
3857- */
3858- role : "user" ;
3859- /**
3860- * @description An optional name for the participant. Provides the model information to
3861- * differentiate between participants of the same role.
3862- */
3863- name ?: string ;
3864- } ;
3865- /**
3866- * @description Data about a previous audio response from the model.
3867- * [Learn more](https://platform.openai.com/docs/guides/audio).
3868- */
3869- "ChatCompletionAssistantMessageParam.Audio" : {
3870- /** @description Unique identifier for a previous audio response from the model. */
3871- id : string ;
3872- } ;
3873- ChatCompletionContentPartRefusal : {
3874- /** @description The refusal message generated by the model. */
3875- refusal : string ;
3876- /**
3877- * @description The type of the content part.
3878- * @enum {string}
3879- */
3880- type : "refusal" ;
3881- } ;
3882- /** @deprecated */
3883- "ChatCompletionAssistantMessageParam.FunctionCall" : {
3884- /**
3885- * @description The arguments to call the function with, as generated by the model in JSON
3886- * format. Note that the model does not always generate valid JSON, and may
3887- * hallucinate parameters not defined by your function schema. Validate the
3888- * arguments in your code before calling your function.
3889- */
3890- arguments : string ;
3891- /** @description The name of the function to call. */
3892- name : string ;
3893- } ;
3894- /** @description Messages sent by the model in response to user messages. */
3895- ChatCompletionAssistantMessageParam : {
3896- /**
3897- * @description The role of the messages author, in this case `assistant`.
3898- * @enum {string}
3899- */
3900- role : "assistant" ;
3901- /**
3902- * @description Data about a previous audio response from the model.
3903- * [Learn more](https://platform.openai.com/docs/guides/audio).
3904- */
3905- audio ?: components [ "schemas" ] [ "ChatCompletionAssistantMessageParam.Audio" ] | null ;
3906- /**
3907- * @description The contents of the assistant message. Required unless `tool_calls` or
3908- * `function_call` is specified.
3909- */
3910- content ?: ( string | ( ( components [ "schemas" ] [ "ChatCompletionContentPartText" ] | components [ "schemas" ] [ "ChatCompletionContentPartRefusal" ] ) [ ] ) ) | null ;
3911- /** @deprecated */
3912- function_call ?: components [ "schemas" ] [ "ChatCompletionAssistantMessageParam.FunctionCall" ] | null ;
3913- /**
3914- * @description An optional name for the participant. Provides the model information to
3915- * differentiate between participants of the same role.
3916- */
3917- name ?: string ;
3918- /** @description The refusal message by the assistant. */
3919- refusal ?: string | null ;
3920- /** @description The tool calls generated by the model, such as function calls. */
3921- tool_calls ?: components [ "schemas" ] [ "ChatCompletionMessageToolCall" ] [ ] ;
3922- } ;
3923- ChatCompletionToolMessageParam : {
3924- /** @description The contents of the tool message. */
3925- content : string | components [ "schemas" ] [ "ChatCompletionContentPartText" ] [ ] ;
3926- /**
3927- * @description The role of the messages author, in this case `tool`.
3928- * @enum {string}
3929- */
3930- role : "tool" ;
3931- /** @description Tool call that this message is responding to. */
3932- tool_call_id : string ;
3933- } ;
3934- /** @deprecated */
3935- ChatCompletionFunctionMessageParam : {
3936- /** @description The contents of the function message. */
3937- content : string | null ;
3938- /** @description The name of the function to call. */
3939- name : string ;
3940- /**
3941- * @description The role of the messages author, in this case `function`.
3942- * @enum {string}
3943- */
3944- role : "function" ;
3945- } ;
3946- /**
3947- * @description Developer-provided instructions that the model should follow, regardless of
3948- * messages sent by the user. With o1 models and newer, `developer` messages
3949- * replace the previous `system` messages.
3950- */
3951- ChatCompletionMessageParam : components [ "schemas" ] [ "ChatCompletionDeveloperMessageParam" ] | components [ "schemas" ] [ "ChatCompletionSystemMessageParam" ] | components [ "schemas" ] [ "ChatCompletionUserMessageParam" ] | components [ "schemas" ] [ "ChatCompletionAssistantMessageParam" ] | components [ "schemas" ] [ "ChatCompletionToolMessageParam" ] | components [ "schemas" ] [ "ChatCompletionFunctionMessageParam" ] ;
39523734 "ResultSuccess__success-boolean__" : {
39533735 data : {
39543736 success : boolean ;
@@ -7642,7 +7424,7 @@ export interface operations {
76427424 posthogSession ?: string ;
76437425 [ key : string ] : unknown ;
76447426 } ;
7645- messages : components [ "schemas" ] [ "ChatCompletionMessageParam" ] [ ] ;
7427+ messages : unknown [ ] ;
76467428 } ;
76477429 } ;
76487430 } ;
@@ -7700,6 +7482,16 @@ export interface operations {
77007482 } ;
77017483 } ;
77027484 } ;
7485+ CreateAndEscalateThread : {
7486+ responses : {
7487+ /** @description Ok */
7488+ 200 : {
7489+ content : {
7490+ "application/json" : components [ "schemas" ] [ "Result_InAppThread.string_" ] ;
7491+ } ;
7492+ } ;
7493+ } ;
7494+ } ;
77037495 GetAllThreads : {
77047496 responses : {
77057497 /** @description Ok */
0 commit comments