@orq-ai/node 3.7.0-rc.7 → 3.7.0-rc.9
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 +24 -11
- package/bin/mcp-server.js +2228 -1371
- package/bin/mcp-server.js.map +53 -38
- package/docs/sdks/contacts/README.md +354 -3
- package/funcs/contactsCreate.d.ts +3 -3
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +7 -5
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.d.ts +17 -0
- package/funcs/contactsDelete.d.ts.map +1 -0
- package/funcs/contactsDelete.js +124 -0
- package/funcs/contactsDelete.js.map +1 -0
- package/funcs/contactsList.d.ts +16 -0
- package/funcs/contactsList.d.ts.map +1 -0
- package/funcs/contactsList.js +121 -0
- package/funcs/contactsList.js.map +1 -0
- package/funcs/contactsRetrieve.d.ts +17 -0
- package/funcs/contactsRetrieve.d.ts.map +1 -0
- package/funcs/contactsRetrieve.js +123 -0
- package/funcs/contactsRetrieve.js.map +1 -0
- package/funcs/contactsUpdate.d.ts +17 -0
- package/funcs/contactsUpdate.d.ts.map +1 -0
- package/funcs/contactsUpdate.js +124 -0
- package/funcs/contactsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/contactsCreate.d.ts +1 -1
- package/mcp-server/tools/contactsCreate.js +3 -3
- package/mcp-server/tools/contactsCreate.js.map +1 -1
- package/mcp-server/tools/contactsDelete.d.ts +8 -0
- package/mcp-server/tools/contactsDelete.d.ts.map +1 -0
- package/mcp-server/tools/contactsDelete.js +63 -0
- package/mcp-server/tools/contactsDelete.js.map +1 -0
- package/mcp-server/tools/contactsList.d.ts +8 -0
- package/mcp-server/tools/contactsList.d.ts.map +1 -0
- package/mcp-server/tools/contactsList.js +64 -0
- package/mcp-server/tools/contactsList.js.map +1 -0
- package/mcp-server/tools/contactsRetrieve.d.ts +8 -0
- package/mcp-server/tools/contactsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/contactsRetrieve.js +64 -0
- package/mcp-server/tools/contactsRetrieve.js.map +1 -0
- package/mcp-server/tools/contactsUpdate.d.ts +8 -0
- package/mcp-server/tools/contactsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/contactsUpdate.js +64 -0
- package/mcp-server/tools/contactsUpdate.js.map +1 -0
- package/models/errors/deletecontact.d.ts +43 -0
- package/models/errors/deletecontact.d.ts.map +1 -0
- package/models/errors/deletecontact.js +80 -0
- package/models/errors/deletecontact.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrievecontact.d.ts +43 -0
- package/models/errors/retrievecontact.d.ts.map +1 -0
- package/models/errors/retrievecontact.js +80 -0
- package/models/errors/retrievecontact.js.map +1 -0
- package/models/errors/updatecontact.d.ts +39 -0
- package/models/errors/updatecontact.d.ts.map +1 -0
- package/models/errors/updatecontact.js +79 -0
- package/models/errors/updatecontact.js.map +1 -0
- package/models/operations/createcontact.d.ts +21 -16
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +9 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/deletecontact.d.ts +32 -0
- package/models/operations/deletecontact.d.ts.map +1 -0
- package/models/operations/deletecontact.js +69 -0
- package/models/operations/deletecontact.js.map +1 -0
- package/models/operations/deployments.d.ts +23 -23
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +31 -33
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.d.ts +249 -0
- package/models/operations/listcontacts.d.ts.map +1 -0
- package/models/operations/listcontacts.js +286 -0
- package/models/operations/listcontacts.js.map +1 -0
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.d.ts +107 -0
- package/models/operations/retrievecontact.d.ts.map +1 -0
- package/models/operations/retrievecontact.js +129 -0
- package/models/operations/retrievecontact.js.map +1 -0
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.d.ts +167 -0
- package/models/operations/updatecontact.d.ts.map +1 -0
- package/models/operations/updatecontact.js +184 -0
- package/models/operations/updatecontact.js.map +1 -0
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/sdk/contacts.d.ts +31 -3
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +42 -2
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +12 -7
- package/src/funcs/contactsDelete.ts +172 -0
- package/src/funcs/contactsList.ts +165 -0
- package/src/funcs/contactsRetrieve.ts +171 -0
- package/src/funcs/contactsUpdate.ts +172 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/contactsCreate.ts +3 -3
- package/src/mcp-server/tools/contactsDelete.ts +35 -0
- package/src/mcp-server/tools/contactsList.ts +37 -0
- package/src/mcp-server/tools/contactsRetrieve.ts +37 -0
- package/src/mcp-server/tools/contactsUpdate.ts +37 -0
- package/src/models/errors/deletecontact.ts +81 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/retrievecontact.ts +81 -0
- package/src/models/errors/updatecontact.ts +74 -0
- package/src/models/operations/createcontact.ts +30 -19
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/deletecontact.ts +69 -0
- package/src/models/operations/deployments.ts +69 -59
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listcontacts.ts +490 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +210 -0
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +325 -0
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/sdk/contacts.ts +75 -3
package/README.md
CHANGED
|
@@ -235,7 +235,11 @@ run();
|
|
|
235
235
|
|
|
236
236
|
### [contacts](docs/sdks/contacts/README.md)
|
|
237
237
|
|
|
238
|
-
* [create](docs/sdks/contacts/README.md#create) -
|
|
238
|
+
* [create](docs/sdks/contacts/README.md#create) - Create a contact
|
|
239
|
+
* [list](docs/sdks/contacts/README.md#list) - List contacts
|
|
240
|
+
* [retrieve](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact
|
|
241
|
+
* [update](docs/sdks/contacts/README.md#update) - Update a contact
|
|
242
|
+
* [delete](docs/sdks/contacts/README.md#delete) - Delete a contact
|
|
239
243
|
|
|
240
244
|
### [datasets](docs/sdks/datasets/README.md)
|
|
241
245
|
|
|
@@ -369,7 +373,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
369
373
|
|
|
370
374
|
<summary>Available standalone functions</summary>
|
|
371
375
|
|
|
372
|
-
- [`contactsCreate`](docs/sdks/contacts/README.md#create) -
|
|
376
|
+
- [`contactsCreate`](docs/sdks/contacts/README.md#create) - Create a contact
|
|
377
|
+
- [`contactsDelete`](docs/sdks/contacts/README.md#delete) - Delete a contact
|
|
378
|
+
- [`contactsList`](docs/sdks/contacts/README.md#list) - List contacts
|
|
379
|
+
- [`contactsRetrieve`](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact
|
|
380
|
+
- [`contactsUpdate`](docs/sdks/contacts/README.md#update) - Update a contact
|
|
373
381
|
- [`datasetsClear`](docs/sdks/datasets/README.md#clear) - Delete all datapoints
|
|
374
382
|
- [`datasetsCreate`](docs/sdks/datasets/README.md#create) - Create a dataset
|
|
375
383
|
- [`datasetsCreateDatapoint`](docs/sdks/datasets/README.md#createdatapoint) - Create a datapoint
|
|
@@ -600,18 +608,21 @@ run();
|
|
|
600
608
|
<!-- Start Error Handling [errors] -->
|
|
601
609
|
## Error Handling
|
|
602
610
|
|
|
603
|
-
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 `
|
|
611
|
+
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 `retrieve` method may throw the following errors:
|
|
604
612
|
|
|
605
|
-
| Error Type
|
|
606
|
-
|
|
|
607
|
-
| errors.
|
|
608
|
-
| errors.APIError
|
|
613
|
+
| Error Type | Status Code | Content Type |
|
|
614
|
+
| ---------------------------------- | ----------- | ---------------- |
|
|
615
|
+
| errors.RetrieveContactResponseBody | 404 | application/json |
|
|
616
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
609
617
|
|
|
610
618
|
If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.
|
|
611
619
|
|
|
612
620
|
```typescript
|
|
613
621
|
import { Orq } from "@orq-ai/node";
|
|
614
|
-
import {
|
|
622
|
+
import {
|
|
623
|
+
RetrieveContactResponseBody,
|
|
624
|
+
SDKValidationError,
|
|
625
|
+
} from "@orq-ai/node/models/errors";
|
|
615
626
|
|
|
616
627
|
const orq = new Orq({
|
|
617
628
|
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
@@ -620,7 +631,9 @@ const orq = new Orq({
|
|
|
620
631
|
async function run() {
|
|
621
632
|
let result;
|
|
622
633
|
try {
|
|
623
|
-
result = await orq.
|
|
634
|
+
result = await orq.contacts.retrieve({
|
|
635
|
+
id: "<id>",
|
|
636
|
+
});
|
|
624
637
|
|
|
625
638
|
// Handle the result
|
|
626
639
|
console.log(result);
|
|
@@ -634,8 +647,8 @@ async function run() {
|
|
|
634
647
|
console.error(err.rawValue);
|
|
635
648
|
return;
|
|
636
649
|
}
|
|
637
|
-
case (err instanceof
|
|
638
|
-
// Handle err.data$:
|
|
650
|
+
case (err instanceof RetrieveContactResponseBody): {
|
|
651
|
+
// Handle err.data$: RetrieveContactResponseBodyData
|
|
639
652
|
console.error(err);
|
|
640
653
|
return;
|
|
641
654
|
}
|