@orq-ai/node 4.9.11 → 4.9.13
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- 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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- 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/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +8 -8
- package/packages/orq-rc/src/funcs/{reportingQuery.ts → contactsCreate.ts} +13 -13
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +15 -10
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +16 -7
- package/packages/orq-rc/src/funcs/identitiesList.ts +5 -6
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +18 -6
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +15 -9
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +0 -3
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
- package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsDelete.ts +0 -3
- package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +0 -6
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -18
- package/packages/orq-rc/src/models/components/createskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/file.ts +3 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/getskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/index.ts +0 -15
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +10 -17
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +0 -12
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +0 -12
- package/packages/orq-rc/src/models/components/modelref.ts +0 -6
- package/packages/orq-rc/src/models/components/project.ts +3 -42
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/skill.ts +3 -37
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +0 -12
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +0 -3
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -21
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +0 -3
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
- package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/createannotation.ts +11 -7
- package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
- 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/createeval.ts +31 -45
- package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
- package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +3 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -22
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/invokeeval.ts +80 -83
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
- 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 +230 -9
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +27 -34
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +0 -3
- package/packages/orq-rc/src/models/operations/projectget.ts +0 -3
- package/packages/orq-rc/src/models/operations/projectlist.ts +0 -15
- package/packages/orq-rc/src/models/operations/projectupdate.ts +0 -3
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
- 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 +138 -3
- package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
- package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/skilldelete.ts +0 -3
- package/packages/orq-rc/src/models/operations/skilllist.ts +0 -12
- package/packages/orq-rc/src/models/operations/skillupdate.ts +0 -3
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +23 -30
- package/packages/orq-rc/src/models/operations/updateidentity.ts +154 -5
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
- package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
- package/packages/orq-rc/src/sdk/contacts.ts +27 -0
- package/packages/orq-rc/src/sdk/feedback.ts +8 -8
- package/packages/orq-rc/src/sdk/identities.ts +17 -18
- package/packages/orq-rc/src/sdk/projects.ts +2 -5
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -16
- package/packages/orq-rc/src/sdk/skills.ts +4 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- 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/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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/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 +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +0 -76
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/datapoint.ts +0 -60
- package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/filter.ts +0 -137
- package/packages/orq-rc/src/models/components/identity.ts +0 -83
- package/packages/orq-rc/src/models/components/identitymetrics.ts +0 -45
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +0 -41
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +0 -237
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +0 -96
- package/packages/orq-rc/src/models/components/responsemeta.ts +0 -103
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/totals.ts +0 -34
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +0 -75
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +0 -32
- package/packages/orq-rc/src/sdk/reporting.ts +0 -27
|
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
RequestTimeoutError,
|
|
20
19
|
UnexpectedClientError,
|
|
21
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -38,7 +38,9 @@ export function identitiesRetrieve(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
|
|
41
|
+
operations.RetrieveIdentityResponseBody,
|
|
42
|
+
| errors.RetrieveIdentityResponseBody
|
|
43
|
+
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
42
44
|
| OrqError
|
|
43
45
|
| ResponseValidationError
|
|
44
46
|
| ConnectionError
|
|
@@ -63,7 +65,9 @@ async function $do(
|
|
|
63
65
|
): Promise<
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
|
-
|
|
68
|
+
operations.RetrieveIdentityResponseBody,
|
|
69
|
+
| errors.RetrieveIdentityResponseBody
|
|
70
|
+
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
67
71
|
| OrqError
|
|
68
72
|
| ResponseValidationError
|
|
69
73
|
| ConnectionError
|
|
@@ -150,8 +154,14 @@ async function $do(
|
|
|
150
154
|
}
|
|
151
155
|
const response = doResult.value;
|
|
152
156
|
|
|
157
|
+
const responseFields = {
|
|
158
|
+
HttpMeta: { Response: response, Request: req },
|
|
159
|
+
};
|
|
160
|
+
|
|
153
161
|
const [result] = await M.match<
|
|
154
|
-
|
|
162
|
+
operations.RetrieveIdentityResponseBody,
|
|
163
|
+
| errors.RetrieveIdentityResponseBody
|
|
164
|
+
| errors.RetrieveIdentityIdentitiesResponseBody
|
|
155
165
|
| OrqError
|
|
156
166
|
| ResponseValidationError
|
|
157
167
|
| ConnectionError
|
|
@@ -161,10 +171,12 @@ async function $do(
|
|
|
161
171
|
| UnexpectedClientError
|
|
162
172
|
| SDKValidationError
|
|
163
173
|
>(
|
|
164
|
-
M.json(200,
|
|
174
|
+
M.json(200, operations.RetrieveIdentityResponseBody$inboundSchema),
|
|
175
|
+
M.jsonErr(404, errors.RetrieveIdentityResponseBody$inboundSchema),
|
|
176
|
+
M.jsonErr(500, errors.RetrieveIdentityIdentitiesResponseBody$inboundSchema),
|
|
165
177
|
M.fail("4XX"),
|
|
166
178
|
M.fail("5XX"),
|
|
167
|
-
)(response, req);
|
|
179
|
+
)(response, req, { extraFields: responseFields });
|
|
168
180
|
if (!result.ok) {
|
|
169
181
|
return [result, { status: "complete", request: req, response }];
|
|
170
182
|
}
|
|
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
RequestTimeoutError,
|
|
20
19
|
UnexpectedClientError,
|
|
21
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -38,7 +38,8 @@ export function identitiesUpdate(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
|
|
41
|
+
operations.UpdateIdentityResponseBody,
|
|
42
|
+
| errors.UpdateIdentityResponseBody
|
|
42
43
|
| OrqError
|
|
43
44
|
| ResponseValidationError
|
|
44
45
|
| ConnectionError
|
|
@@ -63,7 +64,8 @@ async function $do(
|
|
|
63
64
|
): Promise<
|
|
64
65
|
[
|
|
65
66
|
Result<
|
|
66
|
-
|
|
67
|
+
operations.UpdateIdentityResponseBody,
|
|
68
|
+
| errors.UpdateIdentityResponseBody
|
|
67
69
|
| OrqError
|
|
68
70
|
| ResponseValidationError
|
|
69
71
|
| ConnectionError
|
|
@@ -85,9 +87,7 @@ async function $do(
|
|
|
85
87
|
return [parsed, { status: "invalid" }];
|
|
86
88
|
}
|
|
87
89
|
const payload = parsed.value;
|
|
88
|
-
const body = encodeJSON("body", payload.
|
|
89
|
-
explode: true,
|
|
90
|
-
});
|
|
90
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
91
91
|
|
|
92
92
|
const pathParams = {
|
|
93
93
|
id: encodeSimple("id", payload.id, {
|
|
@@ -148,8 +148,13 @@ async function $do(
|
|
|
148
148
|
}
|
|
149
149
|
const response = doResult.value;
|
|
150
150
|
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
151
155
|
const [result] = await M.match<
|
|
152
|
-
|
|
156
|
+
operations.UpdateIdentityResponseBody,
|
|
157
|
+
| errors.UpdateIdentityResponseBody
|
|
153
158
|
| OrqError
|
|
154
159
|
| ResponseValidationError
|
|
155
160
|
| ConnectionError
|
|
@@ -159,10 +164,11 @@ async function $do(
|
|
|
159
164
|
| UnexpectedClientError
|
|
160
165
|
| SDKValidationError
|
|
161
166
|
>(
|
|
162
|
-
M.json(200,
|
|
167
|
+
M.json(200, operations.UpdateIdentityResponseBody$inboundSchema),
|
|
168
|
+
M.jsonErr(404, errors.UpdateIdentityResponseBody$inboundSchema),
|
|
163
169
|
M.fail("4XX"),
|
|
164
170
|
M.fail("5XX"),
|
|
165
|
-
)(response, req);
|
|
171
|
+
)(response, req, { extraFields: responseFields });
|
|
166
172
|
if (!result.ok) {
|
|
167
173
|
return [result, { status: "complete", request: req, response }];
|
|
168
174
|
}
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create a new project
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Creates a project
|
|
32
|
+
* Creates a new project within the workspace. Projects organize resources like skills, deployments, and datasets.
|
|
33
33
|
*/
|
|
34
34
|
export function projectsCreate(
|
|
35
35
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List all projects
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns a list of projects. Projects are sorted by creation date, with the most recently created projects appearing first.
|
|
34
34
|
*/
|
|
35
35
|
export function projectsList(
|
|
36
36
|
client: OrqCore,
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve a remote config
|
|
30
|
+
*/
|
|
31
|
+
export function remoteconfigsRetrieve(
|
|
32
|
+
client: OrqCore,
|
|
33
|
+
request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.RemoteConfigsGetConfigResponseBody,
|
|
38
|
+
| OrqError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: OrqCore,
|
|
57
|
+
request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.RemoteConfigsGetConfigResponseBody,
|
|
63
|
+
| OrqError
|
|
64
|
+
| ResponseValidationError
|
|
65
|
+
| ConnectionError
|
|
66
|
+
| RequestAbortedError
|
|
67
|
+
| RequestTimeoutError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| SDKValidationError
|
|
71
|
+
>,
|
|
72
|
+
APICall,
|
|
73
|
+
]
|
|
74
|
+
> {
|
|
75
|
+
const parsed = safeParse(
|
|
76
|
+
request,
|
|
77
|
+
(value) =>
|
|
78
|
+
operations.RemoteConfigsGetConfigRequestBody$outboundSchema.optional()
|
|
79
|
+
.parse(value),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed.ok) {
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload = parsed.value;
|
|
86
|
+
const body = payload === undefined
|
|
87
|
+
? null
|
|
88
|
+
: encodeJSON("body", payload, { explode: true });
|
|
89
|
+
|
|
90
|
+
const path = pathToFunc("/v2/remoteconfigs")();
|
|
91
|
+
|
|
92
|
+
const headers = new Headers(compactMap({
|
|
93
|
+
"Content-Type": "application/json",
|
|
94
|
+
Accept: "application/json",
|
|
95
|
+
}));
|
|
96
|
+
|
|
97
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
99
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
+
|
|
101
|
+
const context = {
|
|
102
|
+
options: client._options,
|
|
103
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
+
operationID: "RemoteConfigsGetConfig",
|
|
105
|
+
oAuth2Scopes: null,
|
|
106
|
+
|
|
107
|
+
resolvedSecurity: requestSecurity,
|
|
108
|
+
|
|
109
|
+
securitySource: client._options.apiKey,
|
|
110
|
+
retryConfig: options?.retries
|
|
111
|
+
|| client._options.retryConfig
|
|
112
|
+
|| { strategy: "none" },
|
|
113
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const requestRes = client._createRequest(context, {
|
|
117
|
+
security: requestSecurity,
|
|
118
|
+
method: "POST",
|
|
119
|
+
baseURL: options?.serverURL,
|
|
120
|
+
path: path,
|
|
121
|
+
headers: headers,
|
|
122
|
+
body: body,
|
|
123
|
+
userAgent: client._options.userAgent,
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client._do(req, {
|
|
132
|
+
context,
|
|
133
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
134
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
|
+
retryConfig: context.retryConfig,
|
|
136
|
+
retryCodes: context.retryCodes,
|
|
137
|
+
});
|
|
138
|
+
if (!doResult.ok) {
|
|
139
|
+
return [doResult, { status: "request-error", request: req }];
|
|
140
|
+
}
|
|
141
|
+
const response = doResult.value;
|
|
142
|
+
|
|
143
|
+
const [result] = await M.match<
|
|
144
|
+
operations.RemoteConfigsGetConfigResponseBody,
|
|
145
|
+
| OrqError
|
|
146
|
+
| ResponseValidationError
|
|
147
|
+
| ConnectionError
|
|
148
|
+
| RequestAbortedError
|
|
149
|
+
| RequestTimeoutError
|
|
150
|
+
| InvalidRequestError
|
|
151
|
+
| UnexpectedClientError
|
|
152
|
+
| SDKValidationError
|
|
153
|
+
>(
|
|
154
|
+
M.json(200, operations.RemoteConfigsGetConfigResponseBody$inboundSchema),
|
|
155
|
+
M.fail([400, 401, 404, "4XX"]),
|
|
156
|
+
M.fail([500, "5XX"]),
|
|
157
|
+
)(response, req);
|
|
158
|
+
if (!result.ok) {
|
|
159
|
+
return [result, { status: "complete", request: req, response }];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create a new skill
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Skills are modular instructions you can use to codify processes and conventions
|
|
33
33
|
*/
|
|
34
34
|
export function skillsCreate(
|
|
35
35
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Retrieve a skill
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Retrieves an existing skill by skill ID
|
|
33
|
+
* Retrieves an existing skill by its unique skill ID or its display name (display names are unique within a workspace).
|
|
34
34
|
*/
|
|
35
35
|
export function skillsGet(
|
|
36
36
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List all skills
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns a list of skills. Skills are sorted by creation date, with the most recently created skills appearing first.
|
|
34
34
|
*/
|
|
35
35
|
export function skillsList(
|
|
36
36
|
client: OrqCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Update a skill
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Updates
|
|
33
|
+
* Updates the specified skill by setting the values of the parameters passed.
|
|
34
34
|
*/
|
|
35
35
|
export function skillsUpdate(
|
|
36
36
|
client: OrqCore,
|
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.10.0-rc.
|
|
71
|
+
sdkVersion: "4.10.0-rc.18",
|
|
72
72
|
genVersion: "2.884.4",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.10.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.10.0-rc.18 2.884.4 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -5,13 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
7
|
export type CreateProjectRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* Project name. Names must be non-empty and at most 128 characters.
|
|
10
|
-
*/
|
|
11
8
|
name?: string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Team identifiers to associate with the project.
|
|
14
|
-
*/
|
|
15
9
|
teams?: Array<string> | undefined;
|
|
16
10
|
};
|
|
17
11
|
|
|
@@ -9,9 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
import { Project, Project$inboundSchema } from "./project.js";
|
|
10
10
|
|
|
11
11
|
export type CreateProjectResponse = {
|
|
12
|
-
/**
|
|
13
|
-
* Newly created project.
|
|
14
|
-
*/
|
|
15
12
|
project?: Project | undefined;
|
|
16
13
|
};
|
|
17
14
|
|
|
@@ -6,29 +6,11 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
8
|
export type CreateSkillRequest = {
|
|
9
|
-
/**
|
|
10
|
-
* Workspace-unique display name. Must start with a letter and may contain letters, numbers, underscores, and hyphens.
|
|
11
|
-
*/
|
|
12
9
|
displayName?: string | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Short human-readable summary of what the skill is for.
|
|
15
|
-
*/
|
|
16
10
|
description?: string | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Free-form labels for organizing the skill.
|
|
19
|
-
*/
|
|
20
11
|
tags?: Array<string> | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Project path where the skill should be stored.
|
|
23
|
-
*/
|
|
24
12
|
path?: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Project that should contain the skill.
|
|
27
|
-
*/
|
|
28
13
|
projectId?: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Instruction body for the skill. Omit to create metadata first and fill instructions later.
|
|
31
|
-
*/
|
|
32
14
|
instructions?: string | undefined;
|
|
33
15
|
};
|
|
34
16
|
|
|
@@ -12,6 +12,7 @@ export type FileT = {
|
|
|
12
12
|
fileId?: string | undefined;
|
|
13
13
|
purpose?: number | undefined;
|
|
14
14
|
fileName?: string | undefined;
|
|
15
|
+
workspaceId?: string | undefined;
|
|
15
16
|
bytes?: string | undefined;
|
|
16
17
|
createdAt?: Date | undefined;
|
|
17
18
|
};
|
|
@@ -22,6 +23,7 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
22
23
|
file_id: z.string().optional(),
|
|
23
24
|
purpose: z.number().int().optional(),
|
|
24
25
|
file_name: z.string().optional(),
|
|
26
|
+
workspace_id: z.string().optional(),
|
|
25
27
|
bytes: z.string().optional(),
|
|
26
28
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
27
29
|
new Date(v)
|
|
@@ -30,6 +32,7 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
30
32
|
return remap$(v, {
|
|
31
33
|
"file_id": "fileId",
|
|
32
34
|
"file_name": "fileName",
|
|
35
|
+
"workspace_id": "workspaceId",
|
|
33
36
|
"created_at": "createdAt",
|
|
34
37
|
});
|
|
35
38
|
});
|
|
@@ -18,16 +18,12 @@ export * from "./conversationparam.js";
|
|
|
18
18
|
export * from "./createagentresponse.js";
|
|
19
19
|
export * from "./createfilerequest.js";
|
|
20
20
|
export * from "./createfileresponse.js";
|
|
21
|
-
export * from "./createidentityrequest.js";
|
|
22
|
-
export * from "./createidentityresponse.js";
|
|
23
21
|
export * from "./createprojectrequest.js";
|
|
24
22
|
export * from "./createprojectresponse.js";
|
|
25
23
|
export * from "./createskillrequest.js";
|
|
26
24
|
export * from "./createskillresponse.js";
|
|
27
25
|
export * from "./datapart.js";
|
|
28
|
-
export * from "./datapoint.js";
|
|
29
26
|
export * from "./deletefileresponse.js";
|
|
30
|
-
export * from "./deleteidentityresponse.js";
|
|
31
27
|
export * from "./deleteprojectresponse.js";
|
|
32
28
|
export * from "./deleteskillresponse.js";
|
|
33
29
|
export * from "./errorpart.js";
|
|
@@ -43,7 +39,6 @@ export * from "./fallbackconfig.js";
|
|
|
43
39
|
export * from "./file.js";
|
|
44
40
|
export * from "./filecontentpartschema.js";
|
|
45
41
|
export * from "./filepart.js";
|
|
46
|
-
export * from "./filter.js";
|
|
47
42
|
export * from "./getagentresponse.js";
|
|
48
43
|
export * from "./getfilecontentresponse.js";
|
|
49
44
|
export * from "./getfileresponse.js";
|
|
@@ -51,15 +46,12 @@ export * from "./getprojectresponse.js";
|
|
|
51
46
|
export * from "./getskillresponse.js";
|
|
52
47
|
export * from "./guardrailref.js";
|
|
53
48
|
export * from "./guardrailrule.js";
|
|
54
|
-
export * from "./identity.js";
|
|
55
|
-
export * from "./identitymetrics.js";
|
|
56
49
|
export * from "./imagecontentpartschema.js";
|
|
57
50
|
export * from "./incompletedetails.js";
|
|
58
51
|
export * from "./inputtokensdetails.js";
|
|
59
52
|
export * from "./invokedeploymentrequest.js";
|
|
60
53
|
export * from "./limits.js";
|
|
61
54
|
export * from "./listfilesresponse.js";
|
|
62
|
-
export * from "./listidentitiesresponse.js";
|
|
63
55
|
export * from "./listprojectsresponse.js";
|
|
64
56
|
export * from "./listskillsresponse.js";
|
|
65
57
|
export * from "./memoryparam.js";
|
|
@@ -78,8 +70,6 @@ export * from "./publicschedule.js";
|
|
|
78
70
|
export * from "./publicscheduleerrordetail.js";
|
|
79
71
|
export * from "./publicschedulepayload.js";
|
|
80
72
|
export * from "./publicusage.js";
|
|
81
|
-
export * from "./queryreportrequest.js";
|
|
82
|
-
export * from "./queryreportresponse.js";
|
|
83
73
|
export * from "./reasoning.js";
|
|
84
74
|
export * from "./reasoningparam.js";
|
|
85
75
|
export * from "./reasoningpart.js";
|
|
@@ -92,12 +82,10 @@ export * from "./responseerror.js";
|
|
|
92
82
|
export * from "./responseexecutionlimits.js";
|
|
93
83
|
export * from "./responsefailedevent.js";
|
|
94
84
|
export * from "./responseidentity.js";
|
|
95
|
-
export * from "./responsemeta.js";
|
|
96
85
|
export * from "./responseretryconfig.js";
|
|
97
86
|
export * from "./responsestartedevent.js";
|
|
98
87
|
export * from "./responsestreamingevent.js";
|
|
99
88
|
export * from "./responsethread.js";
|
|
100
|
-
export * from "./retrieveidentityresponse.js";
|
|
101
89
|
export * from "./reviewoutcome.js";
|
|
102
90
|
export * from "./routingrule.js";
|
|
103
91
|
export * from "./security.js";
|
|
@@ -121,11 +109,8 @@ export * from "./toolresultpart.js";
|
|
|
121
109
|
export * from "./toolreviewdoneevent.js";
|
|
122
110
|
export * from "./toolreviewrequestedevent.js";
|
|
123
111
|
export * from "./toolstartedevent.js";
|
|
124
|
-
export * from "./totals.js";
|
|
125
112
|
export * from "./updatefilerequest.js";
|
|
126
113
|
export * from "./updatefileresponse.js";
|
|
127
|
-
export * from "./updateidentityrequest.js";
|
|
128
|
-
export * from "./updateidentityresponse.js";
|
|
129
114
|
export * from "./updateprojectrequest.js";
|
|
130
115
|
export * from "./updateprojectresponse.js";
|
|
131
116
|
export * from "./updateskillrequest.js";
|
|
@@ -739,7 +739,7 @@ export type Messages =
|
|
|
739
739
|
/**
|
|
740
740
|
* Metadata about the document
|
|
741
741
|
*/
|
|
742
|
-
export type
|
|
742
|
+
export type Metadata = {
|
|
743
743
|
/**
|
|
744
744
|
* Name of the file the text is from.
|
|
745
745
|
*/
|
|
@@ -762,7 +762,7 @@ export type Documents = {
|
|
|
762
762
|
/**
|
|
763
763
|
* Metadata about the document
|
|
764
764
|
*/
|
|
765
|
-
metadata?:
|
|
765
|
+
metadata?: Metadata | undefined;
|
|
766
766
|
};
|
|
767
767
|
|
|
768
768
|
export type InvokeOptions = {
|
|
@@ -2342,17 +2342,17 @@ export function messagesToJSON(messages: Messages): string {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
|
|
2344
2344
|
/** @internal */
|
|
2345
|
-
export type
|
|
2345
|
+
export type Metadata$Outbound = {
|
|
2346
2346
|
file_name?: string | undefined;
|
|
2347
2347
|
file_type?: string | undefined;
|
|
2348
2348
|
page_number?: number | undefined;
|
|
2349
2349
|
};
|
|
2350
2350
|
|
|
2351
2351
|
/** @internal */
|
|
2352
|
-
export const
|
|
2353
|
-
|
|
2352
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
2353
|
+
Metadata$Outbound,
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
|
-
|
|
2355
|
+
Metadata
|
|
2356
2356
|
> = z.object({
|
|
2357
2357
|
fileName: z.string().optional(),
|
|
2358
2358
|
fileType: z.string().optional(),
|
|
@@ -2365,20 +2365,14 @@ export const InvokeDeploymentRequestMetadata$outboundSchema: z.ZodType<
|
|
|
2365
2365
|
});
|
|
2366
2366
|
});
|
|
2367
2367
|
|
|
2368
|
-
export function
|
|
2369
|
-
|
|
2370
|
-
): string {
|
|
2371
|
-
return JSON.stringify(
|
|
2372
|
-
InvokeDeploymentRequestMetadata$outboundSchema.parse(
|
|
2373
|
-
invokeDeploymentRequestMetadata,
|
|
2374
|
-
),
|
|
2375
|
-
);
|
|
2368
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
2369
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
2376
2370
|
}
|
|
2377
2371
|
|
|
2378
2372
|
/** @internal */
|
|
2379
2373
|
export type Documents$Outbound = {
|
|
2380
2374
|
text: string;
|
|
2381
|
-
metadata?:
|
|
2375
|
+
metadata?: Metadata$Outbound | undefined;
|
|
2382
2376
|
};
|
|
2383
2377
|
|
|
2384
2378
|
/** @internal */
|
|
@@ -2388,8 +2382,7 @@ export const Documents$outboundSchema: z.ZodType<
|
|
|
2388
2382
|
Documents
|
|
2389
2383
|
> = z.object({
|
|
2390
2384
|
text: z.string(),
|
|
2391
|
-
metadata: z.lazy(() =>
|
|
2392
|
-
.optional(),
|
|
2385
|
+
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
2393
2386
|
});
|
|
2394
2387
|
|
|
2395
2388
|
export function documentsToJSON(documents: Documents): string {
|