@mastra/openai 1.0.1-alpha.2 → 1.0.1-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@mastra/core"),t=require("@hey-api/client-fetch"),o=require("zod");function a(e,t,o,a,n,r,i){try{var l=e[r](i),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(a,n)}function n(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function l(e){a(i,n,r,l,s,"next",e)}function s(e){a(i,n,r,l,s,"throw",e)}l(void 0)}))}}function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},r.apply(null,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function l(){l=function(){return t};var e,t={},o=Object.prototype,a=o.hasOwnProperty,n=Object.defineProperty||function(e,t,o){e[t]=o.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function z(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{z({},"")}catch(e){z=function(e,t,o){return e[t]=o}}function u(e,t,o,a){var r=Object.create((t&&t.prototype instanceof j?t:j).prototype),i=new P(a||[]);return n(r,"_invoke",{value:A(e,o,i)}),r}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",m="suspendedYield",b="executing",h="completed",g={};function j(){}function f(){}function v(){}var S={};z(S,i,(function(){return this}));var _=Object.getPrototypeOf,y=_&&_(_(x([])));y&&y!==o&&a.call(y,i)&&(S=y);var R=v.prototype=j.prototype=Object.create(S);function w(e){["next","throw","return"].forEach((function(t){z(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function o(n,r,i,l){var s=p(e[n],e,r);if("throw"!==s.type){var c=s.arg,z=c.value;return z&&"object"==typeof z&&a.call(z,"__await")?t.resolve(z.__await).then((function(e){o("next",e,i,l)}),(function(e){o("throw",e,i,l)})):t.resolve(z).then((function(e){c.value=e,i(c)}),(function(e){return o("throw",e,i,l)}))}l(s.arg)}var r;n(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,n){o(e,a,t,n)}))}return r=r?r.then(n,n):n()}})}function A(t,o,a){var n=d;return function(r,i){if(n===b)throw Error("Generator is already running");if(n===h){if("throw"===r)throw i;return{value:e,done:!0}}for(a.method=r,a.arg=i;;){var l=a.delegate;if(l){var s=D(l,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===d)throw n=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=b;var c=p(t,o,a);if("normal"===c.type){if(n=a.done?h:m,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(n=h,a.method="throw",a.arg=c.arg)}}}function D(t,o){var a=o.method,n=t.iterator[a];if(n===e)return o.delegate=null,"throw"===a&&t.iterator.return&&(o.method="return",o.arg=e,D(t,o),"throw"===o.method)||"return"!==a&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=p(n,t.iterator,o.arg);if("throw"===r.type)return o.method="throw",o.arg=r.arg,o.delegate=null,g;var i=r.arg;return i?i.done?(o[t.resultName]=i.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=e),o.delegate=null,g):i:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function x(t){if(t||""===t){var o=t[i];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function o(){for(;++n<t.length;)if(a.call(t,n))return o.value=t[n],o.done=!1,o;return o.value=e,o.done=!0,o};return r.next=r}}throw new TypeError(typeof t+" is not iterable")}return f.prototype=v,n(R,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=z(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,z(e,c,"GeneratorFunction")),e.prototype=Object.create(R),e},t.awrap=function(e){return{__await:e}},w(k.prototype),z(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,o,a,n,r){void 0===r&&(r=Promise);var i=new k(u(e,o,a,n),r);return t.isGeneratorFunction(o)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(R),z(R,c,"Generator"),z(R,i,(function(){return this})),z(R,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var a in t)o.push(a);return o.reverse(),function e(){for(;o.length;){var a=o.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=x,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var o in this)"t"===o.charAt(0)&&a.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var o=this;function n(a,n){return l.type="throw",l.arg=t,o.next=a,n&&(o.method="next",o.arg=e),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var i=r?r.completion:{};return i.type=e,i.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),T(o),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var a=o.completion;if("throw"===a.type){var n=a.arg;T(o)}return n}}throw Error("illegal catch attempt")},delegateYield:function(t,o,a){return this.delegate={iterator:x(t),resultName:o,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var z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DN5AHAzeQBwM3kAcDN5AHAzeQBwM3kAcDN9D8BAAD//5hv5e0JvZsRAAAAAElFTkSuQmCC",u={createChatCompletion:{comment:"Creates a model response for the given chat conversation.",doc:"Creates a model response for the given chat conversation."},createCompletion:{comment:"Creates a completion for the provided prompt and parameters.",doc:"Creates a completion for the provided prompt and parameters."},createImage:{comment:"Creates an image given a prompt.",doc:"Creates an image given a prompt."},createImageEdit:{comment:"Creates an edited or extended image given an original image and a prompt.",doc:"Creates an edited or extended image given an original image and a prompt."},createImageVariation:{comment:"Creates a variation of a given image.",doc:"Creates a variation of a given image."},createEmbedding:{comment:"Creates an embedding vector representing the input text.",doc:"Creates an embedding vector representing the input text."},createSpeech:{comment:"Generates audio from the input text.",doc:"Generates audio from the input text."},createTranscription:{comment:"Transcribes audio into the input language.",doc:"Transcribes audio into the input language."},createTranslation:{comment:"Translates audio into English.",doc:"Translates audio into English."},listFiles:{comment:"Returns a list of files that belong to the user's organization.",doc:"Returns a list of files that belong to the user's organization."},createFile:{comment:"Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.",doc:"Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.\n \n The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.\n \n The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](/docs/api-reference/fine-tuning/chat-input) or [completions](/docs/api-reference/fine-tuning/completions-input) models.\n \n The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](/docs/api-reference/batch/request-input).\n \n Please [contact us](https://help.openai.com/) if you need to increase these storage limits."},deleteFile:{comment:"Delete a file.",doc:"Delete a file."},retrieveFile:{comment:"Returns information about a specific file.",doc:"Returns information about a specific file."},downloadFile:{comment:"Returns the contents of the specified file.",doc:"Returns the contents of the specified file."},createUpload:{comment:"Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.",doc:"Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.\n \n Once you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.\n \n For certain `purpose`s, the correct `mime_type` must be specified. Please refer to documentation for the supported MIME types for your use case:\n - [Assistants](/docs/assistants/tools/file-search/supported-files)\n \n For guidance on the proper filename extensions for each purpose, please follow the documentation on [creating a File](/docs/api-reference/files/create)."},addUploadPart:{comment:"Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.",doc:"Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.\n \n Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.\n \n It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete)."},completeUpload:{comment:"Completes the [Upload](/docs/api-reference/uploads/object).",doc:"Completes the [Upload](/docs/api-reference/uploads/object).\n \n Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.\n \n You can specify the order of the Parts by passing in an ordered list of the Part IDs.\n \n The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed."},cancelUpload:{comment:"Cancels the Upload. No Parts may be added after an Upload is cancelled.",doc:"Cancels the Upload. No Parts may be added after an Upload is cancelled."},createFineTuningJob:{comment:"Creates a fine-tuning job which begins the process of creating a new model from a given dataset.",doc:"Creates a fine-tuning job which begins the process of creating a new model from a given dataset.\n \n Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.\n \n [Learn more about fine-tuning](/docs/guides/fine-tuning)"},listPaginatedFineTuningJobs:{comment:"List your organization's fine-tuning jobs",doc:"List your organization's fine-tuning jobs"},retrieveFineTuningJob:{comment:"Get info about a fine-tuning job.",doc:"Get info about a fine-tuning job.\n \n [Learn more about fine-tuning](/docs/guides/fine-tuning)"},listFineTuningEvents:{comment:"Get status updates for a fine-tuning job.",doc:"Get status updates for a fine-tuning job."},cancelFineTuningJob:{comment:"Immediately cancel a fine-tune job.",doc:"Immediately cancel a fine-tune job."},listFineTuningJobCheckpoints:{comment:"List checkpoints for a fine-tuning job.",doc:"List checkpoints for a fine-tuning job."},listModels:{comment:"Lists the currently available models, and provides basic information about each one such as the owner and availability.",doc:"Lists the currently available models, and provides basic information about each one such as the owner and availability."},retrieveModel:{comment:"Retrieves a model instance, providing basic information about the model such as the owner and permissioning.",doc:"Retrieves a model instance, providing basic information about the model such as the owner and permissioning."},deleteModel:{comment:"Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.",doc:"Delete a fine-tuned model. You must have the Owner role in your organization to delete a model."},createModeration:{comment:"Classifies if text is potentially harmful.",doc:"Classifies if text is potentially harmful."},listAssistants:{comment:"Returns a list of assistants.",doc:"Returns a list of assistants."},createAssistant:{comment:"Create an assistant with a model and instructions.",doc:"Create an assistant with a model and instructions."},getAssistant:{comment:"Retrieves an assistant.",doc:"Retrieves an assistant."},modifyAssistant:{comment:"Modifies an assistant.",doc:"Modifies an assistant."},deleteAssistant:{comment:"Delete an assistant.",doc:"Delete an assistant."},createThread:{comment:"Create a thread.",doc:"Create a thread."},getThread:{comment:"Retrieves a thread.",doc:"Retrieves a thread."},modifyThread:{comment:"Modifies a thread.",doc:"Modifies a thread."},deleteThread:{comment:"Delete a thread.",doc:"Delete a thread."},listMessages:{comment:"Returns a list of messages for a given thread.",doc:"Returns a list of messages for a given thread."},createMessage:{comment:"Create a message.",doc:"Create a message."},getMessage:{comment:"Retrieve a message.",doc:"Retrieve a message."},modifyMessage:{comment:"Modifies a message.",doc:"Modifies a message."},deleteMessage:{comment:"Deletes a message.",doc:"Deletes a message."},createThreadAndRun:{comment:"Create a thread and run it in one request.",doc:"Create a thread and run it in one request."},listRuns:{comment:"Returns a list of runs belonging to a thread.",doc:"Returns a list of runs belonging to a thread."},createRun:{comment:"Create a run.",doc:"Create a run."},getRun:{comment:"Retrieves a run.",doc:"Retrieves a run."},modifyRun:{comment:"Modifies a run.",doc:"Modifies a run."},submitToolOuputsToRun:{comment:'When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they\'re all completed. All outputs must be submitted in a single request.',doc:'When a run has the `status: "requires_action"` and `required_action.type` is `submit_tool_outputs`, this endpoint can be used to submit the outputs from the tool calls once they\'re all completed. All outputs must be submitted in a single request.'},cancelRun:{comment:"Cancels a run that is `in_progress`.",doc:"Cancels a run that is `in_progress`."},listRunSteps:{comment:"Returns a list of run steps belonging to a run.",doc:"Returns a list of run steps belonging to a run."},getRunStep:{comment:"Retrieves a run step.",doc:"Retrieves a run step."},listVectorStores:{comment:"Returns a list of vector stores.",doc:"Returns a list of vector stores."},createVectorStore:{comment:"Create a vector store.",doc:"Create a vector store."},getVectorStore:{comment:"Retrieves a vector store.",doc:"Retrieves a vector store."},modifyVectorStore:{comment:"Modifies a vector store.",doc:"Modifies a vector store."},deleteVectorStore:{comment:"Delete a vector store.",doc:"Delete a vector store."},listVectorStoreFiles:{comment:"Returns a list of vector store files.",doc:"Returns a list of vector store files."},createVectorStoreFile:{comment:"Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object).",doc:"Create a vector store file by attaching a [File](/docs/api-reference/files) to a [vector store](/docs/api-reference/vector-stores/object)."},getVectorStoreFile:{comment:"Retrieves a vector store file.",doc:"Retrieves a vector store file."},deleteVectorStoreFile:{comment:"Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint.",doc:"Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the [delete file](/docs/api-reference/files/delete) endpoint."},createVectorStoreFileBatch:{comment:"Create a vector store file batch.",doc:"Create a vector store file batch."},getVectorStoreFileBatch:{comment:"Retrieves a vector store file batch.",doc:"Retrieves a vector store file batch."},cancelVectorStoreFileBatch:{comment:"Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.",doc:"Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible."},listFilesInVectorStoreBatch:{comment:"Returns a list of vector store files in a batch.",doc:"Returns a list of vector store files in a batch."},createBatch:{comment:"Creates and executes a batch from an uploaded file of requests",doc:"Creates and executes a batch from an uploaded file of requests"},listBatches:{comment:"List your organization's batches.",doc:"List your organization's batches."},retrieveBatch:{comment:"Retrieves a batch.",doc:"Retrieves a batch."},cancelBatch:{comment:"Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file.",doc:"Cancels an in-progress batch. The batch will be in status `cancelling` for up to 10 minutes, before changing to `cancelled`, where it will have partial results (if any) available in the output file."},listAuditLogs:{comment:"List user actions and configuration changes within this organization.",doc:"List user actions and configuration changes within this organization."},listInvites:{comment:"Returns a list of invites in the organization.",doc:"Returns a list of invites in the organization."},inviteUser:{comment:"Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization.",doc:"Create an invite for a user to the organization. The invite must be accepted by the user before they have access to the organization."},retrieveInvite:{comment:"Retrieves an invite.",doc:"Retrieves an invite."},deleteInvite:{comment:"Delete an invite. If the invite has already been accepted, it cannot be deleted.",doc:"Delete an invite. If the invite has already been accepted, it cannot be deleted."},listUsers:{comment:"Lists all of the users in the organization.",doc:"Lists all of the users in the organization."},retrieveUser:{comment:"Retrieves a user by their identifier.",doc:"Retrieves a user by their identifier."},modifyUser:{comment:"Modifies a user's role in the organization.",doc:"Modifies a user's role in the organization."},deleteUser:{comment:"Deletes a user from the organization.",doc:"Deletes a user from the organization."},listProjects:{comment:"Returns a list of projects.",doc:"Returns a list of projects."},createProject:{comment:"Create a new project in the organization. Projects can be created and archived, but cannot be deleted.",doc:"Create a new project in the organization. Projects can be created and archived, but cannot be deleted."},retrieveProject:{comment:"Retrieves a project.",doc:"Retrieves a project."},modifyProject:{comment:"Modifies a project in the organization.",doc:"Modifies a project in the organization."},archiveProject:{comment:"Archives a project in the organization. Archived projects cannot be used or updated.",doc:"Archives a project in the organization. Archived projects cannot be used or updated."},listProjectUsers:{comment:"Returns a list of users in the project.",doc:"Returns a list of users in the project."},createProjectUser:{comment:"Adds a user to the project. Users must already be members of the organization to be added to a project.",doc:"Adds a user to the project. Users must already be members of the organization to be added to a project."},retrieveProjectUser:{comment:"Retrieves a user in the project.",doc:"Retrieves a user in the project."},modifyProjectUser:{comment:"Modifies a user's role in the project.",doc:"Modifies a user's role in the project."},deleteProjectUser:{comment:"Deletes a user from the project.",doc:"Deletes a user from the project."},listProjectServiceAccounts:{comment:"Returns a list of service accounts in the project.",doc:"Returns a list of service accounts in the project."},createProjectServiceAccount:{comment:"Creates a new service account in the project. This also returns an unredacted API key for the service account.",doc:"Creates a new service account in the project. This also returns an unredacted API key for the service account."},retrieveProjectServiceAccount:{comment:"Retrieves a service account in the project.",doc:"Retrieves a service account in the project."},deleteProjectServiceAccount:{comment:"Deletes a service account from the project.",doc:"Deletes a service account from the project."},listProjectApiKeys:{comment:"Returns a list of API keys in the project.",doc:"Returns a list of API keys in the project."},retrieveProjectApiKey:{comment:"Retrieves an API key in the project.",doc:"Retrieves an API key in the project."},deleteProjectApiKey:{comment:"Deletes an API key from the project.",doc:"Deletes an API key from the project."}},p=t.createClient(t.createConfig()),d={__proto__:null,addUploadPart:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/uploads/{upload_id}/parts"}))},archiveProject:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects/{project_id}/archive"}))},cancelBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/batches/{batch_id}/cancel"}))},cancelFineTuningJob:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/fine_tuning/jobs/{fine_tuning_job_id}/cancel"}))},cancelRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/runs/{run_id}/cancel"}))},cancelUpload:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/uploads/{upload_id}/cancel"}))},cancelVectorStoreFileBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/vector_stores/{vector_store_id}/file_batches/{batch_id}/cancel"}))},client:p,completeUpload:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/uploads/{upload_id}/complete"}))},createAssistant:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/assistants"}))},createBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/batches"}))},createChatCompletion:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/chat/completions"}))},createCompletion:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/completions"}))},createEmbedding:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/embeddings"}))},createFile:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/files"}))},createFineTuningJob:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/fine_tuning/jobs"}))},createImage:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/images/generations"}))},createImageEdit:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/images/edits"}))},createImageVariation:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/images/variations"}))},createMessage:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/messages"}))},createModeration:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/moderations"}))},createProject:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects"}))},createProjectServiceAccount:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects/{project_id}/service_accounts"}))},createProjectUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects/{project_id}/users"}))},createRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/runs"}))},createSpeech:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/audio/speech"}))},createThread:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads"}))},createThreadAndRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/runs"}))},createTranscription:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/audio/transcriptions"}))},createTranslation:function(e){var o;return(null!=(o=null==e?void 0:e.client)?o:p).post(r({},e,t.formDataBodySerializer,{headers:r({"Content-Type":null},null==e?void 0:e.headers),url:"/audio/translations"}))},createUpload:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/uploads"}))},createVectorStore:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/vector_stores"}))},createVectorStoreFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/vector_stores/{vector_store_id}/files"}))},createVectorStoreFileBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/vector_stores/{vector_store_id}/file_batches"}))},deleteAssistant:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/assistants/{assistant_id}"}))},deleteFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/files/{file_id}"}))},deleteInvite:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/organization/invites/{invite_id}"}))},deleteMessage:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/threads/{thread_id}/messages/{message_id}"}))},deleteModel:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/models/{model}"}))},deleteProjectApiKey:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/organization/projects/{project_id}/api_keys/{key_id}"}))},deleteProjectServiceAccount:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/organization/projects/{project_id}/service_accounts/{service_account_id}"}))},deleteProjectUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/organization/projects/{project_id}/users/{user_id}"}))},deleteThread:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/threads/{thread_id}"}))},deleteUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/organization/users/{user_id}"}))},deleteVectorStore:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/vector_stores/{vector_store_id}"}))},deleteVectorStoreFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).delete(r({},e,{url:"/vector_stores/{vector_store_id}/files/{file_id}"}))},downloadFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/files/{file_id}/content"}))},getAssistant:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/assistants/{assistant_id}"}))},getMessage:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/messages/{message_id}"}))},getRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/runs/{run_id}"}))},getRunStep:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/runs/{run_id}/steps/{step_id}"}))},getThread:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}"}))},getVectorStore:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores/{vector_store_id}"}))},getVectorStoreFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores/{vector_store_id}/files/{file_id}"}))},getVectorStoreFileBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores/{vector_store_id}/file_batches/{batch_id}"}))},inviteUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/invites"}))},listAssistants:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/assistants"}))},listAuditLogs:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/audit_logs"}))},listBatches:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/batches"}))},listFiles:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/files"}))},listFilesInVectorStoreBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores/{vector_store_id}/file_batches/{batch_id}/files"}))},listFineTuningEvents:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/fine_tuning/jobs/{fine_tuning_job_id}/events"}))},listFineTuningJobCheckpoints:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints"}))},listInvites:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/invites"}))},listMessages:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/messages"}))},listModels:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/models"}))},listPaginatedFineTuningJobs:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/fine_tuning/jobs"}))},listProjectApiKeys:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/api_keys"}))},listProjectServiceAccounts:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/service_accounts"}))},listProjectUsers:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/users"}))},listProjects:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects"}))},listRunSteps:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/runs/{run_id}/steps"}))},listRuns:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/threads/{thread_id}/runs"}))},listUsers:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/users"}))},listVectorStoreFiles:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores/{vector_store_id}/files"}))},listVectorStores:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/vector_stores"}))},modifyAssistant:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/assistants/{assistant_id}"}))},modifyMessage:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/messages/{message_id}"}))},modifyProject:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects/{project_id}"}))},modifyProjectUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/projects/{project_id}/users/{user_id}"}))},modifyRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/runs/{run_id}"}))},modifyThread:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}"}))},modifyUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/organization/users/{user_id}"}))},modifyVectorStore:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/vector_stores/{vector_store_id}"}))},retrieveBatch:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/batches/{batch_id}"}))},retrieveFile:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/files/{file_id}"}))},retrieveFineTuningJob:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/fine_tuning/jobs/{fine_tuning_job_id}"}))},retrieveInvite:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/invites/{invite_id}"}))},retrieveModel:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/models/{model}"}))},retrieveProject:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}"}))},retrieveProjectApiKey:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/api_keys/{key_id}"}))},retrieveProjectServiceAccount:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/service_accounts/{service_account_id}"}))},retrieveProjectUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/projects/{project_id}/users/{user_id}"}))},retrieveUser:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).get(r({},e,{url:"/organization/users/{user_id}"}))},submitToolOuputsToRun:function(e){var t;return(null!=(t=null==e?void 0:e.client)?t:p).post(r({},e,{url:"/threads/{thread_id}/runs/{run_id}/submit_tool_outputs"}))}},m=o.z.object({type:o.z.literal("code_interpreter")}),b=o.z.object({type:o.z.literal("file_search"),file_search:o.z.object({max_num_results:o.z.number().optional()}).optional()}),h=o.z.literal("assistant"),g=o.z.object({type:o.z.literal("text")}),j=o.z.object({type:o.z.literal("json_object")}),f=o.z.object({type:o.z.union([o.z.literal("function"),o.z.literal("code_interpreter"),o.z.literal("file_search")]),function:o.z.object({name:o.z.string()}).optional()}),v=o.z.union([o.z.literal("function"),o.z.literal("code_interpreter"),o.z.literal("file_search")]),S=o.z.object({event:o.z.literal("done"),data:o.z.literal("[DONE]")}),_=o.z.literal("code_interpreter"),y=o.z.literal("file_search"),R=o.z.object({type:o.z.literal("file_search")}),w=o.z.literal("function"),k=o.z.union([o.z.literal("api_key.created"),o.z.literal("api_key.updated"),o.z.literal("api_key.deleted"),o.z.literal("invite.sent"),o.z.literal("invite.accepted"),o.z.literal("invite.deleted"),o.z.literal("login.succeeded"),o.z.literal("login.failed"),o.z.literal("logout.succeeded"),o.z.literal("logout.failed"),o.z.literal("organization.updated"),o.z.literal("project.created"),o.z.literal("project.updated"),o.z.literal("project.archived"),o.z.literal("service_account.created"),o.z.literal("service_account.updated"),o.z.literal("service_account.deleted"),o.z.literal("user.added"),o.z.literal("user.updated"),o.z.literal("user.deleted")]),A=o.z.union([o.z.literal("session"),o.z.literal("api_key")]),D=o.z.object({id:o.z.string().optional(),email:o.z.string().optional()}),C=o.z.object({id:o.z.string().optional()}),T=o.z.union([o.z.literal("user"),o.z.literal("service_account")]),P=o.z.object({user:D.optional(),ip_address:o.z.string().optional()}),x=o.z.object({type:o.z.literal("auto")}),F=o.z.literal("auto"),E=o.z.object({id:o.z.string(),object:o.z.literal("batch"),endpoint:o.z.string(),errors:o.z.object({object:o.z.string().optional(),data:o.z.array(o.z.object({code:o.z.string().optional(),message:o.z.string().optional(),param:o.z.string().optional().nullable(),line:o.z.number().optional().nullable()})).optional()}).optional(),input_file_id:o.z.string(),completion_window:o.z.string(),status:o.z.union([o.z.literal("validating"),o.z.literal("failed"),o.z.literal("in_progress"),o.z.literal("finalizing"),o.z.literal("completed"),o.z.literal("expired"),o.z.literal("cancelling"),o.z.literal("cancelled")]),output_file_id:o.z.string().optional(),error_file_id:o.z.string().optional(),created_at:o.z.number(),in_progress_at:o.z.number().optional(),expires_at:o.z.number().optional(),finalizing_at:o.z.number().optional(),completed_at:o.z.number().optional(),failed_at:o.z.number().optional(),expired_at:o.z.number().optional(),cancelling_at:o.z.number().optional(),cancelled_at:o.z.number().optional(),request_counts:o.z.object({total:o.z.number(),completed:o.z.number(),failed:o.z.number()}).optional(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),U=o.z.literal("batch"),O=o.z.union([o.z.literal("validating"),o.z.literal("failed"),o.z.literal("in_progress"),o.z.literal("finalizing"),o.z.literal("completed"),o.z.literal("expired"),o.z.literal("cancelling"),o.z.literal("cancelled")]),q=o.z.object({custom_id:o.z.string().optional(),method:o.z.literal("POST").optional(),url:o.z.string().optional()}),M=o.z.literal("POST"),V=o.z.object({id:o.z.string().optional(),custom_id:o.z.string().optional(),response:o.z.object({status_code:o.z.number().optional(),request_id:o.z.string().optional(),body:o.z.record(o.z.unknown()).optional()}).optional().nullable(),error:o.z.object({code:o.z.string().optional(),message:o.z.string().optional()}).optional().nullable()}),L=o.z.record(o.z.unknown()),I=o.z.object({name:o.z.string()}),B=o.z.record(o.z.unknown()),J=o.z.object({id:o.z.string(),type:o.z.literal("function"),function:o.z.object({name:o.z.string(),arguments:o.z.string()})}),N=o.z.object({index:o.z.number(),id:o.z.string().optional(),type:o.z.literal("function").optional(),function:o.z.object({name:o.z.string().optional(),arguments:o.z.string().optional()}).optional()}),K=o.z.array(J),G=o.z.object({type:o.z.literal("function"),function:o.z.object({name:o.z.string()})}),Z=o.z.literal("assistant"),H=o.z.object({type:o.z.literal("text"),text:o.z.string()}),X=o.z.object({type:o.z.literal("refusal"),refusal:o.z.string()}),Y=o.z.object({role:o.z.literal("function"),content:o.z.string().nullable(),name:o.z.string()}),Q=o.z.literal("function"),W=o.z.object({type:o.z.literal("image_url"),image_url:o.z.object({url:o.z.string(),detail:o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]).optional()})}),$=o.z.literal("image_url"),ee=o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]),te=o.z.literal("refusal"),oe=o.z.literal("text"),ae=H,ne=o.z.literal("system"),re=H,ie=o.z.literal("tool"),le=o.z.union([H,W]),se=o.z.literal("user"),ce=o.z.object({content:o.z.string().nullable(),refusal:o.z.string().nullable(),tool_calls:K.optional(),role:o.z.literal("assistant"),function_call:o.z.object({arguments:o.z.string(),name:o.z.string()}).optional()}),ze=o.z.union([o.z.literal("system"),o.z.literal("user"),o.z.literal("assistant"),o.z.literal("tool"),o.z.literal("function")]),ue=o.z.object({include_usage:o.z.boolean().optional()}).nullable(),pe=o.z.object({content:o.z.string().optional().nullable(),function_call:o.z.object({arguments:o.z.string().optional(),name:o.z.string().optional()}).optional(),tool_calls:o.z.array(N).optional(),role:o.z.union([o.z.literal("system"),o.z.literal("user"),o.z.literal("assistant"),o.z.literal("tool")]).optional(),refusal:o.z.string().optional().nullable()}),de=o.z.union([o.z.literal("system"),o.z.literal("user"),o.z.literal("assistant"),o.z.literal("tool")]),me=o.z.object({token:o.z.string(),logprob:o.z.number(),bytes:o.z.array(o.z.number()).nullable(),top_logprobs:o.z.array(o.z.object({token:o.z.string(),logprob:o.z.number(),bytes:o.z.array(o.z.number()).nullable()}))}),be=o.z.object({description:o.z.string().optional(),name:o.z.string(),parameters:B.optional(),strict:o.z.boolean().optional().nullable()}),he=o.z.union([o.z.literal("none"),o.z.literal("auto"),o.z.literal("required"),G]),ge=o.z.object({part_ids:o.z.array(o.z.string()),md5:o.z.string().optional()}),je=o.z.object({completion_tokens:o.z.number(),prompt_tokens:o.z.number(),total_tokens:o.z.number()}),fe=o.z.object({type:o.z.literal("function"),function:be}),ve=o.z.object({id:o.z.string(),choices:o.z.array(o.z.object({finish_reason:o.z.union([o.z.literal("stop"),o.z.literal("length"),o.z.literal("function_call"),o.z.literal("content_filter")]),index:o.z.number(),message:ce})),created:o.z.number(),model:o.z.string(),system_fingerprint:o.z.string().optional(),object:o.z.literal("chat.completion"),usage:je.optional()}),Se=o.z.literal("chat.completion"),_e=o.z.record(o.z.unknown()),ye=o.z.object({type:o.z.literal("function"),function:be}),Re=o.z.boolean().nullable(),we=o.z.object({description:o.z.string().optional(),name:o.z.string(),parameters:B.optional()}),ke=o.z.union([o.z.literal("auto"),o.z.literal("default")]),Ae=o.z.object({id:o.z.string(),choices:o.z.array(o.z.object({finish_reason:o.z.union([o.z.literal("stop"),o.z.literal("length"),o.z.literal("tool_calls"),o.z.literal("content_filter"),o.z.literal("function_call")]),index:o.z.number(),message:ce,logprobs:o.z.object({content:o.z.array(me).nullable(),refusal:o.z.array(me).nullable()}).optional().nullable()})),created:o.z.number(),model:o.z.string(),service_tier:o.z.union([o.z.literal("scale"),o.z.literal("default")]).optional().nullable(),system_fingerprint:o.z.string().optional(),object:o.z.literal("chat.completion"),usage:je.optional()}),De=o.z.union([o.z.literal("scale"),o.z.literal("default")]),Ce=o.z.object({id:o.z.string(),choices:o.z.array(o.z.object({delta:pe,logprobs:o.z.object({content:o.z.array(me).nullable(),refusal:o.z.array(me).nullable()}).optional().nullable(),finish_reason:o.z.union([o.z.literal("stop"),o.z.literal("length"),o.z.literal("tool_calls"),o.z.literal("content_filter"),o.z.literal("function_call")]).nullable(),index:o.z.number()})),created:o.z.number(),model:o.z.string(),service_tier:o.z.union([o.z.literal("scale"),o.z.literal("default")]).optional().nullable(),system_fingerprint:o.z.string().optional(),object:o.z.literal("chat.completion.chunk"),usage:o.z.object({completion_tokens:o.z.number(),prompt_tokens:o.z.number(),total_tokens:o.z.number()}).optional()}),Te=o.z.literal("chat.completion.chunk"),Pe=o.z.object({model:o.z.union([o.z.string(),o.z.literal("gpt-3.5-turbo-instruct"),o.z.literal("davinci-002"),o.z.literal("babbage-002")]),prompt:o.z.union([o.z.string(),o.z.array(o.z.string()),o.z.array(o.z.number()),o.z.array(o.z.array(o.z.number()))]).nullable(),best_of:o.z.number().optional().nullable(),echo:o.z.boolean().optional().nullable(),frequency_penalty:o.z.number().optional().nullable(),logit_bias:o.z.record(o.z.number()).optional().nullable(),logprobs:o.z.number().optional().nullable(),max_tokens:o.z.number().optional().nullable(),n:o.z.number().optional().nullable(),presence_penalty:o.z.number().optional().nullable(),seed:o.z.number().optional().nullable(),stop:o.z.union([o.z.string(),o.z.array(o.z.string())]).optional().nullable(),stream:o.z.boolean().optional().nullable(),stream_options:ue.optional(),suffix:o.z.string().optional().nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),user:o.z.string().optional()}),xe=o.z.object({id:o.z.string(),choices:o.z.array(o.z.object({finish_reason:o.z.union([o.z.literal("stop"),o.z.literal("length"),o.z.literal("content_filter")]),index:o.z.number(),logprobs:o.z.object({text_offset:o.z.array(o.z.number()).optional(),token_logprobs:o.z.array(o.z.number()).optional(),tokens:o.z.array(o.z.string()).optional(),top_logprobs:o.z.array(o.z.record(o.z.number())).optional()}).nullable(),text:o.z.string()})),created:o.z.number(),model:o.z.string(),system_fingerprint:o.z.string().optional(),object:o.z.literal("text_completion"),usage:je.optional()}),Fe=o.z.literal("text_completion"),Ee=o.z.object({input:o.z.union([o.z.string(),o.z.array(o.z.string()),o.z.array(o.z.number()),o.z.array(o.z.array(o.z.number()))]),model:o.z.union([o.z.string(),o.z.literal("text-embedding-ada-002"),o.z.literal("text-embedding-3-small"),o.z.literal("text-embedding-3-large")]),encoding_format:o.z.union([o.z.literal("float"),o.z.literal("base64")]).optional(),dimensions:o.z.number().optional().nullable(),user:o.z.string().optional()}),Ue=o.z.union([o.z.literal("float"),o.z.literal("base64")]),Oe=o.z.object({index:o.z.number(),embedding:o.z.array(o.z.number()),object:o.z.literal("embedding")}),qe=o.z.literal("list"),Me=o.z.union([o.z.literal("assistants"),o.z.literal("batch"),o.z.literal("fine-tune"),o.z.literal("vision")]),Ve=o.z.object({model:o.z.union([o.z.string(),o.z.literal("babbage-002"),o.z.literal("davinci-002"),o.z.literal("gpt-3.5-turbo"),o.z.literal("gpt-4o-mini")]),training_file:o.z.string(),hyperparameters:o.z.object({batch_size:o.z.union([o.z.literal("auto"),o.z.number()]).optional(),learning_rate_multiplier:o.z.union([o.z.literal("auto"),o.z.number()]).optional(),n_epochs:o.z.union([o.z.literal("auto"),o.z.number()]).optional()}).optional(),suffix:o.z.string().optional().nullable(),validation_file:o.z.string().optional().nullable(),integrations:o.z.array(o.z.object({type:o.z.literal("wandb"),wandb:o.z.object({project:o.z.string(),name:o.z.string().optional().nullable(),entity:o.z.string().optional().nullable(),tags:o.z.array(o.z.string()).optional()})})).optional().nullable(),seed:o.z.number().optional().nullable()}),Le=o.z.union([o.z.literal("256x256"),o.z.literal("512x512"),o.z.literal("1024x1024")]),Ie=o.z.union([o.z.literal("url"),o.z.literal("b64_json")]),Be=o.z.object({prompt:o.z.string(),model:o.z.union([o.z.string(),o.z.literal("dall-e-2"),o.z.literal("dall-e-3")]).optional().nullable(),n:o.z.number().optional().nullable(),quality:o.z.union([o.z.literal("standard"),o.z.literal("hd")]).optional(),response_format:o.z.union([o.z.literal("url"),o.z.literal("b64_json")]).optional().nullable(),size:o.z.union([o.z.literal("256x256"),o.z.literal("512x512"),o.z.literal("1024x1024"),o.z.literal("1792x1024"),o.z.literal("1024x1792")]).optional().nullable(),style:o.z.union([o.z.literal("vivid"),o.z.literal("natural")]).optional().nullable(),user:o.z.string().optional()}),Je=o.z.union([o.z.literal("standard"),o.z.literal("hd")]),Ne=o.z.union([o.z.literal("256x256"),o.z.literal("512x512"),o.z.literal("1024x1024"),o.z.literal("1792x1024"),o.z.literal("1024x1792")]),Ke=o.z.union([o.z.literal("vivid"),o.z.literal("natural")]),Ge=o.z.object({type:o.z.literal("image_file"),image_file:o.z.object({file_id:o.z.string(),detail:o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]).optional()})}),Ze=o.z.object({type:o.z.literal("image_url"),image_url:o.z.object({url:o.z.string(),detail:o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]).optional()})}),He=o.z.object({type:o.z.literal("text"),text:o.z.string()}),Xe=o.z.union([o.z.literal("user"),o.z.literal("assistant")]),Ye=o.z.object({input:o.z.union([o.z.string(),o.z.array(o.z.string())]),model:o.z.union([o.z.string(),o.z.literal("text-moderation-latest"),o.z.literal("text-moderation-stable")]).optional()}),Qe=o.z.object({id:o.z.string(),model:o.z.string(),results:o.z.array(o.z.object({flagged:o.z.boolean(),categories:o.z.object({hate:o.z.boolean(),"hate/threatening":o.z.boolean(),harassment:o.z.boolean(),"harassment/threatening":o.z.boolean(),"self-harm":o.z.boolean(),"self-harm/intent":o.z.boolean(),"self-harm/instructions":o.z.boolean(),sexual:o.z.boolean(),"sexual/minors":o.z.boolean(),violence:o.z.boolean(),"violence/graphic":o.z.boolean()}),category_scores:o.z.object({hate:o.z.number(),"hate/threatening":o.z.number(),harassment:o.z.number(),"harassment/threatening":o.z.number(),"self-harm":o.z.number(),"self-harm/intent":o.z.number(),"self-harm/instructions":o.z.number(),sexual:o.z.number(),"sexual/minors":o.z.number(),violence:o.z.number(),"violence/graphic":o.z.number()})}))}),We=o.z.object({role:o.z.union([o.z.literal("user"),o.z.literal("assistant")]),content:o.z.union([o.z.string(),o.z.array(o.z.union([Ge,Ze,He]))]),attachments:o.z.array(o.z.object({file_id:o.z.string().optional(),tools:o.z.array(o.z.union([m,R])).optional()})).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),$e=o.z.object({type:o.z.union([o.z.literal("auto"),o.z.literal("last_messages")]),last_messages:o.z.number().optional().nullable()}),et=o.z.union([o.z.literal("none"),o.z.literal("auto"),o.z.literal("required"),f]),tt=o.z.object({model:o.z.union([o.z.string(),o.z.literal("tts-1"),o.z.literal("tts-1-hd")]),input:o.z.string(),voice:o.z.union([o.z.literal("alloy"),o.z.literal("echo"),o.z.literal("fable"),o.z.literal("onyx"),o.z.literal("nova"),o.z.literal("shimmer")]),response_format:o.z.union([o.z.literal("mp3"),o.z.literal("opus"),o.z.literal("aac"),o.z.literal("flac"),o.z.literal("wav"),o.z.literal("pcm")]).optional(),speed:o.z.number().optional()}),ot=o.z.union([o.z.literal("alloy"),o.z.literal("echo"),o.z.literal("fable"),o.z.literal("onyx"),o.z.literal("nova"),o.z.literal("shimmer")]),at=o.z.union([o.z.literal("mp3"),o.z.literal("opus"),o.z.literal("aac"),o.z.literal("flac"),o.z.literal("wav"),o.z.literal("pcm")]),nt=o.z.object({messages:o.z.array(We).optional(),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.unknown().and(o.z.object({vector_store_ids:o.z.array(o.z.string()).optional(),vector_stores:o.z.array(o.z.object({file_ids:o.z.array(o.z.string()).optional(),chunking_strategy:o.z.union([o.z.object({type:o.z.literal("auto")}),o.z.object({type:o.z.literal("static"),static:o.z.object({max_chunk_size_tokens:o.z.number(),chunk_overlap_tokens:o.z.number()})})]).optional(),metadata:o.z.record(o.z.unknown()).optional()})).optional()})).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),rt=o.z.union([o.z.literal("json"),o.z.literal("text"),o.z.literal("srt"),o.z.literal("verbose_json"),o.z.literal("vtt")]),it=o.z.object({text:o.z.string()}),lt=o.z.object({word:o.z.string(),start:o.z.number(),end:o.z.number()}),st=o.z.object({id:o.z.number(),seek:o.z.number(),start:o.z.number(),end:o.z.number(),text:o.z.string(),tokens:o.z.array(o.z.number()),temperature:o.z.number(),avg_logprob:o.z.number(),compression_ratio:o.z.number(),no_speech_prob:o.z.number()}),ct=o.z.object({text:o.z.string()}),zt=o.z.object({language:o.z.string(),duration:o.z.string(),text:o.z.string(),segments:o.z.array(st).optional()}),ut=o.z.object({filename:o.z.string(),purpose:o.z.union([o.z.literal("assistants"),o.z.literal("batch"),o.z.literal("fine-tune"),o.z.literal("vision")]),bytes:o.z.number(),mime_type:o.z.string()}),pt=o.z.object({anchor:o.z.literal("last_active_at"),days:o.z.number()}),dt=o.z.object({code:o.z.number(),message:o.z.string()}),mt=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.literal("assistant.deleted")}),bt=o.z.literal("assistant.deleted"),ht=o.z.object({id:o.z.string(),object:o.z.literal("file"),deleted:o.z.boolean()}),gt=o.z.literal("file"),jt=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.literal("thread.message.deleted")}),ft=o.z.literal("thread.message.deleted"),vt=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.string()}),St=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.literal("thread.deleted")}),_t=o.z.literal("thread.deleted"),yt=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.literal("vector_store.file.deleted")}),Rt=o.z.literal("vector_store.file.deleted"),wt=o.z.object({id:o.z.string(),deleted:o.z.boolean(),object:o.z.literal("vector_store.deleted")}),kt=o.z.literal("vector_store.deleted"),At=o.z.literal("done"),Dt=o.z.literal("[DONE]"),Ct=o.z.literal("embedding"),Tt=o.z.object({code:o.z.string().nullable(),message:o.z.string(),param:o.z.string().nullable(),type:o.z.string()}),Pt=o.z.object({event:o.z.literal("error"),data:Tt}),xt=o.z.literal("error"),Ft=o.z.object({error:Tt}),Et=o.z.union([o.z.literal(0),o.z.literal(1)]),Ut=o.z.object({content:o.z.union([o.z.string(),o.z.array(ae)]),role:o.z.literal("system"),name:o.z.string().optional()}),Ot=o.z.object({content:o.z.union([o.z.string(),o.z.array(le)]),role:o.z.literal("user"),name:o.z.string().optional()}),qt=o.z.object({role:o.z.literal("tool"),content:o.z.union([o.z.string(),o.z.array(re)]),tool_call_id:o.z.string()}),Mt=o.z.object({prompt:o.z.string().optional(),completion:o.z.string().optional()}),Vt=o.z.object({type:o.z.literal("wandb"),wandb:o.z.object({project:o.z.string(),name:o.z.string().optional().nullable(),entity:o.z.string().optional().nullable(),tags:o.z.array(o.z.string()).optional()})}),Lt=o.z.literal("wandb"),It=o.z.object({id:o.z.string(),created_at:o.z.number(),error:o.z.object({code:o.z.string(),message:o.z.string(),param:o.z.string().nullable()}).nullable(),fine_tuned_model:o.z.string().nullable(),finished_at:o.z.number().nullable(),hyperparameters:o.z.object({n_epochs:o.z.union([o.z.literal("auto"),o.z.number()])}),model:o.z.string(),object:o.z.literal("fine_tuning.job"),organization_id:o.z.string(),result_files:o.z.array(o.z.string()),status:o.z.union([o.z.literal("validating_files"),o.z.literal("queued"),o.z.literal("running"),o.z.literal("succeeded"),o.z.literal("failed"),o.z.literal("cancelled")]),trained_tokens:o.z.number().nullable(),training_file:o.z.string(),validation_file:o.z.string().nullable(),integrations:o.z.array(Vt).optional().nullable(),seed:o.z.number(),estimated_finish:o.z.number().optional().nullable()}),Bt=o.z.literal("fine_tuning.job"),Jt=o.z.union([o.z.literal("validating_files"),o.z.literal("queued"),o.z.literal("running"),o.z.literal("succeeded"),o.z.literal("failed"),o.z.literal("cancelled")]),Nt=o.z.object({id:o.z.string(),created_at:o.z.number(),fine_tuned_model_checkpoint:o.z.string(),step_number:o.z.number(),metrics:o.z.object({step:o.z.number().optional(),train_loss:o.z.number().optional(),train_mean_token_accuracy:o.z.number().optional(),valid_loss:o.z.number().optional(),valid_mean_token_accuracy:o.z.number().optional(),full_valid_loss:o.z.number().optional(),full_valid_mean_token_accuracy:o.z.number().optional()}),fine_tuning_job_id:o.z.string(),object:o.z.literal("fine_tuning.job.checkpoint")}),Kt=o.z.literal("fine_tuning.job.checkpoint"),Gt=o.z.object({id:o.z.string(),created_at:o.z.number(),level:o.z.union([o.z.literal("info"),o.z.literal("warn"),o.z.literal("error")]),message:o.z.string(),object:o.z.literal("fine_tuning.job.event")}),Zt=o.z.union([o.z.literal("info"),o.z.literal("warn"),o.z.literal("error")]),Ht=o.z.literal("fine_tuning.job.event"),Xt=o.z.object({b64_json:o.z.string().optional(),url:o.z.string().optional(),revised_prompt:o.z.string().optional()}),Yt=o.z.object({created:o.z.number(),data:o.z.array(Xt)}),Qt=o.z.object({object:o.z.literal("organization.invite"),id:o.z.string(),email:o.z.string(),role:o.z.union([o.z.literal("owner"),o.z.literal("reader")]),status:o.z.union([o.z.literal("accepted"),o.z.literal("expired"),o.z.literal("pending")]),invited_at:o.z.number(),expires_at:o.z.number(),accepted_at:o.z.number().optional()}),Wt=o.z.literal("organization.invite"),$t=o.z.union([o.z.literal("owner"),o.z.literal("reader")]),eo=o.z.union([o.z.literal("accepted"),o.z.literal("expired"),o.z.literal("pending")]),to=o.z.object({object:o.z.literal("organization.invite.deleted"),id:o.z.string(),deleted:o.z.boolean()}),oo=o.z.literal("organization.invite.deleted"),ao=o.z.object({object:o.z.literal("list"),data:o.z.array(Qt),first_id:o.z.string().optional(),last_id:o.z.string().optional(),has_more:o.z.boolean().optional()}),no=o.z.object({email:o.z.string(),role:o.z.union([o.z.literal("reader"),o.z.literal("owner")])}),ro=o.z.object({data:o.z.array(E),first_id:o.z.string().optional(),last_id:o.z.string().optional(),has_more:o.z.boolean(),object:o.z.literal("list")}),io=o.z.object({id:o.z.string(),bytes:o.z.number(),created_at:o.z.number(),filename:o.z.string(),object:o.z.literal("file"),purpose:o.z.union([o.z.literal("assistants"),o.z.literal("assistants_output"),o.z.literal("batch"),o.z.literal("batch_output"),o.z.literal("fine-tune"),o.z.literal("fine-tune-results"),o.z.literal("vision")]),status:o.z.union([o.z.literal("uploaded"),o.z.literal("processed"),o.z.literal("error")]),status_details:o.z.string().optional()}),lo=o.z.object({data:o.z.array(Nt),object:o.z.literal("list"),first_id:o.z.string().optional().nullable(),last_id:o.z.string().optional().nullable(),has_more:o.z.boolean()}),so=o.z.object({data:o.z.array(Gt),object:o.z.literal("list")}),co=o.z.object({id:o.z.string(),created:o.z.number(),object:o.z.literal("model"),owned_by:o.z.string()}),zo=o.z.object({data:o.z.array(It),has_more:o.z.boolean(),object:o.z.literal("list")}),uo=o.z.object({id:o.z.string(),object:o.z.literal("thread"),created_at:o.z.number(),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.object({vector_store_ids:o.z.array(o.z.string()).optional()}).optional()}).nullable(),metadata:o.z.record(o.z.unknown()).nullable()}),po=o.z.object({id:o.z.string(),object:o.z.literal("vector_store"),created_at:o.z.number(),name:o.z.string(),usage_bytes:o.z.number(),file_counts:o.z.object({in_progress:o.z.number(),completed:o.z.number(),failed:o.z.number(),cancelled:o.z.number(),total:o.z.number()}),status:o.z.union([o.z.literal("expired"),o.z.literal("in_progress"),o.z.literal("completed")]),expires_after:pt.optional(),expires_at:o.z.number().optional().nullable(),last_active_at:o.z.number().nullable(),metadata:o.z.record(o.z.unknown()).nullable()}),mo=o.z.literal("image_file"),bo=o.z.object({type:o.z.literal("refusal"),refusal:o.z.string()}),ho=o.z.object({type:o.z.literal("file_citation"),text:o.z.string(),file_citation:o.z.object({file_id:o.z.string()}),start_index:o.z.number(),end_index:o.z.number()}),go=o.z.literal("file_citation"),jo=o.z.object({type:o.z.literal("file_path"),text:o.z.string(),file_path:o.z.object({file_id:o.z.string()}),start_index:o.z.number(),end_index:o.z.number()}),fo=o.z.literal("file_path"),vo=o.z.object({type:o.z.literal("text"),text:o.z.object({value:o.z.string(),annotations:o.z.array(o.z.union([ho,jo]))})}),So=o.z.object({index:o.z.number(),type:o.z.literal("image_file"),image_file:o.z.object({file_id:o.z.string().optional(),detail:o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]).optional()}).optional()}),_o=o.z.object({index:o.z.number(),type:o.z.literal("image_url"),image_url:o.z.object({url:o.z.string().optional(),detail:o.z.union([o.z.literal("auto"),o.z.literal("low"),o.z.literal("high")]).optional()}).optional()}),yo=o.z.object({index:o.z.number(),type:o.z.literal("refusal"),refusal:o.z.string().optional()}),Ro=o.z.object({index:o.z.number(),type:o.z.literal("file_citation"),text:o.z.string().optional(),file_citation:o.z.object({file_id:o.z.string().optional(),quote:o.z.string().optional()}).optional(),start_index:o.z.number().optional(),end_index:o.z.number().optional()}),wo=o.z.object({index:o.z.number(),type:o.z.literal("file_path"),text:o.z.string().optional(),file_path:o.z.object({file_id:o.z.string().optional()}).optional(),start_index:o.z.number().optional(),end_index:o.z.number().optional()}),ko=o.z.object({index:o.z.number(),type:o.z.literal("text"),text:o.z.object({value:o.z.string().optional(),annotations:o.z.array(o.z.union([Ro,wo])).optional()}).optional()}),Ao=o.z.object({id:o.z.string(),object:o.z.literal("thread.message.delta"),delta:o.z.object({role:o.z.union([o.z.literal("user"),o.z.literal("assistant")]).optional(),content:o.z.array(o.z.union([So,ko,yo,_o])).optional()})}),Do=o.z.literal("thread.message.delta"),Co=o.z.object({id:o.z.string(),object:o.z.literal("thread.message"),created_at:o.z.number(),thread_id:o.z.string(),status:o.z.union([o.z.literal("in_progress"),o.z.literal("incomplete"),o.z.literal("completed")]),incomplete_details:o.z.object({reason:o.z.union([o.z.literal("content_filter"),o.z.literal("max_tokens"),o.z.literal("run_cancelled"),o.z.literal("run_expired"),o.z.literal("run_failed")])}).nullable(),completed_at:o.z.number().nullable(),incomplete_at:o.z.number().nullable(),role:o.z.union([o.z.literal("user"),o.z.literal("assistant")]),content:o.z.array(o.z.union([Ge,Ze,vo,bo])),assistant_id:o.z.string().nullable(),run_id:o.z.string().nullable(),attachments:o.z.array(o.z.object({file_id:o.z.string().optional(),tools:o.z.array(o.z.union([m,R])).optional()})).nullable(),metadata:o.z.record(o.z.unknown()).nullable()}),To=o.z.literal("thread.message"),Po=o.z.union([o.z.literal("in_progress"),o.z.literal("incomplete"),o.z.literal("completed")]),xo=o.z.union([o.z.literal("content_filter"),o.z.literal("max_tokens"),o.z.literal("run_cancelled"),o.z.literal("run_expired"),o.z.literal("run_failed")]),Fo=o.z.union([o.z.object({event:o.z.literal("thread.message.created"),data:Co}),o.z.object({event:o.z.literal("thread.message.in_progress"),data:Co}),o.z.object({event:o.z.literal("thread.message.delta"),data:Ao}),o.z.object({event:o.z.literal("thread.message.completed"),data:Co}),o.z.object({event:o.z.literal("thread.message.incomplete"),data:Co})]),Eo=o.z.literal("thread.message.created"),Uo=o.z.literal("model"),Oo=o.z.object({metadata:o.z.record(o.z.unknown()).optional().nullable()}),qo=o.z.object({metadata:o.z.record(o.z.unknown()).optional().nullable()}),Mo=o.z.object({tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.object({vector_store_ids:o.z.array(o.z.string()).optional()}).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),Vo=o.z.union([o.z.literal("assistants"),o.z.literal("assistants_output"),o.z.literal("batch"),o.z.literal("batch_output"),o.z.literal("fine-tune"),o.z.literal("fine-tune-results"),o.z.literal("vision")]),Lo=o.z.union([o.z.literal("uploaded"),o.z.literal("processed"),o.z.literal("error")]),Io=o.z.object({type:o.z.literal("other")}),Bo=o.z.literal("other"),Jo=o.z.object({id:o.z.string(),object:o.z.literal("organization.project"),name:o.z.string(),created_at:o.z.number(),archived_at:o.z.number().optional().nullable(),status:o.z.union([o.z.literal("active"),o.z.literal("archived")])}),No=o.z.literal("organization.project"),Ko=o.z.union([o.z.literal("active"),o.z.literal("archived")]),Go=o.z.object({object:o.z.literal("organization.project.user"),id:o.z.string(),name:o.z.string(),email:o.z.string(),role:o.z.union([o.z.literal("owner"),o.z.literal("member")]),added_at:o.z.number()}),Zo=o.z.object({object:o.z.literal("organization.project.service_account"),id:o.z.string(),name:o.z.string(),role:o.z.union([o.z.literal("owner"),o.z.literal("member")]),created_at:o.z.number()}),Ho=o.z.literal("organization.project.api_key"),Xo=o.z.object({object:o.z.literal("organization.project.api_key.deleted"),id:o.z.string(),deleted:o.z.boolean()}),Yo=o.z.literal("organization.project.api_key.deleted"),Qo=o.z.object({object:o.z.literal("organization.project.api_key"),redacted_value:o.z.string(),name:o.z.string(),created_at:o.z.number(),id:o.z.string(),owner:o.z.object({type:o.z.union([o.z.literal("user"),o.z.literal("service_account")]).optional(),user:Go.optional(),service_account:Zo.optional()})}),Wo=o.z.object({name:o.z.string()}),$o=o.z.object({object:o.z.literal("list"),data:o.z.array(Jo),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),ea=o.z.literal("organization.project.service_account"),ta=o.z.union([o.z.literal("owner"),o.z.literal("member")]),oa=o.z.object({object:o.z.literal("organization.project.service_account.api_key"),value:o.z.string(),name:o.z.string(),created_at:o.z.number(),id:o.z.string()}),aa=o.z.literal("organization.project.service_account.api_key"),na=o.z.object({name:o.z.string()}),ra=o.z.object({object:o.z.literal("organization.project.service_account"),id:o.z.string(),name:o.z.string(),role:o.z.literal("member"),created_at:o.z.number(),api_key:oa}),ia=o.z.literal("member"),la=o.z.object({object:o.z.literal("organization.project.service_account.deleted"),id:o.z.string(),deleted:o.z.boolean()}),sa=o.z.literal("organization.project.service_account.deleted"),ca=o.z.object({object:o.z.literal("list"),data:o.z.array(Zo),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),za=o.z.object({name:o.z.string()}),ua=o.z.literal("organization.project.user"),pa=o.z.object({user_id:o.z.string(),role:o.z.union([o.z.literal("owner"),o.z.literal("member")])}),da=o.z.object({object:o.z.literal("organization.project.user.deleted"),id:o.z.string(),deleted:o.z.boolean()}),ma=o.z.literal("organization.project.user.deleted"),ba=o.z.object({object:o.z.string(),data:o.z.array(Go),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),ha=o.z.object({role:o.z.union([o.z.literal("owner"),o.z.literal("member")])}),ga=o.z.literal("json_object"),ja=o.z.record(o.z.unknown()),fa=o.z.literal("json_schema"),va=o.z.object({completion_tokens:o.z.number(),prompt_tokens:o.z.number(),total_tokens:o.z.number()}).nullable(),Sa=o.z.object({id:o.z.string(),type:o.z.literal("function"),function:o.z.object({name:o.z.string(),arguments:o.z.string()})}),_a=o.z.literal("thread.run"),ya=o.z.union([o.z.literal("queued"),o.z.literal("in_progress"),o.z.literal("requires_action"),o.z.literal("cancelling"),o.z.literal("cancelled"),o.z.literal("failed"),o.z.literal("completed"),o.z.literal("incomplete"),o.z.literal("expired")]),Ra=o.z.literal("submit_tool_outputs"),wa=o.z.union([o.z.literal("server_error"),o.z.literal("rate_limit_exceeded"),o.z.literal("invalid_prompt")]),ka=o.z.union([o.z.literal("max_completion_tokens"),o.z.literal("max_prompt_tokens")]),Aa=o.z.object({completion_tokens:o.z.number(),prompt_tokens:o.z.number(),total_tokens:o.z.number()}).nullable(),Da=o.z.object({type:o.z.literal("message_creation"),message_creation:o.z.object({message_id:o.z.string().optional()}).optional()}),Ca=o.z.literal("thread.run.step.delta"),Ta=o.z.literal("message_creation"),Pa=o.z.object({index:o.z.number(),type:o.z.literal("logs"),logs:o.z.string().optional()}),xa=o.z.object({index:o.z.number(),type:o.z.literal("image"),image:o.z.object({file_id:o.z.string().optional()}).optional()}),Fa=o.z.literal("image"),Ea=o.z.literal("logs"),Ua=o.z.object({index:o.z.number(),id:o.z.string().optional(),type:o.z.literal("file_search"),file_search:o.z.record(o.z.unknown())}),Oa=o.z.object({index:o.z.number(),id:o.z.string().optional(),type:o.z.literal("function"),function:o.z.object({name:o.z.string().optional(),arguments:o.z.string().optional(),output:o.z.string().optional().nullable()}).optional()}),qa=o.z.object({index:o.z.number(),id:o.z.string().optional(),type:o.z.literal("code_interpreter"),code_interpreter:o.z.object({input:o.z.string().optional(),outputs:o.z.array(o.z.union([Pa,xa])).optional()}).optional()}),Ma=o.z.literal("tool_calls"),Va=o.z.object({type:o.z.literal("message_creation"),message_creation:o.z.object({message_id:o.z.string()})}),La=o.z.object({type:o.z.literal("logs"),logs:o.z.string()}),Ia=o.z.object({type:o.z.literal("image"),image:o.z.object({file_id:o.z.string()})}),Ba=o.z.object({id:o.z.string(),type:o.z.literal("file_search"),file_search:o.z.record(o.z.unknown())}),Ja=o.z.object({id:o.z.string(),type:o.z.literal("function"),function:o.z.object({name:o.z.string(),arguments:o.z.string(),output:o.z.string().nullable()})}),Na=o.z.object({id:o.z.string(),type:o.z.literal("code_interpreter"),code_interpreter:o.z.object({input:o.z.string(),outputs:o.z.array(o.z.union([La,Ia]))})}),Ka=o.z.object({type:o.z.literal("tool_calls"),tool_calls:o.z.array(o.z.union([Na,Ba,Ja]))}),Ga=o.z.literal("thread.run.step"),Za=o.z.union([o.z.literal("message_creation"),o.z.literal("tool_calls")]),Ha=o.z.union([o.z.literal("in_progress"),o.z.literal("cancelled"),o.z.literal("failed"),o.z.literal("completed"),o.z.literal("expired")]),Xa=o.z.union([o.z.literal("server_error"),o.z.literal("rate_limit_exceeded")]),Ya=o.z.object({id:o.z.string(),object:o.z.literal("thread.run.step"),created_at:o.z.number(),assistant_id:o.z.string(),thread_id:o.z.string(),run_id:o.z.string(),type:o.z.union([o.z.literal("message_creation"),o.z.literal("tool_calls")]),status:o.z.union([o.z.literal("in_progress"),o.z.literal("cancelled"),o.z.literal("failed"),o.z.literal("completed"),o.z.literal("expired")]),step_details:o.z.union([Va,Ka]),last_error:o.z.object({code:o.z.union([o.z.literal("server_error"),o.z.literal("rate_limit_exceeded")]),message:o.z.string()}).nullable(),expired_at:o.z.number().nullable(),cancelled_at:o.z.number().nullable(),failed_at:o.z.number().nullable(),completed_at:o.z.number().nullable(),metadata:o.z.record(o.z.unknown()).nullable(),usage:Aa}),Qa=o.z.literal("thread.run.step.created"),Wa=o.z.literal("thread.run.created"),$a=o.z.object({max_chunk_size_tokens:o.z.number(),chunk_overlap_tokens:o.z.number()}),en=o.z.object({type:o.z.literal("static"),static:$a}),tn=o.z.literal("static"),on=o.z.object({type:o.z.literal("static"),static:$a}),an=o.z.object({tool_outputs:o.z.array(o.z.object({tool_call_id:o.z.string().optional(),output:o.z.string().optional()})),stream:o.z.boolean().optional().nullable()}),nn=o.z.literal("thread"),rn=o.z.object({event:o.z.literal("thread.created"),data:uo}),ln=o.z.literal("thread.created"),sn=o.z.union([o.z.literal("auto"),o.z.literal("last_messages")]),cn=o.z.object({name:o.z.string().optional().nullable(),expires_after:pt.optional(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),zn=o.z.object({id:o.z.string(),created_at:o.z.number(),filename:o.z.string(),bytes:o.z.number(),purpose:o.z.string(),status:o.z.union([o.z.literal("pending"),o.z.literal("completed"),o.z.literal("cancelled"),o.z.literal("expired")]),expires_at:o.z.number(),object:o.z.literal("upload").optional(),file:io.optional()}),un=o.z.union([o.z.literal("pending"),o.z.literal("completed"),o.z.literal("cancelled"),o.z.literal("expired")]),pn=o.z.literal("upload"),dn=o.z.object({id:o.z.string(),created_at:o.z.number(),upload_id:o.z.string(),object:o.z.literal("upload.part")}),mn=o.z.literal("upload.part"),bn=o.z.object({object:o.z.literal("organization.user"),id:o.z.string(),name:o.z.string(),email:o.z.string(),role:o.z.union([o.z.literal("owner"),o.z.literal("reader")]),added_at:o.z.number()}),hn=o.z.literal("organization.user"),gn=o.z.object({object:o.z.literal("organization.user.deleted"),id:o.z.string(),deleted:o.z.boolean()}),jn=o.z.literal("organization.user.deleted"),fn=o.z.object({object:o.z.literal("list"),data:o.z.array(bn),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),vn=o.z.object({role:o.z.union([o.z.literal("owner"),o.z.literal("reader")])}),Sn=o.z.literal("last_active_at"),_n=o.z.object({id:o.z.string(),object:o.z.literal("vector_store.files_batch"),created_at:o.z.number(),vector_store_id:o.z.string(),status:o.z.union([o.z.literal("in_progress"),o.z.literal("completed"),o.z.literal("cancelled"),o.z.literal("failed")]),file_counts:o.z.object({in_progress:o.z.number(),completed:o.z.number(),failed:o.z.number(),cancelled:o.z.number(),total:o.z.number()})}),yn=o.z.literal("vector_store.files_batch"),Rn=o.z.union([o.z.literal("in_progress"),o.z.literal("completed"),o.z.literal("cancelled"),o.z.literal("failed")]),wn=o.z.object({id:o.z.string(),object:o.z.literal("vector_store.file"),usage_bytes:o.z.number(),created_at:o.z.number(),vector_store_id:o.z.string(),status:o.z.union([o.z.literal("in_progress"),o.z.literal("completed"),o.z.literal("cancelled"),o.z.literal("failed")]),last_error:o.z.object({code:o.z.union([o.z.literal("server_error"),o.z.literal("unsupported_file"),o.z.literal("invalid_file")]),message:o.z.string()}).nullable(),chunking_strategy:o.z.union([on,Io]).optional()}),kn=o.z.literal("vector_store.file"),An=o.z.union([o.z.literal("server_error"),o.z.literal("unsupported_file"),o.z.literal("invalid_file")]),Dn=o.z.literal("vector_store"),Cn=o.z.union([o.z.literal("expired"),o.z.literal("in_progress"),o.z.literal("completed")]),Tn=Ae,Pn=o.z.unknown(),xn=o.z.object({body:Pe}),Fn=xe,En=o.z.unknown(),Un=o.z.object({body:Be}),On=Yt,qn=o.z.unknown(),Mn=Yt,Vn=o.z.unknown(),Ln=Yt,In=o.z.unknown(),Bn=o.z.object({body:Ee}),Jn=o.z.object({data:o.z.array(Oe),model:o.z.string(),object:o.z.literal("list"),usage:o.z.object({prompt_tokens:o.z.number(),total_tokens:o.z.number()})}),Nn=o.z.unknown(),Kn=o.z.object({body:tt}),Gn=o.z.unknown(),Zn=o.z.unknown(),Hn=o.z.union([ct,zt]),Xn=o.z.unknown(),Yn=o.z.object({query:o.z.object({purpose:o.z.string().optional()}).optional()}),Qn=o.z.object({data:o.z.array(io),object:o.z.literal("list")}),Wn=o.z.unknown(),$n=io,er=o.z.unknown(),tr=o.z.object({path:o.z.object({file_id:o.z.string()})}),or=ht,ar=o.z.unknown(),nr=o.z.object({path:o.z.object({file_id:o.z.string()})}),rr=io,ir=o.z.unknown(),lr=o.z.object({path:o.z.object({file_id:o.z.string()})}),sr=o.z.string(),cr=o.z.unknown(),zr=o.z.object({body:ut}),ur=zn,pr=o.z.unknown(),dr=dn,mr=o.z.unknown(),br=o.z.object({body:ge,path:o.z.object({upload_id:o.z.string()})}),hr=zn,gr=o.z.unknown(),jr=o.z.object({path:o.z.object({upload_id:o.z.string()})}),fr=zn,vr=o.z.unknown(),Sr=o.z.object({body:Ve}),_r=It,yr=o.z.unknown(),Rr=o.z.object({query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),wr=zo,kr=o.z.unknown(),Ar=o.z.object({path:o.z.object({fine_tuning_job_id:o.z.string()})}),Dr=It,Cr=o.z.unknown(),Tr=o.z.object({path:o.z.object({fine_tuning_job_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),Pr=so,xr=o.z.unknown(),Fr=o.z.object({path:o.z.object({fine_tuning_job_id:o.z.string()})}),Er=It,Ur=o.z.unknown(),Or=o.z.object({path:o.z.object({fine_tuning_job_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),qr=lo,Mr=o.z.unknown(),Vr=o.z.object({object:o.z.literal("list"),data:o.z.array(co)}),Lr=o.z.unknown(),Ir=o.z.object({path:o.z.object({model:o.z.string()})}),Br=co,Jr=o.z.unknown(),Nr=o.z.object({path:o.z.object({model:o.z.string()})}),Kr=vt,Gr=o.z.unknown(),Zr=o.z.object({body:Ye}),Hr=Qe,Xr=o.z.unknown(),Yr=o.z.object({query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),Qr=o.z.unknown(),Wr=o.z.unknown(),$r=o.z.object({path:o.z.object({assistant_id:o.z.string()})}),ei=o.z.unknown(),ti=o.z.unknown(),oi=o.z.object({path:o.z.object({assistant_id:o.z.string()})}),ai=mt,ni=o.z.unknown(),ri=o.z.object({body:nt.optional()}),ii=uo,li=o.z.unknown(),si=o.z.object({path:o.z.object({thread_id:o.z.string()})}),ci=uo,zi=o.z.unknown(),ui=o.z.object({body:Mo,path:o.z.object({thread_id:o.z.string()})}),pi=uo,di=o.z.unknown(),mi=o.z.object({path:o.z.object({thread_id:o.z.string()})}),bi=St,hi=o.z.unknown(),gi=o.z.object({path:o.z.object({thread_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional(),run_id:o.z.string().optional()}).optional()}),ji=o.z.object({object:o.z.string(),data:o.z.array(Co),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),fi=o.z.unknown(),vi=o.z.object({body:We,path:o.z.object({thread_id:o.z.string()})}),Si=Co,_i=o.z.unknown(),yi=o.z.object({path:o.z.object({message_id:o.z.string(),thread_id:o.z.string()})}),Ri=Co,wi=o.z.unknown(),ki=o.z.object({body:Oo,path:o.z.object({message_id:o.z.string(),thread_id:o.z.string()})}),Ai=Co,Di=o.z.unknown(),Ci=o.z.object({path:o.z.object({message_id:o.z.string(),thread_id:o.z.string()})}),Ti=jt,Pi=o.z.unknown(),xi=o.z.unknown(),Fi=o.z.object({path:o.z.object({thread_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),Ei=o.z.unknown(),Ui=o.z.unknown(),Oi=o.z.object({path:o.z.object({run_id:o.z.string(),thread_id:o.z.string()})}),qi=o.z.unknown(),Mi=o.z.object({body:qo,path:o.z.object({run_id:o.z.string(),thread_id:o.z.string()})}),Vi=o.z.unknown(),Li=o.z.object({body:an,path:o.z.object({run_id:o.z.string(),thread_id:o.z.string()})}),Ii=o.z.unknown(),Bi=o.z.object({path:o.z.object({run_id:o.z.string(),thread_id:o.z.string()})}),Ji=o.z.unknown(),Ni=o.z.object({path:o.z.object({run_id:o.z.string(),thread_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),Ki=o.z.object({object:o.z.string(),data:o.z.array(Ya),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),Gi=o.z.unknown(),Zi=o.z.object({path:o.z.object({run_id:o.z.string(),step_id:o.z.string(),thread_id:o.z.string()})}),Hi=Ya,Xi=o.z.unknown(),Yi=o.z.object({query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),Qi=o.z.object({object:o.z.string(),data:o.z.array(po),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),Wi=o.z.unknown(),$i=o.z.object({file_ids:o.z.array(o.z.string()).optional(),name:o.z.string().optional(),expires_after:pt.optional(),chunking_strategy:o.z.union([x,en]).optional(),metadata:o.z.record(o.z.unknown()).optional().nullable()}),el=po,tl=o.z.unknown(),ol=o.z.object({path:o.z.object({vector_store_id:o.z.string()})}),al=po,nl=o.z.unknown(),rl=o.z.object({body:cn,path:o.z.object({vector_store_id:o.z.string()})}),il=po,ll=o.z.unknown(),sl=o.z.object({path:o.z.object({vector_store_id:o.z.string()})}),cl=wt,zl=o.z.unknown(),ul=o.z.object({path:o.z.object({vector_store_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),filter:o.z.union([o.z.literal("in_progress"),o.z.literal("completed"),o.z.literal("failed"),o.z.literal("cancelled")]).optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),pl=o.z.object({object:o.z.string(),data:o.z.array(wn),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),dl=o.z.unknown(),ml=wn,bl=o.z.unknown(),hl=o.z.object({path:o.z.object({file_id:o.z.string(),vector_store_id:o.z.string()})}),gl=wn,jl=o.z.unknown(),fl=o.z.object({path:o.z.object({file_id:o.z.string(),vector_store_id:o.z.string()})}),vl=yt,Sl=o.z.unknown(),_l=_n,yl=o.z.unknown(),Rl=o.z.object({path:o.z.object({batch_id:o.z.string(),vector_store_id:o.z.string()})}),wl=_n,kl=o.z.unknown(),Al=o.z.object({path:o.z.object({batch_id:o.z.string(),vector_store_id:o.z.string()})}),Dl=_n,Cl=o.z.unknown(),Tl=o.z.object({path:o.z.object({batch_id:o.z.string(),vector_store_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),before:o.z.string().optional(),filter:o.z.union([o.z.literal("in_progress"),o.z.literal("completed"),o.z.literal("failed"),o.z.literal("cancelled")]).optional(),limit:o.z.number().optional(),order:o.z.union([o.z.literal("asc"),o.z.literal("desc")]).optional()}).optional()}),Pl=pl,xl=o.z.unknown(),Fl=o.z.object({body:o.z.object({input_file_id:o.z.string(),endpoint:o.z.union([o.z.literal("/v1/chat/completions"),o.z.literal("/v1/embeddings"),o.z.literal("/v1/completions")]),completion_window:o.z.literal("24h"),metadata:o.z.record(o.z.string()).optional().nullable()})}),El=E,Ul=o.z.unknown(),Ol=o.z.object({query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),ql=ro,Ml=o.z.unknown(),Vl=o.z.object({path:o.z.object({batch_id:o.z.string()})}),Ll=E,Il=o.z.unknown(),Bl=o.z.object({path:o.z.object({batch_id:o.z.string()})}),Jl=E,Nl=o.z.unknown(),Kl=o.z.object({query:o.z.object({"actor_emails[]":o.z.array(o.z.string()).optional(),"actor_ids[]":o.z.array(o.z.string()).optional(),after:o.z.string().optional(),before:o.z.string().optional(),effective_at:o.z.object({gt:o.z.number().optional(),gte:o.z.number().optional(),lt:o.z.number().optional(),lte:o.z.number().optional()}).optional(),"event_types[]":o.z.array(k).optional(),limit:o.z.number().optional(),"project_ids[]":o.z.array(o.z.string()).optional(),"resource_ids[]":o.z.array(o.z.string()).optional()}).optional()}),Gl=o.z.unknown(),Zl=o.z.object({query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),Hl=ao,Xl=o.z.unknown(),Yl=o.z.object({body:no}),Ql=Qt,Wl=o.z.unknown(),$l=o.z.object({path:o.z.object({invite_id:o.z.string()})}),es=Qt,ts=o.z.unknown(),os=o.z.object({path:o.z.object({invite_id:o.z.string()})}),as=to,ns=o.z.unknown(),rs=o.z.object({query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),is=fn,ls=o.z.unknown(),ss=o.z.object({path:o.z.object({user_id:o.z.string()})}),cs=bn,zs=o.z.unknown(),us=o.z.object({body:vn}),ps=bn,ds=o.z.unknown(),ms=o.z.object({path:o.z.object({user_id:o.z.string()})}),bs=gn,hs=o.z.unknown(),gs=o.z.object({query:o.z.object({after:o.z.string().optional(),include_archived:o.z.boolean().optional(),limit:o.z.number().optional()}).optional()}),js=$o,fs=o.z.unknown(),vs=o.z.object({body:Wo}),Ss=Jo,_s=o.z.unknown(),ys=o.z.object({path:o.z.object({project_id:o.z.string()})}),Rs=Jo,ws=o.z.unknown(),ks=o.z.object({body:za}),As=Jo,Ds=Ft,Cs=o.z.object({path:o.z.object({project_id:o.z.string()})}),Ts=Jo,Ps=o.z.unknown(),xs=o.z.object({path:o.z.object({project_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),Fs=ba,Es=Ft,Us=o.z.object({body:pa,path:o.z.object({project_id:o.z.string()})}),Os=Go,qs=Ft,Ms=o.z.object({path:o.z.object({project_id:o.z.string(),user_id:o.z.string()})}),Vs=Go,Ls=o.z.unknown(),Is=o.z.object({body:ha}),Bs=Go,Js=Ft,Ns=o.z.object({path:o.z.object({project_id:o.z.string(),user_id:o.z.string()})}),Ks=da,Gs=Ft,Zs=o.z.object({path:o.z.object({project_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),Hs=ca,Xs=Ft,Ys=o.z.object({body:na,path:o.z.object({project_id:o.z.string()})}),Qs=ra,Ws=Ft,$s=o.z.object({path:o.z.object({project_id:o.z.string(),service_account_id:o.z.string()})}),ec=Zo,tc=o.z.unknown(),oc=o.z.object({path:o.z.object({project_id:o.z.string(),service_account_id:o.z.string()})}),ac=la,nc=o.z.unknown(),rc=o.z.object({path:o.z.object({project_id:o.z.string()}),query:o.z.object({after:o.z.string().optional(),limit:o.z.number().optional()}).optional()}),ic=o.z.object({object:o.z.literal("list"),data:o.z.array(Qo),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),lc=o.z.unknown(),sc=o.z.object({path:o.z.object({key_id:o.z.string(),project_id:o.z.string()})}),cc=Qo,zc=o.z.unknown(),uc=o.z.object({path:o.z.object({key_id:o.z.string(),project_id:o.z.string()})}),pc=Xo,dc=Ft,mc=o.z.object({type:o.z.literal("json_schema"),json_schema:o.z.object({description:o.z.string().optional(),name:o.z.string(),schema:ja.optional(),strict:o.z.boolean().optional().nullable()})}),bc=o.z.object({id:o.z.string().optional(),type:o.z.union([o.z.literal("user"),o.z.literal("service_account")]).optional(),user:D.optional(),service_account:C.optional()}),hc=o.z.union([H,X]),gc=o.z.object({content:o.z.union([o.z.string(),o.z.array(hc)]).optional().nullable(),refusal:o.z.string().optional().nullable(),role:o.z.literal("assistant"),name:o.z.string().optional(),tool_calls:K.optional(),function_call:o.z.object({arguments:o.z.string(),name:o.z.string()}).optional().nullable()}),jc=o.z.union([x,en]),fc=o.z.union([o.z.literal("auto"),g,j,mc]),vc=o.z.union([Ut,Ot,gc,qt,Y]),Sc=o.z.object({assistant_id:o.z.string(),model:o.z.union([o.z.string(),o.z.literal("gpt-4o"),o.z.literal("gpt-4o-2024-08-06"),o.z.literal("gpt-4o-2024-05-13"),o.z.literal("gpt-4o-mini"),o.z.literal("gpt-4o-mini-2024-07-18"),o.z.literal("gpt-4-turbo"),o.z.literal("gpt-4-turbo-2024-04-09"),o.z.literal("gpt-4-0125-preview"),o.z.literal("gpt-4-turbo-preview"),o.z.literal("gpt-4-1106-preview"),o.z.literal("gpt-4-vision-preview"),o.z.literal("gpt-4"),o.z.literal("gpt-4-0314"),o.z.literal("gpt-4-0613"),o.z.literal("gpt-4-32k"),o.z.literal("gpt-4-32k-0314"),o.z.literal("gpt-4-32k-0613"),o.z.literal("gpt-3.5-turbo"),o.z.literal("gpt-3.5-turbo-16k"),o.z.literal("gpt-3.5-turbo-0613"),o.z.literal("gpt-3.5-turbo-1106"),o.z.literal("gpt-3.5-turbo-0125"),o.z.literal("gpt-3.5-turbo-16k-0613")]).optional().nullable(),instructions:o.z.string().optional().nullable(),additional_instructions:o.z.string().optional().nullable(),additional_messages:o.z.array(We).optional().nullable(),tools:o.z.array(o.z.union([m,b,fe])).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),stream:o.z.boolean().optional().nullable(),max_prompt_tokens:o.z.number().optional().nullable(),max_completion_tokens:o.z.number().optional().nullable(),truncation_strategy:$e.optional(),tool_choice:et.optional(),parallel_tool_calls:Re.optional(),response_format:fc.optional()}),_c=o.z.object({assistant_id:o.z.string(),thread:nt.optional(),model:o.z.union([o.z.string(),o.z.literal("gpt-4o"),o.z.literal("gpt-4o-2024-08-06"),o.z.literal("gpt-4o-2024-05-13"),o.z.literal("gpt-4o-mini"),o.z.literal("gpt-4o-mini-2024-07-18"),o.z.literal("gpt-4-turbo"),o.z.literal("gpt-4-turbo-2024-04-09"),o.z.literal("gpt-4-0125-preview"),o.z.literal("gpt-4-turbo-preview"),o.z.literal("gpt-4-1106-preview"),o.z.literal("gpt-4-vision-preview"),o.z.literal("gpt-4"),o.z.literal("gpt-4-0314"),o.z.literal("gpt-4-0613"),o.z.literal("gpt-4-32k"),o.z.literal("gpt-4-32k-0314"),o.z.literal("gpt-4-32k-0613"),o.z.literal("gpt-3.5-turbo"),o.z.literal("gpt-3.5-turbo-16k"),o.z.literal("gpt-3.5-turbo-0613"),o.z.literal("gpt-3.5-turbo-1106"),o.z.literal("gpt-3.5-turbo-0125"),o.z.literal("gpt-3.5-turbo-16k-0613")]).optional().nullable(),instructions:o.z.string().optional().nullable(),tools:o.z.array(o.z.union([m,b,fe])).optional().nullable(),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.object({vector_store_ids:o.z.array(o.z.string()).optional()}).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),stream:o.z.boolean().optional().nullable(),max_prompt_tokens:o.z.number().optional().nullable(),max_completion_tokens:o.z.number().optional().nullable(),truncation_strategy:$e.optional(),tool_choice:et.optional(),parallel_tool_calls:Re.optional(),response_format:fc.optional()}),yc=o.z.object({language:o.z.string(),duration:o.z.string(),text:o.z.string(),words:o.z.array(lt).optional(),segments:o.z.array(st).optional()}),Rc=o.z.object({file_ids:o.z.array(o.z.string()),chunking_strategy:jc.optional()}),wc=o.z.object({file_id:o.z.string(),chunking_strategy:jc.optional()}),kc=o.z.object({weight:o.z.union([o.z.literal(0),o.z.literal(1)]).optional()}).and(gc),Ac=o.z.object({messages:o.z.array(o.z.union([Ut,Ot,kc,qt,Y])).optional(),tools:o.z.array(ye).optional(),parallel_tool_calls:Re.optional(),functions:o.z.array(we).optional()}),Dc=o.z.object({id:o.z.string(),object:o.z.literal("assistant"),created_at:o.z.number(),name:o.z.string().nullable(),description:o.z.string().nullable(),model:o.z.string(),instructions:o.z.string().nullable(),tools:o.z.array(o.z.union([m,b,fe])),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.object({vector_store_ids:o.z.array(o.z.string()).optional()}).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),response_format:fc.optional()}),Cc=o.z.object({id:o.z.string(),object:o.z.literal("thread.run"),created_at:o.z.number(),thread_id:o.z.string(),assistant_id:o.z.string(),status:o.z.union([o.z.literal("queued"),o.z.literal("in_progress"),o.z.literal("requires_action"),o.z.literal("cancelling"),o.z.literal("cancelled"),o.z.literal("failed"),o.z.literal("completed"),o.z.literal("incomplete"),o.z.literal("expired")]),required_action:o.z.object({type:o.z.literal("submit_tool_outputs"),submit_tool_outputs:o.z.object({tool_calls:o.z.array(Sa)})}).nullable(),last_error:o.z.object({code:o.z.union([o.z.literal("server_error"),o.z.literal("rate_limit_exceeded"),o.z.literal("invalid_prompt")]),message:o.z.string()}).nullable(),expires_at:o.z.number().nullable(),started_at:o.z.number().nullable(),cancelled_at:o.z.number().nullable(),failed_at:o.z.number().nullable(),completed_at:o.z.number().nullable(),incomplete_details:o.z.object({reason:o.z.union([o.z.literal("max_completion_tokens"),o.z.literal("max_prompt_tokens")]).optional()}).nullable(),model:o.z.string(),instructions:o.z.string(),tools:o.z.array(o.z.union([m,b,fe])),metadata:o.z.record(o.z.unknown()).nullable(),usage:va,temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),max_prompt_tokens:o.z.number().nullable(),max_completion_tokens:o.z.number().nullable(),truncation_strategy:$e,tool_choice:et,parallel_tool_calls:Re,response_format:fc}),Tc=o.z.object({object:o.z.string(),data:o.z.array(uo),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),Pc=o.z.object({model:o.z.string().optional(),name:o.z.string().optional().nullable(),description:o.z.string().optional().nullable(),instructions:o.z.string().optional().nullable(),tools:o.z.array(o.z.union([m,b,fe])).optional(),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.object({vector_store_ids:o.z.array(o.z.string()).optional()}).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),response_format:fc.optional()}),xc=o.z.object({type:o.z.literal("tool_calls"),tool_calls:o.z.array(o.z.union([qa,Ua,Oa])).optional()}),Fc=o.z.object({id:o.z.string(),object:o.z.literal("thread.run.step.delta"),delta:o.z.object({step_details:o.z.union([Da,xc]).optional()})}),Ec=o.z.union([o.z.object({event:o.z.literal("thread.run.created"),data:Cc}),o.z.object({event:o.z.literal("thread.run.queued"),data:Cc}),o.z.object({event:o.z.literal("thread.run.in_progress"),data:Cc}),o.z.object({event:o.z.literal("thread.run.requires_action"),data:Cc}),o.z.object({event:o.z.literal("thread.run.completed"),data:Cc}),o.z.object({event:o.z.literal("thread.run.incomplete"),data:Cc}),o.z.object({event:o.z.literal("thread.run.failed"),data:Cc}),o.z.object({event:o.z.literal("thread.run.cancelling"),data:Cc}),o.z.object({event:o.z.literal("thread.run.cancelled"),data:Cc}),o.z.object({event:o.z.literal("thread.run.expired"),data:Cc})]),Uc=o.z.object({messages:o.z.array(vc),model:o.z.union([o.z.string(),o.z.literal("gpt-4o"),o.z.literal("gpt-4o-2024-08-06"),o.z.literal("gpt-4o-2024-05-13"),o.z.literal("gpt-4o-mini"),o.z.literal("gpt-4o-mini-2024-07-18"),o.z.literal("gpt-4-turbo"),o.z.literal("gpt-4-turbo-2024-04-09"),o.z.literal("gpt-4-0125-preview"),o.z.literal("gpt-4-turbo-preview"),o.z.literal("gpt-4-1106-preview"),o.z.literal("gpt-4-vision-preview"),o.z.literal("gpt-4"),o.z.literal("gpt-4-0314"),o.z.literal("gpt-4-0613"),o.z.literal("gpt-4-32k"),o.z.literal("gpt-4-32k-0314"),o.z.literal("gpt-4-32k-0613"),o.z.literal("gpt-3.5-turbo"),o.z.literal("gpt-3.5-turbo-16k"),o.z.literal("gpt-3.5-turbo-0301"),o.z.literal("gpt-3.5-turbo-0613"),o.z.literal("gpt-3.5-turbo-1106"),o.z.literal("gpt-3.5-turbo-0125"),o.z.literal("gpt-3.5-turbo-16k-0613")]),frequency_penalty:o.z.number().optional().nullable(),logit_bias:o.z.record(o.z.number()).optional().nullable(),logprobs:o.z.boolean().optional().nullable(),top_logprobs:o.z.number().optional().nullable(),max_tokens:o.z.number().optional().nullable(),n:o.z.number().optional().nullable(),presence_penalty:o.z.number().optional().nullable(),response_format:o.z.union([g,j,mc]).optional(),seed:o.z.number().optional().nullable(),service_tier:o.z.union([o.z.literal("auto"),o.z.literal("default")]).optional().nullable(),stop:o.z.union([o.z.string(),o.z.array(o.z.string())]).optional().nullable(),stream:o.z.boolean().optional().nullable(),stream_options:ue.optional(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),tools:o.z.array(ye).optional(),tool_choice:he.optional(),parallel_tool_calls:Re.optional(),user:o.z.string().optional(),function_call:o.z.union([o.z.literal("none"),o.z.literal("auto"),I]).optional(),functions:o.z.array(we).optional()}),Oc=Jn,qc=o.z.union([it,yc]),Mc=Qn,Vc=Vr,Lc=o.z.object({object:o.z.string(),data:o.z.array(Dc),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),Ic=o.z.object({model:o.z.union([o.z.string(),o.z.literal("gpt-4o"),o.z.literal("gpt-4o-2024-08-06"),o.z.literal("gpt-4o-2024-05-13"),o.z.literal("gpt-4o-mini"),o.z.literal("gpt-4o-mini-2024-07-18"),o.z.literal("gpt-4-turbo"),o.z.literal("gpt-4-turbo-2024-04-09"),o.z.literal("gpt-4-0125-preview"),o.z.literal("gpt-4-turbo-preview"),o.z.literal("gpt-4-1106-preview"),o.z.literal("gpt-4-vision-preview"),o.z.literal("gpt-4"),o.z.literal("gpt-4-0314"),o.z.literal("gpt-4-0613"),o.z.literal("gpt-4-32k"),o.z.literal("gpt-4-32k-0314"),o.z.literal("gpt-4-32k-0613"),o.z.literal("gpt-3.5-turbo"),o.z.literal("gpt-3.5-turbo-16k"),o.z.literal("gpt-3.5-turbo-0613"),o.z.literal("gpt-3.5-turbo-1106"),o.z.literal("gpt-3.5-turbo-0125"),o.z.literal("gpt-3.5-turbo-16k-0613")]),name:o.z.string().optional().nullable(),description:o.z.string().optional().nullable(),instructions:o.z.string().optional().nullable(),tools:o.z.array(o.z.union([m,b,fe])).optional(),tool_resources:o.z.object({code_interpreter:o.z.object({file_ids:o.z.array(o.z.string()).optional()}).optional(),file_search:o.z.unknown().and(o.z.object({vector_store_ids:o.z.array(o.z.string()).optional(),vector_stores:o.z.array(o.z.object({file_ids:o.z.array(o.z.string()).optional(),chunking_strategy:o.z.union([o.z.object({type:o.z.literal("auto")}),o.z.object({type:o.z.literal("static"),static:o.z.object({max_chunk_size_tokens:o.z.number(),chunk_overlap_tokens:o.z.number()})})]).optional(),metadata:o.z.record(o.z.unknown()).optional()})).optional()})).optional()}).optional().nullable(),metadata:o.z.record(o.z.unknown()).optional().nullable(),temperature:o.z.number().optional().nullable(),top_p:o.z.number().optional().nullable(),response_format:fc.optional()}),Bc=Dc,Jc=Dc,Nc=o.z.object({body:Pc,path:o.z.object({assistant_id:o.z.string()})}),Kc=Dc,Gc=ji,Zc=o.z.object({body:_c}),Hc=Cc,Xc=o.z.object({object:o.z.string(),data:o.z.array(Cc),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),Yc=o.z.object({body:Sc,path:o.z.object({thread_id:o.z.string()})}),Qc=Cc,Wc=Cc,$c=Cc,ez=Cc,tz=Cc,oz=Ki,az=Qi,nz=o.z.object({body:$i}),rz=pl,iz=o.z.object({body:wc,path:o.z.object({vector_store_id:o.z.string()})}),lz=o.z.object({body:Rc,path:o.z.object({vector_store_id:o.z.string()})}),sz=ic,cz=o.z.union([o.z.object({event:o.z.literal("thread.run.step.created"),data:Ya}),o.z.object({event:o.z.literal("thread.run.step.in_progress"),data:Ya}),o.z.object({event:o.z.literal("thread.run.step.delta"),data:Fc}),o.z.object({event:o.z.literal("thread.run.step.completed"),data:Ya}),o.z.object({event:o.z.literal("thread.run.step.failed"),data:Ya}),o.z.object({event:o.z.literal("thread.run.step.cancelled"),data:Ya}),o.z.object({event:o.z.literal("thread.run.step.expired"),data:Ya})]),zz=o.z.object({type:o.z.union([o.z.literal("session"),o.z.literal("api_key")]).optional(),session:P.optional(),api_key:bc.optional()}),uz=o.z.object({id:o.z.string(),type:k,effective_at:o.z.number(),project:o.z.object({id:o.z.string().optional(),name:o.z.string().optional()}).optional(),actor:zz,"api_key.created":o.z.object({id:o.z.string().optional(),data:o.z.object({scopes:o.z.array(o.z.string()).optional()}).optional()}).optional(),"api_key.updated":o.z.object({id:o.z.string().optional(),changes_requested:o.z.object({scopes:o.z.array(o.z.string()).optional()}).optional()}).optional(),"api_key.deleted":o.z.object({id:o.z.string().optional()}).optional(),"invite.sent":o.z.object({id:o.z.string().optional(),data:o.z.object({email:o.z.string().optional(),role:o.z.string().optional()}).optional()}).optional(),"invite.accepted":o.z.object({id:o.z.string().optional()}).optional(),"invite.deleted":o.z.object({id:o.z.string().optional()}).optional(),"login.failed":o.z.object({error_code:o.z.string().optional(),error_message:o.z.string().optional()}).optional(),"logout.failed":o.z.object({error_code:o.z.string().optional(),error_message:o.z.string().optional()}).optional(),"organization.updated":o.z.object({id:o.z.string().optional(),changes_requested:o.z.object({title:o.z.string().optional(),description:o.z.string().optional(),name:o.z.string().optional(),settings:o.z.object({threads_ui_visibility:o.z.string().optional(),usage_dashboard_visibility:o.z.string().optional()}).optional()}).optional()}).optional(),"project.created":o.z.object({id:o.z.string().optional(),data:o.z.object({name:o.z.string().optional(),title:o.z.string().optional()}).optional()}).optional(),"project.updated":o.z.object({id:o.z.string().optional(),changes_requested:o.z.object({title:o.z.string().optional()}).optional()}).optional(),"project.archived":o.z.object({id:o.z.string().optional()}).optional(),"service_account.created":o.z.object({id:o.z.string().optional(),data:o.z.object({role:o.z.string().optional()}).optional()}).optional(),"service_account.updated":o.z.object({id:o.z.string().optional(),changes_requested:o.z.object({role:o.z.string().optional()}).optional()}).optional(),"service_account.deleted":o.z.object({id:o.z.string().optional()}).optional(),"user.added":o.z.object({id:o.z.string().optional(),data:o.z.object({role:o.z.string().optional()}).optional()}).optional(),"user.updated":o.z.object({id:o.z.string().optional(),changes_requested:o.z.object({role:o.z.string().optional()}).optional()}).optional(),"user.deleted":o.z.object({id:o.z.string().optional()}).optional()}),pz=o.z.object({body:Uc}),dz=Lc,mz=o.z.object({body:Ic}),bz=Xc,hz=o.z.object({object:o.z.literal("list"),data:o.z.array(uz),first_id:o.z.string(),last_id:o.z.string(),has_more:o.z.boolean()}),gz={__proto__:null,addUploadPartErrorSchema:mr,addUploadPartResponseSchema:dr,anchorSchema:Sn,archiveProjectDataSchema:Cs,archiveProjectErrorSchema:Ps,archiveProjectResponseSchema:Ts,assistantObjectSchema:Dc,assistantStreamEventSchema:o.z.union([rn,Ec,cz,Fo,Pt,S]),assistantToolsCodeSchema:m,assistantToolsFileSearchSchema:b,assistantToolsFileSearchTypeOnlySchema:R,assistantToolsFunctionSchema:fe,assistantsApiResponseFormatOptionSchema:fc,assistantsApiToolChoiceOptionSchema:et,assistantsNamedToolChoiceSchema:f,auditLogActorApiKeySchema:bc,auditLogActorSchema:zz,auditLogActorServiceAccountSchema:C,auditLogActorSessionSchema:P,auditLogActorUserSchema:D,auditLogEventTypeSchema:k,auditLogSchema:uz,autoChunkingStrategyRequestParamSchema:x,batchRequestInputSchema:q,batchRequestOutputSchema:V,batchSchema:E,cancelBatchDataSchema:Bl,cancelBatchErrorSchema:Nl,cancelBatchResponseSchema:Jl,cancelFineTuningJobDataSchema:Fr,cancelFineTuningJobErrorSchema:Ur,cancelFineTuningJobResponseSchema:Er,cancelRunDataSchema:Bi,cancelRunErrorSchema:Ji,cancelRunResponseSchema:tz,cancelUploadDataSchema:jr,cancelUploadErrorSchema:vr,cancelUploadRequestSchema:L,cancelUploadResponseSchema:fr,cancelVectorStoreFileBatchDataSchema:Al,cancelVectorStoreFileBatchErrorSchema:Cl,cancelVectorStoreFileBatchResponseSchema:Dl,chatCompletionFunctionCallOptionSchema:I,chatCompletionFunctionsSchema:we,chatCompletionMessageToolCallChunkSchema:N,chatCompletionMessageToolCallSchema:J,chatCompletionMessageToolCallsSchema:K,chatCompletionNamedToolChoiceSchema:G,chatCompletionRequestAssistantMessageContentPartSchema:hc,chatCompletionRequestAssistantMessageSchema:gc,chatCompletionRequestFunctionMessageSchema:Y,chatCompletionRequestMessageContentPartImageSchema:W,chatCompletionRequestMessageContentPartRefusalSchema:X,chatCompletionRequestMessageContentPartTextSchema:H,chatCompletionRequestMessageSchema:vc,chatCompletionRequestSystemMessageContentPartSchema:ae,chatCompletionRequestSystemMessageSchema:Ut,chatCompletionRequestToolMessageContentPartSchema:re,chatCompletionRequestToolMessageSchema:qt,chatCompletionRequestUserMessageContentPartSchema:le,chatCompletionRequestUserMessageSchema:Ot,chatCompletionResponseMessageSchema:ce,chatCompletionRoleSchema:ze,chatCompletionStreamOptionsSchema:ue,chatCompletionStreamResponseDeltaSchema:pe,chatCompletionTokenLogprobSchema:me,chatCompletionToolChoiceOptionSchema:he,chatCompletionToolSchema:ye,chunkingStrategyRequestParamSchema:jc,code2Schema:Xa,code3Schema:An,codeSchema:wa,completeUploadDataSchema:br,completeUploadErrorSchema:gr,completeUploadRequestSchema:ge,completeUploadResponseSchema:hr,completionUsageSchema:je,createAssistantDataSchema:mz,createAssistantErrorSchema:Wr,createAssistantRequestSchema:Ic,createAssistantResponseSchema:Bc,createBatchDataSchema:Fl,createBatchErrorSchema:Ul,createBatchResponseSchema:El,createChatCompletionDataSchema:pz,createChatCompletionErrorSchema:Pn,createChatCompletionFunctionResponseSchema:ve,createChatCompletionImageResponseSchema:_e,createChatCompletionRequestSchema:Uc,createChatCompletionResponse2Schema:Tn,createChatCompletionResponseSchema:Ae,createChatCompletionStreamResponseSchema:Ce,createCompletionDataSchema:xn,createCompletionErrorSchema:En,createCompletionRequestSchema:Pe,createCompletionResponse2Schema:Fn,createCompletionResponseSchema:xe,createEmbeddingDataSchema:Bn,createEmbeddingErrorSchema:Nn,createEmbeddingRequestSchema:Ee,createEmbeddingResponse2Schema:Oc,createEmbeddingResponseSchema:Jn,createFileErrorSchema:er,createFileResponseSchema:$n,createFineTuningJobDataSchema:Sr,createFineTuningJobErrorSchema:yr,createFineTuningJobRequestSchema:Ve,createFineTuningJobResponseSchema:_r,createImageDataSchema:Un,createImageEditErrorSchema:Vn,createImageEditResponseSchema:Mn,createImageErrorSchema:qn,createImageRequestSchema:Be,createImageResponseSchema:On,createImageVariationErrorSchema:In,createImageVariationResponseSchema:Ln,createMessageDataSchema:vi,createMessageErrorSchema:_i,createMessageRequestSchema:We,createMessageResponseSchema:Si,createModerationDataSchema:Zr,createModerationErrorSchema:Xr,createModerationRequestSchema:Ye,createModerationResponse2Schema:Hr,createModerationResponseSchema:Qe,createProjectDataSchema:vs,createProjectErrorSchema:_s,createProjectResponseSchema:Ss,createProjectServiceAccountDataSchema:Ys,createProjectServiceAccountErrorSchema:Ws,createProjectServiceAccountResponseSchema:Qs,createProjectUserDataSchema:Us,createProjectUserErrorSchema:qs,createProjectUserResponseSchema:Os,createRunDataSchema:Yc,createRunErrorSchema:Ui,createRunRequestSchema:Sc,createRunResponseSchema:Qc,createSpeechDataSchema:Kn,createSpeechErrorSchema:Gn,createSpeechRequestSchema:tt,createThreadAndRunDataSchema:Zc,createThreadAndRunErrorSchema:xi,createThreadAndRunRequestSchema:_c,createThreadAndRunResponseSchema:Hc,createThreadDataSchema:ri,createThreadErrorSchema:li,createThreadRequestSchema:nt,createThreadResponseSchema:ii,createTranscriptionErrorSchema:Zn,createTranscriptionResponseJsonSchema:it,createTranscriptionResponseSchema:qc,createTranscriptionResponseVerboseJsonSchema:yc,createTranslationErrorSchema:Xn,createTranslationResponseJsonSchema:ct,createTranslationResponseSchema:Hn,createTranslationResponseVerboseJsonSchema:zt,createUploadDataSchema:zr,createUploadErrorSchema:pr,createUploadRequestSchema:ut,createUploadResponseSchema:ur,createVectorStoreDataSchema:nz,createVectorStoreErrorSchema:tl,createVectorStoreFileBatchDataSchema:lz,createVectorStoreFileBatchErrorSchema:yl,createVectorStoreFileBatchRequestSchema:Rc,createVectorStoreFileBatchResponseSchema:_l,createVectorStoreFileDataSchema:iz,createVectorStoreFileErrorSchema:bl,createVectorStoreFileRequestSchema:wc,createVectorStoreFileResponseSchema:ml,createVectorStoreRequestSchema:$i,createVectorStoreResponseSchema:el,dataSchema:Dt,defaultProjectErrorResponseSchema:dt,deleteAssistantDataSchema:oi,deleteAssistantErrorSchema:ni,deleteAssistantResponse2Schema:ai,deleteAssistantResponseSchema:mt,deleteFileDataSchema:tr,deleteFileErrorSchema:ar,deleteFileResponse2Schema:or,deleteFileResponseSchema:ht,deleteInviteDataSchema:os,deleteInviteErrorSchema:ns,deleteInviteResponseSchema:as,deleteMessageDataSchema:Ci,deleteMessageErrorSchema:Pi,deleteMessageResponse2Schema:Ti,deleteMessageResponseSchema:jt,deleteModelDataSchema:Nr,deleteModelErrorSchema:Gr,deleteModelResponse2Schema:Kr,deleteModelResponseSchema:vt,deleteProjectApiKeyDataSchema:uc,deleteProjectApiKeyErrorSchema:dc,deleteProjectApiKeyResponseSchema:pc,deleteProjectServiceAccountDataSchema:oc,deleteProjectServiceAccountErrorSchema:nc,deleteProjectServiceAccountResponseSchema:ac,deleteProjectUserDataSchema:Ns,deleteProjectUserErrorSchema:Gs,deleteProjectUserResponseSchema:Ks,deleteThreadDataSchema:mi,deleteThreadErrorSchema:hi,deleteThreadResponse2Schema:bi,deleteThreadResponseSchema:St,deleteUserDataSchema:ms,deleteUserErrorSchema:hs,deleteUserResponseSchema:bs,deleteVectorStoreDataSchema:sl,deleteVectorStoreErrorSchema:zl,deleteVectorStoreFileDataSchema:fl,deleteVectorStoreFileErrorSchema:Sl,deleteVectorStoreFileResponse2Schema:vl,deleteVectorStoreFileResponseSchema:yt,deleteVectorStoreResponse2Schema:cl,deleteVectorStoreResponseSchema:wt,detailSchema:ee,doneEventSchema:S,downloadFileDataSchema:lr,downloadFileErrorSchema:cr,downloadFileResponseSchema:sr,embeddingSchema:Oe,encodingFormatSchema:Ue,errorEventSchema:Pt,errorResponseSchema:Ft,errorSchema:Tt,event2Schema:xt,event3Schema:Eo,event4Schema:Qa,event5Schema:Wa,event6Schema:ln,eventSchema:At,fineTuneChatCompletionRequestAssistantMessageSchema:kc,fineTuningIntegrationSchema:Vt,fineTuningJobCheckpointSchema:Nt,fineTuningJobEventSchema:Gt,fineTuningJobSchema:It,finetuneChatRequestInputSchema:Ac,finetuneCompletionRequestInputSchema:Mt,functionObjectSchema:be,functionParametersSchema:B,getAssistantDataSchema:$r,getAssistantErrorSchema:ei,getAssistantResponseSchema:Jc,getMessageDataSchema:yi,getMessageErrorSchema:wi,getMessageResponseSchema:Ri,getRunDataSchema:Oi,getRunErrorSchema:qi,getRunResponseSchema:Wc,getRunStepDataSchema:Zi,getRunStepErrorSchema:Xi,getRunStepResponseSchema:Hi,getThreadDataSchema:si,getThreadErrorSchema:zi,getThreadResponseSchema:ci,getVectorStoreDataSchema:ol,getVectorStoreErrorSchema:nl,getVectorStoreFileBatchDataSchema:Rl,getVectorStoreFileBatchErrorSchema:kl,getVectorStoreFileBatchResponseSchema:wl,getVectorStoreFileDataSchema:hl,getVectorStoreFileErrorSchema:jl,getVectorStoreFileResponseSchema:gl,getVectorStoreResponseSchema:al,imageSchema:Xt,imagesResponseSchema:Yt,inviteDeleteResponseSchema:to,inviteListResponseSchema:ao,inviteRequestSchema:no,inviteSchema:Qt,inviteUserDataSchema:Yl,inviteUserErrorSchema:Wl,inviteUserResponseSchema:Ql,levelSchema:Zt,listAssistantsDataSchema:Yr,listAssistantsErrorSchema:Qr,listAssistantsResponse2Schema:dz,listAssistantsResponseSchema:Lc,listAuditLogsDataSchema:Kl,listAuditLogsErrorSchema:Gl,listAuditLogsResponse2Schema:hz,listAuditLogsResponseSchema:hz,listBatchesDataSchema:Ol,listBatchesErrorSchema:Ml,listBatchesResponse2Schema:ql,listBatchesResponseSchema:ro,listFilesDataSchema:Yn,listFilesErrorSchema:Wn,listFilesInVectorStoreBatchDataSchema:Tl,listFilesInVectorStoreBatchErrorSchema:xl,listFilesInVectorStoreBatchResponseSchema:Pl,listFilesResponse2Schema:Mc,listFilesResponseSchema:Qn,listFineTuningEventsDataSchema:Tr,listFineTuningEventsErrorSchema:xr,listFineTuningEventsResponseSchema:Pr,listFineTuningJobCheckpointsDataSchema:Or,listFineTuningJobCheckpointsErrorSchema:Mr,listFineTuningJobCheckpointsResponse2Schema:qr,listFineTuningJobCheckpointsResponseSchema:lo,listFineTuningJobEventsResponseSchema:so,listInvitesDataSchema:Zl,listInvitesErrorSchema:Xl,listInvitesResponseSchema:Hl,listMessagesDataSchema:gi,listMessagesErrorSchema:fi,listMessagesResponse2Schema:Gc,listMessagesResponseSchema:ji,listModelsErrorSchema:Lr,listModelsResponse2Schema:Vc,listModelsResponseSchema:Vr,listPaginatedFineTuningJobsDataSchema:Rr,listPaginatedFineTuningJobsErrorSchema:kr,listPaginatedFineTuningJobsResponse2Schema:wr,listPaginatedFineTuningJobsResponseSchema:zo,listProjectApiKeysDataSchema:rc,listProjectApiKeysErrorSchema:lc,listProjectApiKeysResponseSchema:sz,listProjectServiceAccountsDataSchema:Zs,listProjectServiceAccountsErrorSchema:Xs,listProjectServiceAccountsResponseSchema:Hs,listProjectUsersDataSchema:xs,listProjectUsersErrorSchema:Es,listProjectUsersResponseSchema:Fs,listProjectsDataSchema:gs,listProjectsErrorSchema:fs,listProjectsResponseSchema:js,listRunStepsDataSchema:Ni,listRunStepsErrorSchema:Gi,listRunStepsResponse2Schema:oz,listRunStepsResponseSchema:Ki,listRunsDataSchema:Fi,listRunsErrorSchema:Ei,listRunsResponse2Schema:bz,listRunsResponseSchema:Xc,listThreadsResponseSchema:Tc,listUsersDataSchema:rs,listUsersErrorSchema:ls,listUsersResponseSchema:is,listVectorStoreFilesDataSchema:ul,listVectorStoreFilesErrorSchema:dl,listVectorStoreFilesResponse2Schema:rz,listVectorStoreFilesResponseSchema:pl,listVectorStoresDataSchema:Yi,listVectorStoresErrorSchema:Wi,listVectorStoresResponse2Schema:az,listVectorStoresResponseSchema:Qi,messageContentImageFileObjectSchema:Ge,messageContentImageUrlObjectSchema:Ze,messageContentRefusalObjectSchema:bo,messageContentTextAnnotationsFileCitationObjectSchema:ho,messageContentTextAnnotationsFilePathObjectSchema:jo,messageContentTextObjectSchema:vo,messageDeltaContentImageFileObjectSchema:So,messageDeltaContentImageUrlObjectSchema:_o,messageDeltaContentRefusalObjectSchema:yo,messageDeltaContentTextAnnotationsFileCitationObjectSchema:Ro,messageDeltaContentTextAnnotationsFilePathObjectSchema:wo,messageDeltaContentTextObjectSchema:ko,messageDeltaObjectSchema:Ao,messageObjectSchema:Co,messageRequestContentTextObjectSchema:He,messageStreamEventSchema:Fo,methodSchema:M,modelSchema:co,modifyAssistantDataSchema:Nc,modifyAssistantErrorSchema:ti,modifyAssistantRequestSchema:Pc,modifyAssistantResponseSchema:Kc,modifyMessageDataSchema:ki,modifyMessageErrorSchema:Di,modifyMessageRequestSchema:Oo,modifyMessageResponseSchema:Ai,modifyProjectDataSchema:ks,modifyProjectErrorSchema:Ds,modifyProjectResponseSchema:As,modifyProjectUserDataSchema:Is,modifyProjectUserErrorSchema:Js,modifyProjectUserResponseSchema:Bs,modifyRunDataSchema:Mi,modifyRunErrorSchema:Vi,modifyRunRequestSchema:qo,modifyRunResponseSchema:$c,modifyThreadDataSchema:ui,modifyThreadErrorSchema:di,modifyThreadRequestSchema:Mo,modifyThreadResponseSchema:pi,modifyUserDataSchema:us,modifyUserErrorSchema:ds,modifyUserResponseSchema:ps,modifyVectorStoreDataSchema:rl,modifyVectorStoreErrorSchema:ll,modifyVectorStoreResponseSchema:il,object10Schema:_t,object11Schema:Rt,object12Schema:kt,object13Schema:Ct,object14Schema:Bt,object15Schema:Kt,object16Schema:Ht,object17Schema:Wt,object18Schema:oo,object19Schema:Do,object20Schema:To,object21Schema:Uo,object22Schema:No,object23Schema:Ho,object24Schema:Yo,object25Schema:ea,object26Schema:aa,object27Schema:sa,object28Schema:ua,object29Schema:ma,object2Schema:U,object30Schema:_a,object31Schema:Ca,object32Schema:Ga,object33Schema:nn,object34Schema:pn,object35Schema:mn,object36Schema:hn,object37Schema:jn,object38Schema:yn,object39Schema:kn,object3Schema:Se,object40Schema:Dn,object4Schema:Te,object5Schema:Fe,object6Schema:qe,object7Schema:bt,object8Schema:gt,object9Schema:ft,openAIFileSchema:io,openAiObjectSchema:h,otherChunkingStrategyResponseParamSchema:Io,parallelToolCallsSchema:Re,projectApiKeyDeleteResponseSchema:Xo,projectApiKeyListResponseSchema:ic,projectApiKeySchema:Qo,projectCreateRequestSchema:Wo,projectListResponseSchema:$o,projectSchema:Jo,projectServiceAccountApiKeySchema:oa,projectServiceAccountCreateRequestSchema:na,projectServiceAccountCreateResponseSchema:ra,projectServiceAccountDeleteResponseSchema:la,projectServiceAccountListResponseSchema:ca,projectServiceAccountSchema:Zo,projectUpdateRequestSchema:za,projectUserCreateRequestSchema:pa,projectUserDeleteResponseSchema:da,projectUserListResponseSchema:ba,projectUserSchema:Go,projectUserUpdateRequestSchema:ha,purpose2Schema:Vo,purposeSchema:Me,qualitySchema:Je,reason2Schema:ka,reasonSchema:xo,responseFormat2Schema:at,responseFormat3Schema:rt,responseFormatJsonObjectSchema:j,responseFormatJsonSchemaSchema:mc,responseFormatJsonSchemaSchemaSchema:ja,responseFormatSchema:Ie,responseFormatTextSchema:g,retrieveBatchDataSchema:Vl,retrieveBatchErrorSchema:Il,retrieveBatchResponseSchema:Ll,retrieveFileDataSchema:nr,retrieveFileErrorSchema:ir,retrieveFileResponseSchema:rr,retrieveFineTuningJobDataSchema:Ar,retrieveFineTuningJobErrorSchema:Cr,retrieveFineTuningJobResponseSchema:Dr,retrieveInviteDataSchema:$l,retrieveInviteErrorSchema:ts,retrieveInviteResponseSchema:es,retrieveModelDataSchema:Ir,retrieveModelErrorSchema:Jr,retrieveModelResponseSchema:Br,retrieveProjectApiKeyDataSchema:sc,retrieveProjectApiKeyErrorSchema:zc,retrieveProjectApiKeyResponseSchema:cc,retrieveProjectDataSchema:ys,retrieveProjectErrorSchema:ws,retrieveProjectResponseSchema:Rs,retrieveProjectServiceAccountDataSchema:$s,retrieveProjectServiceAccountErrorSchema:tc,retrieveProjectServiceAccountResponseSchema:ec,retrieveProjectUserDataSchema:Ms,retrieveProjectUserErrorSchema:Ls,retrieveProjectUserResponseSchema:Vs,retrieveUserDataSchema:ss,retrieveUserErrorSchema:zs,retrieveUserResponseSchema:cs,role10Schema:ia,role2Schema:Q,role3Schema:ne,role4Schema:ie,role5Schema:se,role6Schema:de,role7Schema:Xe,role8Schema:$t,role9Schema:ta,roleSchema:Z,runCompletionUsageSchema:va,runObjectSchema:Cc,runStepCompletionUsageSchema:Aa,runStepDeltaObjectSchema:Fc,runStepDeltaStepDetailsMessageCreationObjectSchema:Da,runStepDeltaStepDetailsToolCallsCodeObjectSchema:qa,runStepDeltaStepDetailsToolCallsCodeOutputImageObjectSchema:xa,runStepDeltaStepDetailsToolCallsCodeOutputLogsObjectSchema:Pa,runStepDeltaStepDetailsToolCallsFileSearchObjectSchema:Ua,runStepDeltaStepDetailsToolCallsFunctionObjectSchema:Oa,runStepDeltaStepDetailsToolCallsObjectSchema:xc,runStepDetailsMessageCreationObjectSchema:Va,runStepDetailsToolCallsCodeObjectSchema:Na,runStepDetailsToolCallsCodeOutputImageObjectSchema:Ia,runStepDetailsToolCallsCodeOutputLogsObjectSchema:La,runStepDetailsToolCallsFileSearchObjectSchema:Ba,runStepDetailsToolCallsFunctionObjectSchema:Ja,runStepDetailsToolCallsObjectSchema:Ka,runStepObjectSchema:Ya,runStepStreamEventSchema:cz,runStreamEventSchema:Ec,runToolCallObjectSchema:Sa,serviceTier2Schema:De,serviceTierSchema:ke,size2Schema:Ne,sizeSchema:Le,staticChunkingStrategyRequestParamSchema:en,staticChunkingStrategyResponseParamSchema:on,staticChunkingStrategySchema:$a,status10Schema:Rn,status11Schema:Cn,status2Schema:Jt,status3Schema:eo,status4Schema:Po,status5Schema:Lo,status6Schema:Ko,status7Schema:ya,status8Schema:Ha,status9Schema:un,statusSchema:O,styleSchema:Ke,submitToolOuputsToRunDataSchema:Li,submitToolOuputsToRunErrorSchema:Ii,submitToolOuputsToRunResponseSchema:ez,submitToolOutputsRunRequestSchema:an,threadObjectSchema:uo,threadStreamEventSchema:rn,transcriptionSegmentSchema:st,transcriptionWordSchema:lt,truncationObjectSchema:$e,type10Schema:oe,type11Schema:Lt,type12Schema:mo,type13Schema:go,type14Schema:fo,type15Schema:Bo,type16Schema:ga,type17Schema:fa,type18Schema:Ra,type19Schema:Ta,type20Schema:Fa,type21Schema:Ea,type22Schema:Ma,type23Schema:Za,type24Schema:tn,type25Schema:sn,type2Schema:_,type3Schema:y,type4Schema:w,type5Schema:A,type6Schema:T,type7Schema:F,type8Schema:$,type9Schema:te,typeSchema:v,updateVectorStoreRequestSchema:cn,uploadPartSchema:dn,uploadSchema:zn,userDeleteResponseSchema:gn,userListResponseSchema:fn,userRoleUpdateRequestSchema:vn,userSchema:bn,vectorStoreExpirationAfterSchema:pt,vectorStoreFileBatchObjectSchema:_n,vectorStoreFileObjectSchema:wn,vectorStoreObjectSchema:po,voiceSchema:ot,weightSchema:Et},jz=function(e){function t(t){var o,a=t.config;return(o=e.call(this)||this).name="OPENAI",o.logoUrl=z,o.config=void 0,o.tools=void 0,o.categories=["ai"],o.description="OpenAI is an artificial intelligence platform that provides a set of tools and APIs for building AI-powered applications.",o.getApiClient=n(l().mark((function e(){var t,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={API_KEY:null==(t=o.config)?void 0:t.API_KEY},o.baseClient.client.interceptors.request.use((function(e,t){return e.headers.set("Authorization","Bearer "+(null==a?void 0:a.API_KEY)),e})),e.abrupt("return",d);case 4:case"end":return e.stop()}}),e)}))),o.config=a,o.tools=o._generateIntegrationTools(),o}return i(t,e),o=t,(a=[{key:"toolSchemas",get:function(){return gz}},{key:"toolDocumentations",get:function(){return u}},{key:"baseClient",get:function(){return p.setConfig({baseUrl:"https://api.openai.com/v1"}),d}}])&&function(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,c(a.key),a)}}(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,a}(e.OpenAPIToolset);exports.OpenaiIntegration=function(e){function t(t){var o,a=t.config;return(o=e.call(this)||this).name="OPENAI",o.logoUrl=z,o.config=void 0,o.categories=["ai"],o.description="OpenAI is an artificial intelligence platform that provides a set of tools and APIs for building AI-powered applications.",o.config=a,o}return i(t,e),t.prototype.getStaticTools=function(){return new jz({config:this.config}).tools},t}(e.Integration);
2
+ //# sourceMappingURL=openai.cjs.production.min.js.map