@mistralai/mistralai 1.7.2 → 1.7.4
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.
- package/README.md +50 -2
- package/docs/sdks/accesses/README.md +263 -0
- package/docs/sdks/documents/README.md +809 -0
- package/docs/sdks/libraries/README.md +395 -0
- package/docs/sdks/models/README.md +1 -1
- package/examples/src/async_ocr_process_from_file.ts +2 -4
- package/funcs/betaLibrariesAccessesDelete.d.ts +18 -0
- package/funcs/betaLibrariesAccessesDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesDelete.js +113 -0
- package/funcs/betaLibrariesAccessesDelete.js.map +1 -0
- package/funcs/betaLibrariesAccessesList.d.ts +18 -0
- package/funcs/betaLibrariesAccessesList.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesList.js +112 -0
- package/funcs/betaLibrariesAccessesList.js.map +1 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.d.ts +18 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.js +113 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.js.map +1 -0
- package/funcs/betaLibrariesCreate.d.ts +17 -0
- package/funcs/betaLibrariesCreate.d.ts.map +1 -0
- package/funcs/betaLibrariesCreate.js +106 -0
- package/funcs/betaLibrariesCreate.js.map +1 -0
- package/funcs/betaLibrariesDelete.d.ts +18 -0
- package/funcs/betaLibrariesDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesDelete.js +112 -0
- package/funcs/betaLibrariesDelete.js.map +1 -0
- package/funcs/betaLibrariesDocumentsDelete.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsDelete.js +116 -0
- package/funcs/betaLibrariesDocumentsDelete.js.map +1 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js +118 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js.map +1 -0
- package/funcs/betaLibrariesDocumentsGet.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsGet.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsGet.js +116 -0
- package/funcs/betaLibrariesDocumentsGet.js.map +1 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.js +116 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.js.map +1 -0
- package/funcs/betaLibrariesDocumentsList.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsList.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsList.js +120 -0
- package/funcs/betaLibrariesDocumentsList.js.map +1 -0
- package/funcs/betaLibrariesDocumentsReprocess.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsReprocess.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsReprocess.js +116 -0
- package/funcs/betaLibrariesDocumentsReprocess.js.map +1 -0
- package/funcs/betaLibrariesDocumentsStatus.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsStatus.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsStatus.js +116 -0
- package/funcs/betaLibrariesDocumentsStatus.js.map +1 -0
- package/funcs/betaLibrariesDocumentsTextContent.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsTextContent.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsTextContent.js +116 -0
- package/funcs/betaLibrariesDocumentsTextContent.js.map +1 -0
- package/funcs/betaLibrariesDocumentsUpdate.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsUpdate.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsUpdate.js +117 -0
- package/funcs/betaLibrariesDocumentsUpdate.js.map +1 -0
- package/funcs/betaLibrariesDocumentsUpload.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsUpload.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsUpload.js +128 -0
- package/funcs/betaLibrariesDocumentsUpload.js.map +1 -0
- package/funcs/betaLibrariesGet.d.ts +18 -0
- package/funcs/betaLibrariesGet.d.ts.map +1 -0
- package/funcs/betaLibrariesGet.js +112 -0
- package/funcs/betaLibrariesGet.js.map +1 -0
- package/funcs/betaLibrariesList.d.ts +16 -0
- package/funcs/betaLibrariesList.d.ts.map +1 -0
- package/funcs/betaLibrariesList.js +92 -0
- package/funcs/betaLibrariesList.js.map +1 -0
- package/funcs/betaLibrariesUpdate.d.ts +18 -0
- package/funcs/betaLibrariesUpdate.d.ts.map +1 -0
- package/funcs/betaLibrariesUpdate.js +113 -0
- package/funcs/betaLibrariesUpdate.js.map +1 -0
- package/funcs/modelsRetrieve.d.ts +1 -1
- package/funcs/modelsRetrieve.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentscompletionrequest.d.ts +3 -0
- package/models/components/agentscompletionrequest.d.ts.map +1 -1
- package/models/components/agentscompletionrequest.js.map +1 -1
- package/models/components/agentscompletionstreamrequest.d.ts +3 -0
- package/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
- package/models/components/agentscompletionstreamrequest.js.map +1 -1
- package/models/components/basemodelcard.d.ts +2 -0
- package/models/components/basemodelcard.d.ts.map +1 -1
- package/models/components/basemodelcard.js +4 -0
- package/models/components/basemodelcard.js.map +1 -1
- package/models/components/chatcompletionrequest.d.ts +3 -0
- package/models/components/chatcompletionrequest.d.ts.map +1 -1
- package/models/components/chatcompletionrequest.js.map +1 -1
- package/models/components/chatcompletionstreamrequest.d.ts +3 -0
- package/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
- package/models/components/chatcompletionstreamrequest.js.map +1 -1
- package/models/components/contentchunk.d.ts +5 -0
- package/models/components/contentchunk.d.ts.map +1 -1
- package/models/components/contentchunk.js +3 -0
- package/models/components/contentchunk.js.map +1 -1
- package/models/components/conversationevents.d.ts +17 -8
- package/models/components/conversationevents.d.ts.map +1 -1
- package/models/components/conversationevents.js +19 -8
- package/models/components/conversationevents.js.map +1 -1
- package/models/components/conversationhistory.d.ts +4 -4
- package/models/components/conversationhistory.d.ts.map +1 -1
- package/models/components/conversationhistory.js +8 -8
- package/models/components/conversationhistory.js.map +1 -1
- package/models/components/conversationrestartrequest.d.ts +2 -2
- package/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/models/components/conversationrestartrequest.js +4 -4
- package/models/components/conversationrestartrequest.js.map +1 -1
- package/models/components/conversationrestartstreamrequest.d.ts +2 -2
- package/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/models/components/conversationrestartstreamrequest.js +4 -4
- package/models/components/conversationrestartstreamrequest.js.map +1 -1
- package/models/components/documentout.d.ts +61 -0
- package/models/components/documentout.d.ts.map +1 -0
- package/models/components/documentout.js +121 -0
- package/models/components/documentout.js.map +1 -0
- package/models/components/documenttextcontent.d.ts +29 -0
- package/models/components/documenttextcontent.d.ts.map +1 -0
- package/models/components/documenttextcontent.js +59 -0
- package/models/components/documenttextcontent.js.map +1 -0
- package/models/components/documentupdatein.d.ts +29 -0
- package/models/components/documentupdatein.d.ts.map +1 -0
- package/models/components/documentupdatein.js +59 -0
- package/models/components/documentupdatein.js.map +1 -0
- package/models/components/entitytype.d.ts +29 -0
- package/models/components/entitytype.d.ts.map +1 -0
- package/models/components/entitytype.js +62 -0
- package/models/components/entitytype.js.map +1 -0
- package/models/components/file.d.ts +31 -0
- package/models/components/file.d.ts.map +1 -0
- package/models/components/file.js +72 -0
- package/models/components/file.js.map +1 -0
- package/models/components/filechunk.d.ts +31 -0
- package/models/components/filechunk.d.ts.map +1 -0
- package/models/components/filechunk.js +70 -0
- package/models/components/filechunk.js.map +1 -0
- package/models/components/ftmodelcard.d.ts +2 -0
- package/models/components/ftmodelcard.d.ts.map +1 -1
- package/models/components/ftmodelcard.js +4 -0
- package/models/components/ftmodelcard.js.map +1 -1
- package/models/components/index.d.ts +19 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +19 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputentries.d.ts +6 -2
- package/models/components/inputentries.d.ts.map +1 -1
- package/models/components/inputentries.js +14 -2
- package/models/components/inputentries.js.map +1 -1
- package/models/components/libraryin.d.ts +33 -0
- package/models/components/libraryin.d.ts.map +1 -0
- package/models/components/libraryin.js +72 -0
- package/models/components/libraryin.js.map +1 -0
- package/models/components/libraryinupdate.d.ts +31 -0
- package/models/components/libraryinupdate.d.ts.map +1 -0
- package/models/components/libraryinupdate.js +61 -0
- package/models/components/libraryinupdate.js.map +1 -0
- package/models/components/libraryout.d.ts +59 -0
- package/models/components/libraryout.d.ts.map +1 -0
- package/models/components/libraryout.js +120 -0
- package/models/components/libraryout.js.map +1 -0
- package/models/components/listdocumentout.d.ts +33 -0
- package/models/components/listdocumentout.d.ts.map +1 -0
- package/models/components/listdocumentout.js +63 -0
- package/models/components/listdocumentout.js.map +1 -0
- package/models/components/listlibraryout.d.ts +30 -0
- package/models/components/listlibraryout.d.ts.map +1 -0
- package/models/components/listlibraryout.js +60 -0
- package/models/components/listlibraryout.js.map +1 -0
- package/models/components/listsharingout.d.ts +30 -0
- package/models/components/listsharingout.d.ts.map +1 -0
- package/models/components/listsharingout.js +60 -0
- package/models/components/listsharingout.js.map +1 -0
- package/models/components/messageinputentry.d.ts +2 -0
- package/models/components/messageinputentry.d.ts.map +1 -1
- package/models/components/messageinputentry.js +2 -0
- package/models/components/messageinputentry.js.map +1 -1
- package/models/components/modelcapabilities.d.ts +2 -0
- package/models/components/modelcapabilities.d.ts.map +1 -1
- package/models/components/modelcapabilities.js +2 -0
- package/models/components/modelcapabilities.js.map +1 -1
- package/models/components/ocrrequest.d.ts +5 -4
- package/models/components/ocrrequest.d.ts.map +1 -1
- package/models/components/ocrrequest.js +13 -2
- package/models/components/ocrrequest.js.map +1 -1
- package/models/components/paginationinfo.d.ts +37 -0
- package/models/components/paginationinfo.d.ts.map +1 -0
- package/models/components/paginationinfo.js +84 -0
- package/models/components/paginationinfo.js.map +1 -0
- package/models/components/processingstatusout.d.ts +31 -0
- package/models/components/processingstatusout.d.ts.map +1 -0
- package/models/components/processingstatusout.js +72 -0
- package/models/components/processingstatusout.js.map +1 -0
- package/models/components/shareenum.d.ts +22 -0
- package/models/components/shareenum.d.ts.map +1 -0
- package/models/components/shareenum.js +58 -0
- package/models/components/shareenum.js.map +1 -0
- package/models/components/sharingdelete.d.ts +40 -0
- package/models/components/sharingdelete.d.ts.map +1 -0
- package/models/components/sharingdelete.js +77 -0
- package/models/components/sharingdelete.js.map +1 -0
- package/models/components/sharingin.d.ts +43 -0
- package/models/components/sharingin.d.ts.map +1 -0
- package/models/components/sharingin.js +80 -0
- package/models/components/sharingin.js.map +1 -0
- package/models/components/sharingout.d.ts +39 -0
- package/models/components/sharingout.d.ts.map +1 -0
- package/models/components/sharingout.js +86 -0
- package/models/components/sharingout.js.map +1 -0
- package/models/components/ssetypes.d.ts +3 -0
- package/models/components/ssetypes.d.ts.map +1 -1
- package/models/components/ssetypes.js +1 -0
- package/models/components/ssetypes.js.map +1 -1
- package/models/components/toolexecutiondeltaevent.d.ts +63 -0
- package/models/components/toolexecutiondeltaevent.d.ts.map +1 -0
- package/models/components/toolexecutiondeltaevent.js +100 -0
- package/models/components/toolexecutiondeltaevent.js.map +1 -0
- package/models/components/toolexecutionentry.d.ts +2 -0
- package/models/components/toolexecutionentry.d.ts.map +1 -1
- package/models/components/toolexecutionentry.js +2 -0
- package/models/components/toolexecutionentry.js.map +1 -1
- package/models/components/toolexecutionstartedevent.d.ts +2 -0
- package/models/components/toolexecutionstartedevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedevent.js +2 -0
- package/models/components/toolexecutionstartedevent.js.map +1 -1
- package/models/components/toolreferencechunk.d.ts +4 -2
- package/models/components/toolreferencechunk.d.ts.map +1 -1
- package/models/components/toolreferencechunk.js +4 -2
- package/models/components/toolreferencechunk.js.map +1 -1
- package/models/operations/agentsapiv1conversationsget.d.ts +3 -0
- package/models/operations/agentsapiv1conversationsget.d.ts.map +1 -1
- package/models/operations/agentsapiv1conversationsget.js.map +1 -1
- package/models/operations/agentsapiv1conversationshistory.d.ts +3 -0
- package/models/operations/agentsapiv1conversationshistory.d.ts.map +1 -1
- package/models/operations/agentsapiv1conversationshistory.js.map +1 -1
- package/models/operations/agentsapiv1conversationsmessages.d.ts +3 -0
- package/models/operations/agentsapiv1conversationsmessages.d.ts.map +1 -1
- package/models/operations/agentsapiv1conversationsmessages.js.map +1 -1
- package/models/operations/agentsapiv1conversationsrestart.d.ts +3 -0
- package/models/operations/agentsapiv1conversationsrestart.d.ts.map +1 -1
- package/models/operations/agentsapiv1conversationsrestart.js.map +1 -1
- package/models/operations/agentsapiv1conversationsrestartstream.d.ts +3 -0
- package/models/operations/agentsapiv1conversationsrestartstream.d.ts.map +1 -1
- package/models/operations/agentsapiv1conversationsrestartstream.js.map +1 -1
- package/models/operations/filesapiroutesuploadfile.d.ts +2 -29
- package/models/operations/filesapiroutesuploadfile.d.ts.map +1 -1
- package/models/operations/filesapiroutesuploadfile.js +3 -43
- package/models/operations/filesapiroutesuploadfile.js.map +1 -1
- package/models/operations/index.d.ts +16 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +16 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/librariesdeletev1.d.ts +29 -0
- package/models/operations/librariesdeletev1.d.ts.map +1 -0
- package/models/operations/librariesdeletev1.js +68 -0
- package/models/operations/librariesdeletev1.js.map +1 -0
- package/models/operations/librariesdocumentsdeletev1.d.ts +31 -0
- package/models/operations/librariesdocumentsdeletev1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsdeletev1.js +72 -0
- package/models/operations/librariesdocumentsdeletev1.js.map +1 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.js +72 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.js +72 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetstatusv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetstatusv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetstatusv1.js +72 -0
- package/models/operations/librariesdocumentsgetstatusv1.js.map +1 -0
- package/models/operations/librariesdocumentsgettextcontentv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgettextcontentv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgettextcontentv1.js +72 -0
- package/models/operations/librariesdocumentsgettextcontentv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetv1.js +72 -0
- package/models/operations/librariesdocumentsgetv1.js.map +1 -0
- package/models/operations/librariesdocumentslistv1.d.ts +39 -0
- package/models/operations/librariesdocumentslistv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentslistv1.js +84 -0
- package/models/operations/librariesdocumentslistv1.js.map +1 -0
- package/models/operations/librariesdocumentsreprocessv1.d.ts +31 -0
- package/models/operations/librariesdocumentsreprocessv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsreprocessv1.js +72 -0
- package/models/operations/librariesdocumentsreprocessv1.js.map +1 -0
- package/models/operations/librariesdocumentsupdatev1.d.ts +34 -0
- package/models/operations/librariesdocumentsupdatev1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsupdatev1.js +77 -0
- package/models/operations/librariesdocumentsupdatev1.js.map +1 -0
- package/models/operations/librariesdocumentsuploadv1.d.ts +70 -0
- package/models/operations/librariesdocumentsuploadv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsuploadv1.js +101 -0
- package/models/operations/librariesdocumentsuploadv1.js.map +1 -0
- package/models/operations/librariesgetv1.d.ts +29 -0
- package/models/operations/librariesgetv1.d.ts.map +1 -0
- package/models/operations/librariesgetv1.js +68 -0
- package/models/operations/librariesgetv1.js.map +1 -0
- package/models/operations/librariessharecreatev1.d.ts +32 -0
- package/models/operations/librariessharecreatev1.d.ts.map +1 -0
- package/models/operations/librariessharecreatev1.js +73 -0
- package/models/operations/librariessharecreatev1.js.map +1 -0
- package/models/operations/librariessharedeletev1.d.ts +32 -0
- package/models/operations/librariessharedeletev1.d.ts.map +1 -0
- package/models/operations/librariessharedeletev1.js +73 -0
- package/models/operations/librariessharedeletev1.js.map +1 -0
- package/models/operations/librariessharelistv1.d.ts +29 -0
- package/models/operations/librariessharelistv1.d.ts.map +1 -0
- package/models/operations/librariessharelistv1.js +68 -0
- package/models/operations/librariessharelistv1.js.map +1 -0
- package/models/operations/librariesupdatev1.d.ts +32 -0
- package/models/operations/librariesupdatev1.d.ts.map +1 -0
- package/models/operations/librariesupdatev1.js +73 -0
- package/models/operations/librariesupdatev1.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accesses.d.ts +27 -0
- package/sdk/accesses.d.ts.map +1 -0
- package/sdk/accesses.js +42 -0
- package/sdk/accesses.js.map +1 -0
- package/sdk/beta.d.ts +3 -0
- package/sdk/beta.d.ts.map +1 -1
- package/sdk/beta.js +4 -0
- package/sdk/beta.js.map +1 -1
- package/sdk/documents.d.ts +76 -0
- package/sdk/documents.d.ts.map +1 -0
- package/sdk/documents.js +112 -0
- package/sdk/documents.js.map +1 -0
- package/sdk/libraries.d.ts +47 -0
- package/sdk/libraries.d.ts.map +1 -0
- package/sdk/libraries.js +70 -0
- package/sdk/libraries.js.map +1 -0
- package/sdk/models.d.ts +1 -1
- package/sdk/models.js +1 -1
- package/src/funcs/betaLibrariesAccessesDelete.ts +172 -0
- package/src/funcs/betaLibrariesAccessesList.ts +171 -0
- package/src/funcs/betaLibrariesAccessesUpdateOrCreate.ts +172 -0
- package/src/funcs/betaLibrariesCreate.ts +163 -0
- package/src/funcs/betaLibrariesDelete.ts +170 -0
- package/src/funcs/betaLibrariesDocumentsDelete.ts +177 -0
- package/src/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsGet.ts +177 -0
- package/src/funcs/betaLibrariesDocumentsGetSignedUrl.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsList.ts +180 -0
- package/src/funcs/betaLibrariesDocumentsReprocess.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsStatus.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsTextContent.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsUpdate.ts +178 -0
- package/src/funcs/betaLibrariesDocumentsUpload.ts +193 -0
- package/src/funcs/betaLibrariesGet.ts +170 -0
- package/src/funcs/betaLibrariesList.ts +136 -0
- package/src/funcs/betaLibrariesUpdate.ts +171 -0
- package/src/funcs/modelsRetrieve.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentscompletionrequest.ts +3 -0
- package/src/models/components/agentscompletionstreamrequest.ts +3 -0
- package/src/models/components/basemodelcard.ts +6 -0
- package/src/models/components/chatcompletionrequest.ts +3 -0
- package/src/models/components/chatcompletionstreamrequest.ts +3 -0
- package/src/models/components/contentchunk.ts +14 -0
- package/src/models/components/conversationevents.ts +54 -24
- package/src/models/components/conversationhistory.ts +16 -16
- package/src/models/components/conversationrestartrequest.ts +6 -6
- package/src/models/components/conversationrestartstreamrequest.ts +6 -6
- package/src/models/components/documentout.ts +158 -0
- package/src/models/components/documenttextcontent.ts +66 -0
- package/src/models/components/documentupdatein.ts +66 -0
- package/src/models/components/entitytype.ts +55 -0
- package/src/models/components/file.ts +73 -0
- package/src/models/components/filechunk.ts +75 -0
- package/src/models/components/ftmodelcard.ts +6 -0
- package/src/models/components/index.ts +19 -0
- package/src/models/components/inputentries.ts +46 -4
- package/src/models/components/libraryin.ts +79 -0
- package/src/models/components/libraryinupdate.ts +68 -0
- package/src/models/components/libraryout.ts +153 -0
- package/src/models/components/listdocumentout.ts +80 -0
- package/src/models/components/listlibraryout.ts +68 -0
- package/src/models/components/listsharingout.ts +68 -0
- package/src/models/components/messageinputentry.ts +4 -0
- package/src/models/components/modelcapabilities.ts +4 -0
- package/src/models/components/ocrrequest.ts +25 -5
- package/src/models/components/paginationinfo.ts +95 -0
- package/src/models/components/processingstatusout.ts +81 -0
- package/src/models/components/shareenum.ts +48 -0
- package/src/models/components/sharingdelete.ts +94 -0
- package/src/models/components/sharingin.ts +103 -0
- package/src/models/components/sharingout.ts +99 -0
- package/src/models/components/ssetypes.ts +1 -0
- package/src/models/components/toolexecutiondeltaevent.ts +136 -0
- package/src/models/components/toolexecutionentry.ts +4 -0
- package/src/models/components/toolexecutionstartedevent.ts +4 -0
- package/src/models/components/toolreferencechunk.ts +8 -4
- package/src/models/operations/agentsapiv1conversationsget.ts +3 -0
- package/src/models/operations/agentsapiv1conversationshistory.ts +3 -0
- package/src/models/operations/agentsapiv1conversationsmessages.ts +3 -0
- package/src/models/operations/agentsapiv1conversationsrestart.ts +3 -0
- package/src/models/operations/agentsapiv1conversationsrestartstream.ts +3 -0
- package/src/models/operations/filesapiroutesuploadfile.ts +4 -69
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/librariesdeletev1.ts +75 -0
- package/src/models/operations/librariesdocumentsdeletev1.ts +84 -0
- package/src/models/operations/librariesdocumentsgetextractedtextsignedurlv1.ts +95 -0
- package/src/models/operations/librariesdocumentsgetsignedurlv1.ts +92 -0
- package/src/models/operations/librariesdocumentsgetstatusv1.ts +86 -0
- package/src/models/operations/librariesdocumentsgettextcontentv1.ts +93 -0
- package/src/models/operations/librariesdocumentsgetv1.ts +83 -0
- package/src/models/operations/librariesdocumentslistv1.ts +103 -0
- package/src/models/operations/librariesdocumentsreprocessv1.ts +86 -0
- package/src/models/operations/librariesdocumentsupdatev1.ts +91 -0
- package/src/models/operations/librariesdocumentsuploadv1.ts +172 -0
- package/src/models/operations/librariesgetv1.ts +75 -0
- package/src/models/operations/librariessharecreatev1.ts +84 -0
- package/src/models/operations/librariessharedeletev1.ts +84 -0
- package/src/models/operations/librariessharelistv1.ts +77 -0
- package/src/models/operations/librariesupdatev1.ts +82 -0
- package/src/sdk/accesses.ts +64 -0
- package/src/sdk/beta.ts +6 -0
- package/src/sdk/documents.ts +190 -0
- package/src/sdk/libraries.ts +110 -0
- package/src/sdk/models.ts +1 -1
|
@@ -6,6 +6,18 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AgentHandoffEntry,
|
|
11
|
+
AgentHandoffEntry$inboundSchema,
|
|
12
|
+
AgentHandoffEntry$Outbound,
|
|
13
|
+
AgentHandoffEntry$outboundSchema,
|
|
14
|
+
} from "./agenthandoffentry.js";
|
|
15
|
+
import {
|
|
16
|
+
FunctionCallEntry,
|
|
17
|
+
FunctionCallEntry$inboundSchema,
|
|
18
|
+
FunctionCallEntry$Outbound,
|
|
19
|
+
FunctionCallEntry$outboundSchema,
|
|
20
|
+
} from "./functioncallentry.js";
|
|
9
21
|
import {
|
|
10
22
|
FunctionResultEntry,
|
|
11
23
|
FunctionResultEntry$inboundSchema,
|
|
@@ -18,8 +30,26 @@ import {
|
|
|
18
30
|
MessageInputEntry$Outbound,
|
|
19
31
|
MessageInputEntry$outboundSchema,
|
|
20
32
|
} from "./messageinputentry.js";
|
|
33
|
+
import {
|
|
34
|
+
MessageOutputEntry,
|
|
35
|
+
MessageOutputEntry$inboundSchema,
|
|
36
|
+
MessageOutputEntry$Outbound,
|
|
37
|
+
MessageOutputEntry$outboundSchema,
|
|
38
|
+
} from "./messageoutputentry.js";
|
|
39
|
+
import {
|
|
40
|
+
ToolExecutionEntry,
|
|
41
|
+
ToolExecutionEntry$inboundSchema,
|
|
42
|
+
ToolExecutionEntry$Outbound,
|
|
43
|
+
ToolExecutionEntry$outboundSchema,
|
|
44
|
+
} from "./toolexecutionentry.js";
|
|
21
45
|
|
|
22
|
-
export type InputEntries =
|
|
46
|
+
export type InputEntries =
|
|
47
|
+
| FunctionResultEntry
|
|
48
|
+
| MessageInputEntry
|
|
49
|
+
| FunctionCallEntry
|
|
50
|
+
| ToolExecutionEntry
|
|
51
|
+
| MessageOutputEntry
|
|
52
|
+
| AgentHandoffEntry;
|
|
23
53
|
|
|
24
54
|
/** @internal */
|
|
25
55
|
export const InputEntries$inboundSchema: z.ZodType<
|
|
@@ -27,14 +57,22 @@ export const InputEntries$inboundSchema: z.ZodType<
|
|
|
27
57
|
z.ZodTypeDef,
|
|
28
58
|
unknown
|
|
29
59
|
> = z.union([
|
|
30
|
-
MessageInputEntry$inboundSchema,
|
|
31
60
|
FunctionResultEntry$inboundSchema,
|
|
61
|
+
MessageInputEntry$inboundSchema,
|
|
62
|
+
FunctionCallEntry$inboundSchema,
|
|
63
|
+
ToolExecutionEntry$inboundSchema,
|
|
64
|
+
MessageOutputEntry$inboundSchema,
|
|
65
|
+
AgentHandoffEntry$inboundSchema,
|
|
32
66
|
]);
|
|
33
67
|
|
|
34
68
|
/** @internal */
|
|
35
69
|
export type InputEntries$Outbound =
|
|
70
|
+
| FunctionResultEntry$Outbound
|
|
36
71
|
| MessageInputEntry$Outbound
|
|
37
|
-
|
|
|
72
|
+
| FunctionCallEntry$Outbound
|
|
73
|
+
| ToolExecutionEntry$Outbound
|
|
74
|
+
| MessageOutputEntry$Outbound
|
|
75
|
+
| AgentHandoffEntry$Outbound;
|
|
38
76
|
|
|
39
77
|
/** @internal */
|
|
40
78
|
export const InputEntries$outboundSchema: z.ZodType<
|
|
@@ -42,8 +80,12 @@ export const InputEntries$outboundSchema: z.ZodType<
|
|
|
42
80
|
z.ZodTypeDef,
|
|
43
81
|
InputEntries
|
|
44
82
|
> = z.union([
|
|
45
|
-
MessageInputEntry$outboundSchema,
|
|
46
83
|
FunctionResultEntry$outboundSchema,
|
|
84
|
+
MessageInputEntry$outboundSchema,
|
|
85
|
+
FunctionCallEntry$outboundSchema,
|
|
86
|
+
ToolExecutionEntry$outboundSchema,
|
|
87
|
+
MessageOutputEntry$outboundSchema,
|
|
88
|
+
AgentHandoffEntry$outboundSchema,
|
|
47
89
|
]);
|
|
48
90
|
|
|
49
91
|
/**
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type LibraryIn = {
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string | null | undefined;
|
|
14
|
+
chunkSize?: number | null | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LibraryIn$inboundSchema: z.ZodType<
|
|
19
|
+
LibraryIn,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
name: z.string(),
|
|
24
|
+
description: z.nullable(z.string()).optional(),
|
|
25
|
+
chunk_size: z.nullable(z.number().int()).optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"chunk_size": "chunkSize",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type LibraryIn$Outbound = {
|
|
34
|
+
name: string;
|
|
35
|
+
description?: string | null | undefined;
|
|
36
|
+
chunk_size?: number | null | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const LibraryIn$outboundSchema: z.ZodType<
|
|
41
|
+
LibraryIn$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
LibraryIn
|
|
44
|
+
> = z.object({
|
|
45
|
+
name: z.string(),
|
|
46
|
+
description: z.nullable(z.string()).optional(),
|
|
47
|
+
chunkSize: z.nullable(z.number().int()).optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
chunkSize: "chunk_size",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace LibraryIn$ {
|
|
59
|
+
/** @deprecated use `LibraryIn$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = LibraryIn$inboundSchema;
|
|
61
|
+
/** @deprecated use `LibraryIn$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = LibraryIn$outboundSchema;
|
|
63
|
+
/** @deprecated use `LibraryIn$Outbound` instead. */
|
|
64
|
+
export type Outbound = LibraryIn$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function libraryInToJSON(libraryIn: LibraryIn): string {
|
|
68
|
+
return JSON.stringify(LibraryIn$outboundSchema.parse(libraryIn));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function libraryInFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<LibraryIn, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => LibraryIn$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'LibraryIn' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type LibraryInUpdate = {
|
|
11
|
+
name?: string | null | undefined;
|
|
12
|
+
description?: string | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const LibraryInUpdate$inboundSchema: z.ZodType<
|
|
17
|
+
LibraryInUpdate,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
name: z.nullable(z.string()).optional(),
|
|
22
|
+
description: z.nullable(z.string()).optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type LibraryInUpdate$Outbound = {
|
|
27
|
+
name?: string | null | undefined;
|
|
28
|
+
description?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const LibraryInUpdate$outboundSchema: z.ZodType<
|
|
33
|
+
LibraryInUpdate$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
LibraryInUpdate
|
|
36
|
+
> = z.object({
|
|
37
|
+
name: z.nullable(z.string()).optional(),
|
|
38
|
+
description: z.nullable(z.string()).optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace LibraryInUpdate$ {
|
|
46
|
+
/** @deprecated use `LibraryInUpdate$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = LibraryInUpdate$inboundSchema;
|
|
48
|
+
/** @deprecated use `LibraryInUpdate$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = LibraryInUpdate$outboundSchema;
|
|
50
|
+
/** @deprecated use `LibraryInUpdate$Outbound` instead. */
|
|
51
|
+
export type Outbound = LibraryInUpdate$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function libraryInUpdateToJSON(
|
|
55
|
+
libraryInUpdate: LibraryInUpdate,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(LibraryInUpdate$outboundSchema.parse(libraryInUpdate));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function libraryInUpdateFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<LibraryInUpdate, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => LibraryInUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'LibraryInUpdate' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type LibraryOut = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
ownerId: string;
|
|
17
|
+
ownerType: string;
|
|
18
|
+
totalSize: number;
|
|
19
|
+
nbDocuments: number;
|
|
20
|
+
chunkSize: number | null;
|
|
21
|
+
emoji?: string | null | undefined;
|
|
22
|
+
description?: string | null | undefined;
|
|
23
|
+
generatedName?: string | null | undefined;
|
|
24
|
+
generatedDescription?: string | null | undefined;
|
|
25
|
+
explicitUserMembersCount?: number | null | undefined;
|
|
26
|
+
explicitWorkspaceMembersCount?: number | null | undefined;
|
|
27
|
+
orgSharingRole?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const LibraryOut$inboundSchema: z.ZodType<
|
|
32
|
+
LibraryOut,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
id: z.string(),
|
|
37
|
+
name: z.string(),
|
|
38
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
|
+
owner_id: z.string(),
|
|
41
|
+
owner_type: z.string(),
|
|
42
|
+
total_size: z.number().int(),
|
|
43
|
+
nb_documents: z.number().int(),
|
|
44
|
+
chunk_size: z.nullable(z.number().int()),
|
|
45
|
+
emoji: z.nullable(z.string()).optional(),
|
|
46
|
+
description: z.nullable(z.string()).optional(),
|
|
47
|
+
generated_name: z.nullable(z.string()).optional(),
|
|
48
|
+
generated_description: z.nullable(z.string()).optional(),
|
|
49
|
+
explicit_user_members_count: z.nullable(z.number().int()).optional(),
|
|
50
|
+
explicit_workspace_members_count: z.nullable(z.number().int()).optional(),
|
|
51
|
+
org_sharing_role: z.nullable(z.string()).optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"created_at": "createdAt",
|
|
55
|
+
"updated_at": "updatedAt",
|
|
56
|
+
"owner_id": "ownerId",
|
|
57
|
+
"owner_type": "ownerType",
|
|
58
|
+
"total_size": "totalSize",
|
|
59
|
+
"nb_documents": "nbDocuments",
|
|
60
|
+
"chunk_size": "chunkSize",
|
|
61
|
+
"generated_name": "generatedName",
|
|
62
|
+
"generated_description": "generatedDescription",
|
|
63
|
+
"explicit_user_members_count": "explicitUserMembersCount",
|
|
64
|
+
"explicit_workspace_members_count": "explicitWorkspaceMembersCount",
|
|
65
|
+
"org_sharing_role": "orgSharingRole",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type LibraryOut$Outbound = {
|
|
71
|
+
id: string;
|
|
72
|
+
name: string;
|
|
73
|
+
created_at: string;
|
|
74
|
+
updated_at: string;
|
|
75
|
+
owner_id: string;
|
|
76
|
+
owner_type: string;
|
|
77
|
+
total_size: number;
|
|
78
|
+
nb_documents: number;
|
|
79
|
+
chunk_size: number | null;
|
|
80
|
+
emoji?: string | null | undefined;
|
|
81
|
+
description?: string | null | undefined;
|
|
82
|
+
generated_name?: string | null | undefined;
|
|
83
|
+
generated_description?: string | null | undefined;
|
|
84
|
+
explicit_user_members_count?: number | null | undefined;
|
|
85
|
+
explicit_workspace_members_count?: number | null | undefined;
|
|
86
|
+
org_sharing_role?: string | null | undefined;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const LibraryOut$outboundSchema: z.ZodType<
|
|
91
|
+
LibraryOut$Outbound,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
LibraryOut
|
|
94
|
+
> = z.object({
|
|
95
|
+
id: z.string(),
|
|
96
|
+
name: z.string(),
|
|
97
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
98
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
99
|
+
ownerId: z.string(),
|
|
100
|
+
ownerType: z.string(),
|
|
101
|
+
totalSize: z.number().int(),
|
|
102
|
+
nbDocuments: z.number().int(),
|
|
103
|
+
chunkSize: z.nullable(z.number().int()),
|
|
104
|
+
emoji: z.nullable(z.string()).optional(),
|
|
105
|
+
description: z.nullable(z.string()).optional(),
|
|
106
|
+
generatedName: z.nullable(z.string()).optional(),
|
|
107
|
+
generatedDescription: z.nullable(z.string()).optional(),
|
|
108
|
+
explicitUserMembersCount: z.nullable(z.number().int()).optional(),
|
|
109
|
+
explicitWorkspaceMembersCount: z.nullable(z.number().int()).optional(),
|
|
110
|
+
orgSharingRole: z.nullable(z.string()).optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
createdAt: "created_at",
|
|
114
|
+
updatedAt: "updated_at",
|
|
115
|
+
ownerId: "owner_id",
|
|
116
|
+
ownerType: "owner_type",
|
|
117
|
+
totalSize: "total_size",
|
|
118
|
+
nbDocuments: "nb_documents",
|
|
119
|
+
chunkSize: "chunk_size",
|
|
120
|
+
generatedName: "generated_name",
|
|
121
|
+
generatedDescription: "generated_description",
|
|
122
|
+
explicitUserMembersCount: "explicit_user_members_count",
|
|
123
|
+
explicitWorkspaceMembersCount: "explicit_workspace_members_count",
|
|
124
|
+
orgSharingRole: "org_sharing_role",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
|
+
*/
|
|
132
|
+
export namespace LibraryOut$ {
|
|
133
|
+
/** @deprecated use `LibraryOut$inboundSchema` instead. */
|
|
134
|
+
export const inboundSchema = LibraryOut$inboundSchema;
|
|
135
|
+
/** @deprecated use `LibraryOut$outboundSchema` instead. */
|
|
136
|
+
export const outboundSchema = LibraryOut$outboundSchema;
|
|
137
|
+
/** @deprecated use `LibraryOut$Outbound` instead. */
|
|
138
|
+
export type Outbound = LibraryOut$Outbound;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function libraryOutToJSON(libraryOut: LibraryOut): string {
|
|
142
|
+
return JSON.stringify(LibraryOut$outboundSchema.parse(libraryOut));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function libraryOutFromJSON(
|
|
146
|
+
jsonString: string,
|
|
147
|
+
): SafeParseResult<LibraryOut, SDKValidationError> {
|
|
148
|
+
return safeParse(
|
|
149
|
+
jsonString,
|
|
150
|
+
(x) => LibraryOut$inboundSchema.parse(JSON.parse(x)),
|
|
151
|
+
`Failed to parse 'LibraryOut' from JSON`,
|
|
152
|
+
);
|
|
153
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DocumentOut,
|
|
11
|
+
DocumentOut$inboundSchema,
|
|
12
|
+
DocumentOut$Outbound,
|
|
13
|
+
DocumentOut$outboundSchema,
|
|
14
|
+
} from "./documentout.js";
|
|
15
|
+
import {
|
|
16
|
+
PaginationInfo,
|
|
17
|
+
PaginationInfo$inboundSchema,
|
|
18
|
+
PaginationInfo$Outbound,
|
|
19
|
+
PaginationInfo$outboundSchema,
|
|
20
|
+
} from "./paginationinfo.js";
|
|
21
|
+
|
|
22
|
+
export type ListDocumentOut = {
|
|
23
|
+
pagination: PaginationInfo;
|
|
24
|
+
data: Array<DocumentOut>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ListDocumentOut$inboundSchema: z.ZodType<
|
|
29
|
+
ListDocumentOut,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
pagination: PaginationInfo$inboundSchema,
|
|
34
|
+
data: z.array(DocumentOut$inboundSchema),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type ListDocumentOut$Outbound = {
|
|
39
|
+
pagination: PaginationInfo$Outbound;
|
|
40
|
+
data: Array<DocumentOut$Outbound>;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const ListDocumentOut$outboundSchema: z.ZodType<
|
|
45
|
+
ListDocumentOut$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
ListDocumentOut
|
|
48
|
+
> = z.object({
|
|
49
|
+
pagination: PaginationInfo$outboundSchema,
|
|
50
|
+
data: z.array(DocumentOut$outboundSchema),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace ListDocumentOut$ {
|
|
58
|
+
/** @deprecated use `ListDocumentOut$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = ListDocumentOut$inboundSchema;
|
|
60
|
+
/** @deprecated use `ListDocumentOut$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = ListDocumentOut$outboundSchema;
|
|
62
|
+
/** @deprecated use `ListDocumentOut$Outbound` instead. */
|
|
63
|
+
export type Outbound = ListDocumentOut$Outbound;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function listDocumentOutToJSON(
|
|
67
|
+
listDocumentOut: ListDocumentOut,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(ListDocumentOut$outboundSchema.parse(listDocumentOut));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function listDocumentOutFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<ListDocumentOut, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => ListDocumentOut$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'ListDocumentOut' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
LibraryOut,
|
|
11
|
+
LibraryOut$inboundSchema,
|
|
12
|
+
LibraryOut$Outbound,
|
|
13
|
+
LibraryOut$outboundSchema,
|
|
14
|
+
} from "./libraryout.js";
|
|
15
|
+
|
|
16
|
+
export type ListLibraryOut = {
|
|
17
|
+
data: Array<LibraryOut>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ListLibraryOut$inboundSchema: z.ZodType<
|
|
22
|
+
ListLibraryOut,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
data: z.array(LibraryOut$inboundSchema),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type ListLibraryOut$Outbound = {
|
|
31
|
+
data: Array<LibraryOut$Outbound>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ListLibraryOut$outboundSchema: z.ZodType<
|
|
36
|
+
ListLibraryOut$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
ListLibraryOut
|
|
39
|
+
> = z.object({
|
|
40
|
+
data: z.array(LibraryOut$outboundSchema),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace ListLibraryOut$ {
|
|
48
|
+
/** @deprecated use `ListLibraryOut$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = ListLibraryOut$inboundSchema;
|
|
50
|
+
/** @deprecated use `ListLibraryOut$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = ListLibraryOut$outboundSchema;
|
|
52
|
+
/** @deprecated use `ListLibraryOut$Outbound` instead. */
|
|
53
|
+
export type Outbound = ListLibraryOut$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function listLibraryOutToJSON(listLibraryOut: ListLibraryOut): string {
|
|
57
|
+
return JSON.stringify(ListLibraryOut$outboundSchema.parse(listLibraryOut));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function listLibraryOutFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<ListLibraryOut, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => ListLibraryOut$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'ListLibraryOut' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
SharingOut,
|
|
11
|
+
SharingOut$inboundSchema,
|
|
12
|
+
SharingOut$Outbound,
|
|
13
|
+
SharingOut$outboundSchema,
|
|
14
|
+
} from "./sharingout.js";
|
|
15
|
+
|
|
16
|
+
export type ListSharingOut = {
|
|
17
|
+
data: Array<SharingOut>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ListSharingOut$inboundSchema: z.ZodType<
|
|
22
|
+
ListSharingOut,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
data: z.array(SharingOut$inboundSchema),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type ListSharingOut$Outbound = {
|
|
31
|
+
data: Array<SharingOut$Outbound>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ListSharingOut$outboundSchema: z.ZodType<
|
|
36
|
+
ListSharingOut$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
ListSharingOut
|
|
39
|
+
> = z.object({
|
|
40
|
+
data: z.array(SharingOut$outboundSchema),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace ListSharingOut$ {
|
|
48
|
+
/** @deprecated use `ListSharingOut$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = ListSharingOut$inboundSchema;
|
|
50
|
+
/** @deprecated use `ListSharingOut$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = ListSharingOut$outboundSchema;
|
|
52
|
+
/** @deprecated use `ListSharingOut$Outbound` instead. */
|
|
53
|
+
export type Outbound = ListSharingOut$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function listSharingOutToJSON(listSharingOut: ListSharingOut): string {
|
|
57
|
+
return JSON.stringify(ListSharingOut$outboundSchema.parse(listSharingOut));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function listSharingOutFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<ListSharingOut, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => ListSharingOut$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'ListSharingOut' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -46,6 +46,7 @@ export type MessageInputEntry = {
|
|
|
46
46
|
id?: string | undefined;
|
|
47
47
|
role: MessageInputEntryRole;
|
|
48
48
|
content: string | Array<MessageInputContentChunks>;
|
|
49
|
+
prefix?: boolean | undefined;
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
/** @internal */
|
|
@@ -178,6 +179,7 @@ export const MessageInputEntry$inboundSchema: z.ZodType<
|
|
|
178
179
|
z.string(),
|
|
179
180
|
z.array(MessageInputContentChunks$inboundSchema),
|
|
180
181
|
]),
|
|
182
|
+
prefix: z.boolean().default(false),
|
|
181
183
|
}).transform((v) => {
|
|
182
184
|
return remap$(v, {
|
|
183
185
|
"created_at": "createdAt",
|
|
@@ -194,6 +196,7 @@ export type MessageInputEntry$Outbound = {
|
|
|
194
196
|
id?: string | undefined;
|
|
195
197
|
role: string;
|
|
196
198
|
content: string | Array<MessageInputContentChunks$Outbound>;
|
|
199
|
+
prefix: boolean;
|
|
197
200
|
};
|
|
198
201
|
|
|
199
202
|
/** @internal */
|
|
@@ -212,6 +215,7 @@ export const MessageInputEntry$outboundSchema: z.ZodType<
|
|
|
212
215
|
z.string(),
|
|
213
216
|
z.array(MessageInputContentChunks$outboundSchema),
|
|
214
217
|
]),
|
|
218
|
+
prefix: z.boolean().default(false),
|
|
215
219
|
}).transform((v) => {
|
|
216
220
|
return remap$(v, {
|
|
217
221
|
createdAt: "created_at",
|
|
@@ -14,6 +14,7 @@ export type ModelCapabilities = {
|
|
|
14
14
|
functionCalling?: boolean | undefined;
|
|
15
15
|
fineTuning?: boolean | undefined;
|
|
16
16
|
vision?: boolean | undefined;
|
|
17
|
+
classification?: boolean | undefined;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
/** @internal */
|
|
@@ -27,6 +28,7 @@ export const ModelCapabilities$inboundSchema: z.ZodType<
|
|
|
27
28
|
function_calling: z.boolean().default(true),
|
|
28
29
|
fine_tuning: z.boolean().default(false),
|
|
29
30
|
vision: z.boolean().default(false),
|
|
31
|
+
classification: z.boolean().default(false),
|
|
30
32
|
}).transform((v) => {
|
|
31
33
|
return remap$(v, {
|
|
32
34
|
"completion_chat": "completionChat",
|
|
@@ -43,6 +45,7 @@ export type ModelCapabilities$Outbound = {
|
|
|
43
45
|
function_calling: boolean;
|
|
44
46
|
fine_tuning: boolean;
|
|
45
47
|
vision: boolean;
|
|
48
|
+
classification: boolean;
|
|
46
49
|
};
|
|
47
50
|
|
|
48
51
|
/** @internal */
|
|
@@ -56,6 +59,7 @@ export const ModelCapabilities$outboundSchema: z.ZodType<
|
|
|
56
59
|
functionCalling: z.boolean().default(true),
|
|
57
60
|
fineTuning: z.boolean().default(false),
|
|
58
61
|
vision: z.boolean().default(false),
|
|
62
|
+
classification: z.boolean().default(false),
|
|
59
63
|
}).transform((v) => {
|
|
60
64
|
return remap$(v, {
|
|
61
65
|
completionChat: "completion_chat",
|