@orq-ai/node 4.2.0 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +17 -7
- package/README.md +125 -70
- package/examples/contactsCreate.example.ts +42 -0
- package/examples/package-lock.json +1 -1
- package/funcs/contactsCreate.d.ts +3 -5
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +5 -9
- package/funcs/contactsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +6 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +2 -0
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/publiccontact.d.ts +3 -1
- package/models/components/publiccontact.d.ts.map +1 -1
- package/models/components/publiccontact.js.map +1 -1
- package/models/components/publicidentity.d.ts +47 -0
- package/models/components/publicidentity.d.ts.map +1 -0
- package/models/{operations/deletecontact.js → components/publicidentity.js} +17 -6
- package/models/components/publicidentity.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +0 -3
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -3
- package/models/errors/index.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +9 -51
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +5 -24
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +9 -51
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +4 -22
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.d.ts +2 -6
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +1 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +9 -51
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +3 -21
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +9 -51
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +3 -21
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +9 -51
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +3 -21
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +9 -51
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +3 -21
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/creatererank.d.ts +9 -51
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +3 -21
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +9 -51
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +3 -21
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +9 -51
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +3 -21
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +9 -51
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +3 -21
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +5 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +7 -7
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +25 -23
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/index.d.ts +0 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -4
- package/models/operations/index.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/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/streamrunagent.js +1 -1
- package/models/operations/updateconversation.js +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 +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +7 -14
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +11 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/publiccontact.ts +3 -1
- package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11 -78
- package/packages/orq-rc/src/models/operations/createcompletion.ts +11 -75
- package/packages/orq-rc/src/models/operations/createcontact.ts +3 -9
- package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createembedding.ts +11 -75
- package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimage.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimageedit.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +11 -77
- package/packages/orq-rc/src/models/operations/creatererank.ts +11 -75
- package/packages/orq-rc/src/models/operations/createspeech.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/createtranscription.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtranslation.ts +11 -75
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +35 -39
- package/packages/orq-rc/src/models/operations/index.ts +0 -4
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/contacts.ts +3 -85
- package/sdk/contacts.d.ts +3 -41
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +2 -52
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +7 -14
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invokedeploymentrequest.ts +11 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/publiccontact.ts +3 -1
- package/src/models/components/publicidentity.ts +69 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -3
- package/src/models/operations/createchatcompletion.ts +11 -78
- package/src/models/operations/createcompletion.ts +11 -75
- package/src/models/operations/createcontact.ts +3 -9
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- 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/createembedding.ts +11 -75
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +11 -75
- package/src/models/operations/createimageedit.ts +11 -75
- package/src/models/operations/createimagevariation.ts +11 -77
- package/src/models/operations/creatererank.ts +11 -75
- package/src/models/operations/createspeech.ts +11 -75
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +11 -75
- package/src/models/operations/createtranslation.ts +11 -75
- package/src/models/operations/deploymentgetconfig.ts +6 -0
- package/src/models/operations/deploymentstream.ts +6 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +35 -39
- package/src/models/operations/index.ts +0 -4
- 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/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/streamrunagent.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- 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 +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/contacts.ts +3 -85
- package/examples/feedbackCreate.example.ts +0 -32
- package/funcs/contactsDelete.d.ts +0 -20
- package/funcs/contactsDelete.d.ts.map +0 -1
- package/funcs/contactsDelete.js +0 -126
- package/funcs/contactsDelete.js.map +0 -1
- package/funcs/contactsList.d.ts +0 -19
- package/funcs/contactsList.d.ts.map +0 -1
- package/funcs/contactsList.js +0 -124
- package/funcs/contactsList.js.map +0 -1
- package/funcs/contactsRetrieve.d.ts +0 -20
- package/funcs/contactsRetrieve.d.ts.map +0 -1
- package/funcs/contactsRetrieve.js +0 -125
- package/funcs/contactsRetrieve.js.map +0 -1
- package/funcs/contactsUpdate.d.ts +0 -20
- package/funcs/contactsUpdate.d.ts.map +0 -1
- package/funcs/contactsUpdate.js +0 -126
- package/funcs/contactsUpdate.js.map +0 -1
- package/models/errors/deletecontact.d.ts +0 -30
- package/models/errors/deletecontact.d.ts.map +0 -1
- package/models/errors/deletecontact.js +0 -71
- package/models/errors/deletecontact.js.map +0 -1
- package/models/errors/retrievecontact.d.ts +0 -30
- package/models/errors/retrievecontact.d.ts.map +0 -1
- package/models/errors/retrievecontact.js +0 -71
- package/models/errors/retrievecontact.js.map +0 -1
- package/models/errors/updatecontact.d.ts +0 -26
- package/models/errors/updatecontact.d.ts.map +0 -1
- package/models/errors/updatecontact.js +0 -68
- package/models/errors/updatecontact.js.map +0 -1
- package/models/operations/deletecontact.d.ts +0 -15
- package/models/operations/deletecontact.d.ts.map +0 -1
- package/models/operations/deletecontact.js.map +0 -1
- package/models/operations/listcontacts.d.ts +0 -138
- package/models/operations/listcontacts.d.ts.map +0 -1
- package/models/operations/listcontacts.js +0 -136
- package/models/operations/listcontacts.js.map +0 -1
- package/models/operations/retrievecontact.d.ts +0 -63
- package/models/operations/retrievecontact.d.ts.map +0 -1
- package/models/operations/retrievecontact.js +0 -75
- package/models/operations/retrievecontact.js.map +0 -1
- package/models/operations/updatecontact.d.ts +0 -108
- package/models/operations/updatecontact.d.ts.map +0 -1
- package/models/operations/updatecontact.js +0 -97
- package/models/operations/updatecontact.js.map +0 -1
- package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
- package/src/funcs/contactsDelete.ts +0 -178
- package/src/funcs/contactsList.ts +0 -172
- package/src/funcs/contactsRetrieve.ts +0 -177
- package/src/funcs/contactsUpdate.ts +0 -178
- package/src/models/errors/deletecontact.ts +0 -62
- package/src/models/errors/retrievecontact.ts +0 -62
- package/src/models/errors/updatecontact.ts +0 -54
- package/src/models/operations/deletecontact.ts +0 -34
- package/src/models/operations/listcontacts.ts +0 -274
- package/src/models/operations/retrievecontact.ts +0 -117
- package/src/models/operations/updatecontact.ts +0 -188
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 { contactsCreate } from "@orq-ai/node/funcs/contactsCreate.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,18 +29,28 @@ const orq = new OrqCore({
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
-
const res = await
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const res = await contactsCreate(orq, {
|
|
33
|
+
externalId: "user_12345",
|
|
34
|
+
displayName: "Jane Smith",
|
|
35
|
+
email: "jane.smith@example.com",
|
|
36
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
37
|
+
tags: [
|
|
38
|
+
"premium",
|
|
39
|
+
"beta-user",
|
|
40
|
+
"enterprise",
|
|
36
41
|
],
|
|
37
|
-
|
|
42
|
+
metadata: {
|
|
43
|
+
"department": "Engineering",
|
|
44
|
+
"role": "Senior Developer",
|
|
45
|
+
"subscription_tier": "premium",
|
|
46
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
47
|
+
},
|
|
38
48
|
});
|
|
39
49
|
if (res.ok) {
|
|
40
50
|
const { value: result } = res;
|
|
41
51
|
console.log(result);
|
|
42
52
|
} else {
|
|
43
|
-
console.log("
|
|
53
|
+
console.log("contactsCreate failed:", res.error);
|
|
44
54
|
}
|
|
45
55
|
}
|
|
46
56
|
|
package/README.md
CHANGED
|
@@ -89,12 +89,22 @@ const orq = new Orq({
|
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
async function run() {
|
|
92
|
-
const result = await orq.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
const result = await orq.contacts.create({
|
|
93
|
+
externalId: "user_12345",
|
|
94
|
+
displayName: "Jane Smith",
|
|
95
|
+
email: "jane.smith@example.com",
|
|
96
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
97
|
+
tags: [
|
|
98
|
+
"premium",
|
|
99
|
+
"beta-user",
|
|
100
|
+
"enterprise",
|
|
96
101
|
],
|
|
97
|
-
|
|
102
|
+
metadata: {
|
|
103
|
+
"department": "Engineering",
|
|
104
|
+
"role": "Senior Developer",
|
|
105
|
+
"subscription_tier": "premium",
|
|
106
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
107
|
+
},
|
|
98
108
|
});
|
|
99
109
|
|
|
100
110
|
console.log(result);
|
|
@@ -125,12 +135,22 @@ const orq = new Orq({
|
|
|
125
135
|
});
|
|
126
136
|
|
|
127
137
|
async function run() {
|
|
128
|
-
const result = await orq.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
138
|
+
const result = await orq.contacts.create({
|
|
139
|
+
externalId: "user_12345",
|
|
140
|
+
displayName: "Jane Smith",
|
|
141
|
+
email: "jane.smith@example.com",
|
|
142
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
143
|
+
tags: [
|
|
144
|
+
"premium",
|
|
145
|
+
"beta-user",
|
|
146
|
+
"enterprise",
|
|
132
147
|
],
|
|
133
|
-
|
|
148
|
+
metadata: {
|
|
149
|
+
"department": "Engineering",
|
|
150
|
+
"role": "Senior Developer",
|
|
151
|
+
"subscription_tier": "premium",
|
|
152
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
153
|
+
},
|
|
134
154
|
});
|
|
135
155
|
|
|
136
156
|
console.log(result);
|
|
@@ -167,13 +187,9 @@ run();
|
|
|
167
187
|
|
|
168
188
|
* [parse](docs/sdks/chunking/README.md#parse) - Parse text
|
|
169
189
|
|
|
170
|
-
### [
|
|
190
|
+
### [Contacts](docs/sdks/contacts/README.md)
|
|
171
191
|
|
|
172
|
-
* [
|
|
173
|
-
* [~~list~~](docs/sdks/contacts/README.md#list) - List contacts :warning: **Deprecated**
|
|
174
|
-
* [~~retrieve~~](docs/sdks/contacts/README.md#retrieve) - Retrieve a contact :warning: **Deprecated**
|
|
175
|
-
* [~~update~~](docs/sdks/contacts/README.md#update) - Update a contact :warning: **Deprecated**
|
|
176
|
-
* [~~delete~~](docs/sdks/contacts/README.md#delete) - Delete a contact :warning: **Deprecated**
|
|
192
|
+
* [create](docs/sdks/contacts/README.md#create) - Update user information
|
|
177
193
|
|
|
178
194
|
### [Conversations](docs/sdks/conversations/README.md)
|
|
179
195
|
|
|
@@ -390,6 +406,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
390
406
|
- [`agentsRetrieve`](docs/sdks/agents/README.md#retrieve) - Retrieve agent
|
|
391
407
|
- [`agentsUpdate`](docs/sdks/agents/README.md#update) - Update agent
|
|
392
408
|
- [`chunkingParse`](docs/sdks/chunking/README.md#parse) - Parse text
|
|
409
|
+
- [`contactsCreate`](docs/sdks/contacts/README.md#create) - Update user information
|
|
393
410
|
- [`conversationsCreate`](docs/sdks/conversations/README.md#create) - Create conversation
|
|
394
411
|
- [`conversationsCreateConversationResponse`](docs/sdks/conversations/README.md#createconversationresponse) - Create internal response
|
|
395
412
|
- [`conversationsCreateConversationResponse`](docs/sdks/internal/README.md#createconversationresponse) - Create internal response
|
|
@@ -497,11 +514,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
497
514
|
- ~~[`agentsRun`](docs/sdks/agents/README.md#run)~~ - Run an agent with configuration :warning: **Deprecated**
|
|
498
515
|
- ~~[`agentsStream`](docs/sdks/agents/README.md#stream)~~ - Stream agent execution in real-time :warning: **Deprecated**
|
|
499
516
|
- ~~[`agentsStreamRun`](docs/sdks/agents/README.md#streamrun)~~ - Run agent with streaming response :warning: **Deprecated**
|
|
500
|
-
- ~~[`contactsCreate`](docs/sdks/contacts/README.md#create)~~ - Create a contact :warning: **Deprecated**
|
|
501
|
-
- ~~[`contactsDelete`](docs/sdks/contacts/README.md#delete)~~ - Delete a contact :warning: **Deprecated**
|
|
502
|
-
- ~~[`contactsList`](docs/sdks/contacts/README.md#list)~~ - List contacts :warning: **Deprecated**
|
|
503
|
-
- ~~[`contactsRetrieve`](docs/sdks/contacts/README.md#retrieve)~~ - Retrieve a contact :warning: **Deprecated**
|
|
504
|
-
- ~~[`contactsUpdate`](docs/sdks/contacts/README.md#update)~~ - Update a contact :warning: **Deprecated**
|
|
505
517
|
|
|
506
518
|
</details>
|
|
507
519
|
<!-- End Standalone functions [standalone-funcs] -->
|
|
@@ -527,6 +539,22 @@ const orq = new Orq({
|
|
|
527
539
|
async function run() {
|
|
528
540
|
const result = await orq.deployments.stream({
|
|
529
541
|
key: "<key>",
|
|
542
|
+
identity: {
|
|
543
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
544
|
+
displayName: "Jane Doe",
|
|
545
|
+
email: "jane.doe@example.com",
|
|
546
|
+
metadata: [
|
|
547
|
+
{
|
|
548
|
+
"department": "Engineering",
|
|
549
|
+
"role": "Senior Developer",
|
|
550
|
+
},
|
|
551
|
+
],
|
|
552
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
553
|
+
tags: [
|
|
554
|
+
"hr",
|
|
555
|
+
"engineering",
|
|
556
|
+
],
|
|
557
|
+
},
|
|
530
558
|
documents: [
|
|
531
559
|
{
|
|
532
560
|
text:
|
|
@@ -609,12 +637,22 @@ const orq = new Orq({
|
|
|
609
637
|
});
|
|
610
638
|
|
|
611
639
|
async function run() {
|
|
612
|
-
const result = await orq.
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
640
|
+
const result = await orq.contacts.create({
|
|
641
|
+
externalId: "user_12345",
|
|
642
|
+
displayName: "Jane Smith",
|
|
643
|
+
email: "jane.smith@example.com",
|
|
644
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
645
|
+
tags: [
|
|
646
|
+
"premium",
|
|
647
|
+
"beta-user",
|
|
648
|
+
"enterprise",
|
|
616
649
|
],
|
|
617
|
-
|
|
650
|
+
metadata: {
|
|
651
|
+
"department": "Engineering",
|
|
652
|
+
"role": "Senior Developer",
|
|
653
|
+
"subscription_tier": "premium",
|
|
654
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
655
|
+
},
|
|
618
656
|
}, {
|
|
619
657
|
retries: {
|
|
620
658
|
strategy: "backoff",
|
|
@@ -654,12 +692,22 @@ const orq = new Orq({
|
|
|
654
692
|
});
|
|
655
693
|
|
|
656
694
|
async function run() {
|
|
657
|
-
const result = await orq.
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
695
|
+
const result = await orq.contacts.create({
|
|
696
|
+
externalId: "user_12345",
|
|
697
|
+
displayName: "Jane Smith",
|
|
698
|
+
email: "jane.smith@example.com",
|
|
699
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
700
|
+
tags: [
|
|
701
|
+
"premium",
|
|
702
|
+
"beta-user",
|
|
703
|
+
"enterprise",
|
|
661
704
|
],
|
|
662
|
-
|
|
705
|
+
metadata: {
|
|
706
|
+
"department": "Engineering",
|
|
707
|
+
"role": "Senior Developer",
|
|
708
|
+
"subscription_tier": "premium",
|
|
709
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
710
|
+
},
|
|
663
711
|
});
|
|
664
712
|
|
|
665
713
|
console.log(result);
|
|
@@ -722,7 +770,7 @@ run();
|
|
|
722
770
|
**Primary error:**
|
|
723
771
|
* [`OrqError`](./src/models/errors/orqerror.ts): The base class for HTTP error responses.
|
|
724
772
|
|
|
725
|
-
<details><summary>Less common errors (
|
|
773
|
+
<details><summary>Less common errors (36)</summary>
|
|
726
774
|
|
|
727
775
|
<br />
|
|
728
776
|
|
|
@@ -735,39 +783,36 @@ run();
|
|
|
735
783
|
|
|
736
784
|
|
|
737
785
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
738
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of
|
|
739
|
-
* [`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
|
|
740
|
-
* [`
|
|
741
|
-
* [`
|
|
742
|
-
* [`
|
|
743
|
-
* [`
|
|
744
|
-
* [`
|
|
745
|
-
* [`
|
|
746
|
-
* [`
|
|
747
|
-
* [`
|
|
748
|
-
* [`
|
|
749
|
-
* [`
|
|
750
|
-
* [`
|
|
751
|
-
* [`
|
|
752
|
-
* [`
|
|
753
|
-
* [`
|
|
754
|
-
* [`
|
|
755
|
-
* [`
|
|
756
|
-
* [`
|
|
757
|
-
* [`
|
|
758
|
-
* [`
|
|
759
|
-
* [`
|
|
760
|
-
* [`
|
|
761
|
-
* [`
|
|
762
|
-
* [`
|
|
763
|
-
* [`
|
|
764
|
-
* [`
|
|
765
|
-
* [`
|
|
766
|
-
* [`
|
|
767
|
-
* [`
|
|
768
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 119 methods.*
|
|
769
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 119 methods.*
|
|
770
|
-
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 119 methods.*
|
|
786
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 9 of 115 methods.*
|
|
787
|
+
* [`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 115 methods.*
|
|
788
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
|
|
789
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
|
|
790
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
|
|
791
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
|
|
792
|
+
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
|
|
793
|
+
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
794
|
+
* [`RetrieveIdentityResponseBody`](./src/models/errors/retrieveidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
795
|
+
* [`UpdateIdentityResponseBody`](./src/models/errors/updateidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
796
|
+
* [`DeleteIdentityResponseBody`](./src/models/errors/deleteidentityresponsebody.ts): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
797
|
+
* [`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 115 methods.*
|
|
798
|
+
* [`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 115 methods.*
|
|
799
|
+
* [`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 115 methods.*
|
|
800
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
801
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
802
|
+
* [`GenerateConversationNameConversationsResponseBody`](./src/models/errors/generateconversationnameconversationsresponsebody.ts): Conversation not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
803
|
+
* [`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 115 methods.*
|
|
804
|
+
* [`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 115 methods.*
|
|
805
|
+
* [`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 115 methods.*
|
|
806
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
807
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
808
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 115 methods.*
|
|
809
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
810
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
811
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 115 methods.*
|
|
812
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
|
|
813
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
|
|
814
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
|
|
815
|
+
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 115 methods.*
|
|
771
816
|
* [`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.
|
|
772
817
|
|
|
773
818
|
</details>
|
|
@@ -790,12 +835,22 @@ const orq = new Orq({
|
|
|
790
835
|
});
|
|
791
836
|
|
|
792
837
|
async function run() {
|
|
793
|
-
const result = await orq.
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
838
|
+
const result = await orq.contacts.create({
|
|
839
|
+
externalId: "user_12345",
|
|
840
|
+
displayName: "Jane Smith",
|
|
841
|
+
email: "jane.smith@example.com",
|
|
842
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
843
|
+
tags: [
|
|
844
|
+
"premium",
|
|
845
|
+
"beta-user",
|
|
846
|
+
"enterprise",
|
|
797
847
|
],
|
|
798
|
-
|
|
848
|
+
metadata: {
|
|
849
|
+
"department": "Engineering",
|
|
850
|
+
"role": "Senior Developer",
|
|
851
|
+
"subscription_tier": "premium",
|
|
852
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
853
|
+
},
|
|
799
854
|
});
|
|
800
855
|
|
|
801
856
|
console.log(result);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import dotenv from "dotenv";
|
|
6
|
+
dotenv.config();
|
|
7
|
+
/**
|
|
8
|
+
* Example usage of the @orq-ai/node SDK
|
|
9
|
+
*
|
|
10
|
+
* To run this example from the examples directory:
|
|
11
|
+
* npm run build && npx tsx contactsCreate.example.ts
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { Orq } from "@orq-ai/node";
|
|
15
|
+
|
|
16
|
+
const orq = new Orq({
|
|
17
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
async function main() {
|
|
21
|
+
const result = await orq.contacts.create({
|
|
22
|
+
externalId: "user_12345",
|
|
23
|
+
displayName: "Jane Smith",
|
|
24
|
+
email: "jane.smith@example.com",
|
|
25
|
+
avatarUrl: "https://example.com/avatars/jane-smith.jpg",
|
|
26
|
+
tags: [
|
|
27
|
+
"premium",
|
|
28
|
+
"beta-user",
|
|
29
|
+
"enterprise",
|
|
30
|
+
],
|
|
31
|
+
metadata: {
|
|
32
|
+
"department": "Engineering",
|
|
33
|
+
"role": "Senior Developer",
|
|
34
|
+
"subscription_tier": "premium",
|
|
35
|
+
"last_login": "2024-01-15T10:30:00Z",
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
console.log(result);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
main().catch(console.error);
|
|
@@ -8,12 +8,10 @@ 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
|
+
* Update user information
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
14
|
+
* Update or add user information to workspace
|
|
17
15
|
*/
|
|
18
|
-
export declare function contactsCreate(client: OrqCore, request
|
|
16
|
+
export declare function contactsCreate(client: OrqCore, request: operations.CreateContactRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateContactResponseBody, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
17
|
//# sourceMappingURL=contactsCreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/contactsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,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
|
|
1
|
+
{"version":3,"file":"contactsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/contactsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,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,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/contactsCreate.js
CHANGED
|
@@ -46,25 +46,21 @@ const url_js_1 = require("../lib/url.js");
|
|
|
46
46
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
47
|
const async_js_1 = require("../types/async.js");
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Update user information
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
52
|
+
* Update or add user information to workspace
|
|
55
53
|
*/
|
|
56
54
|
function contactsCreate(client, request, options) {
|
|
57
55
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
56
|
}
|
|
59
57
|
async function $do(client, request, options) {
|
|
60
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateContactRequestBody$outboundSchema.
|
|
58
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateContactRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
61
59
|
if (!parsed.ok) {
|
|
62
60
|
return [parsed, { status: "invalid" }];
|
|
63
61
|
}
|
|
64
62
|
const payload = parsed.value;
|
|
65
|
-
const body = payload
|
|
66
|
-
? null
|
|
67
|
-
: (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
63
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
68
64
|
const path = (0, url_js_1.pathToFunc)("/v2/contacts")();
|
|
69
65
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
70
66
|
"Content-Type": "application/json",
|
|
@@ -109,7 +105,7 @@ async function $do(client, request, options) {
|
|
|
109
105
|
return [doResult, { status: "request-error", request: req }];
|
|
110
106
|
}
|
|
111
107
|
const response = doResult.value;
|
|
112
|
-
const [result] = await M.match(M.json(
|
|
108
|
+
const [result] = await M.match(M.json(200, operations.CreateContactResponseBody$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
113
109
|
if (!result.ok) {
|
|
114
110
|
return [result, { status: "complete", request: req, response }];
|
|
115
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactsCreate.js","sourceRoot":"","sources":["../src/funcs/contactsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"contactsCreate.js","sourceRoot":"","sources":["../src/funcs/contactsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,wCAsBC;AAjDD,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,MAAe,EACf,OAA4C,EAC5C,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,OAA4C,EAC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GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,uCAAuC,CAAC,EAC/D,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/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
39
39
|
export declare const SDK_METADATA: {
|
|
40
40
|
readonly language: "typescript";
|
|
41
41
|
readonly openapiDocVersion: "2.0";
|
|
42
|
-
readonly sdkVersion: "4.2.
|
|
42
|
+
readonly sdkVersion: "4.2.4";
|
|
43
43
|
readonly genVersion: "2.799.0";
|
|
44
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.2.
|
|
44
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.2.4 2.799.0 2.0 @orq-ai/node";
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.2.
|
|
31
|
+
sdkVersion: "4.2.4",
|
|
32
32
|
genVersion: "2.799.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.2.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.2.4 2.799.0 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -61,7 +61,7 @@ function metadataFromJSON(jsonString) {
|
|
|
61
61
|
}
|
|
62
62
|
/** @internal */
|
|
63
63
|
exports.ConversationResponse$inboundSchema = z.object({
|
|
64
|
-
_id: z.string().default("
|
|
64
|
+
_id: z.string().default("conv_01kftgwxmbd2jr9m1cq1d04k8h"),
|
|
65
65
|
kind: exports.ConversationResponseKind$inboundSchema,
|
|
66
66
|
displayName: z.string(),
|
|
67
67
|
createdAt: z.number(),
|
|
@@ -62,7 +62,7 @@ function conversationWithMessagesResponseMetadataFromJSON(jsonString) {
|
|
|
62
62
|
}
|
|
63
63
|
/** @internal */
|
|
64
64
|
exports.ConversationWithMessagesResponse$inboundSchema = z.object({
|
|
65
|
-
_id: z.string().default("
|
|
65
|
+
_id: z.string().default("conv_01kftgwxmgay06et6tcc0wzqk2"),
|
|
66
66
|
kind: exports.ConversationWithMessagesResponseKind$inboundSchema,
|
|
67
67
|
displayName: z.string(),
|
|
68
68
|
createdAt: z.number(),
|
|
@@ -27,6 +27,7 @@ export * from "./partdelta.js";
|
|
|
27
27
|
export * from "./partdeltaevent.js";
|
|
28
28
|
export * from "./partdoneevent.js";
|
|
29
29
|
export * from "./publiccontact.js";
|
|
30
|
+
export * from "./publicidentity.js";
|
|
30
31
|
export * from "./reasoningpart.js";
|
|
31
32
|
export * from "./reasoningpartschema.js";
|
|
32
33
|
export * from "./redactedreasoningpartschema.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AA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AAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
|
@@ -46,6 +46,7 @@ __exportStar(require("./partdelta.js"), exports);
|
|
|
46
46
|
__exportStar(require("./partdeltaevent.js"), exports);
|
|
47
47
|
__exportStar(require("./partdoneevent.js"), exports);
|
|
48
48
|
__exportStar(require("./publiccontact.js"), exports);
|
|
49
|
+
__exportStar(require("./publicidentity.js"), exports);
|
|
49
50
|
__exportStar(require("./reasoningpart.js"), exports);
|
|
50
51
|
__exportStar(require("./reasoningpartschema.js"), exports);
|
|
51
52
|
__exportStar(require("./redactedreasoningpartschema.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,2EAAyD;AACzD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AACvD,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,8DAA4C;AAC5C,4DAA0C;AAC1C,wEAAsD;AACtD,2DAAyC;AACzC,gDAA8B;AAC9B,iDAA+B;AAC/B,2DAAyC;AACzC,oEAAkD;AAClD,uEAAqD;AACrD,6EAA2D;AAC3D,6DAA2C;AAC3C,gDAA8B;AAC9B,8DAA4C;AAC5C,+DAA6C;AAC7C,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,8DAA4C;AAC5C,qDAAmC;AACnC,gDAA8B;AAC9B,6DAA2C;AAC3C,gDAA8B;AAC9B,oEAAkD;AAClD,mEAAiD;AACjD,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,yEAAuD;AACvD,2EAAyD;AACzD,0EAAwD;AACxD,uDAAqC;AACrC,sDAAoC;AACpC,2DAAyC;AACzC,gEAA8C;AAC9C,wDAAsC;AACtC,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,2EAAyD;AACzD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AACvD,4DAA0C;AAC1C,kEAAgD;AAChD,kEAAgD;AAChD,8DAA4C;AAC5C,4DAA0C;AAC1C,wEAAsD;AACtD,2DAAyC;AACzC,gDAA8B;AAC9B,iDAA+B;AAC/B,2DAAyC;AACzC,oEAAkD;AAClD,uEAAqD;AACrD,6EAA2D;AAC3D,6DAA2C;AAC3C,gDAA8B;AAC9B,8DAA4C;AAC5C,+DAA6C;AAC7C,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,qDAAmC;AACnC,2DAAyC;AACzC,mEAAiD;AACjD,yDAAuC;AACvC,yDAAuC;AACvC,2DAAyC;AACzC,4DAA0C;AAC1C,8DAA4C;AAC5C,qDAAmC;AACnC,gDAA8B;AAC9B,6DAA2C;AAC3C,gDAA8B;AAC9B,oEAAkD;AAClD,mEAAiD;AACjD,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,yEAAuD;AACvD,2EAAyD;AACzD,0EAAwD;AACxD,uDAAqC;AACrC,sDAAoC;AACpC,2DAAyC;AACzC,gEAA8C;AAC9C,wDAAsC;AACtC,0DAAwC"}
|
|
@@ -3,6 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { AudioContentPartSchema, AudioContentPartSchema$Outbound } from "./audiocontentpartschema.js";
|
|
4
4
|
import { FileContentPartSchema, FileContentPartSchema$Outbound } from "./filecontentpartschema.js";
|
|
5
5
|
import { ImageContentPartSchema, ImageContentPartSchema$Outbound } from "./imagecontentpartschema.js";
|
|
6
|
+
import { PublicIdentity, PublicIdentity$Outbound } from "./publicidentity.js";
|
|
6
7
|
import { ReasoningPartSchema, ReasoningPartSchema$Outbound } from "./reasoningpartschema.js";
|
|
7
8
|
import { RedactedReasoningPartSchema, RedactedReasoningPartSchema$Outbound } from "./redactedreasoningpartschema.js";
|
|
8
9
|
import { RefusalPartSchema, RefusalPartSchema$Outbound } from "./refusalpartschema.js";
|
|
@@ -851,6 +852,10 @@ export type InvokeDeploymentRequest = {
|
|
|
851
852
|
* A list of messages to send to the deployment.
|
|
852
853
|
*/
|
|
853
854
|
messages?: Array<MessagesSystemMessage | MessagesDeveloperMessage | MessagesUserMessage | MessagesAssistantMessage | MessagesToolMessage> | undefined;
|
|
855
|
+
/**
|
|
856
|
+
* Information about the identity making the request. If the identity does not exist, it will be created automatically.
|
|
857
|
+
*/
|
|
858
|
+
identity?: PublicIdentity | undefined;
|
|
854
859
|
/**
|
|
855
860
|
* A list of file IDs that are associated with the deployment request.
|
|
856
861
|
*/
|
|
@@ -1547,6 +1552,7 @@ export type InvokeDeploymentRequest$Outbound = {
|
|
|
1547
1552
|
} | undefined;
|
|
1548
1553
|
prefix_messages?: Array<SystemMessage$Outbound | DeveloperMessage$Outbound | UserMessage$Outbound | AssistantMessage$Outbound | ToolMessage$Outbound> | undefined;
|
|
1549
1554
|
messages?: Array<MessagesSystemMessage$Outbound | MessagesDeveloperMessage$Outbound | MessagesUserMessage$Outbound | MessagesAssistantMessage$Outbound | MessagesToolMessage$Outbound> | undefined;
|
|
1555
|
+
identity?: PublicIdentity$Outbound | undefined;
|
|
1550
1556
|
file_ids?: Array<string> | undefined;
|
|
1551
1557
|
metadata?: {
|
|
1552
1558
|
[k: string]: any;
|