@orq-ai/node 4.15.0-rc.53 → 4.15.0-rc.55
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 +38 -3
- package/README.md +259 -72
- package/examples/deploymentsInvoke.example.ts +62 -0
- package/funcs/datasetsList.js +1 -0
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +18 -0
- package/funcs/deploymentsInvoke.d.ts.map +1 -0
- package/funcs/deploymentsInvoke.js +116 -0
- package/funcs/deploymentsInvoke.js.map +1 -0
- package/funcs/deploymentsStream.d.ts +18 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +129 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/evalsAll.d.ts +2 -2
- package/funcs/evalsAll.d.ts.map +1 -1
- package/funcs/evalsAll.js +5 -2
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsCreate.d.ts +2 -1
- package/funcs/evalsCreate.d.ts.map +1 -1
- package/funcs/evalsCreate.js +19 -4
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.d.ts +2 -2
- package/funcs/evalsDelete.d.ts.map +1 -1
- package/funcs/evalsDelete.js +6 -2
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsGet.d.ts +2 -1
- package/funcs/evalsGet.d.ts.map +1 -1
- package/funcs/evalsGet.js +5 -1
- package/funcs/evalsGet.js.map +1 -1
- package/funcs/evalsUpdate.d.ts +2 -1
- package/funcs/evalsUpdate.d.ts.map +1 -1
- package/funcs/evalsUpdate.js +5 -1
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/skillsUpdate.d.ts +1 -1
- package/funcs/skillsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +8 -8
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +10 -9
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/chunkingconfiguration.d.ts +30 -30
- package/models/components/chunkingconfiguration.d.ts.map +1 -1
- package/models/components/chunkingconfiguration.js +36 -37
- package/models/components/chunkingconfiguration.js.map +1 -1
- package/models/components/evaluatorresponsefunction.d.ts +230 -0
- package/models/components/evaluatorresponsefunction.d.ts.map +1 -0
- package/models/components/evaluatorresponsefunction.js +420 -0
- package/models/components/evaluatorresponsefunction.js.map +1 -0
- package/models/components/evaluatorresponsehttp.d.ts +37 -0
- package/models/components/evaluatorresponsehttp.d.ts.map +1 -0
- package/models/components/evaluatorresponsehttp.js +77 -0
- package/models/components/evaluatorresponsehttp.js.map +1 -0
- package/models/components/evaluatorresponsejsonschema.d.ts +22 -0
- package/models/components/evaluatorresponsejsonschema.d.ts.map +1 -0
- package/models/components/{listevaluatorsresponse.js → evaluatorresponsejsonschema.js} +20 -16
- package/models/components/evaluatorresponsejsonschema.js.map +1 -0
- package/models/components/evaluatorresponsellm.d.ts +101 -0
- package/models/components/evaluatorresponsellm.d.ts.map +1 -0
- package/models/components/evaluatorresponsellm.js +181 -0
- package/models/components/evaluatorresponsellm.js.map +1 -0
- package/models/components/evaluatorresponsepython.d.ts +22 -0
- package/models/components/evaluatorresponsepython.d.ts.map +1 -0
- package/models/components/evaluatorresponsepython.js +67 -0
- package/models/components/evaluatorresponsepython.js.map +1 -0
- package/models/components/evaluatorresponseragas.d.ts +41 -0
- package/models/components/evaluatorresponseragas.d.ts.map +1 -0
- package/models/components/evaluatorresponseragas.js +86 -0
- package/models/components/evaluatorresponseragas.js.map +1 -0
- package/models/components/evaluatorresponsetypescript.d.ts +22 -0
- package/models/components/evaluatorresponsetypescript.d.ts.map +1 -0
- package/models/components/evaluatorresponsetypescript.js +67 -0
- package/models/components/evaluatorresponsetypescript.js.map +1 -0
- package/models/components/index.d.ts +8 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -2
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1544 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1109 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/queryreportrequest.d.ts +5 -5
- package/models/components/queryreportrequest.d.ts.map +1 -1
- package/models/components/queryreportrequest.js +6 -6
- package/models/components/queryreportrequest.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchknowledgerequest.d.ts +176 -176
- package/models/components/searchknowledgerequest.d.ts.map +1 -1
- package/models/components/searchknowledgerequest.js +211 -222
- package/models/components/searchknowledgerequest.js.map +1 -1
- package/models/components/updatememorystorerequest.d.ts +5 -0
- package/models/components/updatememorystorerequest.d.ts.map +1 -1
- package/models/components/updatememorystorerequest.js +6 -0
- package/models/components/updatememorystorerequest.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +1 -1
- package/models/errors/createeval.d.ts +23 -0
- package/models/errors/createeval.d.ts.map +1 -0
- package/models/errors/createeval.js +68 -0
- package/models/errors/createeval.js.map +1 -0
- package/models/errors/deleteeval.d.ts +43 -0
- package/models/errors/deleteeval.d.ts.map +1 -0
- package/models/errors/deleteeval.js +94 -0
- package/models/errors/deleteeval.js.map +1 -0
- package/models/errors/geteval.d.ts +23 -0
- package/models/errors/geteval.d.ts.map +1 -0
- package/models/errors/geteval.js +68 -0
- package/models/errors/geteval.js.map +1 -0
- package/models/errors/getevals.d.ts +23 -0
- package/models/errors/getevals.d.ts.map +1 -0
- package/models/{components/deleteevaluatorresponse.js → errors/getevals.js} +28 -8
- package/models/errors/getevals.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updateeval.d.ts +23 -0
- package/models/errors/updateeval.d.ts.map +1 -0
- package/models/errors/updateeval.js +68 -0
- package/models/errors/updateeval.js.map +1 -0
- package/models/operations/createchatcompletion.d.ts +58 -58
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +81 -80
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createeval.d.ts +305 -4
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +258 -3
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +4 -4
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +5 -6
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.d.ts +4 -4
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +9 -9
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +442 -442
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +481 -485
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +367 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -0
- package/models/operations/deploymentinvoke.js +373 -0
- package/models/operations/deploymentinvoke.js.map +1 -0
- package/models/operations/deployments.d.ts +16 -16
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +16 -18
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1899 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1488 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.d.ts +804 -2
- package/models/operations/geteval.d.ts.map +1 -1
- package/models/operations/geteval.js +1244 -2
- package/models/operations/geteval.js.map +1 -1
- package/models/operations/getevals.d.ts +41 -3
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +52 -3
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.d.ts +5 -0
- package/models/operations/listdatasets.d.ts.map +1 -1
- package/models/operations/listdatasets.js +3 -1
- package/models/operations/listdatasets.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateeval.d.ts +194 -6
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +155 -4
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/deployments.d.ts +16 -0
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +20 -0
- package/sdk/deployments.js.map +1 -1
- package/sdk/evals.d.ts +3 -3
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js.map +1 -1
- package/sdk/skills.d.ts +1 -1
- package/sdk/skills.js +1 -1
- package/src/funcs/datasetsList.ts +1 -0
- package/src/funcs/deploymentsInvoke.ts +170 -0
- package/src/funcs/deploymentsStream.ts +180 -0
- package/src/funcs/evalsAll.ts +14 -6
- package/src/funcs/evalsCreate.ts +31 -5
- package/src/funcs/evalsDelete.ts +19 -6
- package/src/funcs/evalsGet.ts +10 -1
- package/src/funcs/evalsUpdate.ts +10 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +17 -12
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/chunkingconfiguration.ts +150 -110
- package/src/models/components/evaluatorresponsefunction.ts +928 -0
- package/src/models/components/evaluatorresponsehttp.ts +77 -0
- package/src/models/components/evaluatorresponsejsonschema.ts +60 -0
- package/src/models/components/evaluatorresponsellm.ts +310 -0
- package/src/models/components/evaluatorresponsepython.ts +60 -0
- package/src/models/components/evaluatorresponseragas.ts +84 -0
- package/src/models/components/evaluatorresponsetypescript.ts +60 -0
- package/src/models/components/index.ts +8 -2
- package/src/models/components/invokedeploymentrequest.ts +3444 -0
- package/src/models/components/queryreportrequest.ts +11 -10
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchknowledgerequest.ts +680 -469
- package/src/models/components/updatememorystorerequest.ts +11 -0
- package/src/models/components/updateskillrequest.ts +1 -1
- package/src/models/errors/createeval.ts +51 -0
- package/src/models/errors/deleteeval.ts +96 -0
- package/src/models/errors/geteval.ts +51 -0
- package/src/models/errors/getevals.ts +51 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/updateeval.ts +51 -0
- package/src/models/operations/createchatcompletion.ts +313 -248
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createeval.ts +628 -6
- package/src/models/operations/createprompt.ts +7 -6
- package/src/models/operations/createtool.ts +13 -11
- package/src/models/operations/deploymentgetconfig.ts +1631 -1141
- package/src/models/operations/deploymentinvoke.ts +732 -0
- package/src/models/operations/deployments.ts +46 -42
- package/src/models/operations/deploymentstream.ts +4102 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +2751 -3
- package/src/models/operations/getevals.ts +123 -5
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +8 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateeval.ts +393 -9
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/deployments.ts +38 -0
- package/src/sdk/evals.ts +3 -3
- package/src/sdk/skills.ts +1 -1
- package/examples/deploymentsList.example.ts +0 -26
- package/models/components/deleteevaluatorresponse.d.ts +0 -8
- package/models/components/deleteevaluatorresponse.d.ts.map +0 -1
- package/models/components/deleteevaluatorresponse.js.map +0 -1
- package/models/components/listevaluatorsresponse.d.ts +0 -16
- package/models/components/listevaluatorsresponse.d.ts.map +0 -1
- package/models/components/listevaluatorsresponse.js.map +0 -1
- package/src/models/components/deleteevaluatorresponse.ts +0 -27
- package/src/models/components/listevaluatorsresponse.ts +0 -59
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 { deploymentsInvoke } from "@orq-ai/node/funcs/deploymentsInvoke.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,12 +29,47 @@ const orq = new OrqCore({
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
-
const res = await
|
|
32
|
+
const res = await deploymentsInvoke(orq, {
|
|
33
|
+
key: "<key>",
|
|
34
|
+
identity: {
|
|
35
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
36
|
+
displayName: "Jane Doe",
|
|
37
|
+
email: "jane.doe@example.com",
|
|
38
|
+
metadata: [
|
|
39
|
+
{
|
|
40
|
+
"department": "Engineering",
|
|
41
|
+
"role": "Senior Developer",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
45
|
+
tags: [
|
|
46
|
+
"hr",
|
|
47
|
+
"engineering",
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
documents: [
|
|
51
|
+
{
|
|
52
|
+
text: "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
53
|
+
metadata: {
|
|
54
|
+
fileName: "refund_policy.pdf",
|
|
55
|
+
fileType: "application/pdf",
|
|
56
|
+
pageNumber: 1,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
61
|
+
metadata: {
|
|
62
|
+
fileName: "membership_benefits.md",
|
|
63
|
+
fileType: "text/markdown",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
});
|
|
33
68
|
if (res.ok) {
|
|
34
69
|
const { value: result } = res;
|
|
35
70
|
console.log(result);
|
|
36
71
|
} else {
|
|
37
|
-
console.log("
|
|
72
|
+
console.log("deploymentsInvoke failed:", res.error);
|
|
38
73
|
}
|
|
39
74
|
}
|
|
40
75
|
|
package/README.md
CHANGED
|
@@ -89,7 +89,43 @@ const orq = new Orq({
|
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
async function run() {
|
|
92
|
-
const result = await orq.deployments.
|
|
92
|
+
const result = await orq.deployments.invoke({
|
|
93
|
+
key: "<key>",
|
|
94
|
+
identity: {
|
|
95
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
96
|
+
displayName: "Jane Doe",
|
|
97
|
+
email: "jane.doe@example.com",
|
|
98
|
+
metadata: [
|
|
99
|
+
{
|
|
100
|
+
"department": "Engineering",
|
|
101
|
+
"role": "Senior Developer",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
105
|
+
tags: [
|
|
106
|
+
"hr",
|
|
107
|
+
"engineering",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
documents: [
|
|
111
|
+
{
|
|
112
|
+
text:
|
|
113
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
114
|
+
metadata: {
|
|
115
|
+
fileName: "refund_policy.pdf",
|
|
116
|
+
fileType: "application/pdf",
|
|
117
|
+
pageNumber: 1,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
122
|
+
metadata: {
|
|
123
|
+
fileName: "membership_benefits.md",
|
|
124
|
+
fileType: "text/markdown",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
});
|
|
93
129
|
|
|
94
130
|
console.log(result);
|
|
95
131
|
}
|
|
@@ -119,7 +155,43 @@ const orq = new Orq({
|
|
|
119
155
|
});
|
|
120
156
|
|
|
121
157
|
async function run() {
|
|
122
|
-
const result = await orq.deployments.
|
|
158
|
+
const result = await orq.deployments.invoke({
|
|
159
|
+
key: "<key>",
|
|
160
|
+
identity: {
|
|
161
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
162
|
+
displayName: "Jane Doe",
|
|
163
|
+
email: "jane.doe@example.com",
|
|
164
|
+
metadata: [
|
|
165
|
+
{
|
|
166
|
+
"department": "Engineering",
|
|
167
|
+
"role": "Senior Developer",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
171
|
+
tags: [
|
|
172
|
+
"hr",
|
|
173
|
+
"engineering",
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
documents: [
|
|
177
|
+
{
|
|
178
|
+
text:
|
|
179
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
180
|
+
metadata: {
|
|
181
|
+
fileName: "refund_policy.pdf",
|
|
182
|
+
fileType: "application/pdf",
|
|
183
|
+
pageNumber: 1,
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
188
|
+
metadata: {
|
|
189
|
+
fileName: "membership_benefits.md",
|
|
190
|
+
fileType: "text/markdown",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
});
|
|
123
195
|
|
|
124
196
|
console.log(result);
|
|
125
197
|
}
|
|
@@ -222,6 +294,8 @@ run();
|
|
|
222
294
|
|
|
223
295
|
### [Deployments](docs/sdks/deployments/README.md)
|
|
224
296
|
|
|
297
|
+
* [invoke](docs/sdks/deployments/README.md#invoke) - Invoke
|
|
298
|
+
* [stream](docs/sdks/deployments/README.md#stream) - Stream
|
|
225
299
|
* [list](docs/sdks/deployments/README.md#list) - List all deployments
|
|
226
300
|
* [getConfig](docs/sdks/deployments/README.md#getconfig) - Get config
|
|
227
301
|
|
|
@@ -670,7 +744,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
670
744
|
- [`datasetsUpdate`](docs/sdks/datasets/README.md#update) - Update a dataset
|
|
671
745
|
- [`datasetsUpdateDatapoint`](docs/sdks/datasets/README.md#updatedatapoint) - Update a datapoint
|
|
672
746
|
- [`deploymentsGetConfig`](docs/sdks/deployments/README.md#getconfig) - Get config
|
|
747
|
+
- [`deploymentsInvoke`](docs/sdks/deployments/README.md#invoke) - Invoke
|
|
673
748
|
- [`deploymentsList`](docs/sdks/deployments/README.md#list) - List all deployments
|
|
749
|
+
- [`deploymentsStream`](docs/sdks/deployments/README.md#stream) - Stream
|
|
674
750
|
- [`evalsAll`](docs/sdks/evals/README.md#all) - Get all Evaluators
|
|
675
751
|
- [`evalsCreate`](docs/sdks/evals/README.md#create) - Create an Evaluator
|
|
676
752
|
- [`evalsDelete`](docs/sdks/evals/README.md#delete) - Delete an Evaluator
|
|
@@ -937,50 +1013,47 @@ const orq = new Orq({
|
|
|
937
1013
|
});
|
|
938
1014
|
|
|
939
1015
|
async function run() {
|
|
940
|
-
const result = await orq.
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
],
|
|
948
|
-
retry: {
|
|
949
|
-
onCodes: [
|
|
950
|
-
429,
|
|
951
|
-
500,
|
|
952
|
-
502,
|
|
953
|
-
503,
|
|
954
|
-
504,
|
|
955
|
-
],
|
|
956
|
-
},
|
|
957
|
-
cache: {
|
|
958
|
-
ttl: 3600,
|
|
959
|
-
type: "exact_match",
|
|
960
|
-
},
|
|
961
|
-
loadBalancer: {
|
|
962
|
-
type: "weight_based",
|
|
963
|
-
models: [
|
|
964
|
-
{
|
|
965
|
-
model: "openai/gpt-4o",
|
|
966
|
-
weight: 0.7,
|
|
967
|
-
},
|
|
1016
|
+
const result = await orq.deployments.stream({
|
|
1017
|
+
key: "<key>",
|
|
1018
|
+
identity: {
|
|
1019
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
1020
|
+
displayName: "Jane Doe",
|
|
1021
|
+
email: "jane.doe@example.com",
|
|
1022
|
+
metadata: [
|
|
968
1023
|
{
|
|
969
|
-
|
|
970
|
-
|
|
1024
|
+
"department": "Engineering",
|
|
1025
|
+
"role": "Senior Developer",
|
|
971
1026
|
},
|
|
972
1027
|
],
|
|
1028
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
1029
|
+
tags: [
|
|
1030
|
+
"hr",
|
|
1031
|
+
"engineering",
|
|
1032
|
+
],
|
|
973
1033
|
},
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1034
|
+
documents: [
|
|
1035
|
+
{
|
|
1036
|
+
text:
|
|
1037
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
1038
|
+
metadata: {
|
|
1039
|
+
fileName: "refund_policy.pdf",
|
|
1040
|
+
fileType: "application/pdf",
|
|
1041
|
+
pageNumber: 1,
|
|
1042
|
+
},
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
1046
|
+
metadata: {
|
|
1047
|
+
fileName: "membership_benefits.md",
|
|
1048
|
+
fileType: "text/markdown",
|
|
1049
|
+
},
|
|
1050
|
+
},
|
|
1051
|
+
],
|
|
981
1052
|
});
|
|
982
1053
|
|
|
983
|
-
|
|
1054
|
+
for await (const event of result) {
|
|
1055
|
+
console.log(event);
|
|
1056
|
+
}
|
|
984
1057
|
}
|
|
985
1058
|
|
|
986
1059
|
run();
|
|
@@ -1113,7 +1186,43 @@ const orq = new Orq({
|
|
|
1113
1186
|
});
|
|
1114
1187
|
|
|
1115
1188
|
async function run() {
|
|
1116
|
-
const result = await orq.deployments.
|
|
1189
|
+
const result = await orq.deployments.invoke({
|
|
1190
|
+
key: "<key>",
|
|
1191
|
+
identity: {
|
|
1192
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
1193
|
+
displayName: "Jane Doe",
|
|
1194
|
+
email: "jane.doe@example.com",
|
|
1195
|
+
metadata: [
|
|
1196
|
+
{
|
|
1197
|
+
"department": "Engineering",
|
|
1198
|
+
"role": "Senior Developer",
|
|
1199
|
+
},
|
|
1200
|
+
],
|
|
1201
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
1202
|
+
tags: [
|
|
1203
|
+
"hr",
|
|
1204
|
+
"engineering",
|
|
1205
|
+
],
|
|
1206
|
+
},
|
|
1207
|
+
documents: [
|
|
1208
|
+
{
|
|
1209
|
+
text:
|
|
1210
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
1211
|
+
metadata: {
|
|
1212
|
+
fileName: "refund_policy.pdf",
|
|
1213
|
+
fileType: "application/pdf",
|
|
1214
|
+
pageNumber: 1,
|
|
1215
|
+
},
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
1219
|
+
metadata: {
|
|
1220
|
+
fileName: "membership_benefits.md",
|
|
1221
|
+
fileType: "text/markdown",
|
|
1222
|
+
},
|
|
1223
|
+
},
|
|
1224
|
+
],
|
|
1225
|
+
}, {
|
|
1117
1226
|
retries: {
|
|
1118
1227
|
strategy: "backoff",
|
|
1119
1228
|
backoff: {
|
|
@@ -1152,7 +1261,43 @@ const orq = new Orq({
|
|
|
1152
1261
|
});
|
|
1153
1262
|
|
|
1154
1263
|
async function run() {
|
|
1155
|
-
const result = await orq.deployments.
|
|
1264
|
+
const result = await orq.deployments.invoke({
|
|
1265
|
+
key: "<key>",
|
|
1266
|
+
identity: {
|
|
1267
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
1268
|
+
displayName: "Jane Doe",
|
|
1269
|
+
email: "jane.doe@example.com",
|
|
1270
|
+
metadata: [
|
|
1271
|
+
{
|
|
1272
|
+
"department": "Engineering",
|
|
1273
|
+
"role": "Senior Developer",
|
|
1274
|
+
},
|
|
1275
|
+
],
|
|
1276
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
1277
|
+
tags: [
|
|
1278
|
+
"hr",
|
|
1279
|
+
"engineering",
|
|
1280
|
+
],
|
|
1281
|
+
},
|
|
1282
|
+
documents: [
|
|
1283
|
+
{
|
|
1284
|
+
text:
|
|
1285
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
1286
|
+
metadata: {
|
|
1287
|
+
fileName: "refund_policy.pdf",
|
|
1288
|
+
fileType: "application/pdf",
|
|
1289
|
+
pageNumber: 1,
|
|
1290
|
+
},
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
1294
|
+
metadata: {
|
|
1295
|
+
fileName: "membership_benefits.md",
|
|
1296
|
+
fileType: "text/markdown",
|
|
1297
|
+
},
|
|
1298
|
+
},
|
|
1299
|
+
],
|
|
1300
|
+
});
|
|
1156
1301
|
|
|
1157
1302
|
console.log(result);
|
|
1158
1303
|
}
|
|
@@ -1215,7 +1360,7 @@ run();
|
|
|
1215
1360
|
**Primary error:**
|
|
1216
1361
|
* [`OrqError`](./src/models/errors/orqerror.ts): The base class for HTTP error responses.
|
|
1217
1362
|
|
|
1218
|
-
<details><summary>Less common errors (
|
|
1363
|
+
<details><summary>Less common errors (40)</summary>
|
|
1219
1364
|
|
|
1220
1365
|
<br />
|
|
1221
1366
|
|
|
@@ -1228,34 +1373,40 @@ run();
|
|
|
1228
1373
|
|
|
1229
1374
|
|
|
1230
1375
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1231
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of
|
|
1232
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1233
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1234
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1235
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
1236
|
-
* [`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
|
|
1237
|
-
* [`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
|
|
1238
|
-
* [`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
|
|
1239
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1240
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1241
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1242
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1243
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1244
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1245
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1246
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1247
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1248
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of
|
|
1249
|
-
* [`
|
|
1250
|
-
* [`
|
|
1251
|
-
* [`
|
|
1252
|
-
* [`
|
|
1253
|
-
* [`
|
|
1254
|
-
* [`
|
|
1255
|
-
* [`
|
|
1256
|
-
* [`
|
|
1257
|
-
* [`
|
|
1258
|
-
* [`
|
|
1376
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 13 of 298 methods.*
|
|
1377
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 298 methods.*
|
|
1378
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 298 methods.*
|
|
1379
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 298 methods.*
|
|
1380
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 298 methods.*
|
|
1381
|
+
* [`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 298 methods.*
|
|
1382
|
+
* [`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 298 methods.*
|
|
1383
|
+
* [`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 298 methods.*
|
|
1384
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1385
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1386
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1387
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1388
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1389
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1390
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1391
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1392
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1393
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1394
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1395
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1396
|
+
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1397
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1398
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1399
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1400
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1401
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1402
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1403
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1404
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 298 methods.*
|
|
1405
|
+
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 298 methods.*
|
|
1406
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
|
|
1407
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
|
|
1408
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 298 methods.*
|
|
1409
|
+
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 298 methods.*
|
|
1259
1410
|
* [`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.
|
|
1260
1411
|
|
|
1261
1412
|
</details>
|
|
@@ -1278,7 +1429,43 @@ const orq = new Orq({
|
|
|
1278
1429
|
});
|
|
1279
1430
|
|
|
1280
1431
|
async function run() {
|
|
1281
|
-
const result = await orq.deployments.
|
|
1432
|
+
const result = await orq.deployments.invoke({
|
|
1433
|
+
key: "<key>",
|
|
1434
|
+
identity: {
|
|
1435
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
1436
|
+
displayName: "Jane Doe",
|
|
1437
|
+
email: "jane.doe@example.com",
|
|
1438
|
+
metadata: [
|
|
1439
|
+
{
|
|
1440
|
+
"department": "Engineering",
|
|
1441
|
+
"role": "Senior Developer",
|
|
1442
|
+
},
|
|
1443
|
+
],
|
|
1444
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
1445
|
+
tags: [
|
|
1446
|
+
"hr",
|
|
1447
|
+
"engineering",
|
|
1448
|
+
],
|
|
1449
|
+
},
|
|
1450
|
+
documents: [
|
|
1451
|
+
{
|
|
1452
|
+
text:
|
|
1453
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
1454
|
+
metadata: {
|
|
1455
|
+
fileName: "refund_policy.pdf",
|
|
1456
|
+
fileType: "application/pdf",
|
|
1457
|
+
pageNumber: 1,
|
|
1458
|
+
},
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
1462
|
+
metadata: {
|
|
1463
|
+
fileName: "membership_benefits.md",
|
|
1464
|
+
fileType: "text/markdown",
|
|
1465
|
+
},
|
|
1466
|
+
},
|
|
1467
|
+
],
|
|
1468
|
+
});
|
|
1282
1469
|
|
|
1283
1470
|
console.log(result);
|
|
1284
1471
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 deploymentsInvoke.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.deployments.invoke({
|
|
22
|
+
key: "<key>",
|
|
23
|
+
identity: {
|
|
24
|
+
id: "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
|
|
25
|
+
displayName: "Jane Doe",
|
|
26
|
+
email: "jane.doe@example.com",
|
|
27
|
+
metadata: [
|
|
28
|
+
{
|
|
29
|
+
"department": "Engineering",
|
|
30
|
+
"role": "Senior Developer",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
logoUrl: "https://example.com/avatars/jane-doe.jpg",
|
|
34
|
+
tags: [
|
|
35
|
+
"hr",
|
|
36
|
+
"engineering",
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
documents: [
|
|
40
|
+
{
|
|
41
|
+
text:
|
|
42
|
+
"The refund policy allows customers to return items within 30 days of purchase for a full refund.",
|
|
43
|
+
metadata: {
|
|
44
|
+
fileName: "refund_policy.pdf",
|
|
45
|
+
fileType: "application/pdf",
|
|
46
|
+
pageNumber: 1,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
text: "Premium members receive free shipping on all orders over $50.",
|
|
51
|
+
metadata: {
|
|
52
|
+
fileName: "membership_benefits.md",
|
|
53
|
+
fileType: "text/markdown",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
console.log(result);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
main().catch(console.error);
|
package/funcs/datasetsList.js
CHANGED
|
@@ -66,6 +66,7 @@ async function $do(client, request, options) {
|
|
|
66
66
|
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
67
67
|
"ending_before": payload?.ending_before,
|
|
68
68
|
"limit": payload?.limit,
|
|
69
|
+
"project_id": payload?.project_id,
|
|
69
70
|
"search": payload?.search,
|
|
70
71
|
"starting_after": payload?.starting_after,
|
|
71
72
|
"updated_by": payload?.updated_by,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasetsList.js","sourceRoot":"","sources":["../src/funcs/datasetsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,oCAsBC;AAlDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,YAAY,CAC1B,MAAe,EACf,OAAoD,EACpD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM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AG,EAAE;QACrC,OAAO;QACP,iBAAiB,EAAE,CAAC,UAAkB,EAAE,EAAE,CACxC,IAAA,yBAAe,EAAC,EAAE,MAAM,EAAE,UAAU,EAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,sCAAsC,CAAC,EAC9D,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"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Invoke
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Invoke a deployment with a given payload
|
|
16
|
+
*/
|
|
17
|
+
export declare function deploymentsInvoke(client: OrqCore, request: components.InvokeDeploymentRequest, options?: RequestOptions): APIPromise<Result<operations.DeploymentInvokeResponseBody | undefined, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=deploymentsInvoke.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsInvoke.d.ts","sourceRoot":"","sources":["../src/funcs/deploymentsInvoke.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,GAAG,SAAS,EACjD,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|