@orq-ai/node 4.16.0-rc.34 → 4.16.0-rc.35
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/funcs/apiKeysCreate.d.ts +1 -1
- package/funcs/apiKeysCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/aggregatetracesrequest.d.ts +5 -0
- package/models/components/aggregatetracesrequest.d.ts.map +1 -1
- package/models/components/aggregatetracesrequest.js +1 -0
- package/models/components/aggregatetracesrequest.js.map +1 -1
- package/models/components/allprojectsscope.d.ts +8 -0
- package/models/components/allprojectsscope.d.ts.map +1 -0
- package/models/components/allprojectsscope.js +47 -0
- package/models/components/allprojectsscope.js.map +1 -0
- package/models/components/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.js.map +1 -1
- package/models/components/querytelemetryrequest.d.ts +10 -0
- package/models/components/querytelemetryrequest.d.ts.map +1 -1
- package/models/components/querytelemetryrequest.js +4 -0
- package/models/components/querytelemetryrequest.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/requestprojectscope.d.ts +30 -0
- package/models/components/requestprojectscope.d.ts.map +1 -0
- package/models/components/requestprojectscope.js +67 -0
- package/models/components/requestprojectscope.js.map +1 -0
- package/models/components/singleprojectscope.d.ts +12 -0
- package/models/components/singleprojectscope.d.ts.map +1 -0
- package/models/components/{projectscope.js → singleprojectscope.js} +7 -8
- package/models/components/singleprojectscope.js.map +1 -0
- package/models/operations/apikeycreate.d.ts +5 -20
- package/models/operations/apikeycreate.d.ts.map +1 -1
- package/models/operations/apikeycreate.js +5 -12
- package/models/operations/apikeycreate.js.map +1 -1
- package/models/operations/apikeyupdate.d.ts +5 -2
- package/models/operations/apikeyupdate.d.ts.map +1 -1
- package/models/operations/apikeyupdate.js +4 -1
- package/models/operations/apikeyupdate.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/apikeys.d.ts +1 -1
- package/sdk/apikeys.js +1 -1
- package/src/funcs/apiKeysCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/aggregatetracesrequest.ts +6 -0
- package/src/models/components/allprojectsscope.ts +25 -0
- package/src/models/components/index.ts +3 -1
- package/src/models/components/querytelemetryrequest.ts +14 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/requestprojectscope.ts +71 -0
- package/src/models/components/singleprojectscope.ts +36 -0
- package/src/models/operations/apikeycreate.ts +6 -26
- package/src/models/operations/apikeyupdate.ts +6 -3
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/apikeys.ts +1 -1
- package/models/components/projectscope.d.ts +0 -14
- package/models/components/projectscope.d.ts.map +0 -1
- package/models/components/projectscope.js.map +0 -1
- package/src/models/components/projectscope.ts +0 -35
|
@@ -98,6 +98,14 @@ export type QueryTelemetryRequest = {
|
|
|
98
98
|
* caller's token scope.
|
|
99
99
|
*/
|
|
100
100
|
projectId?: string | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Free-text trace search, matched like the trace list search. Only for source `TRACES` with trace aggregate metrics.
|
|
103
|
+
*/
|
|
104
|
+
query?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* OQL trace selection (`fetch traces | ...`), compiled to filters like the OQL trace query. Only for source `TRACES` with trace aggregate metrics; cannot be combined with `filters` or `query`.
|
|
107
|
+
*/
|
|
108
|
+
oql?: string | undefined;
|
|
101
109
|
};
|
|
102
110
|
|
|
103
111
|
/** @internal */
|
|
@@ -142,6 +150,8 @@ export const QueryTelemetryRequest$inboundSchema: z.ZodType<
|
|
|
142
150
|
interval_seconds: z.number().int().optional(),
|
|
143
151
|
selected_range_seconds: z.number().int().optional(),
|
|
144
152
|
project_id: z.string().optional(),
|
|
153
|
+
query: z.string().optional(),
|
|
154
|
+
oql: z.string().optional(),
|
|
145
155
|
}).transform((v) => {
|
|
146
156
|
return remap$(v, {
|
|
147
157
|
"group_by": "groupBy",
|
|
@@ -171,6 +181,8 @@ export type QueryTelemetryRequest$Outbound = {
|
|
|
171
181
|
interval_seconds?: number | undefined;
|
|
172
182
|
selected_range_seconds?: number | undefined;
|
|
173
183
|
project_id?: string | undefined;
|
|
184
|
+
query?: string | undefined;
|
|
185
|
+
oql?: string | undefined;
|
|
174
186
|
};
|
|
175
187
|
|
|
176
188
|
/** @internal */
|
|
@@ -195,6 +207,8 @@ export const QueryTelemetryRequest$outboundSchema: z.ZodType<
|
|
|
195
207
|
intervalSeconds: z.number().int().optional(),
|
|
196
208
|
selectedRangeSeconds: z.number().int().optional(),
|
|
197
209
|
projectId: z.string().optional(),
|
|
210
|
+
query: z.string().optional(),
|
|
211
|
+
oql: z.string().optional(),
|
|
198
212
|
}).transform((v) => {
|
|
199
213
|
return remap$(v, {
|
|
200
214
|
groupBy: "group_by",
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m3sp0zygs3tb5b9sgptv4kdr"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
AllProjectsScope,
|
|
10
|
+
AllProjectsScope$Outbound,
|
|
11
|
+
AllProjectsScope$outboundSchema,
|
|
12
|
+
} from "./allprojectsscope.js";
|
|
13
|
+
import {
|
|
14
|
+
SingleProjectScope,
|
|
15
|
+
SingleProjectScope$Outbound,
|
|
16
|
+
SingleProjectScope$outboundSchema,
|
|
17
|
+
} from "./singleprojectscope.js";
|
|
18
|
+
|
|
19
|
+
export const RequestProjectScopeMode = {
|
|
20
|
+
All: "all",
|
|
21
|
+
Single: "single",
|
|
22
|
+
ProjectScopeModeAll: "PROJECT_SCOPE_MODE_ALL",
|
|
23
|
+
ProjectScopeModeSingle: "PROJECT_SCOPE_MODE_SINGLE",
|
|
24
|
+
} as const;
|
|
25
|
+
export type RequestProjectScopeMode = ClosedEnum<
|
|
26
|
+
typeof RequestProjectScopeMode
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type RequestProjectScope = {
|
|
30
|
+
all?: AllProjectsScope | undefined;
|
|
31
|
+
mode?: RequestProjectScopeMode | undefined;
|
|
32
|
+
projectId?: string | undefined;
|
|
33
|
+
single?: SingleProjectScope | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const RequestProjectScopeMode$outboundSchema: z.ZodNativeEnum<
|
|
38
|
+
typeof RequestProjectScopeMode
|
|
39
|
+
> = z.nativeEnum(RequestProjectScopeMode);
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type RequestProjectScope$Outbound = {
|
|
43
|
+
all?: AllProjectsScope$Outbound | undefined;
|
|
44
|
+
mode?: string | undefined;
|
|
45
|
+
project_id?: string | undefined;
|
|
46
|
+
single?: SingleProjectScope$Outbound | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const RequestProjectScope$outboundSchema: z.ZodType<
|
|
51
|
+
RequestProjectScope$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
RequestProjectScope
|
|
54
|
+
> = z.object({
|
|
55
|
+
all: AllProjectsScope$outboundSchema.optional(),
|
|
56
|
+
mode: RequestProjectScopeMode$outboundSchema.optional(),
|
|
57
|
+
projectId: z.string().optional(),
|
|
58
|
+
single: SingleProjectScope$outboundSchema.optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
projectId: "project_id",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export function requestProjectScopeToJSON(
|
|
66
|
+
requestProjectScope: RequestProjectScope,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
RequestProjectScope$outboundSchema.parse(requestProjectScope),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type SingleProjectScope = {
|
|
9
|
+
projectId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type SingleProjectScope$Outbound = {
|
|
14
|
+
project_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const SingleProjectScope$outboundSchema: z.ZodType<
|
|
19
|
+
SingleProjectScope$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
SingleProjectScope
|
|
22
|
+
> = z.object({
|
|
23
|
+
projectId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
projectId: "project_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function singleProjectScopeToJSON(
|
|
31
|
+
singleProjectScope: SingleProjectScope,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
SingleProjectScope$outboundSchema.parse(singleProjectScope),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -14,24 +14,15 @@ export const PermissionMode = {
|
|
|
14
14
|
All: "all",
|
|
15
15
|
Restricted: "restricted",
|
|
16
16
|
ReadOnly: "read_only",
|
|
17
|
+
PermissionModeAll: "PERMISSION_MODE_ALL",
|
|
18
|
+
PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
|
|
19
|
+
PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
|
|
17
20
|
} as const;
|
|
18
21
|
/**
|
|
19
22
|
* Permission preset; restricted keys hold only the domains granted in access.
|
|
20
23
|
*/
|
|
21
24
|
export type PermissionMode = ClosedEnum<typeof PermissionMode>;
|
|
22
25
|
|
|
23
|
-
/**
|
|
24
|
-
* Origin of the key; router keys are minted for the AI router.
|
|
25
|
-
*/
|
|
26
|
-
export const ApiKeyCreateSource = {
|
|
27
|
-
Workspace: "workspace",
|
|
28
|
-
Router: "router",
|
|
29
|
-
} as const;
|
|
30
|
-
/**
|
|
31
|
-
* Origin of the key; router keys are minted for the AI router.
|
|
32
|
-
*/
|
|
33
|
-
export type ApiKeyCreateSource = ClosedEnum<typeof ApiKeyCreateSource>;
|
|
34
|
-
|
|
35
26
|
export type ApiKeyCreateRequestBody = {
|
|
36
27
|
/**
|
|
37
28
|
* Per-domain access level (none, read or write) for restricted keys; domain ids come from the capability catalog.
|
|
@@ -51,15 +42,11 @@ export type ApiKeyCreateRequestBody = {
|
|
|
51
42
|
* Permission preset; restricted keys hold only the domains granted in access.
|
|
52
43
|
*/
|
|
53
44
|
permissionMode?: PermissionMode | undefined;
|
|
54
|
-
projectScope?: components.
|
|
45
|
+
projectScope?: components.RequestProjectScope | undefined;
|
|
55
46
|
/**
|
|
56
47
|
* Legacy single-project binding; prefer project_scope.
|
|
57
48
|
*/
|
|
58
49
|
projects?: Array<string> | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Origin of the key; router keys are minted for the AI router.
|
|
61
|
-
*/
|
|
62
|
-
source?: ApiKeyCreateSource | undefined;
|
|
63
50
|
};
|
|
64
51
|
|
|
65
52
|
/** @internal */
|
|
@@ -67,11 +54,6 @@ export const PermissionMode$outboundSchema: z.ZodNativeEnum<
|
|
|
67
54
|
typeof PermissionMode
|
|
68
55
|
> = z.nativeEnum(PermissionMode);
|
|
69
56
|
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ApiKeyCreateSource$outboundSchema: z.ZodNativeEnum<
|
|
72
|
-
typeof ApiKeyCreateSource
|
|
73
|
-
> = z.nativeEnum(ApiKeyCreateSource);
|
|
74
|
-
|
|
75
57
|
/** @internal */
|
|
76
58
|
export type ApiKeyCreateRequestBody$Outbound = {
|
|
77
59
|
access?: { [k: string]: string } | undefined;
|
|
@@ -80,9 +62,8 @@ export type ApiKeyCreateRequestBody$Outbound = {
|
|
|
80
62
|
name: string;
|
|
81
63
|
owner?: components.Owner$Outbound | undefined;
|
|
82
64
|
permission_mode?: string | undefined;
|
|
83
|
-
project_scope?: components.
|
|
65
|
+
project_scope?: components.RequestProjectScope$Outbound | undefined;
|
|
84
66
|
projects?: Array<string> | null | undefined;
|
|
85
|
-
source?: string | undefined;
|
|
86
67
|
};
|
|
87
68
|
|
|
88
69
|
/** @internal */
|
|
@@ -97,9 +78,8 @@ export const ApiKeyCreateRequestBody$outboundSchema: z.ZodType<
|
|
|
97
78
|
name: z.string(),
|
|
98
79
|
owner: components.Owner$outboundSchema.optional(),
|
|
99
80
|
permissionMode: PermissionMode$outboundSchema.optional(),
|
|
100
|
-
projectScope: components.
|
|
81
|
+
projectScope: components.RequestProjectScope$outboundSchema.optional(),
|
|
101
82
|
projects: z.nullable(z.array(z.string())).optional(),
|
|
102
|
-
source: ApiKeyCreateSource$outboundSchema.optional(),
|
|
103
83
|
}).transform((v) => {
|
|
104
84
|
return remap$(v, {
|
|
105
85
|
permissionMode: "permission_mode",
|
|
@@ -14,6 +14,9 @@ export const ApiKeyUpdatePermissionMode = {
|
|
|
14
14
|
All: "all",
|
|
15
15
|
Restricted: "restricted",
|
|
16
16
|
ReadOnly: "read_only",
|
|
17
|
+
PermissionModeAll: "PERMISSION_MODE_ALL",
|
|
18
|
+
PermissionModeRestricted: "PERMISSION_MODE_RESTRICTED",
|
|
19
|
+
PermissionModeReadOnly: "PERMISSION_MODE_READ_ONLY",
|
|
17
20
|
} as const;
|
|
18
21
|
/**
|
|
19
22
|
* Permission preset; a restricted key must keep at least one granted domain.
|
|
@@ -53,7 +56,7 @@ export type ApiKeyUpdateRequestBody = {
|
|
|
53
56
|
* Permission preset; a restricted key must keep at least one granted domain.
|
|
54
57
|
*/
|
|
55
58
|
permissionMode?: ApiKeyUpdatePermissionMode | undefined;
|
|
56
|
-
projectScope?: components.
|
|
59
|
+
projectScope?: components.RequestProjectScope | undefined;
|
|
57
60
|
/**
|
|
58
61
|
* Lifecycle status; revoked is terminal.
|
|
59
62
|
*/
|
|
@@ -84,7 +87,7 @@ export type ApiKeyUpdateRequestBody$Outbound = {
|
|
|
84
87
|
constraints?: components.Constraints$Outbound | undefined;
|
|
85
88
|
name?: string | undefined;
|
|
86
89
|
permission_mode?: string | undefined;
|
|
87
|
-
project_scope?: components.
|
|
90
|
+
project_scope?: components.RequestProjectScope$Outbound | undefined;
|
|
88
91
|
status?: string | undefined;
|
|
89
92
|
};
|
|
90
93
|
|
|
@@ -99,7 +102,7 @@ export const ApiKeyUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
99
102
|
constraints: components.Constraints$outboundSchema.optional(),
|
|
100
103
|
name: z.string().optional(),
|
|
101
104
|
permissionMode: ApiKeyUpdatePermissionMode$outboundSchema.optional(),
|
|
102
|
-
projectScope: components.
|
|
105
|
+
projectScope: components.RequestProjectScope$outboundSchema.optional(),
|
|
103
106
|
status: Status$outboundSchema.optional(),
|
|
104
107
|
}).transform((v) => {
|
|
105
108
|
return remap$(v, {
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M3SP100P46KJFT4Q32DK0D4W"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M3SP100PZW58414R5XE9HBXN"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M3SP100PWKSZ2ZFSEFESDZ4E"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M3SP100NKNX8Q34M66GE0EG2"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M3SP100K4Y8TRAGHPVSC752P"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M3SP100KW6NSHEZM9PXD4V27"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M3SP100JJCMJRR9G84RJDTFR"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M3SP100JNAKANS841PZ05C6S"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-09-
|
|
143
|
+
"2026-09-30T17:32:57.755Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-09-
|
|
188
|
+
"2026-09-30T17:32:57.755Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-09-
|
|
144
|
+
"2026-09-30T17:32:57.755Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-09-
|
|
189
|
+
"2026-09-30T17:32:57.755Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-09-
|
|
321
|
+
"2026-09-30T17:32:57.755Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-09-
|
|
367
|
+
"2026-09-30T17:32:57.755Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T17:33:02.900Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T17:33:02.900Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T17:33:02.900Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-30T17:33:02.900Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-09-
|
|
274
|
+
"2026-09-30T17:32:57.755Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-09-
|
|
319
|
+
"2026-09-30T17:32:57.755Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M3SP100XQV3JKQTZ78EDNVF6"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M3SP100XZD7E6QK4VHNR363R"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M3SP100WGQFHEZ63QB3CVZP6"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M3SP100WVVYHE6ZVEMPFD7EA"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M3SP0ZZDWV9XBX6EGJTNG4BE"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M3SP0ZZR8MVV595EVH6WW96N"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M3SP100SCR6H959P7TV4H3JX"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M3SP100RBAKQJQQ058VQJJB3"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M3SP100R3DR61CTPF3SWBTFT"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M3SP100RBPZG8TWV1NMC3P7H"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/apikeys.ts
CHANGED
|
@@ -35,7 +35,7 @@ export class ApiKeys extends ClientSDK {
|
|
|
35
35
|
* Create a new API key
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* Mints
|
|
38
|
+
* Mints an opaque `sk-orq-` API key. Use `project_scope` to bind it to a single project and `permission_mode` with `access` to restrict permissions. A management key with API-key write access can create keys. The legacy `projects` field is also accepted. The raw token is returned once in the `token` field and is never retrievable afterwards. Unknown body fields are rejected.
|
|
39
39
|
*/
|
|
40
40
|
async create(
|
|
41
41
|
request: operations.ApiKeyCreateRequestBody,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
export type ProjectScope = {
|
|
3
|
-
mode: string;
|
|
4
|
-
projectId?: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
/** @internal */
|
|
7
|
-
export type ProjectScope$Outbound = {
|
|
8
|
-
mode: string;
|
|
9
|
-
project_id?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const ProjectScope$outboundSchema: z.ZodType<ProjectScope$Outbound, z.ZodTypeDef, ProjectScope>;
|
|
13
|
-
export declare function projectScopeToJSON(projectScope: ProjectScope): string;
|
|
14
|
-
//# sourceMappingURL=projectscope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectscope.d.ts","sourceRoot":"","sources":["../../src/models/components/projectscope.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAQZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectscope.js","sourceRoot":"","sources":["../../src/models/components/projectscope.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,gDAEC;AA9BD,0CAA4B;AAC5B,2DAA0D;AAa1D,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
|
|
8
|
-
export type ProjectScope = {
|
|
9
|
-
mode: string;
|
|
10
|
-
projectId?: string | undefined;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type ProjectScope$Outbound = {
|
|
15
|
-
mode: string;
|
|
16
|
-
project_id?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const ProjectScope$outboundSchema: z.ZodType<
|
|
21
|
-
ProjectScope$Outbound,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
ProjectScope
|
|
24
|
-
> = z.object({
|
|
25
|
-
mode: z.string(),
|
|
26
|
-
projectId: z.string().optional(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
projectId: "project_id",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export function projectScopeToJSON(projectScope: ProjectScope): string {
|
|
34
|
-
return JSON.stringify(ProjectScope$outboundSchema.parse(projectScope));
|
|
35
|
-
}
|