@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
|
@@ -0,0 +1,92 @@
|
|
|
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 LibrariesDocumentsGetSignedUrlV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
documentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LibrariesDocumentsGetSignedUrlV1Request$inboundSchema: z.ZodType<
|
|
18
|
+
LibrariesDocumentsGetSignedUrlV1Request,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
library_id: z.string(),
|
|
23
|
+
document_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"library_id": "libraryId",
|
|
27
|
+
"document_id": "documentId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LibrariesDocumentsGetSignedUrlV1Request$Outbound = {
|
|
33
|
+
library_id: string;
|
|
34
|
+
document_id: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const LibrariesDocumentsGetSignedUrlV1Request$outboundSchema: z.ZodType<
|
|
39
|
+
LibrariesDocumentsGetSignedUrlV1Request$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
LibrariesDocumentsGetSignedUrlV1Request
|
|
42
|
+
> = z.object({
|
|
43
|
+
libraryId: z.string(),
|
|
44
|
+
documentId: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
libraryId: "library_id",
|
|
48
|
+
documentId: "document_id",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace LibrariesDocumentsGetSignedUrlV1Request$ {
|
|
57
|
+
/** @deprecated use `LibrariesDocumentsGetSignedUrlV1Request$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema =
|
|
59
|
+
LibrariesDocumentsGetSignedUrlV1Request$inboundSchema;
|
|
60
|
+
/** @deprecated use `LibrariesDocumentsGetSignedUrlV1Request$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema =
|
|
62
|
+
LibrariesDocumentsGetSignedUrlV1Request$outboundSchema;
|
|
63
|
+
/** @deprecated use `LibrariesDocumentsGetSignedUrlV1Request$Outbound` instead. */
|
|
64
|
+
export type Outbound = LibrariesDocumentsGetSignedUrlV1Request$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function librariesDocumentsGetSignedUrlV1RequestToJSON(
|
|
68
|
+
librariesDocumentsGetSignedUrlV1Request:
|
|
69
|
+
LibrariesDocumentsGetSignedUrlV1Request,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
LibrariesDocumentsGetSignedUrlV1Request$outboundSchema.parse(
|
|
73
|
+
librariesDocumentsGetSignedUrlV1Request,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function librariesDocumentsGetSignedUrlV1RequestFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<
|
|
81
|
+
LibrariesDocumentsGetSignedUrlV1Request,
|
|
82
|
+
SDKValidationError
|
|
83
|
+
> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) =>
|
|
87
|
+
LibrariesDocumentsGetSignedUrlV1Request$inboundSchema.parse(
|
|
88
|
+
JSON.parse(x),
|
|
89
|
+
),
|
|
90
|
+
`Failed to parse 'LibrariesDocumentsGetSignedUrlV1Request' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 LibrariesDocumentsGetStatusV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
documentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LibrariesDocumentsGetStatusV1Request$inboundSchema: z.ZodType<
|
|
18
|
+
LibrariesDocumentsGetStatusV1Request,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
library_id: z.string(),
|
|
23
|
+
document_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"library_id": "libraryId",
|
|
27
|
+
"document_id": "documentId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LibrariesDocumentsGetStatusV1Request$Outbound = {
|
|
33
|
+
library_id: string;
|
|
34
|
+
document_id: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const LibrariesDocumentsGetStatusV1Request$outboundSchema: z.ZodType<
|
|
39
|
+
LibrariesDocumentsGetStatusV1Request$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
LibrariesDocumentsGetStatusV1Request
|
|
42
|
+
> = z.object({
|
|
43
|
+
libraryId: z.string(),
|
|
44
|
+
documentId: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
libraryId: "library_id",
|
|
48
|
+
documentId: "document_id",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace LibrariesDocumentsGetStatusV1Request$ {
|
|
57
|
+
/** @deprecated use `LibrariesDocumentsGetStatusV1Request$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema =
|
|
59
|
+
LibrariesDocumentsGetStatusV1Request$inboundSchema;
|
|
60
|
+
/** @deprecated use `LibrariesDocumentsGetStatusV1Request$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema =
|
|
62
|
+
LibrariesDocumentsGetStatusV1Request$outboundSchema;
|
|
63
|
+
/** @deprecated use `LibrariesDocumentsGetStatusV1Request$Outbound` instead. */
|
|
64
|
+
export type Outbound = LibrariesDocumentsGetStatusV1Request$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function librariesDocumentsGetStatusV1RequestToJSON(
|
|
68
|
+
librariesDocumentsGetStatusV1Request: LibrariesDocumentsGetStatusV1Request,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
LibrariesDocumentsGetStatusV1Request$outboundSchema.parse(
|
|
72
|
+
librariesDocumentsGetStatusV1Request,
|
|
73
|
+
),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function librariesDocumentsGetStatusV1RequestFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<LibrariesDocumentsGetStatusV1Request, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) =>
|
|
83
|
+
LibrariesDocumentsGetStatusV1Request$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'LibrariesDocumentsGetStatusV1Request' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 LibrariesDocumentsGetTextContentV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
documentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LibrariesDocumentsGetTextContentV1Request$inboundSchema: z.ZodType<
|
|
18
|
+
LibrariesDocumentsGetTextContentV1Request,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
library_id: z.string(),
|
|
23
|
+
document_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"library_id": "libraryId",
|
|
27
|
+
"document_id": "documentId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LibrariesDocumentsGetTextContentV1Request$Outbound = {
|
|
33
|
+
library_id: string;
|
|
34
|
+
document_id: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const LibrariesDocumentsGetTextContentV1Request$outboundSchema:
|
|
39
|
+
z.ZodType<
|
|
40
|
+
LibrariesDocumentsGetTextContentV1Request$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
LibrariesDocumentsGetTextContentV1Request
|
|
43
|
+
> = z.object({
|
|
44
|
+
libraryId: z.string(),
|
|
45
|
+
documentId: z.string(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
libraryId: "library_id",
|
|
49
|
+
documentId: "document_id",
|
|
50
|
+
});
|
|
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 LibrariesDocumentsGetTextContentV1Request$ {
|
|
58
|
+
/** @deprecated use `LibrariesDocumentsGetTextContentV1Request$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema =
|
|
60
|
+
LibrariesDocumentsGetTextContentV1Request$inboundSchema;
|
|
61
|
+
/** @deprecated use `LibrariesDocumentsGetTextContentV1Request$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
LibrariesDocumentsGetTextContentV1Request$outboundSchema;
|
|
64
|
+
/** @deprecated use `LibrariesDocumentsGetTextContentV1Request$Outbound` instead. */
|
|
65
|
+
export type Outbound = LibrariesDocumentsGetTextContentV1Request$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function librariesDocumentsGetTextContentV1RequestToJSON(
|
|
69
|
+
librariesDocumentsGetTextContentV1Request:
|
|
70
|
+
LibrariesDocumentsGetTextContentV1Request,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
LibrariesDocumentsGetTextContentV1Request$outboundSchema.parse(
|
|
74
|
+
librariesDocumentsGetTextContentV1Request,
|
|
75
|
+
),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function librariesDocumentsGetTextContentV1RequestFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<
|
|
82
|
+
LibrariesDocumentsGetTextContentV1Request,
|
|
83
|
+
SDKValidationError
|
|
84
|
+
> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) =>
|
|
88
|
+
LibrariesDocumentsGetTextContentV1Request$inboundSchema.parse(
|
|
89
|
+
JSON.parse(x),
|
|
90
|
+
),
|
|
91
|
+
`Failed to parse 'LibrariesDocumentsGetTextContentV1Request' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 LibrariesDocumentsGetV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
documentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LibrariesDocumentsGetV1Request$inboundSchema: z.ZodType<
|
|
18
|
+
LibrariesDocumentsGetV1Request,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
library_id: z.string(),
|
|
23
|
+
document_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"library_id": "libraryId",
|
|
27
|
+
"document_id": "documentId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LibrariesDocumentsGetV1Request$Outbound = {
|
|
33
|
+
library_id: string;
|
|
34
|
+
document_id: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const LibrariesDocumentsGetV1Request$outboundSchema: z.ZodType<
|
|
39
|
+
LibrariesDocumentsGetV1Request$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
LibrariesDocumentsGetV1Request
|
|
42
|
+
> = z.object({
|
|
43
|
+
libraryId: z.string(),
|
|
44
|
+
documentId: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
libraryId: "library_id",
|
|
48
|
+
documentId: "document_id",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace LibrariesDocumentsGetV1Request$ {
|
|
57
|
+
/** @deprecated use `LibrariesDocumentsGetV1Request$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = LibrariesDocumentsGetV1Request$inboundSchema;
|
|
59
|
+
/** @deprecated use `LibrariesDocumentsGetV1Request$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = LibrariesDocumentsGetV1Request$outboundSchema;
|
|
61
|
+
/** @deprecated use `LibrariesDocumentsGetV1Request$Outbound` instead. */
|
|
62
|
+
export type Outbound = LibrariesDocumentsGetV1Request$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function librariesDocumentsGetV1RequestToJSON(
|
|
66
|
+
librariesDocumentsGetV1Request: LibrariesDocumentsGetV1Request,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
LibrariesDocumentsGetV1Request$outboundSchema.parse(
|
|
70
|
+
librariesDocumentsGetV1Request,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function librariesDocumentsGetV1RequestFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<LibrariesDocumentsGetV1Request, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => LibrariesDocumentsGetV1Request$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'LibrariesDocumentsGetV1Request' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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 LibrariesDocumentsListV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
search?: string | null | undefined;
|
|
14
|
+
pageSize?: number | undefined;
|
|
15
|
+
page?: number | undefined;
|
|
16
|
+
sortBy?: string | undefined;
|
|
17
|
+
sortOrder?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const LibrariesDocumentsListV1Request$inboundSchema: z.ZodType<
|
|
22
|
+
LibrariesDocumentsListV1Request,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
library_id: z.string(),
|
|
27
|
+
search: z.nullable(z.string()).optional(),
|
|
28
|
+
page_size: z.number().int().default(100),
|
|
29
|
+
page: z.number().int().default(0),
|
|
30
|
+
sort_by: z.string().default("created_at"),
|
|
31
|
+
sort_order: z.string().default("desc"),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"library_id": "libraryId",
|
|
35
|
+
"page_size": "pageSize",
|
|
36
|
+
"sort_by": "sortBy",
|
|
37
|
+
"sort_order": "sortOrder",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type LibrariesDocumentsListV1Request$Outbound = {
|
|
43
|
+
library_id: string;
|
|
44
|
+
search?: string | null | undefined;
|
|
45
|
+
page_size: number;
|
|
46
|
+
page: number;
|
|
47
|
+
sort_by: string;
|
|
48
|
+
sort_order: string;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const LibrariesDocumentsListV1Request$outboundSchema: z.ZodType<
|
|
53
|
+
LibrariesDocumentsListV1Request$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
LibrariesDocumentsListV1Request
|
|
56
|
+
> = z.object({
|
|
57
|
+
libraryId: z.string(),
|
|
58
|
+
search: z.nullable(z.string()).optional(),
|
|
59
|
+
pageSize: z.number().int().default(100),
|
|
60
|
+
page: z.number().int().default(0),
|
|
61
|
+
sortBy: z.string().default("created_at"),
|
|
62
|
+
sortOrder: z.string().default("desc"),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
libraryId: "library_id",
|
|
66
|
+
pageSize: "page_size",
|
|
67
|
+
sortBy: "sort_by",
|
|
68
|
+
sortOrder: "sort_order",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace LibrariesDocumentsListV1Request$ {
|
|
77
|
+
/** @deprecated use `LibrariesDocumentsListV1Request$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = LibrariesDocumentsListV1Request$inboundSchema;
|
|
79
|
+
/** @deprecated use `LibrariesDocumentsListV1Request$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = LibrariesDocumentsListV1Request$outboundSchema;
|
|
81
|
+
/** @deprecated use `LibrariesDocumentsListV1Request$Outbound` instead. */
|
|
82
|
+
export type Outbound = LibrariesDocumentsListV1Request$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function librariesDocumentsListV1RequestToJSON(
|
|
86
|
+
librariesDocumentsListV1Request: LibrariesDocumentsListV1Request,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
LibrariesDocumentsListV1Request$outboundSchema.parse(
|
|
90
|
+
librariesDocumentsListV1Request,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function librariesDocumentsListV1RequestFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<LibrariesDocumentsListV1Request, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => LibrariesDocumentsListV1Request$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'LibrariesDocumentsListV1Request' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 LibrariesDocumentsReprocessV1Request = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
documentId: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LibrariesDocumentsReprocessV1Request$inboundSchema: z.ZodType<
|
|
18
|
+
LibrariesDocumentsReprocessV1Request,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
library_id: z.string(),
|
|
23
|
+
document_id: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"library_id": "libraryId",
|
|
27
|
+
"document_id": "documentId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type LibrariesDocumentsReprocessV1Request$Outbound = {
|
|
33
|
+
library_id: string;
|
|
34
|
+
document_id: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const LibrariesDocumentsReprocessV1Request$outboundSchema: z.ZodType<
|
|
39
|
+
LibrariesDocumentsReprocessV1Request$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
LibrariesDocumentsReprocessV1Request
|
|
42
|
+
> = z.object({
|
|
43
|
+
libraryId: z.string(),
|
|
44
|
+
documentId: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
libraryId: "library_id",
|
|
48
|
+
documentId: "document_id",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace LibrariesDocumentsReprocessV1Request$ {
|
|
57
|
+
/** @deprecated use `LibrariesDocumentsReprocessV1Request$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema =
|
|
59
|
+
LibrariesDocumentsReprocessV1Request$inboundSchema;
|
|
60
|
+
/** @deprecated use `LibrariesDocumentsReprocessV1Request$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema =
|
|
62
|
+
LibrariesDocumentsReprocessV1Request$outboundSchema;
|
|
63
|
+
/** @deprecated use `LibrariesDocumentsReprocessV1Request$Outbound` instead. */
|
|
64
|
+
export type Outbound = LibrariesDocumentsReprocessV1Request$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function librariesDocumentsReprocessV1RequestToJSON(
|
|
68
|
+
librariesDocumentsReprocessV1Request: LibrariesDocumentsReprocessV1Request,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
LibrariesDocumentsReprocessV1Request$outboundSchema.parse(
|
|
72
|
+
librariesDocumentsReprocessV1Request,
|
|
73
|
+
),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function librariesDocumentsReprocessV1RequestFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<LibrariesDocumentsReprocessV1Request, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) =>
|
|
83
|
+
LibrariesDocumentsReprocessV1Request$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'LibrariesDocumentsReprocessV1Request' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type LibrariesDocumentsUpdateV1Request = {
|
|
13
|
+
libraryId: string;
|
|
14
|
+
documentId: string;
|
|
15
|
+
documentUpdateIn: components.DocumentUpdateIn;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LibrariesDocumentsUpdateV1Request$inboundSchema: z.ZodType<
|
|
20
|
+
LibrariesDocumentsUpdateV1Request,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
library_id: z.string(),
|
|
25
|
+
document_id: z.string(),
|
|
26
|
+
DocumentUpdateIn: components.DocumentUpdateIn$inboundSchema,
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"library_id": "libraryId",
|
|
30
|
+
"document_id": "documentId",
|
|
31
|
+
"DocumentUpdateIn": "documentUpdateIn",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type LibrariesDocumentsUpdateV1Request$Outbound = {
|
|
37
|
+
library_id: string;
|
|
38
|
+
document_id: string;
|
|
39
|
+
DocumentUpdateIn: components.DocumentUpdateIn$Outbound;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const LibrariesDocumentsUpdateV1Request$outboundSchema: z.ZodType<
|
|
44
|
+
LibrariesDocumentsUpdateV1Request$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
LibrariesDocumentsUpdateV1Request
|
|
47
|
+
> = z.object({
|
|
48
|
+
libraryId: z.string(),
|
|
49
|
+
documentId: z.string(),
|
|
50
|
+
documentUpdateIn: components.DocumentUpdateIn$outboundSchema,
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
libraryId: "library_id",
|
|
54
|
+
documentId: "document_id",
|
|
55
|
+
documentUpdateIn: "DocumentUpdateIn",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace LibrariesDocumentsUpdateV1Request$ {
|
|
64
|
+
/** @deprecated use `LibrariesDocumentsUpdateV1Request$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = LibrariesDocumentsUpdateV1Request$inboundSchema;
|
|
66
|
+
/** @deprecated use `LibrariesDocumentsUpdateV1Request$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema =
|
|
68
|
+
LibrariesDocumentsUpdateV1Request$outboundSchema;
|
|
69
|
+
/** @deprecated use `LibrariesDocumentsUpdateV1Request$Outbound` instead. */
|
|
70
|
+
export type Outbound = LibrariesDocumentsUpdateV1Request$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function librariesDocumentsUpdateV1RequestToJSON(
|
|
74
|
+
librariesDocumentsUpdateV1Request: LibrariesDocumentsUpdateV1Request,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
LibrariesDocumentsUpdateV1Request$outboundSchema.parse(
|
|
78
|
+
librariesDocumentsUpdateV1Request,
|
|
79
|
+
),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function librariesDocumentsUpdateV1RequestFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<LibrariesDocumentsUpdateV1Request, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => LibrariesDocumentsUpdateV1Request$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'LibrariesDocumentsUpdateV1Request' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|