@orq-ai/node 4.9.0-rc.5 → 4.9.0-rc.7
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 +61 -48
- package/funcs/filesCreate.d.ts +3 -3
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +6 -28
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +3 -2
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +4 -4
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts +2 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +2 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesGetContent.d.ts +3 -2
- package/funcs/filesGetContent.d.ts.map +1 -1
- package/funcs/filesGetContent.js +4 -4
- package/funcs/filesGetContent.js.map +1 -1
- package/funcs/filesList.d.ts +2 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +3 -2
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +3 -2
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +4 -3
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/skillsCreate.d.ts +17 -0
- package/funcs/skillsCreate.d.ts.map +1 -0
- package/funcs/skillsCreate.js +115 -0
- package/funcs/skillsCreate.js.map +1 -0
- package/funcs/skillsDelete.d.ts +15 -0
- package/funcs/skillsDelete.d.ts.map +1 -0
- package/funcs/skillsDelete.js +118 -0
- package/funcs/skillsDelete.js.map +1 -0
- package/funcs/skillsGet.d.ts +18 -0
- package/funcs/skillsGet.d.ts.map +1 -0
- package/funcs/skillsGet.js +121 -0
- package/funcs/skillsGet.js.map +1 -0
- package/funcs/skillsList.d.ts +18 -0
- package/funcs/skillsList.d.ts.map +1 -0
- package/funcs/skillsList.js +121 -0
- package/funcs/skillsList.js.map +1 -0
- package/funcs/skillsUpdate.d.ts +18 -0
- package/funcs/skillsUpdate.d.ts.map +1 -0
- package/funcs/skillsUpdate.js +124 -0
- package/funcs/skillsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createfilerequest.d.ts +18 -0
- package/models/components/createfilerequest.d.ts.map +1 -0
- package/models/components/createfilerequest.js +57 -0
- package/models/components/createfilerequest.js.map +1 -0
- package/models/components/createfileresponse.d.ts +11 -0
- package/models/components/createfileresponse.d.ts.map +1 -0
- package/models/components/createfileresponse.js +51 -0
- package/models/components/createfileresponse.js.map +1 -0
- package/models/components/createskillrequest.d.ts +24 -0
- package/models/components/createskillrequest.d.ts.map +1 -0
- package/models/components/createskillrequest.js +61 -0
- package/models/components/createskillrequest.js.map +1 -0
- package/models/components/createskillresponse.d.ts +11 -0
- package/models/components/createskillresponse.d.ts.map +1 -0
- package/models/components/createskillresponse.js +51 -0
- package/models/components/createskillresponse.js.map +1 -0
- package/models/components/deletefileresponse.d.ts +8 -0
- package/models/components/deletefileresponse.d.ts.map +1 -0
- package/models/components/deletefileresponse.js +48 -0
- package/models/components/deletefileresponse.js.map +1 -0
- package/models/components/deleteskillresponse.d.ts +8 -0
- package/models/components/deleteskillresponse.d.ts.map +1 -0
- package/models/components/deleteskillresponse.js +48 -0
- package/models/components/deleteskillresponse.js.map +1 -0
- package/models/components/file.d.ts +15 -0
- package/models/components/file.d.ts.map +1 -0
- package/models/components/file.js +64 -0
- package/models/components/file.js.map +1 -0
- package/models/components/filepart.d.ts +6 -6
- package/models/components/filepart.d.ts.map +1 -1
- package/models/components/filepart.js +9 -10
- package/models/components/filepart.js.map +1 -1
- package/models/components/getfilecontentresponse.d.ts +10 -0
- package/models/components/getfilecontentresponse.d.ts.map +1 -0
- package/models/components/{filedocument.js → getfilecontentresponse.js} +8 -15
- package/models/components/getfilecontentresponse.js.map +1 -0
- package/models/components/getfileresponse.d.ts +11 -0
- package/models/components/getfileresponse.d.ts.map +1 -0
- package/models/components/getfileresponse.js +51 -0
- package/models/components/getfileresponse.js.map +1 -0
- package/models/components/getskillresponse.d.ts +11 -0
- package/models/components/getskillresponse.d.ts.map +1 -0
- package/models/components/getskillresponse.js +51 -0
- package/models/components/getskillresponse.js.map +1 -0
- package/models/components/index.d.ts +17 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -1
- package/models/components/index.js.map +1 -1
- package/models/components/listfilesresponse.d.ts +13 -0
- package/models/components/listfilesresponse.d.ts.map +1 -0
- package/models/components/listfilesresponse.js +58 -0
- package/models/components/listfilesresponse.js.map +1 -0
- package/models/components/listskillsresponse.d.ts +13 -0
- package/models/components/listskillsresponse.d.ts.map +1 -0
- package/models/components/listskillsresponse.js +58 -0
- package/models/components/listskillsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/skill.d.ts +30 -0
- package/models/components/skill.d.ts.map +1 -0
- package/models/components/skill.js +76 -0
- package/models/components/skill.js.map +1 -0
- package/models/components/updatefilerequest.d.ts +14 -0
- package/models/components/updatefilerequest.d.ts.map +1 -0
- package/models/components/updatefilerequest.js +56 -0
- package/models/components/updatefilerequest.js.map +1 -0
- package/models/components/updatefileresponse.d.ts +11 -0
- package/models/components/updatefileresponse.d.ts.map +1 -0
- package/models/components/updatefileresponse.js +51 -0
- package/models/components/updatefileresponse.js.map +1 -0
- package/models/components/updateskillrequest.d.ts +24 -0
- package/models/components/updateskillrequest.d.ts.map +1 -0
- package/models/components/updateskillrequest.js +61 -0
- package/models/components/updateskillrequest.js.map +1 -0
- package/models/components/updateskillresponse.d.ts +11 -0
- package/models/components/updateskillresponse.d.ts.map +1 -0
- package/models/components/updateskillresponse.js +51 -0
- package/models/components/updateskillresponse.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +9 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +2 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/filecontent.d.ts +0 -3
- package/models/operations/filecontent.d.ts.map +1 -1
- package/models/operations/filecontent.js.map +1 -1
- package/models/operations/filedelete.d.ts +0 -3
- package/models/operations/filedelete.d.ts.map +1 -1
- package/models/operations/filedelete.js.map +1 -1
- package/models/operations/fileget.d.ts +0 -19
- package/models/operations/fileget.d.ts.map +1 -1
- package/models/operations/fileget.js +1 -21
- package/models/operations/fileget.js.map +1 -1
- package/models/operations/filelist.d.ts +1 -21
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +2 -18
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupdate.d.ts +3 -31
- package/models/operations/fileupdate.d.ts.map +1 -1
- package/models/operations/fileupdate.js +4 -35
- package/models/operations/fileupdate.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +4 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagents.d.ts +4 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +4 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +1 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/skilldelete.d.ts +12 -0
- package/models/operations/skilldelete.d.ts.map +1 -0
- package/models/operations/skilldelete.js +54 -0
- package/models/operations/skilldelete.js.map +1 -0
- package/models/operations/skillget.d.ts +18 -0
- package/models/operations/skillget.d.ts.map +1 -0
- package/models/operations/skillget.js +54 -0
- package/models/operations/skillget.js.map +1 -0
- package/models/operations/skilllist.d.ts +22 -0
- package/models/operations/skilllist.d.ts.map +1 -0
- package/models/operations/skilllist.js +57 -0
- package/models/operations/skilllist.js.map +1 -0
- package/models/operations/skillupdate.d.ts +15 -0
- package/models/operations/skillupdate.d.ts.map +1 -0
- package/models/operations/skillupdate.js +57 -0
- package/models/operations/skillupdate.js.map +1 -0
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +9 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +2 -0
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/files.d.ts +13 -12
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +9 -9
- package/sdk/files.js.map +1 -1
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +38 -0
- package/sdk/skills.d.ts.map +1 -0
- package/sdk/skills.js +59 -0
- package/sdk/skills.js.map +1 -0
- package/src/funcs/filesCreate.ts +13 -48
- package/src/funcs/filesDelete.ts +8 -8
- package/src/funcs/filesGet.ts +6 -5
- package/src/funcs/filesGetContent.ts +9 -9
- package/src/funcs/filesList.ts +6 -5
- package/src/funcs/filesUpdate.ts +8 -7
- package/src/funcs/skillsCreate.ts +162 -0
- package/src/funcs/skillsDelete.ts +165 -0
- package/src/funcs/skillsGet.ts +168 -0
- package/src/funcs/skillsList.ts +170 -0
- package/src/funcs/skillsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createfilerequest.ts +45 -0
- package/src/models/components/createfileresponse.ts +32 -0
- package/src/models/components/createskillrequest.ts +55 -0
- package/src/models/components/createskillresponse.ts +32 -0
- package/src/models/components/deletefileresponse.ts +27 -0
- package/src/models/components/deleteskillresponse.ts +27 -0
- package/src/models/components/file.ts +48 -0
- package/src/models/components/filepart.ts +21 -16
- package/src/models/components/getfilecontentresponse.ts +36 -0
- package/src/models/components/getfileresponse.ts +32 -0
- package/src/models/components/getskillresponse.ts +32 -0
- package/src/models/components/index.ts +17 -1
- package/src/models/components/listfilesresponse.ts +41 -0
- package/src/models/components/listskillsresponse.ts +41 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/skill.ts +77 -0
- package/src/models/components/updatefilerequest.ts +40 -0
- package/src/models/components/updatefileresponse.ts +32 -0
- package/src/models/components/updateskillrequest.ts +55 -0
- package/src/models/components/updateskillresponse.ts +32 -0
- package/src/models/operations/createagentrequest.ts +11 -0
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/filecontent.ts +0 -3
- package/src/models/operations/filedelete.ts +0 -3
- package/src/models/operations/fileget.ts +0 -48
- package/src/models/operations/filelist.ts +2 -46
- package/src/models/operations/fileupdate.ts +5 -82
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +4 -1
- package/src/models/operations/listagents.ts +5 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +5 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/skilldelete.ts +36 -0
- package/src/models/operations/skillget.ts +40 -0
- package/src/models/operations/skilllist.ts +49 -0
- package/src/models/operations/skillupdate.ts +41 -0
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +11 -0
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/files.ts +22 -21
- package/src/sdk/sdk.ts +11 -5
- package/src/sdk/skills.ts +97 -0
- package/models/components/filedocument.d.ts +0 -15
- package/models/components/filedocument.d.ts.map +0 -1
- package/models/components/filedocument.js.map +0 -1
- package/models/operations/fileupload.d.ts +0 -63
- package/models/operations/fileupload.d.ts.map +0 -1
- package/models/operations/fileupload.js +0 -97
- package/models/operations/fileupload.js.map +0 -1
- package/src/models/components/filedocument.ts +0 -48
- package/src/models/operations/fileupload.ts +0 -135
package/README.md
CHANGED
|
@@ -210,11 +210,11 @@ run();
|
|
|
210
210
|
### [Files](docs/sdks/files/README.md)
|
|
211
211
|
|
|
212
212
|
* [list](docs/sdks/files/README.md#list) - List all files
|
|
213
|
-
* [create](docs/sdks/files/README.md#create) -
|
|
213
|
+
* [create](docs/sdks/files/README.md#create) - Upload a file
|
|
214
214
|
* [getContent](docs/sdks/files/README.md#getcontent) - Download file content
|
|
215
|
-
* [delete](docs/sdks/files/README.md#delete) - Delete file
|
|
216
215
|
* [get](docs/sdks/files/README.md#get) - Retrieve a file
|
|
217
|
-
* [
|
|
216
|
+
* [delete](docs/sdks/files/README.md#delete) - Delete a file
|
|
217
|
+
* [update](docs/sdks/files/README.md#update) - Update a file
|
|
218
218
|
|
|
219
219
|
### [GuardrailRules](docs/sdks/guardrailrules/README.md)
|
|
220
220
|
|
|
@@ -376,6 +376,14 @@ run();
|
|
|
376
376
|
* [update](docs/sdks/schedules/README.md#update) - Update schedule
|
|
377
377
|
* [trigger](docs/sdks/schedules/README.md#trigger) - Trigger schedule execution
|
|
378
378
|
|
|
379
|
+
### [Skills](docs/sdks/skills/README.md)
|
|
380
|
+
|
|
381
|
+
* [list](docs/sdks/skills/README.md#list) - List all skills
|
|
382
|
+
* [create](docs/sdks/skills/README.md#create) - Create a new skill
|
|
383
|
+
* [get](docs/sdks/skills/README.md#get) - Retrieve a skill
|
|
384
|
+
* [delete](docs/sdks/skills/README.md#delete) - Delete a skill
|
|
385
|
+
* [update](docs/sdks/skills/README.md#update) - Update a skill
|
|
386
|
+
|
|
379
387
|
### [Tools](docs/sdks/tools/README.md)
|
|
380
388
|
|
|
381
389
|
* [list](docs/sdks/tools/README.md#list) - List tools
|
|
@@ -440,12 +448,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
440
448
|
- [`evalsUpdate`](docs/sdks/evals/README.md#update) - Update an Evaluator
|
|
441
449
|
- [`feedbackPostV2Feedback`](docs/sdks/feedback/README.md#postv2feedback)
|
|
442
450
|
- [`feedbackPostV2FeedbackRemove`](docs/sdks/feedback/README.md#postv2feedbackremove)
|
|
443
|
-
- [`filesCreate`](docs/sdks/files/README.md#create) -
|
|
444
|
-
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete file
|
|
451
|
+
- [`filesCreate`](docs/sdks/files/README.md#create) - Upload a file
|
|
452
|
+
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete a file
|
|
445
453
|
- [`filesGet`](docs/sdks/files/README.md#get) - Retrieve a file
|
|
446
454
|
- [`filesGetContent`](docs/sdks/files/README.md#getcontent) - Download file content
|
|
447
455
|
- [`filesList`](docs/sdks/files/README.md#list) - List all files
|
|
448
|
-
- [`filesUpdate`](docs/sdks/files/README.md#update) - Update file
|
|
456
|
+
- [`filesUpdate`](docs/sdks/files/README.md#update) - Update a file
|
|
449
457
|
- [`guardrailRulesCreate`](docs/sdks/guardrailrules/README.md#create) - Create guardrail rule
|
|
450
458
|
- [`guardrailRulesDelete`](docs/sdks/guardrailrules/README.md#delete) - Delete guardrail rule
|
|
451
459
|
- [`guardrailRulesList`](docs/sdks/guardrailrules/README.md#list) - List guardrail rules
|
|
@@ -536,6 +544,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
536
544
|
- [`schedulesRetrieve`](docs/sdks/schedules/README.md#retrieve) - Retrieve schedule
|
|
537
545
|
- [`schedulesTrigger`](docs/sdks/schedules/README.md#trigger) - Trigger schedule execution
|
|
538
546
|
- [`schedulesUpdate`](docs/sdks/schedules/README.md#update) - Update schedule
|
|
547
|
+
- [`skillsCreate`](docs/sdks/skills/README.md#create) - Create a new skill
|
|
548
|
+
- [`skillsDelete`](docs/sdks/skills/README.md#delete) - Delete a skill
|
|
549
|
+
- [`skillsGet`](docs/sdks/skills/README.md#get) - Retrieve a skill
|
|
550
|
+
- [`skillsList`](docs/sdks/skills/README.md#list) - List all skills
|
|
551
|
+
- [`skillsUpdate`](docs/sdks/skills/README.md#update) - Update a skill
|
|
539
552
|
- [`toolsCreate`](docs/sdks/tools/README.md#create) - Create tool
|
|
540
553
|
- [`toolsDelete`](docs/sdks/tools/README.md#delete) - Delete tool
|
|
541
554
|
- [`toolsGetV2ToolsToolIdVersions`](docs/sdks/tools/README.md#getv2toolstoolidversions) - List tool versions
|
|
@@ -854,48 +867,48 @@ run();
|
|
|
854
867
|
|
|
855
868
|
|
|
856
869
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
857
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of
|
|
858
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
859
|
-
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of
|
|
860
|
-
* [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of
|
|
861
|
-
* [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of
|
|
862
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
863
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
864
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
865
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
866
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
867
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
868
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
869
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
870
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
871
|
-
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
872
|
-
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of
|
|
873
|
-
* [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of
|
|
874
|
-
* [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of
|
|
875
|
-
* [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of
|
|
876
|
-
* [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
877
|
-
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of
|
|
878
|
-
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of
|
|
879
|
-
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of
|
|
880
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
881
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
882
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
883
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
884
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
885
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
886
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
887
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
888
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
889
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
890
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
891
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
892
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
893
|
-
* [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of
|
|
894
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
895
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
896
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
897
|
-
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of
|
|
898
|
-
* [`RetrieveIdentityIdentitiesResponseBody`](./src/models/errors/retrieveidentityidentitiesresponsebody.ts): Failed to fetch metrics. Status code `500`. Applicable to 1 of
|
|
870
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 10 of 149 methods.*
|
|
871
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 149 methods.*
|
|
872
|
+
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 149 methods.*
|
|
873
|
+
* [`PostV2AgentsA2aResponseBody`](./src/models/errors/postv2agentsa2aresponsebody.ts): Invalid request or agent card fetch failed. Status code `400`. Applicable to 1 of 149 methods.*
|
|
874
|
+
* [`PostV2AgentsKeyCardRefreshResponseBody`](./src/models/errors/postv2agentskeycardrefreshresponsebody.ts): Invalid request - Agent is not an A2A agent or card fetch failed. Status code `400`. Applicable to 1 of 149 methods.*
|
|
875
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 149 methods.*
|
|
876
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 149 methods.*
|
|
877
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 149 methods.*
|
|
878
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
879
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
880
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
881
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
882
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
883
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
884
|
+
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 149 methods.*
|
|
885
|
+
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
886
|
+
* [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
887
|
+
* [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
888
|
+
* [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
889
|
+
* [`PostV2AgentsKeyCardRefreshAgentsResponseBody`](./src/models/errors/postv2agentskeycardrefreshagentsresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
890
|
+
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 149 methods.*
|
|
891
|
+
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 149 methods.*
|
|
892
|
+
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 149 methods.*
|
|
893
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
894
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
895
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
896
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
897
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 149 methods.*
|
|
898
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
899
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
900
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
901
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
902
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
|
|
903
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
|
|
904
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 149 methods.*
|
|
905
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 149 methods.*
|
|
906
|
+
* [`PostV2AgentsA2aAgentsResponseBody`](./src/models/errors/postv2agentsa2aagentsresponsebody.ts): Agent with this key already exists. Status code `409`. Applicable to 1 of 149 methods.*
|
|
907
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
|
|
908
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
|
|
909
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 149 methods.*
|
|
910
|
+
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 149 methods.*
|
|
911
|
+
* [`RetrieveIdentityIdentitiesResponseBody`](./src/models/errors/retrieveidentityidentitiesresponsebody.ts): Failed to fetch metrics. Status code `500`. Applicable to 1 of 149 methods.*
|
|
899
912
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
900
913
|
|
|
901
914
|
</details>
|
package/funcs/filesCreate.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { OrqCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
3
4
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
7
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Upload a file
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Files are used to upload documents that can be used with features like Deployments.
|
|
15
15
|
*/
|
|
16
|
-
export declare function filesCreate(client: OrqCore, request:
|
|
16
|
+
export declare function filesCreate(client: OrqCore, request: components.CreateFileRequest, options?: RequestOptions): APIPromise<Result<components.CreateFileResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
17
|
//# sourceMappingURL=filesCreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesCreate.d.ts","sourceRoot":"","sources":["../src/funcs/filesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"filesCreate.d.ts","sourceRoot":"","sources":["../src/funcs/filesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/filesCreate.js
CHANGED
|
@@ -38,19 +38,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.filesCreate = filesCreate;
|
|
40
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const files_js_1 = require("../lib/files.js");
|
|
42
41
|
const http_js_1 = require("../lib/http.js");
|
|
43
42
|
const M = __importStar(require("../lib/matchers.js"));
|
|
44
43
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
44
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
45
|
const security_js_1 = require("../lib/security.js");
|
|
47
46
|
const url_js_1 = require("../lib/url.js");
|
|
48
|
-
const
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
49
48
|
const async_js_1 = require("../types/async.js");
|
|
50
|
-
const blobs_js_1 = require("../types/blobs.js");
|
|
51
|
-
const streams_js_1 = require("../types/streams.js");
|
|
52
49
|
/**
|
|
53
|
-
*
|
|
50
|
+
* Upload a file
|
|
54
51
|
*
|
|
55
52
|
* @remarks
|
|
56
53
|
* Files are used to upload documents that can be used with features like Deployments.
|
|
@@ -59,34 +56,15 @@ function filesCreate(client, request, options) {
|
|
|
59
56
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
60
57
|
}
|
|
61
58
|
async function $do(client, request, options) {
|
|
62
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) =>
|
|
59
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.CreateFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63
60
|
if (!parsed.ok) {
|
|
64
61
|
return [parsed, { status: "invalid" }];
|
|
65
62
|
}
|
|
66
63
|
const payload = parsed.value;
|
|
67
|
-
const body =
|
|
68
|
-
if ((0, blobs_js_1.isBlobLike)(payload.file)) {
|
|
69
|
-
const file = payload.file;
|
|
70
|
-
const blob = await (0, encodings_js_1.normalizeBlob)(file);
|
|
71
|
-
const name = "name" in file ? file.name : undefined;
|
|
72
|
-
(0, encodings_js_1.appendForm)(body, "file", blob, name);
|
|
73
|
-
}
|
|
74
|
-
else if ((0, streams_js_1.isReadableStream)(payload.file.content)) {
|
|
75
|
-
const buffer = await (0, files_js_1.readableStreamToArrayBuffer)(payload.file.content);
|
|
76
|
-
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.file.fileName)
|
|
77
|
-
|| "application/octet-stream";
|
|
78
|
-
(0, encodings_js_1.appendForm)(body, "file", (0, files_js_1.bytesToBlob)(buffer, contentType), payload.file.fileName);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.file.fileName)
|
|
82
|
-
|| "application/octet-stream";
|
|
83
|
-
(0, encodings_js_1.appendForm)(body, "file", (0, files_js_1.bytesToBlob)(payload.file.content, contentType), payload.file.fileName);
|
|
84
|
-
}
|
|
85
|
-
if (payload.purpose !== undefined) {
|
|
86
|
-
(0, encodings_js_1.appendForm)(body, "purpose", payload.purpose);
|
|
87
|
-
}
|
|
64
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
88
65
|
const path = (0, url_js_1.pathToFunc)("/v2/files")();
|
|
89
66
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
+
"Content-Type": "application/json",
|
|
90
68
|
Accept: "application/json",
|
|
91
69
|
}));
|
|
92
70
|
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
@@ -128,7 +106,7 @@ async function $do(client, request, options) {
|
|
|
128
106
|
return [doResult, { status: "request-error", request: req }];
|
|
129
107
|
}
|
|
130
108
|
const response = doResult.value;
|
|
131
|
-
const [result] = await M.match(M.json(200,
|
|
109
|
+
const [result] = await M.match(M.json(200, components.CreateFileResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
132
110
|
if (!result.ok) {
|
|
133
111
|
return [result, { status: "complete", request: req, response }];
|
|
134
112
|
}
|
package/funcs/filesCreate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesCreate.js","sourceRoot":"","sources":["../src/funcs/filesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filesCreate.js","sourceRoot":"","sources":["../src/funcs/filesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,kCAsBC;AAlDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,MAAe,EACf,OAAqC,EACrC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAqC,EACrC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,gCAAgC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,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AAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/funcs/filesDelete.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OrqCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
3
4
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
@@ -8,7 +9,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
8
9
|
import { APIPromise } from "../types/async.js";
|
|
9
10
|
import { Result } from "../types/fp.js";
|
|
10
11
|
/**
|
|
11
|
-
* Delete file
|
|
12
|
+
* Delete a file
|
|
12
13
|
*/
|
|
13
|
-
export declare function filesDelete(client: OrqCore, request: operations.FileDeleteRequest, options?: RequestOptions): APIPromise<Result<
|
|
14
|
+
export declare function filesDelete(client: OrqCore, request: operations.FileDeleteRequest, options?: RequestOptions): APIPromise<Result<components.DeleteFileResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
15
|
//# sourceMappingURL=filesDelete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesDelete.d.ts","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filesDelete.d.ts","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/filesDelete.js
CHANGED
|
@@ -37,7 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.filesDelete = filesDelete;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
41
|
const http_js_1 = require("../lib/http.js");
|
|
43
42
|
const M = __importStar(require("../lib/matchers.js"));
|
|
@@ -45,10 +44,11 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
45
44
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
45
|
const security_js_1 = require("../lib/security.js");
|
|
47
46
|
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
|
-
* Delete file
|
|
51
|
+
* Delete a file
|
|
52
52
|
*/
|
|
53
53
|
function filesDelete(client, request, options) {
|
|
54
54
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -68,7 +68,7 @@ async function $do(client, request, options) {
|
|
|
68
68
|
};
|
|
69
69
|
const path = (0, url_js_1.pathToFunc)("/v2/files/{file_id}")(pathParams);
|
|
70
70
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
71
|
-
Accept: "
|
|
71
|
+
Accept: "application/json",
|
|
72
72
|
}));
|
|
73
73
|
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
74
74
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -109,7 +109,7 @@ async function $do(client, request, options) {
|
|
|
109
109
|
return [doResult, { status: "request-error", request: req }];
|
|
110
110
|
}
|
|
111
111
|
const response = doResult.value;
|
|
112
|
-
const [result] = await M.match(M.
|
|
112
|
+
const [result] = await M.match(M.json(200, components.DeleteFileResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
113
113
|
if (!result.ok) {
|
|
114
114
|
return [result, { status: "complete", request: req, response }];
|
|
115
115
|
}
|
package/funcs/filesDelete.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesDelete.js","sourceRoot":"","sources":["../src/funcs/filesDelete.ts"],"names":[],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,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/funcs/filesGet.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OrqCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
3
4
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
@@ -13,5 +14,5 @@ import { Result } from "../types/fp.js";
|
|
|
13
14
|
* @remarks
|
|
14
15
|
* Retrieves the details of an existing file object. After you supply a unique file ID, orq.ai returns the corresponding file object.
|
|
15
16
|
*/
|
|
16
|
-
export declare function filesGet(client: OrqCore, request: operations.FileGetRequest, options?: RequestOptions): APIPromise<Result<
|
|
17
|
+
export declare function filesGet(client: OrqCore, request: operations.FileGetRequest, options?: RequestOptions): APIPromise<Result<components.GetFileResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
18
|
//# sourceMappingURL=filesGet.d.ts.map
|
package/funcs/filesGet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesGet.d.ts","sourceRoot":"","sources":["../src/funcs/filesGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBA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ACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/filesGet.js
CHANGED
|
@@ -44,6 +44,7 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
44
44
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
45
|
const security_js_1 = require("../lib/security.js");
|
|
46
46
|
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
47
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
49
|
const async_js_1 = require("../types/async.js");
|
|
49
50
|
/**
|
|
@@ -111,7 +112,7 @@ async function $do(client, request, options) {
|
|
|
111
112
|
return [doResult, { status: "request-error", request: req }];
|
|
112
113
|
}
|
|
113
114
|
const response = doResult.value;
|
|
114
|
-
const [result] = await M.match(M.json(200,
|
|
115
|
+
const [result] = await M.match(M.json(200, components.GetFileResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
115
116
|
if (!result.ok) {
|
|
116
117
|
return [result, { status: "complete", request: req, response }];
|
|
117
118
|
}
|
package/funcs/filesGet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesGet.js","sourceRoot":"","sources":["../src/funcs/filesGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filesGet.js","sourceRoot":"","sources":["../src/funcs/filesGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,4BAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GA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,EAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,6BAA6B,CAAC,EACrD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OrqCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
3
4
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
@@ -11,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
11
12
|
* Download file content
|
|
12
13
|
*
|
|
13
14
|
* @remarks
|
|
14
|
-
*
|
|
15
|
+
* Returns a presigned URL for downloading the file content by file ID.
|
|
15
16
|
*/
|
|
16
|
-
export declare function filesGetContent(client: OrqCore, request: operations.FileContentRequest, options?: RequestOptions): APIPromise<Result<
|
|
17
|
+
export declare function filesGetContent(client: OrqCore, request: operations.FileContentRequest, options?: RequestOptions): APIPromise<Result<components.GetFileContentResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
18
|
//# sourceMappingURL=filesGetContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesGetContent.d.ts","sourceRoot":"","sources":["../src/funcs/filesGetContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filesGetContent.d.ts","sourceRoot":"","sources":["../src/funcs/filesGetContent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/filesGetContent.js
CHANGED
|
@@ -37,7 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.filesGetContent = filesGetContent;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
41
|
const http_js_1 = require("../lib/http.js");
|
|
43
42
|
const M = __importStar(require("../lib/matchers.js"));
|
|
@@ -45,13 +44,14 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
45
44
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
45
|
const security_js_1 = require("../lib/security.js");
|
|
47
46
|
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
51
|
* Download file content
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
54
|
+
* Returns a presigned URL for downloading the file content by file ID.
|
|
55
55
|
*/
|
|
56
56
|
function filesGetContent(client, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -71,7 +71,7 @@ async function $do(client, request, options) {
|
|
|
71
71
|
};
|
|
72
72
|
const path = (0, url_js_1.pathToFunc)("/v2/files/{file_id_or_path}/content")(pathParams);
|
|
73
73
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
74
|
-
Accept: "
|
|
74
|
+
Accept: "application/json",
|
|
75
75
|
}));
|
|
76
76
|
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
77
77
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -112,7 +112,7 @@ async function $do(client, request, options) {
|
|
|
112
112
|
return [doResult, { status: "request-error", request: req }];
|
|
113
113
|
}
|
|
114
114
|
const response = doResult.value;
|
|
115
|
-
const [result] = await M.match(M.
|
|
115
|
+
const [result] = await M.match(M.json(200, components.GetFileContentResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
116
116
|
if (!result.ok) {
|
|
117
117
|
return [result, { status: "complete", request: req, response }];
|
|
118
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesGetContent.js","sourceRoot":"","sources":["../src/funcs/filesGetContent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,0CAsBC;
|
|
1
|
+
{"version":3,"file":"filesGetContent.js","sourceRoot":"","sources":["../src/funcs/filesGetContent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,0CAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,eAAe,CAC7B,MAAe,EACf,OAAsC,EACtC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAsC,EACtC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,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EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/funcs/filesList.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OrqCore } from "../core.js";
|
|
2
2
|
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
3
4
|
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
@@ -13,5 +14,5 @@ import { Result } from "../types/fp.js";
|
|
|
13
14
|
* @remarks
|
|
14
15
|
* Returns a list of the files that your account has access to. orq.ai sorts and returns the files by their creation dates, placing the most recently created files at the top.
|
|
15
16
|
*/
|
|
16
|
-
export declare function filesList(client: OrqCore, request?: operations.FileListRequest | undefined, options?: RequestOptions): APIPromise<Result<
|
|
17
|
+
export declare function filesList(client: OrqCore, request?: operations.FileListRequest | undefined, options?: RequestOptions): APIPromise<Result<components.ListFilesResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
18
|
//# sourceMappingURL=filesList.d.ts.map
|
package/funcs/filesList.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesList.d.ts","sourceRoot":"","sources":["../src/funcs/filesList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"filesList.d.ts","sourceRoot":"","sources":["../src/funcs/filesList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,eAAe,GAAG,SAAS,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iBAAiB,EAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/filesList.js
CHANGED
|
@@ -44,6 +44,7 @@ const primitives_js_1 = require("../lib/primitives.js");
|
|
|
44
44
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
45
|
const security_js_1 = require("../lib/security.js");
|
|
46
46
|
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
47
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
49
|
const async_js_1 = require("../types/async.js");
|
|
49
50
|
/**
|
|
@@ -67,7 +68,7 @@ async function $do(client, request, options) {
|
|
|
67
68
|
"ending_before": payload?.ending_before,
|
|
68
69
|
"limit": payload?.limit,
|
|
69
70
|
"starting_after": payload?.starting_after,
|
|
70
|
-
}
|
|
71
|
+
});
|
|
71
72
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
72
73
|
Accept: "application/json",
|
|
73
74
|
}));
|
|
@@ -111,7 +112,7 @@ async function $do(client, request, options) {
|
|
|
111
112
|
return [doResult, { status: "request-error", request: req }];
|
|
112
113
|
}
|
|
113
114
|
const response = doResult.value;
|
|
114
|
-
const [result] = await M.match(M.json(200,
|
|
115
|
+
const [result] = await M.match(M.json(200, components.ListFilesResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
115
116
|
if (!result.ok) {
|
|
116
117
|
return [result, { status: "complete", request: req, response }];
|
|
117
118
|
}
|
package/funcs/filesList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesList.js","sourceRoot":"","sources":["../src/funcs/filesList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"filesList.js","sourceRoot":"","sources":["../src/funcs/filesList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8BAsBC;AAnDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,SAAS,CACvB,MAAe,EACf,OAAgD,EAChD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAgD,EAChD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,8BAA8B,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACnE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