@orq-ai/node 3.1.1 → 3.1.2
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 +34 -34
- package/docs/sdks/deployments/README.md +9 -86
- package/docs/sdks/files/README.md +174 -2
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompt/README.md +6 -0
- package/docs/sdks/prompts/README.md +128 -135
- package/docs/sdks/snippets/README.md +84 -0
- package/docs/sdks/templates/README.md +80 -0
- package/funcs/{deploymentsList.d.ts → deploymentsAll.d.ts} +2 -2
- package/funcs/deploymentsAll.d.ts.map +1 -0
- package/funcs/{deploymentsList.js → deploymentsAll.js} +4 -5
- package/funcs/deploymentsAll.js.map +1 -0
- package/funcs/deploymentsInvoke.d.ts +7 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +11 -10
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/filesBulkUpload.d.ts +15 -0
- package/funcs/filesBulkUpload.d.ts.map +1 -0
- package/funcs/{promptsList.js → filesBulkUpload.js} +15 -18
- package/funcs/filesBulkUpload.js.map +1 -0
- package/funcs/{promptSnippetsDelete.d.ts → filesUpdate.d.ts} +3 -3
- package/funcs/filesUpdate.d.ts.map +1 -0
- package/funcs/{promptSnippetsGetByKey.js → filesUpdate.js} +13 -12
- package/funcs/filesUpdate.js.map +1 -0
- package/funcs/{promptSnippetsList.d.ts → promptSnippetsFindOne.d.ts} +3 -3
- package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
- package/funcs/{promptSnippetsGet.js → promptSnippetsFindOne.js} +6 -6
- package/funcs/promptSnippetsFindOne.js.map +1 -0
- package/funcs/{promptSnippetsCreate.d.ts → promptTemplatesGetAll.d.ts} +3 -3
- package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
- package/funcs/{promptSnippetsList.js → promptTemplatesGetAll.js} +13 -13
- package/funcs/promptTemplatesGetAll.js.map +1 -0
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.js +2 -2
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/{promptsRetrieve.d.ts → promptsCreateVersion.d.ts} +3 -6
- package/funcs/{promptSnippetsDelete.d.ts.map → promptsCreateVersion.d.ts.map} +1 -1
- package/funcs/promptsCreateVersion.js +110 -0
- package/funcs/promptsCreateVersion.js.map +1 -0
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/{promptSnippetsGet.d.ts → promptsDuplicate.d.ts} +3 -3
- package/funcs/promptsDuplicate.d.ts.map +1 -0
- package/funcs/{promptSnippetsDelete.js → promptsDuplicate.js} +8 -8
- package/funcs/promptsDuplicate.js.map +1 -0
- package/funcs/promptsGetAll.d.ts +12 -0
- package/funcs/promptsGetAll.d.ts.map +1 -0
- package/funcs/{promptSnippetsCreate.js → promptsGetAll.js} +8 -8
- package/funcs/promptsGetAll.js.map +1 -0
- package/funcs/promptsGetOne.d.ts +12 -0
- package/funcs/promptsGetOne.d.ts.map +1 -0
- package/funcs/{promptsRetrieve.js → promptsGetOne.js} +8 -10
- package/funcs/promptsGetOne.js.map +1 -0
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -10
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +0 -13
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +0 -17
- package/lib/env.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/deployments.d.ts +5 -0
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +2 -0
- package/models/components/deployments.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/bulkfileupload.d.ts +173 -0
- package/models/operations/bulkfileupload.d.ts.map +1 -0
- package/models/operations/bulkfileupload.js +210 -0
- package/models/operations/bulkfileupload.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +381 -702
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +481 -641
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptversion.d.ts +2003 -0
- package/models/operations/createpromptversion.d.ts.map +1 -0
- package/models/operations/createpromptversion.js +1852 -0
- package/models/operations/createpromptversion.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deploymentgetconfig.d.ts +0 -39
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +4 -29
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +683 -23
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +614 -23
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +8 -54
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +13 -44
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicateprompt.d.ts +32 -0
- package/models/operations/duplicateprompt.d.ts.map +1 -0
- package/models/operations/{deletepromptsnippet.js → duplicateprompt.js} +17 -17
- package/models/operations/duplicateprompt.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.d.ts +5 -1
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +12 -4
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupdate.d.ts +143 -0
- package/models/operations/fileupdate.d.ts.map +1 -0
- package/models/operations/fileupdate.js +193 -0
- package/models/operations/fileupdate.js.map +1 -0
- package/models/operations/fileupload.js +2 -2
- package/models/operations/findonepromptsnippet.d.ts +4768 -938
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +4751 -984
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +9926 -546
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +8805 -557
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getallprompttemplates.d.ts +6607 -0
- package/models/operations/getallprompttemplates.d.ts.map +1 -0
- package/models/operations/getallprompttemplates.js +6225 -0
- package/models/operations/getallprompttemplates.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +1 -1203
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -1011
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/index.d.ts +5 -8
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -8
- package/models/operations/index.js.map +1 -1
- package/models/operations/updateprompt.d.ts +5979 -1121
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +5729 -1119
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +6 -10
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +6 -14
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +11 -0
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +17 -0
- package/sdk/files.js.map +1 -1
- package/sdk/prompt.d.ts +10 -0
- package/sdk/prompt.d.ts.map +1 -0
- package/sdk/prompt.js +19 -0
- package/sdk/prompt.js.map +1 -0
- package/sdk/prompts.d.ts +14 -26
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +25 -37
- package/sdk/prompts.js.map +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/snippets.d.ts +9 -0
- package/sdk/snippets.d.ts.map +1 -0
- package/sdk/snippets.js +19 -0
- package/sdk/snippets.js.map +1 -0
- package/sdk/templates.d.ts +9 -0
- package/sdk/templates.d.ts.map +1 -0
- package/sdk/templates.js +19 -0
- package/sdk/templates.js.map +1 -0
- package/src/funcs/{deploymentsList.ts → deploymentsAll.ts} +2 -3
- package/src/funcs/deploymentsInvoke.ts +16 -21
- package/src/funcs/filesBulkUpload.ts +129 -0
- package/src/funcs/{promptSnippetsGetByKey.ts → filesUpdate.ts} +16 -18
- package/src/funcs/{promptSnippetsGet.ts → promptSnippetsFindOne.ts} +4 -4
- package/src/funcs/{promptSnippetsList.ts → promptTemplatesGetAll.ts} +16 -16
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsCreateVersion.ts +131 -0
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/{promptSnippetsDelete.ts → promptsDuplicate.ts} +7 -8
- package/src/funcs/{promptSnippetsCreate.ts → promptsGetAll.ts} +9 -9
- package/src/funcs/{promptsRetrieve.ts → promptsGetOne.ts} +8 -10
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -12
- package/src/lib/env.ts +0 -32
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +7 -0
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/bulkfileupload.ts +315 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +690 -1048
- package/src/models/operations/createpromptversion.ts +3703 -0
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deploymentgetconfig.ts +0 -44
- package/src/models/operations/deploymentinvoke.ts +1415 -174
- package/src/models/operations/deployments.ts +18 -68
- package/src/models/operations/duplicateprompt.ts +69 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +17 -5
- package/src/models/operations/fileupdate.ts +298 -0
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/findonepromptsnippet.ts +11104 -1818
- package/src/models/operations/getallprompts.ts +17860 -1336
- package/src/models/operations/getallprompttemplates.ts +13690 -0
- package/src/models/operations/getoneprompt.ts +1 -1914
- package/src/models/operations/index.ts +5 -8
- package/src/models/operations/updateprompt.ts +12561 -2071
- package/src/sdk/deployments.ts +11 -25
- package/src/sdk/files.ts +33 -0
- package/src/sdk/prompt.ts +19 -0
- package/src/sdk/prompts.ts +39 -51
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/snippets.ts +24 -0
- package/src/sdk/templates.ts +24 -0
- package/docs/sdks/promptsnippets/README.md +0 -488
- package/funcs/deploymentsList.d.ts.map +0 -1
- package/funcs/deploymentsList.js.map +0 -1
- package/funcs/deploymentsStream.d.ts +0 -16
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js +0 -125
- package/funcs/deploymentsStream.js.map +0 -1
- package/funcs/promptSnippetsCreate.d.ts.map +0 -1
- package/funcs/promptSnippetsCreate.js.map +0 -1
- package/funcs/promptSnippetsDelete.js.map +0 -1
- package/funcs/promptSnippetsGet.d.ts.map +0 -1
- package/funcs/promptSnippetsGet.js.map +0 -1
- package/funcs/promptSnippetsGetByKey.d.ts +0 -12
- package/funcs/promptSnippetsGetByKey.d.ts.map +0 -1
- package/funcs/promptSnippetsGetByKey.js.map +0 -1
- package/funcs/promptSnippetsList.d.ts.map +0 -1
- package/funcs/promptSnippetsList.js.map +0 -1
- package/funcs/promptSnippetsUpdate.d.ts +0 -13
- package/funcs/promptSnippetsUpdate.d.ts.map +0 -1
- package/funcs/promptSnippetsUpdate.js +0 -114
- package/funcs/promptSnippetsUpdate.js.map +0 -1
- package/funcs/promptsGetVersion.d.ts +0 -16
- package/funcs/promptsGetVersion.d.ts.map +0 -1
- package/funcs/promptsGetVersion.js +0 -120
- package/funcs/promptsGetVersion.js.map +0 -1
- package/funcs/promptsList.d.ts +0 -15
- package/funcs/promptsList.d.ts.map +0 -1
- package/funcs/promptsList.js.map +0 -1
- package/funcs/promptsListVersions.d.ts +0 -15
- package/funcs/promptsListVersions.d.ts.map +0 -1
- package/funcs/promptsListVersions.js +0 -118
- package/funcs/promptsListVersions.js.map +0 -1
- package/funcs/promptsRetrieve.d.ts.map +0 -1
- package/funcs/promptsRetrieve.js.map +0 -1
- package/models/errors/getpromptversion.d.ts +0 -36
- package/models/errors/getpromptversion.d.ts.map +0 -1
- package/models/errors/getpromptversion.js +0 -79
- package/models/errors/getpromptversion.js.map +0 -1
- package/models/errors/updatepromptsnippet.d.ts +0 -36
- package/models/errors/updatepromptsnippet.d.ts.map +0 -1
- package/models/errors/updatepromptsnippet.js +0 -79
- package/models/errors/updatepromptsnippet.js.map +0 -1
- package/models/operations/createpromptsnippet.d.ts +0 -3567
- package/models/operations/createpromptsnippet.d.ts.map +0 -1
- package/models/operations/createpromptsnippet.js +0 -3056
- package/models/operations/createpromptsnippet.js.map +0 -1
- package/models/operations/deletepromptsnippet.d.ts +0 -32
- package/models/operations/deletepromptsnippet.d.ts.map +0 -1
- package/models/operations/deletepromptsnippet.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1622
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1571
- package/models/operations/deploymentstream.js.map +0 -1
- package/models/operations/findonebykeypromptsnippet.d.ts +0 -2448
- package/models/operations/findonebykeypromptsnippet.d.ts.map +0 -1
- package/models/operations/findonebykeypromptsnippet.js +0 -2133
- package/models/operations/findonebykeypromptsnippet.js.map +0 -1
- package/models/operations/getallpromptsnippets.d.ts +0 -2512
- package/models/operations/getallpromptsnippets.d.ts.map +0 -1
- package/models/operations/getallpromptsnippets.js +0 -2195
- package/models/operations/getallpromptsnippets.js.map +0 -1
- package/models/operations/getpromptversion.d.ts +0 -1228
- package/models/operations/getpromptversion.d.ts.map +0 -1
- package/models/operations/getpromptversion.js +0 -1080
- package/models/operations/getpromptversion.js.map +0 -1
- package/models/operations/listpromptversions.d.ts +0 -1286
- package/models/operations/listpromptversions.d.ts.map +0 -1
- package/models/operations/listpromptversions.js +0 -1142
- package/models/operations/listpromptversions.js.map +0 -1
- package/models/operations/updatepromptsnippet.d.ts +0 -3595
- package/models/operations/updatepromptsnippet.d.ts.map +0 -1
- package/models/operations/updatepromptsnippet.js +0 -3116
- package/models/operations/updatepromptsnippet.js.map +0 -1
- package/sdk/promptsnippets.d.ts +0 -29
- package/sdk/promptsnippets.d.ts.map +0 -1
- package/sdk/promptsnippets.js +0 -54
- package/sdk/promptsnippets.js.map +0 -1
- package/src/funcs/deploymentsStream.ts +0 -150
- package/src/funcs/promptSnippetsUpdate.ts +0 -139
- package/src/funcs/promptsGetVersion.ts +0 -146
- package/src/funcs/promptsList.ts +0 -133
- package/src/funcs/promptsListVersions.ts +0 -139
- package/src/models/errors/getpromptversion.ts +0 -71
- package/src/models/errors/updatepromptsnippet.ts +0 -71
- package/src/models/operations/createpromptsnippet.ts +0 -6239
- package/src/models/operations/deletepromptsnippet.ts +0 -69
- package/src/models/operations/deploymentstream.ts +0 -3062
- package/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
- package/src/models/operations/getallpromptsnippets.ts +0 -4472
- package/src/models/operations/getpromptversion.ts +0 -2012
- package/src/models/operations/listpromptversions.ts +0 -2146
- package/src/models/operations/updatepromptsnippet.ts +0 -6544
- package/src/sdk/promptsnippets.ts +0 -99
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
|
|
|
12
12
|
<!-- Start Summary [summary] -->
|
|
13
13
|
## Summary
|
|
14
14
|
|
|
15
|
-
[Dev] orq.ai API:
|
|
15
|
+
[Dev] orq.ai API: The Orquesta API
|
|
16
16
|
|
|
17
17
|
For more information about the API: [orq.ai Documentation](https://docs.orq.ai)
|
|
18
18
|
<!-- End Summary [summary] -->
|
|
@@ -150,10 +150,9 @@ run();
|
|
|
150
150
|
|
|
151
151
|
### [deployments](docs/sdks/deployments/README.md)
|
|
152
152
|
|
|
153
|
-
* [
|
|
153
|
+
* [all](docs/sdks/deployments/README.md#all) - List all deployments
|
|
154
154
|
* [getConfig](docs/sdks/deployments/README.md#getconfig) - Get config
|
|
155
155
|
* [invoke](docs/sdks/deployments/README.md#invoke) - Invoke
|
|
156
|
-
* [stream](docs/sdks/deployments/README.md#stream) - Stream
|
|
157
156
|
|
|
158
157
|
#### [deployments.metrics](docs/sdks/metrics/README.md)
|
|
159
158
|
|
|
@@ -168,27 +167,31 @@ run();
|
|
|
168
167
|
* [upload](docs/sdks/files/README.md#upload) - Upload file
|
|
169
168
|
* [list](docs/sdks/files/README.md#list) - List all files
|
|
170
169
|
* [get](docs/sdks/files/README.md#get) - Get file by ID
|
|
170
|
+
* [update](docs/sdks/files/README.md#update) - Update file name
|
|
171
171
|
* [delete](docs/sdks/files/README.md#delete) - Delete file
|
|
172
|
+
* [bulkUpload](docs/sdks/files/README.md#bulkupload) - Bulk upload file
|
|
172
173
|
|
|
173
174
|
|
|
174
|
-
### [
|
|
175
|
+
### [prompt](docs/sdks/prompt/README.md)
|
|
175
176
|
|
|
176
|
-
* [list](docs/sdks/prompts/README.md#list) - List all prompts
|
|
177
|
-
* [create](docs/sdks/prompts/README.md#create) - Create a prompt
|
|
178
|
-
* [retrieve](docs/sdks/prompts/README.md#retrieve) - Retrieve a prompt
|
|
179
|
-
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
180
|
-
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
181
|
-
* [listVersions](docs/sdks/prompts/README.md#listversions) - List all prompt versions
|
|
182
|
-
* [getVersion](docs/sdks/prompts/README.md#getversion) - Retrieve a prompt version
|
|
183
177
|
|
|
184
|
-
|
|
178
|
+
#### [prompt.snippets](docs/sdks/snippets/README.md)
|
|
179
|
+
|
|
180
|
+
* [findOne](docs/sdks/snippets/README.md#findone) - Get one prompt snippet
|
|
181
|
+
|
|
182
|
+
#### [prompt.templates](docs/sdks/templates/README.md)
|
|
185
183
|
|
|
186
|
-
* [
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
* [
|
|
191
|
-
* [
|
|
184
|
+
* [getAll](docs/sdks/templates/README.md#getall) - Get all prompt templates
|
|
185
|
+
|
|
186
|
+
### [prompts](docs/sdks/prompts/README.md)
|
|
187
|
+
|
|
188
|
+
* [create](docs/sdks/prompts/README.md#create) - Create a new prompt
|
|
189
|
+
* [createVersion](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
|
|
190
|
+
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
191
|
+
* [getOne](docs/sdks/prompts/README.md#getone) - Get one prompt
|
|
192
|
+
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
193
|
+
* [duplicate](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
|
|
194
|
+
* [getAll](docs/sdks/prompts/README.md#getall) - Get all prompts
|
|
192
195
|
|
|
193
196
|
### [remoteconfig](docs/sdks/remoteconfig/README.md)
|
|
194
197
|
|
|
@@ -213,29 +216,26 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
213
216
|
<summary>Available standalone functions</summary>
|
|
214
217
|
|
|
215
218
|
- [`contactsCreate`](docs/sdks/contacts/README.md#create) - Update user information
|
|
219
|
+
- [`deploymentsAll`](docs/sdks/deployments/README.md#all) - List all deployments
|
|
216
220
|
- [`deploymentsGetConfig`](docs/sdks/deployments/README.md#getconfig) - Get config
|
|
217
221
|
- [`deploymentsInvoke`](docs/sdks/deployments/README.md#invoke) - Invoke
|
|
218
|
-
- [`deploymentsList`](docs/sdks/deployments/README.md#list) - List all deployments
|
|
219
222
|
- [`deploymentsMetricsCreate`](docs/sdks/metrics/README.md#create) - Add metrics
|
|
220
|
-
- [`deploymentsStream`](docs/sdks/deployments/README.md#stream) - Stream
|
|
221
223
|
- [`feedbackCreate`](docs/sdks/feedback/README.md#create) - Submit feedback
|
|
224
|
+
- [`filesBulkUpload`](docs/sdks/files/README.md#bulkupload) - Bulk upload file
|
|
222
225
|
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete file
|
|
223
226
|
- [`filesGet`](docs/sdks/files/README.md#get) - Get file by ID
|
|
224
227
|
- [`filesList`](docs/sdks/files/README.md#list) - List all files
|
|
228
|
+
- [`filesUpdate`](docs/sdks/files/README.md#update) - Update file name
|
|
225
229
|
- [`filesUpload`](docs/sdks/files/README.md#upload) - Upload file
|
|
226
|
-
- [`promptsCreate`](docs/sdks/prompts/README.md#create) - Create a prompt
|
|
230
|
+
- [`promptsCreate`](docs/sdks/prompts/README.md#create) - Create a new prompt
|
|
231
|
+
- [`promptsCreateVersion`](docs/sdks/prompts/README.md#createversion) - Create a new prompt version
|
|
227
232
|
- [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete a prompt
|
|
228
|
-
- [`
|
|
229
|
-
- [`
|
|
230
|
-
- [`
|
|
231
|
-
- [`
|
|
232
|
-
- [`promptSnippetsDelete`](docs/sdks/promptsnippets/README.md#delete) - Delete a prompt snippet
|
|
233
|
-
- [`promptSnippetsGet`](docs/sdks/promptsnippets/README.md#get) - Retrieve a prompt snippet
|
|
234
|
-
- [`promptSnippetsGetByKey`](docs/sdks/promptsnippets/README.md#getbykey) - Retrieve a prompt snippet by key
|
|
235
|
-
- [`promptSnippetsList`](docs/sdks/promptsnippets/README.md#list) - List all prompts snippets
|
|
236
|
-
- [`promptSnippetsUpdate`](docs/sdks/promptsnippets/README.md#update) - Update a prompt snippet
|
|
237
|
-
- [`promptsRetrieve`](docs/sdks/prompts/README.md#retrieve) - Retrieve a prompt
|
|
233
|
+
- [`promptsDuplicate`](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
|
|
234
|
+
- [`promptsGetAll`](docs/sdks/prompts/README.md#getall) - Get all prompts
|
|
235
|
+
- [`promptsGetOne`](docs/sdks/prompts/README.md#getone) - Get one prompt
|
|
236
|
+
- [`promptSnippetsFindOne`](docs/sdks/snippets/README.md#findone) - Get one prompt snippet
|
|
238
237
|
- [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update a prompt
|
|
238
|
+
- [`promptTemplatesGetAll`](docs/sdks/templates/README.md#getall) - Get all prompt templates
|
|
239
239
|
- [`remoteconfigGetConfig`](docs/sdks/remoteconfig/README.md#getconfig) - Get Configurations
|
|
240
240
|
|
|
241
241
|
</details>
|
|
@@ -258,7 +258,7 @@ const orq = new Orq({
|
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
async function run() {
|
|
261
|
-
const result = await orq.deployments.
|
|
261
|
+
const result = await orq.deployments.invoke({
|
|
262
262
|
key: "<key>",
|
|
263
263
|
});
|
|
264
264
|
|
|
@@ -381,7 +381,7 @@ run();
|
|
|
381
381
|
<!-- Start Error Handling [errors] -->
|
|
382
382
|
## Error Handling
|
|
383
383
|
|
|
384
|
-
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `
|
|
384
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `all` method may throw the following errors:
|
|
385
385
|
|
|
386
386
|
| Error Type | Status Code | Content Type |
|
|
387
387
|
| ------------------- | ----------- | ---------------- |
|
|
@@ -401,7 +401,7 @@ const orq = new Orq({
|
|
|
401
401
|
async function run() {
|
|
402
402
|
let result;
|
|
403
403
|
try {
|
|
404
|
-
result = await orq.deployments.
|
|
404
|
+
result = await orq.deployments.all({});
|
|
405
405
|
|
|
406
406
|
// Handle the result
|
|
407
407
|
console.log(result);
|
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
-
* [
|
|
8
|
+
* [all](#all) - List all deployments
|
|
9
9
|
* [getConfig](#getconfig) - Get config
|
|
10
10
|
* [invoke](#invoke) - Invoke
|
|
11
|
-
* [stream](#stream) - Stream
|
|
12
11
|
|
|
13
|
-
##
|
|
12
|
+
## all
|
|
14
13
|
|
|
15
14
|
Returns a list of your deployments. The deployments are returned sorted by creation date, with the most recent deployments appearing first.
|
|
16
15
|
|
|
@@ -24,7 +23,7 @@ const orq = new Orq({
|
|
|
24
23
|
});
|
|
25
24
|
|
|
26
25
|
async function run() {
|
|
27
|
-
const result = await orq.deployments.
|
|
26
|
+
const result = await orq.deployments.all({});
|
|
28
27
|
|
|
29
28
|
// Handle the result
|
|
30
29
|
console.log(result);
|
|
@@ -39,7 +38,7 @@ The standalone function version of this method:
|
|
|
39
38
|
|
|
40
39
|
```typescript
|
|
41
40
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
42
|
-
import {
|
|
41
|
+
import { deploymentsAll } from "@orq-ai/node/funcs/deploymentsAll.js";
|
|
43
42
|
|
|
44
43
|
// Use `OrqCore` for best tree-shaking performance.
|
|
45
44
|
// You can create one instance of it to use across an application.
|
|
@@ -48,7 +47,7 @@ const orq = new OrqCore({
|
|
|
48
47
|
});
|
|
49
48
|
|
|
50
49
|
async function run() {
|
|
51
|
-
const res = await
|
|
50
|
+
const res = await deploymentsAll(orq, {});
|
|
52
51
|
|
|
53
52
|
if (!res.ok) {
|
|
54
53
|
throw res.error;
|
|
@@ -177,82 +176,6 @@ async function run() {
|
|
|
177
176
|
key: "<key>",
|
|
178
177
|
});
|
|
179
178
|
|
|
180
|
-
// Handle the result
|
|
181
|
-
console.log(result);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
run();
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Standalone function
|
|
188
|
-
|
|
189
|
-
The standalone function version of this method:
|
|
190
|
-
|
|
191
|
-
```typescript
|
|
192
|
-
import { OrqCore } from "@orq-ai/node/core.js";
|
|
193
|
-
import { deploymentsInvoke } from "@orq-ai/node/funcs/deploymentsInvoke.js";
|
|
194
|
-
|
|
195
|
-
// Use `OrqCore` for best tree-shaking performance.
|
|
196
|
-
// You can create one instance of it to use across an application.
|
|
197
|
-
const orq = new OrqCore({
|
|
198
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
async function run() {
|
|
202
|
-
const res = await deploymentsInvoke(orq, {
|
|
203
|
-
key: "<key>",
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
if (!res.ok) {
|
|
207
|
-
throw res.error;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const { value: result } = res;
|
|
211
|
-
|
|
212
|
-
// Handle the result
|
|
213
|
-
console.log(result);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
run();
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
### Parameters
|
|
220
|
-
|
|
221
|
-
| Parameter | Type | Required | Description |
|
|
222
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
223
|
-
| `request` | [components.Deployments](../../models/components/deployments.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
224
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
225
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
226
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
227
|
-
|
|
228
|
-
### Response
|
|
229
|
-
|
|
230
|
-
**Promise\<[operations.DeploymentInvokeResponseBody](../../models/operations/deploymentinvokeresponsebody.md)\>**
|
|
231
|
-
|
|
232
|
-
### Errors
|
|
233
|
-
|
|
234
|
-
| Error Type | Status Code | Content Type |
|
|
235
|
-
| --------------- | --------------- | --------------- |
|
|
236
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
237
|
-
|
|
238
|
-
## stream
|
|
239
|
-
|
|
240
|
-
Stream deployment generation. Only supported for completions and chat completions.
|
|
241
|
-
|
|
242
|
-
### Example Usage
|
|
243
|
-
|
|
244
|
-
```typescript
|
|
245
|
-
import { Orq } from "@orq-ai/node";
|
|
246
|
-
|
|
247
|
-
const orq = new Orq({
|
|
248
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
async function run() {
|
|
252
|
-
const result = await orq.deployments.stream({
|
|
253
|
-
key: "<key>",
|
|
254
|
-
});
|
|
255
|
-
|
|
256
179
|
for await (const event of result) {
|
|
257
180
|
// Handle the event
|
|
258
181
|
console.log(event);
|
|
@@ -268,7 +191,7 @@ The standalone function version of this method:
|
|
|
268
191
|
|
|
269
192
|
```typescript
|
|
270
193
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
271
|
-
import {
|
|
194
|
+
import { deploymentsInvoke } from "@orq-ai/node/funcs/deploymentsInvoke.js";
|
|
272
195
|
|
|
273
196
|
// Use `OrqCore` for best tree-shaking performance.
|
|
274
197
|
// You can create one instance of it to use across an application.
|
|
@@ -277,7 +200,7 @@ const orq = new OrqCore({
|
|
|
277
200
|
});
|
|
278
201
|
|
|
279
202
|
async function run() {
|
|
280
|
-
const res = await
|
|
203
|
+
const res = await deploymentsInvoke(orq, {
|
|
281
204
|
key: "<key>",
|
|
282
205
|
});
|
|
283
206
|
|
|
@@ -300,14 +223,14 @@ run();
|
|
|
300
223
|
|
|
301
224
|
| Parameter | Type | Required | Description |
|
|
302
225
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
303
|
-
| `request` | [
|
|
226
|
+
| `request` | [components.Deployments](../../models/components/deployments.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
304
227
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
305
228
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
306
229
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
307
230
|
|
|
308
231
|
### Response
|
|
309
232
|
|
|
310
|
-
**Promise\<[
|
|
233
|
+
**Promise\<[operations.DeploymentInvokeResponse](../../models/operations/deploymentinvokeresponse.md)\>**
|
|
311
234
|
|
|
312
235
|
### Errors
|
|
313
236
|
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* [upload](#upload) - Upload file
|
|
9
9
|
* [list](#list) - List all files
|
|
10
10
|
* [get](#get) - Get file by ID
|
|
11
|
+
* [update](#update) - Update file name
|
|
11
12
|
* [delete](#delete) - Delete file
|
|
13
|
+
* [bulkUpload](#bulkupload) - Bulk upload file
|
|
12
14
|
|
|
13
15
|
## upload
|
|
14
16
|
|
|
@@ -96,7 +98,9 @@ const orq = new Orq({
|
|
|
96
98
|
});
|
|
97
99
|
|
|
98
100
|
async function run() {
|
|
99
|
-
const result = await orq.files.list({
|
|
101
|
+
const result = await orq.files.list({
|
|
102
|
+
limit: 50,
|
|
103
|
+
});
|
|
100
104
|
|
|
101
105
|
// Handle the result
|
|
102
106
|
console.log(result);
|
|
@@ -120,7 +124,9 @@ const orq = new OrqCore({
|
|
|
120
124
|
});
|
|
121
125
|
|
|
122
126
|
async function run() {
|
|
123
|
-
const res = await filesList(orq, {
|
|
127
|
+
const res = await filesList(orq, {
|
|
128
|
+
limit: 50,
|
|
129
|
+
});
|
|
124
130
|
|
|
125
131
|
if (!res.ok) {
|
|
126
132
|
throw res.error;
|
|
@@ -230,6 +236,82 @@ run();
|
|
|
230
236
|
| --------------- | --------------- | --------------- |
|
|
231
237
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
232
238
|
|
|
239
|
+
## update
|
|
240
|
+
|
|
241
|
+
Update file name
|
|
242
|
+
|
|
243
|
+
### Example Usage
|
|
244
|
+
|
|
245
|
+
```typescript
|
|
246
|
+
import { Orq } from "@orq-ai/node";
|
|
247
|
+
|
|
248
|
+
const orq = new Orq({
|
|
249
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
async function run() {
|
|
253
|
+
const result = await orq.files.update({
|
|
254
|
+
fileId: "<id>",
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
// Handle the result
|
|
258
|
+
console.log(result);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
run();
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Standalone function
|
|
265
|
+
|
|
266
|
+
The standalone function version of this method:
|
|
267
|
+
|
|
268
|
+
```typescript
|
|
269
|
+
import { OrqCore } from "@orq-ai/node/core.js";
|
|
270
|
+
import { filesUpdate } from "@orq-ai/node/funcs/filesUpdate.js";
|
|
271
|
+
|
|
272
|
+
// Use `OrqCore` for best tree-shaking performance.
|
|
273
|
+
// You can create one instance of it to use across an application.
|
|
274
|
+
const orq = new OrqCore({
|
|
275
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
async function run() {
|
|
279
|
+
const res = await filesUpdate(orq, {
|
|
280
|
+
fileId: "<id>",
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
if (!res.ok) {
|
|
284
|
+
throw res.error;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const { value: result } = res;
|
|
288
|
+
|
|
289
|
+
// Handle the result
|
|
290
|
+
console.log(result);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
run();
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
| Parameter | Type | Required | Description |
|
|
299
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
300
|
+
| `request` | [operations.FileUpdateRequest](../../models/operations/fileupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
301
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
302
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
303
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
304
|
+
|
|
305
|
+
### Response
|
|
306
|
+
|
|
307
|
+
**Promise\<[operations.FileUpdateResponseBody](../../models/operations/fileupdateresponsebody.md)\>**
|
|
308
|
+
|
|
309
|
+
### Errors
|
|
310
|
+
|
|
311
|
+
| Error Type | Status Code | Content Type |
|
|
312
|
+
| --------------- | --------------- | --------------- |
|
|
313
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
314
|
+
|
|
233
315
|
## delete
|
|
234
316
|
|
|
235
317
|
Delete file
|
|
@@ -300,6 +382,96 @@ run();
|
|
|
300
382
|
|
|
301
383
|
### Errors
|
|
302
384
|
|
|
385
|
+
| Error Type | Status Code | Content Type |
|
|
386
|
+
| --------------- | --------------- | --------------- |
|
|
387
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
388
|
+
|
|
389
|
+
## bulkUpload
|
|
390
|
+
|
|
391
|
+
Files are used to upload documents that can be used with features like [Deployments](https://docs.orq.ai/reference/post_v2-deployments-get-config).
|
|
392
|
+
|
|
393
|
+
### Example Usage
|
|
394
|
+
|
|
395
|
+
```typescript
|
|
396
|
+
import { Orq } from "@orq-ai/node";
|
|
397
|
+
import { openAsBlob } from "node:fs";
|
|
398
|
+
|
|
399
|
+
const orq = new Orq({
|
|
400
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
async function run() {
|
|
404
|
+
const result = await orq.files.bulkUpload({
|
|
405
|
+
files: [
|
|
406
|
+
{
|
|
407
|
+
fileName: "example.file",
|
|
408
|
+
content: await openAsBlob("example.file"),
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
purpose: "knowledge_datasource",
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
// Handle the result
|
|
415
|
+
console.log(result);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
run();
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### Standalone function
|
|
422
|
+
|
|
423
|
+
The standalone function version of this method:
|
|
424
|
+
|
|
425
|
+
```typescript
|
|
426
|
+
import { OrqCore } from "@orq-ai/node/core.js";
|
|
427
|
+
import { filesBulkUpload } from "@orq-ai/node/funcs/filesBulkUpload.js";
|
|
428
|
+
import { openAsBlob } from "node:fs";
|
|
429
|
+
|
|
430
|
+
// Use `OrqCore` for best tree-shaking performance.
|
|
431
|
+
// You can create one instance of it to use across an application.
|
|
432
|
+
const orq = new OrqCore({
|
|
433
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
async function run() {
|
|
437
|
+
const res = await filesBulkUpload(orq, {
|
|
438
|
+
files: [
|
|
439
|
+
{
|
|
440
|
+
fileName: "example.file",
|
|
441
|
+
content: await openAsBlob("example.file"),
|
|
442
|
+
},
|
|
443
|
+
],
|
|
444
|
+
purpose: "knowledge_datasource",
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
if (!res.ok) {
|
|
448
|
+
throw res.error;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
const { value: result } = res;
|
|
452
|
+
|
|
453
|
+
// Handle the result
|
|
454
|
+
console.log(result);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
run();
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
### Parameters
|
|
461
|
+
|
|
462
|
+
| Parameter | Type | Required | Description |
|
|
463
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
464
|
+
| `request` | [operations.BulkFileUploadRequestBody](../../models/operations/bulkfileuploadrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
465
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
466
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
467
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
468
|
+
|
|
469
|
+
### Response
|
|
470
|
+
|
|
471
|
+
**Promise\<[operations.ResponseBody[]](../../models/.md)\>**
|
|
472
|
+
|
|
473
|
+
### Errors
|
|
474
|
+
|
|
303
475
|
| Error Type | Status Code | Content Type |
|
|
304
476
|
| --------------- | --------------- | --------------- |
|
|
305
477
|
| errors.APIError | 4XX, 5XX | \*/\* |
|
package/docs/sdks/orq/README.md
CHANGED