@orq-ai/node 4.2.0-rc.29 → 4.2.0-rc.30
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/FUNCTIONS.md +7 -17
- package/README.md +82 -118
- package/bin/mcp-server.js +1687 -692
- package/bin/mcp-server.js.map +67 -49
- package/examples/feedbackCreate.example.ts +32 -0
- package/examples/package-lock.json +2 -2
- package/funcs/contactsCreate.d.ts +2 -0
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +2 -0
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/contactsDelete.d.ts +2 -0
- package/funcs/contactsDelete.d.ts.map +1 -1
- package/funcs/contactsDelete.js +2 -0
- package/funcs/contactsDelete.js.map +1 -1
- package/funcs/contactsList.d.ts +2 -0
- package/funcs/contactsList.d.ts.map +1 -1
- package/funcs/contactsList.js +2 -0
- package/funcs/contactsList.js.map +1 -1
- package/funcs/contactsRetrieve.d.ts +2 -0
- package/funcs/contactsRetrieve.d.ts.map +1 -1
- package/funcs/contactsRetrieve.js +2 -0
- package/funcs/contactsRetrieve.js.map +1 -1
- package/funcs/contactsUpdate.d.ts +2 -0
- package/funcs/contactsUpdate.d.ts.map +1 -1
- package/funcs/contactsUpdate.js +2 -0
- package/funcs/contactsUpdate.js.map +1 -1
- package/funcs/identitiesCreate.d.ts +17 -0
- package/funcs/identitiesCreate.d.ts.map +1 -0
- package/funcs/identitiesCreate.js +116 -0
- package/funcs/identitiesCreate.js.map +1 -0
- package/funcs/identitiesDelete.d.ts +18 -0
- package/funcs/identitiesDelete.d.ts.map +1 -0
- package/funcs/identitiesDelete.js +124 -0
- package/funcs/identitiesDelete.js.map +1 -0
- package/funcs/identitiesList.d.ts +17 -0
- package/funcs/identitiesList.d.ts.map +1 -0
- package/funcs/identitiesList.js +122 -0
- package/funcs/identitiesList.js.map +1 -0
- package/funcs/identitiesRetrieve.d.ts +18 -0
- package/funcs/identitiesRetrieve.d.ts.map +1 -0
- package/funcs/identitiesRetrieve.js +123 -0
- package/funcs/identitiesRetrieve.js.map +1 -0
- package/funcs/identitiesUpdate.d.ts +18 -0
- package/funcs/identitiesUpdate.d.ts.map +1 -0
- package/funcs/identitiesUpdate.js +124 -0
- package/funcs/identitiesUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +11 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/identitiesCreate.d.ts +8 -0
- package/mcp-server/tools/identitiesCreate.d.ts.map +1 -0
- package/mcp-server/tools/identitiesCreate.js +64 -0
- package/mcp-server/tools/identitiesCreate.js.map +1 -0
- package/mcp-server/tools/identitiesDelete.d.ts +8 -0
- package/mcp-server/tools/identitiesDelete.d.ts.map +1 -0
- package/mcp-server/tools/identitiesDelete.js +63 -0
- package/mcp-server/tools/identitiesDelete.js.map +1 -0
- package/mcp-server/tools/identitiesList.d.ts +8 -0
- package/mcp-server/tools/identitiesList.d.ts.map +1 -0
- package/mcp-server/tools/identitiesList.js +64 -0
- package/mcp-server/tools/identitiesList.js.map +1 -0
- package/mcp-server/tools/identitiesRetrieve.d.ts +8 -0
- package/mcp-server/tools/identitiesRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/identitiesRetrieve.js +64 -0
- package/mcp-server/tools/identitiesRetrieve.js.map +1 -0
- package/mcp-server/tools/identitiesUpdate.d.ts +8 -0
- package/mcp-server/tools/identitiesUpdate.d.ts.map +1 -0
- package/mcp-server/tools/identitiesUpdate.js +64 -0
- package/mcp-server/tools/identitiesUpdate.js.map +1 -0
- package/models/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/errors/deleteidentity.d.ts +36 -0
- package/models/errors/deleteidentity.d.ts.map +1 -0
- package/models/errors/deleteidentity.js +77 -0
- package/models/errors/deleteidentity.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/retrieveidentity.d.ts +36 -0
- package/models/errors/retrieveidentity.d.ts.map +1 -0
- package/models/errors/retrieveidentity.js +77 -0
- package/models/errors/retrieveidentity.js.map +1 -0
- package/models/errors/updateidentity.d.ts +32 -0
- package/models/errors/updateidentity.d.ts.map +1 -0
- package/models/errors/updateidentity.js +74 -0
- package/models/errors/updateidentity.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createidentity.d.ts +120 -0
- package/models/operations/createidentity.d.ts.map +1 -0
- package/models/operations/createidentity.js +133 -0
- package/models/operations/createidentity.js.map +1 -0
- package/models/operations/createtool.js +12 -12
- package/models/operations/deleteidentity.d.ts +20 -0
- package/models/operations/deleteidentity.d.ts.map +1 -0
- package/models/operations/deleteidentity.js +58 -0
- package/models/operations/deleteidentity.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.d.ts +8 -8
- package/models/operations/listcontacts.d.ts.map +1 -1
- package/models/operations/listcontacts.js +15 -13
- package/models/operations/listcontacts.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listidentities.d.ts +183 -0
- package/models/operations/listidentities.d.ts.map +1 -0
- package/models/operations/listidentities.js +220 -0
- package/models/operations/listidentities.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrieveidentity.d.ts +83 -0
- package/models/operations/retrieveidentity.d.ts.map +1 -0
- package/models/operations/retrieveidentity.js +107 -0
- package/models/operations/retrieveidentity.js.map +1 -0
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateidentity.d.ts +131 -0
- package/models/operations/updateidentity.d.ts.map +1 -0
- package/models/operations/updateidentity.js +152 -0
- package/models/operations/updateidentity.js.map +1 -0
- package/models/operations/updatetool.js +14 -14
- package/package.json +2 -2
- package/sdk/contacts.d.ts +10 -0
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +10 -0
- package/sdk/contacts.js.map +1 -1
- package/sdk/identities.d.ts +40 -0
- package/sdk/identities.d.ts.map +1 -0
- package/sdk/identities.js +62 -0
- package/sdk/identities.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/contactsCreate.ts +2 -0
- package/src/funcs/contactsDelete.ts +2 -0
- package/src/funcs/contactsList.ts +2 -0
- package/src/funcs/contactsRetrieve.ts +2 -0
- package/src/funcs/contactsUpdate.ts +2 -0
- package/src/funcs/identitiesCreate.ts +165 -0
- package/src/funcs/identitiesDelete.ts +176 -0
- package/src/funcs/identitiesList.ts +170 -0
- package/src/funcs/identitiesRetrieve.ts +175 -0
- package/src/funcs/identitiesUpdate.ts +176 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/identitiesCreate.ts +37 -0
- package/src/mcp-server/tools/identitiesDelete.ts +35 -0
- package/src/mcp-server/tools/identitiesList.ts +37 -0
- package/src/mcp-server/tools/identitiesRetrieve.ts +37 -0
- package/src/mcp-server/tools/identitiesUpdate.ts +37 -0
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/errors/deleteidentity.ts +78 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/retrieveidentity.ts +78 -0
- package/src/models/errors/updateidentity.ts +70 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createidentity.ts +237 -0
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deleteidentity.ts +54 -0
- 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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listcontacts.ts +24 -20
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listidentities.ts +432 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrieveidentity.ts +180 -0
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateidentity.ts +281 -0
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/contacts.ts +10 -0
- package/src/sdk/identities.ts +99 -0
- package/src/sdk/sdk.ts +6 -0
- package/examples/contactsCreate.example.ts +0 -42
package/FUNCTIONS.md
CHANGED
|
@@ -20,7 +20,7 @@ specific category of applications.
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { OrqCore } from "@orq-ai/node/core.js";
|
|
23
|
-
import {
|
|
23
|
+
import { feedbackCreate } from "@orq-ai/node/funcs/feedbackCreate.js";
|
|
24
24
|
|
|
25
25
|
// Use `OrqCore` for best tree-shaking performance.
|
|
26
26
|
// You can create one instance of it to use across an application.
|
|
@@ -29,28 +29,18 @@ const orq = new OrqCore({
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
-
const res = await
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
37
|
-
tags: [
|
|
38
|
-
"premium",
|
|
39
|
-
"beta-user",
|
|
40
|
-
"enterprise",
|
|
32
|
+
const res = await feedbackCreate(orq, {
|
|
33
|
+
field: "rating",
|
|
34
|
+
value: [
|
|
35
|
+
"good",
|
|
41
36
|
],
|
|
42
|
-
|
|
43
|
-
"department": "Engineering",
|
|
44
|
-
"role": "Senior Developer",
|
|
45
|
-
"subscription_tier": "premium",
|
|
46
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
47
|
-
},
|
|
37
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
48
38
|
});
|
|
49
39
|
if (res.ok) {
|
|
50
40
|
const { value: result } = res;
|
|
51
41
|
console.log(result);
|
|
52
42
|
} else {
|
|
53
|
-
console.log("
|
|
43
|
+
console.log("feedbackCreate failed:", res.error);
|
|
54
44
|
}
|
|
55
45
|
}
|
|
56
46
|
|
package/README.md
CHANGED
|
@@ -178,22 +178,12 @@ const orq = new Orq({
|
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
async function run() {
|
|
181
|
-
const result = await orq.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
186
|
-
tags: [
|
|
187
|
-
"premium",
|
|
188
|
-
"beta-user",
|
|
189
|
-
"enterprise",
|
|
181
|
+
const result = await orq.feedback.create({
|
|
182
|
+
field: "rating",
|
|
183
|
+
value: [
|
|
184
|
+
"good",
|
|
190
185
|
],
|
|
191
|
-
|
|
192
|
-
"department": "Engineering",
|
|
193
|
-
"role": "Senior Developer",
|
|
194
|
-
"subscription_tier": "premium",
|
|
195
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
196
|
-
},
|
|
186
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
197
187
|
});
|
|
198
188
|
|
|
199
189
|
console.log(result);
|
|
@@ -224,22 +214,12 @@ const orq = new Orq({
|
|
|
224
214
|
});
|
|
225
215
|
|
|
226
216
|
async function run() {
|
|
227
|
-
const result = await orq.
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
232
|
-
tags: [
|
|
233
|
-
"premium",
|
|
234
|
-
"beta-user",
|
|
235
|
-
"enterprise",
|
|
217
|
+
const result = await orq.feedback.create({
|
|
218
|
+
field: "rating",
|
|
219
|
+
value: [
|
|
220
|
+
"good",
|
|
236
221
|
],
|
|
237
|
-
|
|
238
|
-
"department": "Engineering",
|
|
239
|
-
"role": "Senior Developer",
|
|
240
|
-
"subscription_tier": "premium",
|
|
241
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
242
|
-
},
|
|
222
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
243
223
|
});
|
|
244
224
|
|
|
245
225
|
console.log(result);
|
|
@@ -276,13 +256,13 @@ run();
|
|
|
276
256
|
|
|
277
257
|
* [parse](docs/sdks/chunking/README.md#parse) - Parse text
|
|
278
258
|
|
|
279
|
-
### [Contacts](docs/sdks/contacts/README.md)
|
|
259
|
+
### [~~Contacts~~](docs/sdks/contacts/README.md)
|
|
280
260
|
|
|
281
|
-
* [create](docs/sdks/contacts/README.md#create) - Create a contact
|
|
282
|
-
* [list](docs/sdks/contacts/README.md#list) - List contacts
|
|
283
|
-
* [retrieve](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact
|
|
284
|
-
* [update](docs/sdks/contacts/README.md#update) - Update a contact
|
|
285
|
-
* [delete](docs/sdks/contacts/README.md#delete) - Delete a contact
|
|
261
|
+
* [~~create~~](docs/sdks/contacts/README.md#create) - Create a contact :warning: **Deprecated**
|
|
262
|
+
* [~~list~~](docs/sdks/contacts/README.md#list) - List contacts :warning: **Deprecated**
|
|
263
|
+
* [~~retrieve~~](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact :warning: **Deprecated**
|
|
264
|
+
* [~~update~~](docs/sdks/contacts/README.md#update) - Update a contact :warning: **Deprecated**
|
|
265
|
+
* [~~delete~~](docs/sdks/contacts/README.md#delete) - Delete a contact :warning: **Deprecated**
|
|
286
266
|
|
|
287
267
|
### [Conversations](docs/sdks/conversations/README.md)
|
|
288
268
|
|
|
@@ -342,6 +322,14 @@ run();
|
|
|
342
322
|
* [get](docs/sdks/files/README.md#get) - Retrieve a file
|
|
343
323
|
* [delete](docs/sdks/files/README.md#delete) - Delete file
|
|
344
324
|
|
|
325
|
+
### [Identities](docs/sdks/identities/README.md)
|
|
326
|
+
|
|
327
|
+
* [list](docs/sdks/identities/README.md#list) - List identities
|
|
328
|
+
* [create](docs/sdks/identities/README.md#create) - Create an identity
|
|
329
|
+
* [retrieve](docs/sdks/identities/README.md#retrieve) - Retrieve an identity
|
|
330
|
+
* [update](docs/sdks/identities/README.md#update) - Update an identity
|
|
331
|
+
* [delete](docs/sdks/identities/README.md#delete) - Delete an identity
|
|
332
|
+
|
|
345
333
|
### [Internal](docs/sdks/internal/README.md)
|
|
346
334
|
|
|
347
335
|
* [createConversationResponse](docs/sdks/internal/README.md#createconversationresponse) - Create internal response
|
|
@@ -444,11 +432,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
444
432
|
- [`agentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve agent
|
|
445
433
|
- [`agentsUpdate`](docs/sdks/agents/README.md#update) - Update agent
|
|
446
434
|
- [`chunkingParse`](docs/sdks/chunking/README.md#parse) - Parse text
|
|
447
|
-
- [`contactsCreate`](docs/sdks/contacts/README.md#create) - Create a contact
|
|
448
|
-
- [`contactsDelete`](docs/sdks/contacts/README.md#delete) - Delete a contact
|
|
449
|
-
- [`contactsList`](docs/sdks/contacts/README.md#list) - List contacts
|
|
450
|
-
- [`contactsRetrieve`](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact
|
|
451
|
-
- [`contactsUpdate`](docs/sdks/contacts/README.md#update) - Update a contact
|
|
452
435
|
- [`conversationsCreate`](docs/sdks/conversations/README.md#create) - Create conversation
|
|
453
436
|
- [`conversationsCreateConversationResponse`](docs/sdks/conversations/README.md#createconversationresponse) - Create internal response
|
|
454
437
|
- [`conversationsCreateConversationResponse`](docs/sdks/internal/README.md#createconversationresponse) - Create internal response
|
|
@@ -484,6 +467,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
484
467
|
- [`filesDelete`](docs/sdks/files/README.md#delete) - Delete file
|
|
485
468
|
- [`filesGet`](docs/sdks/files/README.md#get) - Retrieve a file
|
|
486
469
|
- [`filesList`](docs/sdks/files/README.md#list) - List all files
|
|
470
|
+
- [`identitiesCreate`](docs/sdks/identities/README.md#create) - Create an identity
|
|
471
|
+
- [`identitiesDelete`](docs/sdks/identities/README.md#delete) - Delete an identity
|
|
472
|
+
- [`identitiesList`](docs/sdks/identities/README.md#list) - List identities
|
|
473
|
+
- [`identitiesRetrieve`](docs/sdks/identities/README.md#retrieve) - Retrieve an identity
|
|
474
|
+
- [`identitiesUpdate`](docs/sdks/identities/README.md#update) - Update an identity
|
|
487
475
|
- [`knowledgeCreate`](docs/sdks/knowledge/README.md#create) - Create a knowledge
|
|
488
476
|
- [`knowledgeCreateChunks`](docs/sdks/knowledge/README.md#createchunks) - Create chunks for a datasource
|
|
489
477
|
- [`knowledgeCreateDatasource`](docs/sdks/knowledge/README.md#createdatasource) - Create a new datasource
|
|
@@ -540,6 +528,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
540
528
|
- ~~[`agentsRun`](docs/sdks/agents/README.md#run)~~ - Run an agent with configuration :warning: **Deprecated**
|
|
541
529
|
- ~~[`agentsStream`](docs/sdks/agents/README.md#stream)~~ - Stream agent execution in real-time :warning: **Deprecated**
|
|
542
530
|
- ~~[`agentsStreamRun`](docs/sdks/agents/README.md#streamrun)~~ - Run agent with streaming response :warning: **Deprecated**
|
|
531
|
+
- ~~[`contactsCreate`](docs/sdks/contacts/README.md#create)~~ - Create a contact :warning: **Deprecated**
|
|
532
|
+
- ~~[`contactsDelete`](docs/sdks/contacts/README.md#delete)~~ - Delete a contact :warning: **Deprecated**
|
|
533
|
+
- ~~[`contactsList`](docs/sdks/contacts/README.md#list)~~ - List contacts :warning: **Deprecated**
|
|
534
|
+
- ~~[`contactsRetrieve`](docs/sdks/contacts/README.md#retrieve)~~ - Retrieve a contact :warning: **Deprecated**
|
|
535
|
+
- ~~[`contactsUpdate`](docs/sdks/contacts/README.md#update)~~ - Update a contact :warning: **Deprecated**
|
|
543
536
|
|
|
544
537
|
</details>
|
|
545
538
|
<!-- End Standalone functions [standalone-funcs] -->
|
|
@@ -647,22 +640,12 @@ const orq = new Orq({
|
|
|
647
640
|
});
|
|
648
641
|
|
|
649
642
|
async function run() {
|
|
650
|
-
const result = await orq.
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
655
|
-
tags: [
|
|
656
|
-
"premium",
|
|
657
|
-
"beta-user",
|
|
658
|
-
"enterprise",
|
|
643
|
+
const result = await orq.feedback.create({
|
|
644
|
+
field: "rating",
|
|
645
|
+
value: [
|
|
646
|
+
"good",
|
|
659
647
|
],
|
|
660
|
-
|
|
661
|
-
"department": "Engineering",
|
|
662
|
-
"role": "Senior Developer",
|
|
663
|
-
"subscription_tier": "premium",
|
|
664
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
665
|
-
},
|
|
648
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
666
649
|
}, {
|
|
667
650
|
retries: {
|
|
668
651
|
strategy: "backoff",
|
|
@@ -702,22 +685,12 @@ const orq = new Orq({
|
|
|
702
685
|
});
|
|
703
686
|
|
|
704
687
|
async function run() {
|
|
705
|
-
const result = await orq.
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
710
|
-
tags: [
|
|
711
|
-
"premium",
|
|
712
|
-
"beta-user",
|
|
713
|
-
"enterprise",
|
|
688
|
+
const result = await orq.feedback.create({
|
|
689
|
+
field: "rating",
|
|
690
|
+
value: [
|
|
691
|
+
"good",
|
|
714
692
|
],
|
|
715
|
-
|
|
716
|
-
"department": "Engineering",
|
|
717
|
-
"role": "Senior Developer",
|
|
718
|
-
"subscription_tier": "premium",
|
|
719
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
720
|
-
},
|
|
693
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
721
694
|
});
|
|
722
695
|
|
|
723
696
|
console.log(result);
|
|
@@ -753,9 +726,7 @@ const orq = new Orq({
|
|
|
753
726
|
|
|
754
727
|
async function run() {
|
|
755
728
|
try {
|
|
756
|
-
const result = await orq.
|
|
757
|
-
id: "<id>",
|
|
758
|
-
});
|
|
729
|
+
const result = await orq.evals.all({});
|
|
759
730
|
|
|
760
731
|
console.log(result);
|
|
761
732
|
} catch (error) {
|
|
@@ -767,8 +738,8 @@ async function run() {
|
|
|
767
738
|
console.log(error.headers);
|
|
768
739
|
|
|
769
740
|
// Depending on the method different errors may be thrown
|
|
770
|
-
if (error instanceof errors.
|
|
771
|
-
console.log(error.data$.
|
|
741
|
+
if (error instanceof errors.GetEvalsResponseBody) {
|
|
742
|
+
console.log(error.data$.message); // string
|
|
772
743
|
}
|
|
773
744
|
}
|
|
774
745
|
}
|
|
@@ -782,7 +753,7 @@ run();
|
|
|
782
753
|
**Primary error:**
|
|
783
754
|
* [`OrqError`](./src/models/errors/orqerror.ts): The base class for HTTP error responses.
|
|
784
755
|
|
|
785
|
-
<details><summary>Less common errors (
|
|
756
|
+
<details><summary>Less common errors (35)</summary>
|
|
786
757
|
|
|
787
758
|
<br />
|
|
788
759
|
|
|
@@ -795,32 +766,35 @@ run();
|
|
|
795
766
|
|
|
796
767
|
|
|
797
768
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
798
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of
|
|
799
|
-
* [`GenerateConversationNameResponseBody`](./src/models/errors/generateconversationnameresponsebody.ts): Conversation already has a display name. This endpoint only generates names for conversations with empty display names. Status code `400`. Applicable to 1 of
|
|
800
|
-
* [`RetrieveContactResponseBody`](./src/models/errors/retrievecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of
|
|
801
|
-
* [`UpdateContactResponseBody`](./src/models/errors/updatecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of
|
|
802
|
-
* [`DeleteContactResponseBody`](./src/models/errors/deletecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of
|
|
803
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
804
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
805
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
806
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
807
|
-
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
808
|
-
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of
|
|
809
|
-
* [`
|
|
810
|
-
* [`
|
|
811
|
-
* [`
|
|
812
|
-
* [`
|
|
813
|
-
* [`
|
|
814
|
-
* [`
|
|
815
|
-
* [`
|
|
816
|
-
* [`
|
|
817
|
-
* [`
|
|
818
|
-
* [`
|
|
819
|
-
* [`
|
|
820
|
-
* [`
|
|
821
|
-
* [`
|
|
822
|
-
* [`
|
|
823
|
-
* [`
|
|
769
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of 108 methods.*
|
|
770
|
+
* [`GenerateConversationNameResponseBody`](./src/models/errors/generateconversationnameresponsebody.ts): Conversation already has a display name. This endpoint only generates names for conversations with empty display names. Status code `400`. Applicable to 1 of 108 methods.*
|
|
771
|
+
* [`RetrieveContactResponseBody`](./src/models/errors/retrievecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
772
|
+
* [`UpdateContactResponseBody`](./src/models/errors/updatecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
773
|
+
* [`DeleteContactResponseBody`](./src/models/errors/deletecontactresponsebody.ts): Contact not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
774
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 108 methods.*
|
|
775
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 108 methods.*
|
|
776
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 108 methods.*
|
|
777
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 108 methods.*
|
|
778
|
+
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 108 methods.*
|
|
779
|
+
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
780
|
+
* [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
781
|
+
* [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
782
|
+
* [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
783
|
+
* [`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 108 methods.*
|
|
784
|
+
* [`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 108 methods.*
|
|
785
|
+
* [`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 108 methods.*
|
|
786
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
787
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
788
|
+
* [`GenerateConversationNameConversationsResponseBody`](./src/models/errors/generateconversationnameconversationsresponsebody.ts): Conversation not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
789
|
+
* [`RetrieveConversationResponseBody`](./src/models/errors/retrieveconversationresponsebody.ts): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 108 methods.*
|
|
790
|
+
* [`UpdateConversationResponseBody`](./src/models/errors/updateconversationresponsebody.ts): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 108 methods.*
|
|
791
|
+
* [`DeleteConversationResponseBody`](./src/models/errors/deleteconversationresponsebody.ts): Conversation not found. The specified conversation ID does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 108 methods.*
|
|
792
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
793
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 108 methods.*
|
|
794
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
795
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
796
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 108 methods.*
|
|
797
|
+
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 108 methods.*
|
|
824
798
|
* [`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.
|
|
825
799
|
|
|
826
800
|
</details>
|
|
@@ -843,22 +817,12 @@ const orq = new Orq({
|
|
|
843
817
|
});
|
|
844
818
|
|
|
845
819
|
async function run() {
|
|
846
|
-
const result = await orq.
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
851
|
-
tags: [
|
|
852
|
-
"premium",
|
|
853
|
-
"beta-user",
|
|
854
|
-
"enterprise",
|
|
820
|
+
const result = await orq.feedback.create({
|
|
821
|
+
field: "rating",
|
|
822
|
+
value: [
|
|
823
|
+
"good",
|
|
855
824
|
],
|
|
856
|
-
|
|
857
|
-
"department": "Engineering",
|
|
858
|
-
"role": "Senior Developer",
|
|
859
|
-
"subscription_tier": "premium",
|
|
860
|
-
"last_login": "2024-01-15T10:30:00Z",
|
|
861
|
-
},
|
|
825
|
+
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
862
826
|
});
|
|
863
827
|
|
|
864
828
|
console.log(result);
|