@orq-ai/node 4.16.5 → 4.16.7
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/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 +6 -6
- package/packages/orq-rc/src/funcs/agentsExternalCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/agentsExternalDelete.ts +169 -0
- package/packages/orq-rc/src/funcs/agentsExternalList.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsExternalRefreshCard.ts +174 -0
- package/packages/orq-rc/src/funcs/agentsExternalRetrieve.ts +168 -0
- package/packages/orq-rc/src/funcs/agentsExternalTestConnection.ts +174 -0
- package/packages/orq-rc/src/funcs/agentsExternalUpdate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/monitorsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/monitorsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/monitorsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/monitorsList.ts +173 -0
- package/packages/orq-rc/src/funcs/monitorsListPresets.ts +144 -0
- package/packages/orq-rc/src/funcs/monitorsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/usersCreate.ts +171 -0
- package/packages/orq-rc/src/funcs/usersDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/usersGet.ts +168 -0
- package/packages/orq-rc/src/funcs/usersList.ts +144 -0
- package/packages/orq-rc/src/funcs/usersUpdate.ts +169 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/autorouterv2config.ts +30 -0
- package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +4 -4
- package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +24 -0
- package/packages/orq-rc/src/models/components/createexternalagentrequest.ts +73 -0
- package/packages/orq-rc/src/models/components/createexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createmonitorrequest.ts +108 -0
- package/packages/orq-rc/src/models/components/createmonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/createusersrequest.ts +40 -0
- package/packages/orq-rc/src/models/components/createusersresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteexternalagentresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deletemonitorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteuserresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/externalagent.ts +107 -0
- package/packages/orq-rc/src/models/components/externalagentheader.ts +55 -0
- package/packages/orq-rc/src/models/components/getexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/getmonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/getuserresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/index.ts +40 -0
- package/packages/orq-rc/src/models/components/listexternalagentsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listmonitorpresetsresponse.ts +40 -0
- package/packages/orq-rc/src/models/components/listmonitorsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listusersresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/monitor.ts +133 -0
- package/packages/orq-rc/src/models/components/monitorpreset.ts +120 -0
- package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +23 -0
- package/packages/orq-rc/src/models/components/monitorwidget.ts +145 -0
- package/packages/orq-rc/src/models/components/monitorwidgetcompute.ts +61 -0
- package/packages/orq-rc/src/models/components/monitorwidgetdisplay.ts +196 -0
- package/packages/orq-rc/src/models/components/monitorwidgetlayout.ts +75 -0
- package/packages/orq-rc/src/models/components/monitorwidgetquery.ts +165 -0
- package/packages/orq-rc/src/models/components/openaicontextmanagement.ts +43 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/refreshexternalagentcardrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/refreshexternalagentcardresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/testexternalagentconnectionrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/testexternalagentconnectionresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/thinkingparam.ts +112 -0
- package/packages/orq-rc/src/models/components/updateexternalagentrequest.ts +74 -0
- package/packages/orq-rc/src/models/components/updateexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updatemonitorrequest.ts +80 -0
- package/packages/orq-rc/src/models/components/updatemonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/updateuserrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updateuserresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/user.ts +90 -0
- package/packages/orq-rc/src/models/components/userinvitationdata.ts +38 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +24 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/externalagentdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/externalagentget.ts +36 -0
- package/packages/orq-rc/src/models/operations/externalagentlist.ts +43 -0
- package/packages/orq-rc/src/models/operations/externalagentrefreshcard.ts +45 -0
- package/packages/orq-rc/src/models/operations/externalagenttestconnection.ts +46 -0
- package/packages/orq-rc/src/models/operations/externalagentupdate.ts +42 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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 +14 -0
- package/packages/orq-rc/src/models/operations/monitordelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/monitorget.ts +39 -0
- package/packages/orq-rc/src/models/operations/monitorlist.ts +84 -0
- package/packages/orq-rc/src/models/operations/monitorupdate.ts +44 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +16 -11
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/usercreate.ts +44 -0
- package/packages/orq-rc/src/models/operations/userdelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/userget.ts +35 -0
- package/packages/orq-rc/src/models/operations/userupdate.ts +44 -0
- package/packages/orq-rc/src/sdk/agents.ts +7 -1
- package/packages/orq-rc/src/sdk/external.ts +136 -0
- package/packages/orq-rc/src/sdk/monitors.ts +116 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/src/sdk/users.ts +98 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- 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
|
@@ -0,0 +1,196 @@
|
|
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Chart style for timeseries widgets.
|
|
14
|
+
*/
|
|
15
|
+
export const MonitorWidgetDisplayVisualization = {
|
|
16
|
+
Lines: "lines",
|
|
17
|
+
Bars: "bars",
|
|
18
|
+
Area: "area",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Chart style for timeseries widgets.
|
|
22
|
+
*/
|
|
23
|
+
export type MonitorWidgetDisplayVisualization = ClosedEnum<
|
|
24
|
+
typeof MonitorWidgetDisplayVisualization
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Unit used for axis and value formatting.
|
|
29
|
+
*/
|
|
30
|
+
export const Unit = {
|
|
31
|
+
Count: "count",
|
|
32
|
+
Cost: "cost",
|
|
33
|
+
Duration: "duration",
|
|
34
|
+
Percent: "percent",
|
|
35
|
+
Bytes: "bytes",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* Unit used for axis and value formatting.
|
|
39
|
+
*/
|
|
40
|
+
export type Unit = ClosedEnum<typeof Unit>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Value ordering for toplist, table and breakdown widgets.
|
|
44
|
+
*/
|
|
45
|
+
export const MonitorWidgetDisplaySort = {
|
|
46
|
+
Desc: "desc",
|
|
47
|
+
Asc: "asc",
|
|
48
|
+
} as const;
|
|
49
|
+
/**
|
|
50
|
+
* Value ordering for toplist, table and breakdown widgets.
|
|
51
|
+
*/
|
|
52
|
+
export type MonitorWidgetDisplaySort = ClosedEnum<
|
|
53
|
+
typeof MonitorWidgetDisplaySort
|
|
54
|
+
>;
|
|
55
|
+
|
|
56
|
+
export type MonitorWidgetDisplay = {
|
|
57
|
+
/**
|
|
58
|
+
* Chart style for timeseries widgets.
|
|
59
|
+
*/
|
|
60
|
+
visualization?: MonitorWidgetDisplayVisualization | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Unit used for axis and value formatting.
|
|
63
|
+
*/
|
|
64
|
+
unit?: Unit | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Value ordering for toplist, table and breakdown widgets.
|
|
67
|
+
*/
|
|
68
|
+
sort?: MonitorWidgetDisplaySort | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* When true, toplist, table and breakdown widgets also show the overall
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* total across all groups for the window.
|
|
74
|
+
*/
|
|
75
|
+
showOverall?: boolean | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Optional threshold line rendered on timeseries widgets.
|
|
78
|
+
*/
|
|
79
|
+
target?: number | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Decimal places used when formatting values.
|
|
82
|
+
*/
|
|
83
|
+
decimals?: number | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* When true, toplist and donut widgets show the combined value of groups
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* outside the configured limit.
|
|
89
|
+
*/
|
|
90
|
+
showOthers?: boolean | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* When true, toplist and donut widget values are shown as a percentage of
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* the overall total.
|
|
96
|
+
*/
|
|
97
|
+
showPercentages?: boolean | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const MonitorWidgetDisplayVisualization$inboundSchema: z.ZodNativeEnum<
|
|
102
|
+
typeof MonitorWidgetDisplayVisualization
|
|
103
|
+
> = z.nativeEnum(MonitorWidgetDisplayVisualization);
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const MonitorWidgetDisplayVisualization$outboundSchema: z.ZodNativeEnum<
|
|
106
|
+
typeof MonitorWidgetDisplayVisualization
|
|
107
|
+
> = MonitorWidgetDisplayVisualization$inboundSchema;
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const Unit$inboundSchema: z.ZodNativeEnum<typeof Unit> = z.nativeEnum(
|
|
111
|
+
Unit,
|
|
112
|
+
);
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const Unit$outboundSchema: z.ZodNativeEnum<typeof Unit> =
|
|
115
|
+
Unit$inboundSchema;
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const MonitorWidgetDisplaySort$inboundSchema: z.ZodNativeEnum<
|
|
119
|
+
typeof MonitorWidgetDisplaySort
|
|
120
|
+
> = z.nativeEnum(MonitorWidgetDisplaySort);
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const MonitorWidgetDisplaySort$outboundSchema: z.ZodNativeEnum<
|
|
123
|
+
typeof MonitorWidgetDisplaySort
|
|
124
|
+
> = MonitorWidgetDisplaySort$inboundSchema;
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const MonitorWidgetDisplay$inboundSchema: z.ZodType<
|
|
128
|
+
MonitorWidgetDisplay,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
unknown
|
|
131
|
+
> = z.object({
|
|
132
|
+
visualization: MonitorWidgetDisplayVisualization$inboundSchema.optional(),
|
|
133
|
+
unit: Unit$inboundSchema.optional(),
|
|
134
|
+
sort: MonitorWidgetDisplaySort$inboundSchema.optional(),
|
|
135
|
+
show_overall: z.boolean().optional(),
|
|
136
|
+
target: z.number().optional(),
|
|
137
|
+
decimals: z.number().int().optional(),
|
|
138
|
+
show_others: z.boolean().optional(),
|
|
139
|
+
show_percentages: z.boolean().optional(),
|
|
140
|
+
}).transform((v) => {
|
|
141
|
+
return remap$(v, {
|
|
142
|
+
"show_overall": "showOverall",
|
|
143
|
+
"show_others": "showOthers",
|
|
144
|
+
"show_percentages": "showPercentages",
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
/** @internal */
|
|
148
|
+
export type MonitorWidgetDisplay$Outbound = {
|
|
149
|
+
visualization?: string | undefined;
|
|
150
|
+
unit?: string | undefined;
|
|
151
|
+
sort?: string | undefined;
|
|
152
|
+
show_overall?: boolean | undefined;
|
|
153
|
+
target?: number | undefined;
|
|
154
|
+
decimals?: number | undefined;
|
|
155
|
+
show_others?: boolean | undefined;
|
|
156
|
+
show_percentages?: boolean | undefined;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const MonitorWidgetDisplay$outboundSchema: z.ZodType<
|
|
161
|
+
MonitorWidgetDisplay$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
MonitorWidgetDisplay
|
|
164
|
+
> = z.object({
|
|
165
|
+
visualization: MonitorWidgetDisplayVisualization$outboundSchema.optional(),
|
|
166
|
+
unit: Unit$outboundSchema.optional(),
|
|
167
|
+
sort: MonitorWidgetDisplaySort$outboundSchema.optional(),
|
|
168
|
+
showOverall: z.boolean().optional(),
|
|
169
|
+
target: z.number().optional(),
|
|
170
|
+
decimals: z.number().int().optional(),
|
|
171
|
+
showOthers: z.boolean().optional(),
|
|
172
|
+
showPercentages: z.boolean().optional(),
|
|
173
|
+
}).transform((v) => {
|
|
174
|
+
return remap$(v, {
|
|
175
|
+
showOverall: "show_overall",
|
|
176
|
+
showOthers: "show_others",
|
|
177
|
+
showPercentages: "show_percentages",
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
export function monitorWidgetDisplayToJSON(
|
|
182
|
+
monitorWidgetDisplay: MonitorWidgetDisplay,
|
|
183
|
+
): string {
|
|
184
|
+
return JSON.stringify(
|
|
185
|
+
MonitorWidgetDisplay$outboundSchema.parse(monitorWidgetDisplay),
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
export function monitorWidgetDisplayFromJSON(
|
|
189
|
+
jsonString: string,
|
|
190
|
+
): SafeParseResult<MonitorWidgetDisplay, SDKValidationError> {
|
|
191
|
+
return safeParse(
|
|
192
|
+
jsonString,
|
|
193
|
+
(x) => MonitorWidgetDisplay$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'MonitorWidgetDisplay' from JSON`,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 MonitorWidgetLayout = {
|
|
11
|
+
/**
|
|
12
|
+
* Column offset in grid units.
|
|
13
|
+
*/
|
|
14
|
+
x: number;
|
|
15
|
+
/**
|
|
16
|
+
* Row offset in grid units.
|
|
17
|
+
*/
|
|
18
|
+
y: number;
|
|
19
|
+
/**
|
|
20
|
+
* Width in grid units.
|
|
21
|
+
*/
|
|
22
|
+
w: number;
|
|
23
|
+
/**
|
|
24
|
+
* Height in grid units.
|
|
25
|
+
*/
|
|
26
|
+
h: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const MonitorWidgetLayout$inboundSchema: z.ZodType<
|
|
31
|
+
MonitorWidgetLayout,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
x: z.number().int(),
|
|
36
|
+
y: z.number().int(),
|
|
37
|
+
w: z.number().int(),
|
|
38
|
+
h: z.number().int(),
|
|
39
|
+
});
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type MonitorWidgetLayout$Outbound = {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
w: number;
|
|
45
|
+
h: number;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const MonitorWidgetLayout$outboundSchema: z.ZodType<
|
|
50
|
+
MonitorWidgetLayout$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
MonitorWidgetLayout
|
|
53
|
+
> = z.object({
|
|
54
|
+
x: z.number().int(),
|
|
55
|
+
y: z.number().int(),
|
|
56
|
+
w: z.number().int(),
|
|
57
|
+
h: z.number().int(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function monitorWidgetLayoutToJSON(
|
|
61
|
+
monitorWidgetLayout: MonitorWidgetLayout,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
MonitorWidgetLayout$outboundSchema.parse(monitorWidgetLayout),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
export function monitorWidgetLayoutFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<MonitorWidgetLayout, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => MonitorWidgetLayout$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'MonitorWidgetLayout' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
MonitorFilter,
|
|
13
|
+
MonitorFilter$inboundSchema,
|
|
14
|
+
MonitorFilter$Outbound,
|
|
15
|
+
MonitorFilter$outboundSchema,
|
|
16
|
+
} from "./monitorfilter.js";
|
|
17
|
+
import {
|
|
18
|
+
MonitorTelemetrySource,
|
|
19
|
+
MonitorTelemetrySource$inboundSchema,
|
|
20
|
+
MonitorTelemetrySource$outboundSchema,
|
|
21
|
+
} from "./monitortelemetrysource.js";
|
|
22
|
+
import {
|
|
23
|
+
MonitorWidgetCompute,
|
|
24
|
+
MonitorWidgetCompute$inboundSchema,
|
|
25
|
+
MonitorWidgetCompute$Outbound,
|
|
26
|
+
MonitorWidgetCompute$outboundSchema,
|
|
27
|
+
} from "./monitorwidgetcompute.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Requested bucket grain for timeseries widgets.
|
|
31
|
+
*/
|
|
32
|
+
export const MonitorWidgetQueryGrain = {
|
|
33
|
+
Auto: "auto",
|
|
34
|
+
Minute: "minute",
|
|
35
|
+
Hour: "hour",
|
|
36
|
+
Day: "day",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* Requested bucket grain for timeseries widgets.
|
|
40
|
+
*/
|
|
41
|
+
export type MonitorWidgetQueryGrain = ClosedEnum<
|
|
42
|
+
typeof MonitorWidgetQueryGrain
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type MonitorWidgetQuery = {
|
|
46
|
+
source?: MonitorTelemetrySource | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Source-owned metric identifier. Static `genai.*` trace metrics are
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* validated when saved; runtime metrics, logs, and raw trace aggregates
|
|
52
|
+
* are validated by the caller-scoped telemetry capability/query service.
|
|
53
|
+
*/
|
|
54
|
+
metric: string;
|
|
55
|
+
/**
|
|
56
|
+
* Source-owned aggregation operation advertised by telemetry capabilities.
|
|
57
|
+
*/
|
|
58
|
+
operation?: string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Reporting dimensions to break down by. Valid dimensions depend on
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* the metric; validated when the monitor is saved.
|
|
64
|
+
*/
|
|
65
|
+
groupBy?: Array<string> | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Reporting filters combined with AND.
|
|
68
|
+
*/
|
|
69
|
+
filters?: Array<MonitorFilter> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Requested bucket grain for timeseries widgets.
|
|
72
|
+
*/
|
|
73
|
+
grain?: MonitorWidgetQueryGrain | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Row cap. Zero uses the reporting default. For toplist widgets this is the top-N group count.
|
|
76
|
+
*/
|
|
77
|
+
limit?: number | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Extra computes for breakdown widgets, rendered as columns after the
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* primary `metric`/`operation`, which drives sorting. They share the
|
|
83
|
+
* query's source, grouping, and filters.
|
|
84
|
+
*/
|
|
85
|
+
additionalComputes?: Array<MonitorWidgetCompute> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const MonitorWidgetQueryGrain$inboundSchema: z.ZodNativeEnum<
|
|
90
|
+
typeof MonitorWidgetQueryGrain
|
|
91
|
+
> = z.nativeEnum(MonitorWidgetQueryGrain);
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const MonitorWidgetQueryGrain$outboundSchema: z.ZodNativeEnum<
|
|
94
|
+
typeof MonitorWidgetQueryGrain
|
|
95
|
+
> = MonitorWidgetQueryGrain$inboundSchema;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const MonitorWidgetQuery$inboundSchema: z.ZodType<
|
|
99
|
+
MonitorWidgetQuery,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
source: MonitorTelemetrySource$inboundSchema.optional(),
|
|
104
|
+
metric: z.string(),
|
|
105
|
+
operation: z.string().optional(),
|
|
106
|
+
group_by: z.array(z.string()).optional(),
|
|
107
|
+
filters: z.array(MonitorFilter$inboundSchema).optional(),
|
|
108
|
+
grain: MonitorWidgetQueryGrain$inboundSchema.optional(),
|
|
109
|
+
limit: z.number().int().optional(),
|
|
110
|
+
additional_computes: z.array(MonitorWidgetCompute$inboundSchema).optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
"group_by": "groupBy",
|
|
114
|
+
"additional_computes": "additionalComputes",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type MonitorWidgetQuery$Outbound = {
|
|
119
|
+
source?: string | undefined;
|
|
120
|
+
metric: string;
|
|
121
|
+
operation?: string | undefined;
|
|
122
|
+
group_by?: Array<string> | undefined;
|
|
123
|
+
filters?: Array<MonitorFilter$Outbound> | undefined;
|
|
124
|
+
grain?: string | undefined;
|
|
125
|
+
limit?: number | undefined;
|
|
126
|
+
additional_computes?: Array<MonitorWidgetCompute$Outbound> | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const MonitorWidgetQuery$outboundSchema: z.ZodType<
|
|
131
|
+
MonitorWidgetQuery$Outbound,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
MonitorWidgetQuery
|
|
134
|
+
> = z.object({
|
|
135
|
+
source: MonitorTelemetrySource$outboundSchema.optional(),
|
|
136
|
+
metric: z.string(),
|
|
137
|
+
operation: z.string().optional(),
|
|
138
|
+
groupBy: z.array(z.string()).optional(),
|
|
139
|
+
filters: z.array(MonitorFilter$outboundSchema).optional(),
|
|
140
|
+
grain: MonitorWidgetQueryGrain$outboundSchema.optional(),
|
|
141
|
+
limit: z.number().int().optional(),
|
|
142
|
+
additionalComputes: z.array(MonitorWidgetCompute$outboundSchema).optional(),
|
|
143
|
+
}).transform((v) => {
|
|
144
|
+
return remap$(v, {
|
|
145
|
+
groupBy: "group_by",
|
|
146
|
+
additionalComputes: "additional_computes",
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
export function monitorWidgetQueryToJSON(
|
|
151
|
+
monitorWidgetQuery: MonitorWidgetQuery,
|
|
152
|
+
): string {
|
|
153
|
+
return JSON.stringify(
|
|
154
|
+
MonitorWidgetQuery$outboundSchema.parse(monitorWidgetQuery),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
export function monitorWidgetQueryFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<MonitorWidgetQuery, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) => MonitorWidgetQuery$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'MonitorWidgetQuery' from JSON`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 OpenAIContextManagement = {
|
|
9
|
+
compactThreshold?: number | undefined;
|
|
10
|
+
providerNative?: boolean | undefined;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type OpenAIContextManagement$Outbound = {
|
|
16
|
+
compact_threshold?: number | undefined;
|
|
17
|
+
provider_native?: boolean | undefined;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const OpenAIContextManagement$outboundSchema: z.ZodType<
|
|
23
|
+
OpenAIContextManagement$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
OpenAIContextManagement
|
|
26
|
+
> = z.object({
|
|
27
|
+
compactThreshold: z.number().int().optional(),
|
|
28
|
+
providerNative: z.boolean().optional(),
|
|
29
|
+
type: z.string(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
compactThreshold: "compact_threshold",
|
|
33
|
+
providerNative: "provider_native",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function openAIContextManagementToJSON(
|
|
38
|
+
openAIContextManagement: OpenAIContextManagement,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
OpenAIContextManagement$outboundSchema.parse(openAIContextManagement),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -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_01m4wk5n95f4f5mw1g7jnpbetz"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type RefreshExternalAgentCardRequest = {};
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type RefreshExternalAgentCardRequest$Outbound = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const RefreshExternalAgentCardRequest$outboundSchema: z.ZodType<
|
|
14
|
+
RefreshExternalAgentCardRequest$Outbound,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
RefreshExternalAgentCardRequest
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function refreshExternalAgentCardRequestToJSON(
|
|
20
|
+
refreshExternalAgentCardRequest: RefreshExternalAgentCardRequest,
|
|
21
|
+
): string {
|
|
22
|
+
return JSON.stringify(
|
|
23
|
+
RefreshExternalAgentCardRequest$outboundSchema.parse(
|
|
24
|
+
refreshExternalAgentCardRequest,
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import { ExternalAgent, ExternalAgent$inboundSchema } from "./externalagent.js";
|
|
10
|
+
|
|
11
|
+
export type RefreshExternalAgentCardResponse = {
|
|
12
|
+
agent?: ExternalAgent | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const RefreshExternalAgentCardResponse$inboundSchema: z.ZodType<
|
|
17
|
+
RefreshExternalAgentCardResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
agent: ExternalAgent$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function refreshExternalAgentCardResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<RefreshExternalAgentCardResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => RefreshExternalAgentCardResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'RefreshExternalAgentCardResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type TestExternalAgentConnectionRequest = {};
|
|
8
|
+
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type TestExternalAgentConnectionRequest$Outbound = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const TestExternalAgentConnectionRequest$outboundSchema: z.ZodType<
|
|
14
|
+
TestExternalAgentConnectionRequest$Outbound,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
TestExternalAgentConnectionRequest
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function testExternalAgentConnectionRequestToJSON(
|
|
20
|
+
testExternalAgentConnectionRequest: TestExternalAgentConnectionRequest,
|
|
21
|
+
): string {
|
|
22
|
+
return JSON.stringify(
|
|
23
|
+
TestExternalAgentConnectionRequest$outboundSchema.parse(
|
|
24
|
+
testExternalAgentConnectionRequest,
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 Card = {};
|
|
11
|
+
|
|
12
|
+
export type TestExternalAgentConnectionResponse = {
|
|
13
|
+
reachable?: boolean | undefined;
|
|
14
|
+
card?: Card | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Card$inboundSchema: z.ZodType<Card, z.ZodTypeDef, unknown> = z
|
|
19
|
+
.object({});
|
|
20
|
+
|
|
21
|
+
export function cardFromJSON(
|
|
22
|
+
jsonString: string,
|
|
23
|
+
): SafeParseResult<Card, SDKValidationError> {
|
|
24
|
+
return safeParse(
|
|
25
|
+
jsonString,
|
|
26
|
+
(x) => Card$inboundSchema.parse(JSON.parse(x)),
|
|
27
|
+
`Failed to parse 'Card' from JSON`,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const TestExternalAgentConnectionResponse$inboundSchema: z.ZodType<
|
|
33
|
+
TestExternalAgentConnectionResponse,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
reachable: z.boolean().optional(),
|
|
38
|
+
card: z.lazy(() => Card$inboundSchema).optional(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function testExternalAgentConnectionResponseFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<TestExternalAgentConnectionResponse, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) =>
|
|
47
|
+
TestExternalAgentConnectionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'TestExternalAgentConnectionResponse' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|