@orq-ai/node 4.10.0-rc.7 → 4.10.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -53
- package/funcs/projectsCreate.d.ts +1 -1
- package/funcs/projectsCreate.js +1 -1
- package/funcs/projectsDelete.d.ts +3 -0
- package/funcs/projectsDelete.d.ts.map +1 -1
- package/funcs/projectsDelete.js +3 -0
- package/funcs/projectsDelete.js.map +1 -1
- package/funcs/projectsList.d.ts +1 -1
- package/funcs/projectsList.js +1 -1
- package/funcs/reportingQuery.d.ts +17 -0
- package/funcs/reportingQuery.d.ts.map +1 -0
- package/funcs/{contactsCreate.js → reportingQuery.js} +10 -10
- package/funcs/reportingQuery.js.map +1 -0
- package/funcs/skillsCreate.d.ts +1 -1
- package/funcs/skillsCreate.js +1 -1
- package/funcs/skillsDelete.d.ts +3 -0
- package/funcs/skillsDelete.d.ts.map +1 -1
- package/funcs/skillsDelete.js +3 -0
- package/funcs/skillsDelete.js.map +1 -1
- package/funcs/skillsGet.d.ts +1 -1
- package/funcs/skillsGet.js +1 -1
- package/funcs/skillsList.d.ts +1 -1
- package/funcs/skillsList.js +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/createprojectrequest.d.ts +6 -0
- package/models/components/createprojectrequest.d.ts.map +1 -1
- package/models/components/createprojectrequest.js.map +1 -1
- package/models/components/createprojectresponse.d.ts +3 -0
- package/models/components/createprojectresponse.d.ts.map +1 -1
- package/models/components/createprojectresponse.js.map +1 -1
- package/models/components/createskillrequest.d.ts +18 -0
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/createskillresponse.d.ts +3 -0
- package/models/components/createskillresponse.d.ts.map +1 -1
- package/models/components/createskillresponse.js.map +1 -1
- package/models/components/datapoint.d.ts +40 -0
- package/models/components/datapoint.d.ts.map +1 -0
- package/models/components/datapoint.js +53 -0
- package/models/components/datapoint.js.map +1 -0
- package/models/components/file.d.ts +0 -1
- package/models/components/file.d.ts.map +1 -1
- package/models/components/file.js +0 -2
- package/models/components/file.js.map +1 -1
- package/models/components/filter.d.ts +99 -0
- package/models/components/filter.d.ts.map +1 -0
- package/models/components/filter.js +120 -0
- package/models/components/filter.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +3 -0
- package/models/components/getprojectresponse.d.ts.map +1 -1
- package/models/components/getprojectresponse.js.map +1 -1
- package/models/components/getskillresponse.d.ts +3 -0
- package/models/components/getskillresponse.d.ts.map +1 -1
- package/models/components/getskillresponse.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listprojectsresponse.d.ts +12 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -1
- package/models/components/listprojectsresponse.js.map +1 -1
- package/models/components/listskillsresponse.d.ts +12 -0
- package/models/components/listskillsresponse.d.ts.map +1 -1
- package/models/components/listskillsresponse.js.map +1 -1
- package/models/components/project.d.ts +42 -1
- package/models/components/project.d.ts.map +1 -1
- package/models/components/project.js +0 -2
- package/models/components/project.js.map +1 -1
- package/models/components/queryreportrequest.d.ts +156 -0
- package/models/components/queryreportrequest.d.ts.map +1 -0
- package/models/components/queryreportrequest.js +166 -0
- package/models/components/queryreportrequest.js.map +1 -0
- package/models/components/queryreportresponse.d.ts +59 -0
- package/models/components/queryreportresponse.d.ts.map +1 -0
- package/models/components/queryreportresponse.js +73 -0
- package/models/components/queryreportresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsemeta.d.ts +63 -0
- package/models/components/responsemeta.d.ts.map +1 -0
- package/models/{operations/remoteconfigsgetconfig.js → components/responsemeta.js} +31 -27
- package/models/components/responsemeta.js.map +1 -0
- package/models/components/skill.d.ts +37 -1
- package/models/components/skill.d.ts.map +1 -1
- package/models/components/skill.js +0 -2
- package/models/components/skill.js.map +1 -1
- package/models/components/totals.d.ts +18 -0
- package/models/components/totals.d.ts.map +1 -0
- package/models/components/totals.js +51 -0
- package/models/components/totals.js.map +1 -0
- package/models/components/updateprojectrequest.d.ts +12 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -1
- package/models/components/updateprojectrequest.js.map +1 -1
- package/models/components/updateprojectresponse.d.ts +3 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -1
- package/models/components/updateprojectresponse.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +21 -0
- package/models/components/updateskillrequest.d.ts.map +1 -1
- package/models/components/updateskillrequest.js.map +1 -1
- package/models/components/updateskillresponse.d.ts +3 -0
- package/models/components/updateskillresponse.d.ts.map +1 -1
- package/models/components/updateskillresponse.js.map +1 -1
- package/models/operations/createannotation.d.ts +4 -4
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +5 -5
- package/models/operations/createannotation.js.map +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/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +28 -28
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +40 -40
- package/models/operations/invokeeval.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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedback.d.ts +15 -15
- package/models/operations/postv2feedback.d.ts.map +1 -1
- package/models/operations/postv2feedback.js +15 -16
- package/models/operations/postv2feedback.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2feedbackremove.d.ts +8 -8
- package/models/operations/postv2feedbackremove.d.ts.map +1 -1
- package/models/operations/postv2feedbackremove.js +8 -7
- package/models/operations/postv2feedbackremove.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +3 -0
- package/models/operations/projectdelete.d.ts.map +1 -1
- package/models/operations/projectdelete.js.map +1 -1
- package/models/operations/projectget.d.ts +3 -0
- package/models/operations/projectget.d.ts.map +1 -1
- package/models/operations/projectget.js.map +1 -1
- package/models/operations/projectlist.d.ts +15 -0
- package/models/operations/projectlist.d.ts.map +1 -1
- package/models/operations/projectlist.js.map +1 -1
- package/models/operations/projectupdate.d.ts +3 -0
- package/models/operations/projectupdate.d.ts.map +1 -1
- package/models/operations/projectupdate.js.map +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/skilldelete.d.ts +3 -0
- package/models/operations/skilldelete.d.ts.map +1 -1
- package/models/operations/skilldelete.js.map +1 -1
- package/models/operations/skilllist.d.ts +12 -0
- package/models/operations/skilllist.d.ts.map +1 -1
- package/models/operations/skilllist.js.map +1 -1
- package/models/operations/skillupdate.d.ts +3 -0
- package/models/operations/skillupdate.d.ts.map +1 -1
- package/models/operations/skillupdate.js.map +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 +7 -7
- package/sdk/feedback.d.ts +1 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +3 -3
- package/sdk/feedback.js.map +1 -1
- package/sdk/projects.d.ts +5 -2
- package/sdk/projects.d.ts.map +1 -1
- package/sdk/projects.js +5 -2
- package/sdk/projects.js.map +1 -1
- package/sdk/reporting.d.ts +12 -0
- package/sdk/reporting.d.ts.map +1 -0
- package/sdk/reporting.js +22 -0
- package/sdk/reporting.js.map +1 -0
- package/sdk/sdk.d.ts +5 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -11
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +7 -4
- package/sdk/skills.d.ts.map +1 -1
- package/sdk/skills.js +7 -4
- package/sdk/skills.js.map +1 -1
- package/src/funcs/projectsCreate.ts +1 -1
- package/src/funcs/projectsDelete.ts +3 -0
- package/src/funcs/projectsList.ts +1 -1
- package/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/src/funcs/skillsCreate.ts +1 -1
- package/src/funcs/skillsDelete.ts +3 -0
- package/src/funcs/skillsGet.ts +1 -1
- package/src/funcs/skillsList.ts +1 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createprojectrequest.ts +6 -0
- package/src/models/components/createprojectresponse.ts +3 -0
- package/src/models/components/createskillrequest.ts +18 -0
- package/src/models/components/createskillresponse.ts +3 -0
- package/src/models/components/datapoint.ts +60 -0
- package/src/models/components/file.ts +0 -3
- package/src/models/components/filter.ts +137 -0
- package/src/models/components/getprojectresponse.ts +3 -0
- package/src/models/components/getskillresponse.ts +3 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listprojectsresponse.ts +12 -0
- package/src/models/components/listskillsresponse.ts +12 -0
- package/src/models/components/project.ts +42 -3
- package/src/models/components/queryreportrequest.ts +237 -0
- package/src/models/components/queryreportresponse.ts +96 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsemeta.ts +103 -0
- package/src/models/components/skill.ts +37 -3
- package/src/models/components/totals.ts +34 -0
- package/src/models/components/updateprojectrequest.ts +12 -0
- package/src/models/components/updateprojectresponse.ts +3 -0
- package/src/models/components/updateskillrequest.ts +21 -0
- package/src/models/components/updateskillresponse.ts +3 -0
- package/src/models/operations/createannotation.ts +7 -11
- 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/index.ts +0 -2
- package/src/models/operations/invokeeval.ts +83 -80
- 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/postv2feedback.ts +34 -27
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2feedbackremove.ts +14 -17
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +3 -0
- package/src/models/operations/projectget.ts +3 -0
- package/src/models/operations/projectlist.ts +15 -0
- package/src/models/operations/projectupdate.ts +3 -0
- 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/skilldelete.ts +3 -0
- package/src/models/operations/skilllist.ts +12 -0
- package/src/models/operations/skillupdate.ts +3 -0
- 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/src/sdk/feedback.ts +8 -8
- package/src/sdk/projects.ts +5 -2
- package/src/sdk/reporting.ts +27 -0
- package/src/sdk/sdk.ts +11 -17
- package/src/sdk/skills.ts +7 -4
- package/funcs/contactsCreate.d.ts +0 -17
- package/funcs/contactsCreate.d.ts.map +0 -1
- package/funcs/contactsCreate.js.map +0 -1
- package/funcs/remoteconfigsRetrieve.d.ts +0 -14
- package/funcs/remoteconfigsRetrieve.d.ts.map +0 -1
- package/funcs/remoteconfigsRetrieve.js +0 -115
- package/funcs/remoteconfigsRetrieve.js.map +0 -1
- package/models/operations/createcontact.d.ts +0 -95
- package/models/operations/createcontact.d.ts.map +0 -1
- package/models/operations/createcontact.js +0 -86
- package/models/operations/createcontact.js.map +0 -1
- package/models/operations/remoteconfigsgetconfig.d.ts +0 -67
- package/models/operations/remoteconfigsgetconfig.d.ts.map +0 -1
- package/models/operations/remoteconfigsgetconfig.js.map +0 -1
- package/sdk/contacts.d.ts +0 -12
- package/sdk/contacts.d.ts.map +0 -1
- package/sdk/contacts.js +0 -22
- package/sdk/contacts.js.map +0 -1
- package/sdk/remoteconfigs.d.ts +0 -9
- package/sdk/remoteconfigs.d.ts.map +0 -1
- package/sdk/remoteconfigs.js +0 -19
- package/sdk/remoteconfigs.js.map +0 -1
- package/src/funcs/remoteconfigsRetrieve.ts +0 -163
- package/src/models/operations/createcontact.ts +0 -156
- package/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/src/sdk/contacts.ts +0 -27
- package/src/sdk/remoteconfigs.ts +0 -24
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List all projects
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns projects visible to the current workspace, ordered by creation time with the newest project first. Use `starting_after` or `ending_before` to page through large collections.
|
|
34
34
|
*/
|
|
35
35
|
export function projectsList(
|
|
36
36
|
client: OrqCore,
|
|
@@ -11,6 +11,7 @@ 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";
|
|
14
15
|
import {
|
|
15
16
|
ConnectionError,
|
|
16
17
|
InvalidRequestError,
|
|
@@ -21,23 +22,22 @@ import {
|
|
|
21
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Query reporting metrics
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Returns time-series analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes. Select a metric and time range, break results down by supported dimensions, apply filters, and optionally include totals for the full range.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function reportingQuery(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request:
|
|
36
|
+
request: components.QueryReportRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
|
|
40
|
+
components.QueryReportResponse,
|
|
41
41
|
| OrqError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -57,12 +57,12 @@ export function contactsCreate(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: OrqCore,
|
|
60
|
-
request:
|
|
60
|
+
request: components.QueryReportRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
|
|
65
|
+
components.QueryReportResponse,
|
|
66
66
|
| OrqError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,7 +77,7 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) =>
|
|
80
|
+
(value) => components.QueryReportRequest$outboundSchema.parse(value),
|
|
81
81
|
"Input validation failed",
|
|
82
82
|
);
|
|
83
83
|
if (!parsed.ok) {
|
|
@@ -86,7 +86,7 @@ async function $do(
|
|
|
86
86
|
const payload = parsed.value;
|
|
87
87
|
const body = encodeJSON("body", payload, { explode: true });
|
|
88
88
|
|
|
89
|
-
const path = pathToFunc("/v2/
|
|
89
|
+
const path = pathToFunc("/v2/reporting")();
|
|
90
90
|
|
|
91
91
|
const headers = new Headers(compactMap({
|
|
92
92
|
"Content-Type": "application/json",
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
const context = {
|
|
101
101
|
options: client._options,
|
|
102
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
103
|
+
operationID: "ReportingQuery",
|
|
104
104
|
oAuth2Scopes: null,
|
|
105
105
|
|
|
106
106
|
resolvedSecurity: requestSecurity,
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
const response = doResult.value;
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
|
|
143
|
+
components.QueryReportResponse,
|
|
144
144
|
| OrqError
|
|
145
145
|
| ResponseValidationError
|
|
146
146
|
| ConnectionError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| UnexpectedClientError
|
|
151
151
|
| SDKValidationError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200,
|
|
153
|
+
M.json(200, components.QueryReportResponse$inboundSchema),
|
|
154
154
|
M.fail("4XX"),
|
|
155
155
|
M.fail("5XX"),
|
|
156
156
|
)(response, req);
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create a new skill
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Creates a reusable skill in the workspace. Skills store instructions, metadata, and an optional project location so teams can standardize repeatable AI workflows.
|
|
33
33
|
*/
|
|
34
34
|
export function skillsCreate(
|
|
35
35
|
client: OrqCore,
|
package/src/funcs/skillsGet.ts
CHANGED
|
@@ -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
|
|
33
|
+
* Retrieves an existing skill by skill ID. Display names are also accepted for compatibility because they are unique within a workspace.
|
|
34
34
|
*/
|
|
35
35
|
export function skillsGet(
|
|
36
36
|
client: OrqCore,
|
package/src/funcs/skillsList.ts
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List all skills
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns
|
|
33
|
+
* Returns the skills visible to the current workspace, ordered by creation time with the newest skill first. Use `starting_after` or `ending_before` to page through large collections.
|
|
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 mutable skill fields. Omitted optional fields keep their current values. Repeated fields such as `tags` replace the existing collection when provided.
|
|
34
34
|
*/
|
|
35
35
|
export function skillsUpdate(
|
|
36
36
|
client: OrqCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -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.9",
|
|
72
72
|
genVersion: "2.884.4",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.10.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.10.0-rc.9 2.884.4 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -5,7 +5,13 @@
|
|
|
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
|
+
*/
|
|
8
11
|
name?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Team identifiers to associate with the project.
|
|
14
|
+
*/
|
|
9
15
|
teams?: Array<string> | undefined;
|
|
10
16
|
};
|
|
11
17
|
|
|
@@ -9,6 +9,9 @@ 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
|
+
*/
|
|
12
15
|
project?: Project | undefined;
|
|
13
16
|
};
|
|
14
17
|
|
|
@@ -6,11 +6,29 @@ 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
|
+
*/
|
|
9
12
|
displayName?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Short human-readable summary of what the skill is for.
|
|
15
|
+
*/
|
|
10
16
|
description?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Free-form labels for organizing the skill.
|
|
19
|
+
*/
|
|
11
20
|
tags?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Project path where the skill should be stored.
|
|
23
|
+
*/
|
|
12
24
|
path?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Project that should contain the skill.
|
|
27
|
+
*/
|
|
13
28
|
projectId?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Instruction body for the skill. Omit to create metadata first and fill instructions later.
|
|
31
|
+
*/
|
|
14
32
|
instructions?: string | undefined;
|
|
15
33
|
};
|
|
16
34
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DataPoint = {
|
|
11
|
+
/**
|
|
12
|
+
* Bucket start in UTC, RFC 3339. Clients that need epoch ms can call
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* `Date.parse(timestamp)` or `new Date(timestamp).getTime()` —
|
|
16
|
+
* returning the int64 in JSON would force a string (protojson rule)
|
|
17
|
+
* and force callers to coerce anyway, so we ship ISO only.
|
|
18
|
+
*/
|
|
19
|
+
timestamp?: Date | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Public breakdown labels for this bucket, keyed by group-by column.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Empty when no group-by was requested. Empty values are omitted so
|
|
25
|
+
* the caller never has to special-case `""`.
|
|
26
|
+
*/
|
|
27
|
+
dimensions?: { [k: string]: string } | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Metric values for this bucket. Single-metric requests carry one
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* entry keyed by the requested metric name (e.g. `"genai.cost"` →
|
|
33
|
+
* `0.000495`). Bundle metrics carry one entry per field. Numbers are
|
|
34
|
+
* pre-rounded to 10 significant digits to avoid IEEE-754 display
|
|
35
|
+
* noise like `0.00009900000000000001`.
|
|
36
|
+
*/
|
|
37
|
+
metrics?: { [k: string]: number } | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const DataPoint$inboundSchema: z.ZodType<
|
|
42
|
+
DataPoint,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.object({
|
|
46
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
47
|
+
.optional(),
|
|
48
|
+
dimensions: z.record(z.string()).optional(),
|
|
49
|
+
metrics: z.record(z.number()).optional(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function dataPointFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<DataPoint, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => DataPoint$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'DataPoint' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -12,7 +12,6 @@ export type FileT = {
|
|
|
12
12
|
fileId?: string | undefined;
|
|
13
13
|
purpose?: number | undefined;
|
|
14
14
|
fileName?: string | undefined;
|
|
15
|
-
workspaceId?: string | undefined;
|
|
16
15
|
bytes?: string | undefined;
|
|
17
16
|
createdAt?: Date | undefined;
|
|
18
17
|
};
|
|
@@ -23,7 +22,6 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
23
22
|
file_id: z.string().optional(),
|
|
24
23
|
purpose: z.number().int().optional(),
|
|
25
24
|
file_name: z.string().optional(),
|
|
26
|
-
workspace_id: z.string().optional(),
|
|
27
25
|
bytes: z.string().optional(),
|
|
28
26
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
29
27
|
new Date(v)
|
|
@@ -32,7 +30,6 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
32
30
|
return remap$(v, {
|
|
33
31
|
"file_id": "fileId",
|
|
34
32
|
"file_name": "fileName",
|
|
35
|
-
"workspace_id": "workspaceId",
|
|
36
33
|
"created_at": "createdAt",
|
|
37
34
|
});
|
|
38
35
|
});
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
13
|
+
*/
|
|
14
|
+
export const Field = {
|
|
15
|
+
Project: "project",
|
|
16
|
+
Identity: "identity",
|
|
17
|
+
Provider: "provider",
|
|
18
|
+
Model: "model",
|
|
19
|
+
Product: "product",
|
|
20
|
+
ApiKey: "api_key",
|
|
21
|
+
StatusCode: "status_code",
|
|
22
|
+
HttpStatusCode: "http_status_code",
|
|
23
|
+
CredentialType: "credential_type",
|
|
24
|
+
BillingBillable: "billing_billable",
|
|
25
|
+
Dimension: "dimension",
|
|
26
|
+
DimensionType: "dimension_type",
|
|
27
|
+
Tag: "tag",
|
|
28
|
+
Agent: "agent",
|
|
29
|
+
Tool: "tool",
|
|
30
|
+
Deployment: "deployment",
|
|
31
|
+
Evaluator: "evaluator",
|
|
32
|
+
Dataset: "dataset",
|
|
33
|
+
Prompt: "prompt",
|
|
34
|
+
Policy: "policy",
|
|
35
|
+
Conversation: "conversation",
|
|
36
|
+
Thread: "thread",
|
|
37
|
+
MemoryStore: "memory_store",
|
|
38
|
+
Knowledge: "knowledge",
|
|
39
|
+
Sheet: "sheet",
|
|
40
|
+
GuardrailOrigin: "guardrail_origin",
|
|
41
|
+
EvaluatorName: "evaluator_name",
|
|
42
|
+
EvaluatorType: "evaluator_type",
|
|
43
|
+
EvaluatorVersion: "evaluator_version",
|
|
44
|
+
ResultType: "result_type",
|
|
45
|
+
EvaluationStage: "evaluation_stage",
|
|
46
|
+
GuardrailStage: "guardrail_stage",
|
|
47
|
+
EvaluatorStage: "evaluator_stage",
|
|
48
|
+
GuardrailAction: "guardrail_action",
|
|
49
|
+
ResultLabel: "result_label",
|
|
50
|
+
} as const;
|
|
51
|
+
/**
|
|
52
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
53
|
+
*/
|
|
54
|
+
export type Field = ClosedEnum<typeof Field>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
58
|
+
*/
|
|
59
|
+
export const Op = {
|
|
60
|
+
Eq: "eq",
|
|
61
|
+
Neq: "neq",
|
|
62
|
+
In: "in",
|
|
63
|
+
NotIn: "not_in",
|
|
64
|
+
} as const;
|
|
65
|
+
/**
|
|
66
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
67
|
+
*/
|
|
68
|
+
export type Op = ClosedEnum<typeof Op>;
|
|
69
|
+
|
|
70
|
+
export type Filter = {
|
|
71
|
+
/**
|
|
72
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
73
|
+
*/
|
|
74
|
+
field?: Field | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
77
|
+
*/
|
|
78
|
+
op?: Op | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Values compared against the selected field. Values are interpreted
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* as public API strings, not SQL fragments.
|
|
84
|
+
*/
|
|
85
|
+
values?: Array<string> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const Field$inboundSchema: z.ZodNativeEnum<typeof Field> = z.nativeEnum(
|
|
90
|
+
Field,
|
|
91
|
+
);
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const Field$outboundSchema: z.ZodNativeEnum<typeof Field> =
|
|
94
|
+
Field$inboundSchema;
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
|
|
103
|
+
.object({
|
|
104
|
+
field: Field$inboundSchema.optional(),
|
|
105
|
+
op: Op$inboundSchema.optional(),
|
|
106
|
+
values: z.array(z.string()).optional(),
|
|
107
|
+
});
|
|
108
|
+
/** @internal */
|
|
109
|
+
export type Filter$Outbound = {
|
|
110
|
+
field?: string | undefined;
|
|
111
|
+
op?: string | undefined;
|
|
112
|
+
values?: Array<string> | undefined;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const Filter$outboundSchema: z.ZodType<
|
|
117
|
+
Filter$Outbound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
Filter
|
|
120
|
+
> = z.object({
|
|
121
|
+
field: Field$outboundSchema.optional(),
|
|
122
|
+
op: Op$outboundSchema.optional(),
|
|
123
|
+
values: z.array(z.string()).optional(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export function filterToJSON(filter: Filter): string {
|
|
127
|
+
return JSON.stringify(Filter$outboundSchema.parse(filter));
|
|
128
|
+
}
|
|
129
|
+
export function filterFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<Filter, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => Filter$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'Filter' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -23,6 +23,7 @@ export * from "./createprojectresponse.js";
|
|
|
23
23
|
export * from "./createskillrequest.js";
|
|
24
24
|
export * from "./createskillresponse.js";
|
|
25
25
|
export * from "./datapart.js";
|
|
26
|
+
export * from "./datapoint.js";
|
|
26
27
|
export * from "./deletefileresponse.js";
|
|
27
28
|
export * from "./deleteprojectresponse.js";
|
|
28
29
|
export * from "./deleteskillresponse.js";
|
|
@@ -39,6 +40,7 @@ export * from "./fallbackconfig.js";
|
|
|
39
40
|
export * from "./file.js";
|
|
40
41
|
export * from "./filecontentpartschema.js";
|
|
41
42
|
export * from "./filepart.js";
|
|
43
|
+
export * from "./filter.js";
|
|
42
44
|
export * from "./getagentresponse.js";
|
|
43
45
|
export * from "./getfilecontentresponse.js";
|
|
44
46
|
export * from "./getfileresponse.js";
|
|
@@ -70,6 +72,8 @@ export * from "./publicschedule.js";
|
|
|
70
72
|
export * from "./publicscheduleerrordetail.js";
|
|
71
73
|
export * from "./publicschedulepayload.js";
|
|
72
74
|
export * from "./publicusage.js";
|
|
75
|
+
export * from "./queryreportrequest.js";
|
|
76
|
+
export * from "./queryreportresponse.js";
|
|
73
77
|
export * from "./reasoning.js";
|
|
74
78
|
export * from "./reasoningparam.js";
|
|
75
79
|
export * from "./reasoningpart.js";
|
|
@@ -82,6 +86,7 @@ export * from "./responseerror.js";
|
|
|
82
86
|
export * from "./responseexecutionlimits.js";
|
|
83
87
|
export * from "./responsefailedevent.js";
|
|
84
88
|
export * from "./responseidentity.js";
|
|
89
|
+
export * from "./responsemeta.js";
|
|
85
90
|
export * from "./responseretryconfig.js";
|
|
86
91
|
export * from "./responsestartedevent.js";
|
|
87
92
|
export * from "./responsestreamingevent.js";
|
|
@@ -109,6 +114,7 @@ export * from "./toolresultpart.js";
|
|
|
109
114
|
export * from "./toolreviewdoneevent.js";
|
|
110
115
|
export * from "./toolreviewrequestedevent.js";
|
|
111
116
|
export * from "./toolstartedevent.js";
|
|
117
|
+
export * from "./totals.js";
|
|
112
118
|
export * from "./updatefilerequest.js";
|
|
113
119
|
export * from "./updatefileresponse.js";
|
|
114
120
|
export * from "./updateprojectrequest.js";
|
|
@@ -10,8 +10,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { Project, Project$inboundSchema } from "./project.js";
|
|
11
11
|
|
|
12
12
|
export type ListProjectsResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
13
16
|
object?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Page of projects, ordered newest first.
|
|
19
|
+
*/
|
|
14
20
|
data?: Array<Project> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more projects are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
15
27
|
hasMore?: boolean | undefined;
|
|
16
28
|
};
|
|
17
29
|
|
|
@@ -10,8 +10,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { Skill, Skill$inboundSchema } from "./skill.js";
|
|
11
11
|
|
|
12
12
|
export type ListSkillsResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
13
16
|
object?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Page of skills, ordered newest first.
|
|
19
|
+
*/
|
|
14
20
|
data?: Array<Skill> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more skills are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
15
27
|
hasMore?: boolean | undefined;
|
|
16
28
|
};
|
|
17
29
|
|
|
@@ -9,16 +9,57 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type Project = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique project identifier assigned by ORQ. Use this value in
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* retrieve, update, and delete requests.
|
|
17
|
+
*/
|
|
12
18
|
projectId?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Human-readable project name.
|
|
21
|
+
*/
|
|
13
22
|
name?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Stable project key generated from the name and used by internal
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* workspace navigation.
|
|
28
|
+
*/
|
|
14
29
|
key?: string | undefined;
|
|
15
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Whether the project is archived and hidden from normal active
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* project lists.
|
|
35
|
+
*/
|
|
16
36
|
isArchived?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Whether this is the workspace default project.
|
|
39
|
+
*/
|
|
17
40
|
isDefault?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Team identifiers associated with the project for access and
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* organization.
|
|
46
|
+
*/
|
|
18
47
|
teams?: Array<string> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Time when the project was created.
|
|
50
|
+
*/
|
|
19
51
|
createdAt?: Date | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Time when the project was last updated.
|
|
54
|
+
*/
|
|
20
55
|
updatedAt?: Date | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* User ID that created the project.
|
|
58
|
+
*/
|
|
21
59
|
createdById?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* User ID that last updated the project.
|
|
62
|
+
*/
|
|
22
63
|
updatedById?: string | undefined;
|
|
23
64
|
};
|
|
24
65
|
|
|
@@ -28,7 +69,6 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
|
28
69
|
project_id: z.string().optional(),
|
|
29
70
|
name: z.string().optional(),
|
|
30
71
|
key: z.string().optional(),
|
|
31
|
-
workspace_id: z.string().optional(),
|
|
32
72
|
is_archived: z.boolean().optional(),
|
|
33
73
|
is_default: z.boolean().optional(),
|
|
34
74
|
teams: z.array(z.string()).optional(),
|
|
@@ -43,7 +83,6 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
|
43
83
|
}).transform((v) => {
|
|
44
84
|
return remap$(v, {
|
|
45
85
|
"project_id": "projectId",
|
|
46
|
-
"workspace_id": "workspaceId",
|
|
47
86
|
"is_archived": "isArchived",
|
|
48
87
|
"is_default": "isDefault",
|
|
49
88
|
"created_at": "createdAt",
|