@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
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
DocumentURLChunk$Outbound,
|
|
14
14
|
DocumentURLChunk$outboundSchema,
|
|
15
15
|
} from "./documenturlchunk.js";
|
|
16
|
+
import {
|
|
17
|
+
FileChunk,
|
|
18
|
+
FileChunk$inboundSchema,
|
|
19
|
+
FileChunk$Outbound,
|
|
20
|
+
FileChunk$outboundSchema,
|
|
21
|
+
} from "./filechunk.js";
|
|
16
22
|
import {
|
|
17
23
|
ImageURLChunk,
|
|
18
24
|
ImageURLChunk$inboundSchema,
|
|
@@ -29,7 +35,7 @@ import {
|
|
|
29
35
|
/**
|
|
30
36
|
* Document to run OCR on
|
|
31
37
|
*/
|
|
32
|
-
export type Document = ImageURLChunk | DocumentURLChunk;
|
|
38
|
+
export type Document = FileChunk | ImageURLChunk | DocumentURLChunk;
|
|
33
39
|
|
|
34
40
|
export type OCRRequest = {
|
|
35
41
|
model: string | null;
|
|
@@ -37,7 +43,7 @@ export type OCRRequest = {
|
|
|
37
43
|
/**
|
|
38
44
|
* Document to run OCR on
|
|
39
45
|
*/
|
|
40
|
-
document: ImageURLChunk | DocumentURLChunk;
|
|
46
|
+
document: FileChunk | ImageURLChunk | DocumentURLChunk;
|
|
41
47
|
/**
|
|
42
48
|
* Specific pages user wants to process in various formats: single number, range, or list of both. Starts from 0
|
|
43
49
|
*/
|
|
@@ -69,10 +75,15 @@ export const Document$inboundSchema: z.ZodType<
|
|
|
69
75
|
Document,
|
|
70
76
|
z.ZodTypeDef,
|
|
71
77
|
unknown
|
|
72
|
-
> = z.union([
|
|
78
|
+
> = z.union([
|
|
79
|
+
FileChunk$inboundSchema,
|
|
80
|
+
ImageURLChunk$inboundSchema,
|
|
81
|
+
DocumentURLChunk$inboundSchema,
|
|
82
|
+
]);
|
|
73
83
|
|
|
74
84
|
/** @internal */
|
|
75
85
|
export type Document$Outbound =
|
|
86
|
+
| FileChunk$Outbound
|
|
76
87
|
| ImageURLChunk$Outbound
|
|
77
88
|
| DocumentURLChunk$Outbound;
|
|
78
89
|
|
|
@@ -81,7 +92,11 @@ export const Document$outboundSchema: z.ZodType<
|
|
|
81
92
|
Document$Outbound,
|
|
82
93
|
z.ZodTypeDef,
|
|
83
94
|
Document
|
|
84
|
-
> = z.union([
|
|
95
|
+
> = z.union([
|
|
96
|
+
FileChunk$outboundSchema,
|
|
97
|
+
ImageURLChunk$outboundSchema,
|
|
98
|
+
DocumentURLChunk$outboundSchema,
|
|
99
|
+
]);
|
|
85
100
|
|
|
86
101
|
/**
|
|
87
102
|
* @internal
|
|
@@ -119,6 +134,7 @@ export const OCRRequest$inboundSchema: z.ZodType<
|
|
|
119
134
|
model: z.nullable(z.string()),
|
|
120
135
|
id: z.string().optional(),
|
|
121
136
|
document: z.union([
|
|
137
|
+
FileChunk$inboundSchema,
|
|
122
138
|
ImageURLChunk$inboundSchema,
|
|
123
139
|
DocumentURLChunk$inboundSchema,
|
|
124
140
|
]),
|
|
@@ -143,7 +159,10 @@ export const OCRRequest$inboundSchema: z.ZodType<
|
|
|
143
159
|
export type OCRRequest$Outbound = {
|
|
144
160
|
model: string | null;
|
|
145
161
|
id?: string | undefined;
|
|
146
|
-
document:
|
|
162
|
+
document:
|
|
163
|
+
| FileChunk$Outbound
|
|
164
|
+
| ImageURLChunk$Outbound
|
|
165
|
+
| DocumentURLChunk$Outbound;
|
|
147
166
|
pages?: Array<number> | null | undefined;
|
|
148
167
|
include_image_base64?: boolean | null | undefined;
|
|
149
168
|
image_limit?: number | null | undefined;
|
|
@@ -161,6 +180,7 @@ export const OCRRequest$outboundSchema: z.ZodType<
|
|
|
161
180
|
model: z.nullable(z.string()),
|
|
162
181
|
id: z.string().optional(),
|
|
163
182
|
document: z.union([
|
|
183
|
+
FileChunk$outboundSchema,
|
|
164
184
|
ImageURLChunk$outboundSchema,
|
|
165
185
|
DocumentURLChunk$outboundSchema,
|
|
166
186
|
]),
|
|
@@ -0,0 +1,95 @@
|
|
|
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 PaginationInfo = {
|
|
12
|
+
totalItems: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
currentPage: number;
|
|
15
|
+
pageSize: number;
|
|
16
|
+
hasMore: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const PaginationInfo$inboundSchema: z.ZodType<
|
|
21
|
+
PaginationInfo,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
total_items: z.number().int(),
|
|
26
|
+
total_pages: z.number().int(),
|
|
27
|
+
current_page: z.number().int(),
|
|
28
|
+
page_size: z.number().int(),
|
|
29
|
+
has_more: z.boolean(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"total_items": "totalItems",
|
|
33
|
+
"total_pages": "totalPages",
|
|
34
|
+
"current_page": "currentPage",
|
|
35
|
+
"page_size": "pageSize",
|
|
36
|
+
"has_more": "hasMore",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type PaginationInfo$Outbound = {
|
|
42
|
+
total_items: number;
|
|
43
|
+
total_pages: number;
|
|
44
|
+
current_page: number;
|
|
45
|
+
page_size: number;
|
|
46
|
+
has_more: boolean;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const PaginationInfo$outboundSchema: z.ZodType<
|
|
51
|
+
PaginationInfo$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
PaginationInfo
|
|
54
|
+
> = z.object({
|
|
55
|
+
totalItems: z.number().int(),
|
|
56
|
+
totalPages: z.number().int(),
|
|
57
|
+
currentPage: z.number().int(),
|
|
58
|
+
pageSize: z.number().int(),
|
|
59
|
+
hasMore: z.boolean(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
totalItems: "total_items",
|
|
63
|
+
totalPages: "total_pages",
|
|
64
|
+
currentPage: "current_page",
|
|
65
|
+
pageSize: "page_size",
|
|
66
|
+
hasMore: "has_more",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace PaginationInfo$ {
|
|
75
|
+
/** @deprecated use `PaginationInfo$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = PaginationInfo$inboundSchema;
|
|
77
|
+
/** @deprecated use `PaginationInfo$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = PaginationInfo$outboundSchema;
|
|
79
|
+
/** @deprecated use `PaginationInfo$Outbound` instead. */
|
|
80
|
+
export type Outbound = PaginationInfo$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function paginationInfoToJSON(paginationInfo: PaginationInfo): string {
|
|
84
|
+
return JSON.stringify(PaginationInfo$outboundSchema.parse(paginationInfo));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function paginationInfoFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<PaginationInfo, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => PaginationInfo$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'PaginationInfo' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 ProcessingStatusOut = {
|
|
12
|
+
documentId: string;
|
|
13
|
+
processingStatus: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const ProcessingStatusOut$inboundSchema: z.ZodType<
|
|
18
|
+
ProcessingStatusOut,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
document_id: z.string(),
|
|
23
|
+
processing_status: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"document_id": "documentId",
|
|
27
|
+
"processing_status": "processingStatus",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ProcessingStatusOut$Outbound = {
|
|
33
|
+
document_id: string;
|
|
34
|
+
processing_status: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ProcessingStatusOut$outboundSchema: z.ZodType<
|
|
39
|
+
ProcessingStatusOut$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
ProcessingStatusOut
|
|
42
|
+
> = z.object({
|
|
43
|
+
documentId: z.string(),
|
|
44
|
+
processingStatus: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
documentId: "document_id",
|
|
48
|
+
processingStatus: "processing_status",
|
|
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 ProcessingStatusOut$ {
|
|
57
|
+
/** @deprecated use `ProcessingStatusOut$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = ProcessingStatusOut$inboundSchema;
|
|
59
|
+
/** @deprecated use `ProcessingStatusOut$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = ProcessingStatusOut$outboundSchema;
|
|
61
|
+
/** @deprecated use `ProcessingStatusOut$Outbound` instead. */
|
|
62
|
+
export type Outbound = ProcessingStatusOut$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function processingStatusOutToJSON(
|
|
66
|
+
processingStatusOut: ProcessingStatusOut,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
ProcessingStatusOut$outboundSchema.parse(processingStatusOut),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function processingStatusOutFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<ProcessingStatusOut, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => ProcessingStatusOut$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'ProcessingStatusOut' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
catchUnrecognizedEnum,
|
|
8
|
+
OpenEnum,
|
|
9
|
+
Unrecognized,
|
|
10
|
+
} from "../../types/enums.js";
|
|
11
|
+
|
|
12
|
+
export const ShareEnum = {
|
|
13
|
+
Viewer: "Viewer",
|
|
14
|
+
Editor: "Editor",
|
|
15
|
+
} as const;
|
|
16
|
+
export type ShareEnum = OpenEnum<typeof ShareEnum>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ShareEnum$inboundSchema: z.ZodType<
|
|
20
|
+
ShareEnum,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z
|
|
24
|
+
.union([
|
|
25
|
+
z.nativeEnum(ShareEnum),
|
|
26
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ShareEnum$outboundSchema: z.ZodType<
|
|
31
|
+
ShareEnum,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
ShareEnum
|
|
34
|
+
> = z.union([
|
|
35
|
+
z.nativeEnum(ShareEnum),
|
|
36
|
+
z.string().and(z.custom<Unrecognized<string>>()),
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export namespace ShareEnum$ {
|
|
44
|
+
/** @deprecated use `ShareEnum$inboundSchema` instead. */
|
|
45
|
+
export const inboundSchema = ShareEnum$inboundSchema;
|
|
46
|
+
/** @deprecated use `ShareEnum$outboundSchema` instead. */
|
|
47
|
+
export const outboundSchema = ShareEnum$outboundSchema;
|
|
48
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
import {
|
|
11
|
+
EntityType,
|
|
12
|
+
EntityType$inboundSchema,
|
|
13
|
+
EntityType$outboundSchema,
|
|
14
|
+
} from "./entitytype.js";
|
|
15
|
+
|
|
16
|
+
export type SharingDelete = {
|
|
17
|
+
orgId: string;
|
|
18
|
+
/**
|
|
19
|
+
* The id of the entity (user, workspace or organization) to share with
|
|
20
|
+
*/
|
|
21
|
+
shareWithUuid: string;
|
|
22
|
+
/**
|
|
23
|
+
* The type of entity, used to share a library.
|
|
24
|
+
*/
|
|
25
|
+
shareWithType: EntityType;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const SharingDelete$inboundSchema: z.ZodType<
|
|
30
|
+
SharingDelete,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
org_id: z.string(),
|
|
35
|
+
share_with_uuid: z.string(),
|
|
36
|
+
share_with_type: EntityType$inboundSchema,
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"org_id": "orgId",
|
|
40
|
+
"share_with_uuid": "shareWithUuid",
|
|
41
|
+
"share_with_type": "shareWithType",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type SharingDelete$Outbound = {
|
|
47
|
+
org_id: string;
|
|
48
|
+
share_with_uuid: string;
|
|
49
|
+
share_with_type: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const SharingDelete$outboundSchema: z.ZodType<
|
|
54
|
+
SharingDelete$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
SharingDelete
|
|
57
|
+
> = z.object({
|
|
58
|
+
orgId: z.string(),
|
|
59
|
+
shareWithUuid: z.string(),
|
|
60
|
+
shareWithType: EntityType$outboundSchema,
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
orgId: "org_id",
|
|
64
|
+
shareWithUuid: "share_with_uuid",
|
|
65
|
+
shareWithType: "share_with_type",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace SharingDelete$ {
|
|
74
|
+
/** @deprecated use `SharingDelete$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = SharingDelete$inboundSchema;
|
|
76
|
+
/** @deprecated use `SharingDelete$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = SharingDelete$outboundSchema;
|
|
78
|
+
/** @deprecated use `SharingDelete$Outbound` instead. */
|
|
79
|
+
export type Outbound = SharingDelete$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function sharingDeleteToJSON(sharingDelete: SharingDelete): string {
|
|
83
|
+
return JSON.stringify(SharingDelete$outboundSchema.parse(sharingDelete));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function sharingDeleteFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<SharingDelete, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => SharingDelete$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'SharingDelete' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -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
|
+
import {
|
|
11
|
+
EntityType,
|
|
12
|
+
EntityType$inboundSchema,
|
|
13
|
+
EntityType$outboundSchema,
|
|
14
|
+
} from "./entitytype.js";
|
|
15
|
+
import {
|
|
16
|
+
ShareEnum,
|
|
17
|
+
ShareEnum$inboundSchema,
|
|
18
|
+
ShareEnum$outboundSchema,
|
|
19
|
+
} from "./shareenum.js";
|
|
20
|
+
|
|
21
|
+
export type SharingIn = {
|
|
22
|
+
orgId: string;
|
|
23
|
+
level: ShareEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The id of the entity (user, workspace or organization) to share with
|
|
26
|
+
*/
|
|
27
|
+
shareWithUuid: string;
|
|
28
|
+
/**
|
|
29
|
+
* The type of entity, used to share a library.
|
|
30
|
+
*/
|
|
31
|
+
shareWithType: EntityType;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SharingIn$inboundSchema: z.ZodType<
|
|
36
|
+
SharingIn,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
org_id: z.string(),
|
|
41
|
+
level: ShareEnum$inboundSchema,
|
|
42
|
+
share_with_uuid: z.string(),
|
|
43
|
+
share_with_type: EntityType$inboundSchema,
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"org_id": "orgId",
|
|
47
|
+
"share_with_uuid": "shareWithUuid",
|
|
48
|
+
"share_with_type": "shareWithType",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type SharingIn$Outbound = {
|
|
54
|
+
org_id: string;
|
|
55
|
+
level: string;
|
|
56
|
+
share_with_uuid: string;
|
|
57
|
+
share_with_type: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const SharingIn$outboundSchema: z.ZodType<
|
|
62
|
+
SharingIn$Outbound,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
SharingIn
|
|
65
|
+
> = z.object({
|
|
66
|
+
orgId: z.string(),
|
|
67
|
+
level: ShareEnum$outboundSchema,
|
|
68
|
+
shareWithUuid: z.string(),
|
|
69
|
+
shareWithType: EntityType$outboundSchema,
|
|
70
|
+
}).transform((v) => {
|
|
71
|
+
return remap$(v, {
|
|
72
|
+
orgId: "org_id",
|
|
73
|
+
shareWithUuid: "share_with_uuid",
|
|
74
|
+
shareWithType: "share_with_type",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export namespace SharingIn$ {
|
|
83
|
+
/** @deprecated use `SharingIn$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = SharingIn$inboundSchema;
|
|
85
|
+
/** @deprecated use `SharingIn$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = SharingIn$outboundSchema;
|
|
87
|
+
/** @deprecated use `SharingIn$Outbound` instead. */
|
|
88
|
+
export type Outbound = SharingIn$Outbound;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function sharingInToJSON(sharingIn: SharingIn): string {
|
|
92
|
+
return JSON.stringify(SharingIn$outboundSchema.parse(sharingIn));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function sharingInFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<SharingIn, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => SharingIn$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'SharingIn' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 SharingOut = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
userId?: string | null | undefined;
|
|
14
|
+
orgId: string;
|
|
15
|
+
role: string;
|
|
16
|
+
shareWithType: string;
|
|
17
|
+
shareWithUuid: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SharingOut$inboundSchema: z.ZodType<
|
|
22
|
+
SharingOut,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
library_id: z.string(),
|
|
27
|
+
user_id: z.nullable(z.string()).optional(),
|
|
28
|
+
org_id: z.string(),
|
|
29
|
+
role: z.string(),
|
|
30
|
+
share_with_type: z.string(),
|
|
31
|
+
share_with_uuid: z.string(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"library_id": "libraryId",
|
|
35
|
+
"user_id": "userId",
|
|
36
|
+
"org_id": "orgId",
|
|
37
|
+
"share_with_type": "shareWithType",
|
|
38
|
+
"share_with_uuid": "shareWithUuid",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type SharingOut$Outbound = {
|
|
44
|
+
library_id: string;
|
|
45
|
+
user_id?: string | null | undefined;
|
|
46
|
+
org_id: string;
|
|
47
|
+
role: string;
|
|
48
|
+
share_with_type: string;
|
|
49
|
+
share_with_uuid: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const SharingOut$outboundSchema: z.ZodType<
|
|
54
|
+
SharingOut$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
SharingOut
|
|
57
|
+
> = z.object({
|
|
58
|
+
libraryId: z.string(),
|
|
59
|
+
userId: z.nullable(z.string()).optional(),
|
|
60
|
+
orgId: z.string(),
|
|
61
|
+
role: z.string(),
|
|
62
|
+
shareWithType: z.string(),
|
|
63
|
+
shareWithUuid: z.string(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
libraryId: "library_id",
|
|
67
|
+
userId: "user_id",
|
|
68
|
+
orgId: "org_id",
|
|
69
|
+
shareWithType: "share_with_type",
|
|
70
|
+
shareWithUuid: "share_with_uuid",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace SharingOut$ {
|
|
79
|
+
/** @deprecated use `SharingOut$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = SharingOut$inboundSchema;
|
|
81
|
+
/** @deprecated use `SharingOut$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = SharingOut$outboundSchema;
|
|
83
|
+
/** @deprecated use `SharingOut$Outbound` instead. */
|
|
84
|
+
export type Outbound = SharingOut$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function sharingOutToJSON(sharingOut: SharingOut): string {
|
|
88
|
+
return JSON.stringify(SharingOut$outboundSchema.parse(sharingOut));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function sharingOutFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<SharingOut, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => SharingOut$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'SharingOut' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -14,6 +14,7 @@ export const SSETypes = {
|
|
|
14
14
|
ConversationResponseError: "conversation.response.error",
|
|
15
15
|
MessageOutputDelta: "message.output.delta",
|
|
16
16
|
ToolExecutionStarted: "tool.execution.started",
|
|
17
|
+
ToolExecutionDelta: "tool.execution.delta",
|
|
17
18
|
ToolExecutionDone: "tool.execution.done",
|
|
18
19
|
AgentHandoffStarted: "agent.handoff.started",
|
|
19
20
|
AgentHandoffDone: "agent.handoff.done",
|