@orq-ai/node 4.16.6 → 4.16.8
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 +1 -1
- 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/piiredactionconfig.ts +3 -2
- package/packages/orq-rc/src/models/components/piiredactionplugin.ts +1 -1
- 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/searchweb.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,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
|
+
}
|
|
@@ -22,10 +22,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
22
22
|
*/
|
|
23
23
|
export type PiiRedactionConfig = {
|
|
24
24
|
/**
|
|
25
|
-
* Detector language.
|
|
25
|
+
* Detector language. Accepts "auto" to detect the language per request; the
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
|
-
*
|
|
28
|
+
* concrete languages come from GET /v2/pii/capabilities. Omitting the field
|
|
29
|
+
* defaults to "auto". The valid entity catalog depends on this value.
|
|
29
30
|
*/
|
|
30
31
|
language?: string | undefined;
|
|
31
32
|
/**
|
|
@@ -38,7 +38,7 @@ export type PIIRedactionPlugin = {
|
|
|
38
38
|
*/
|
|
39
39
|
id: Id;
|
|
40
40
|
/**
|
|
41
|
-
* Detector language. Accepts "auto" to detect the language per request; GET /v2/pii/capabilities lists the concrete languages and does not include "auto". Omitting the field
|
|
41
|
+
* Detector language. Accepts "auto" to detect the language per request; GET /v2/pii/capabilities lists the concrete languages and does not include "auto". Omitting the field defaults to "auto".
|
|
42
42
|
*/
|
|
43
43
|
language?: string | undefined;
|
|
44
44
|
/**
|
|
@@ -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_01m4x47bwbr969kfbkd4nys76n"),
|
|
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
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
11
|
+
*/
|
|
12
|
+
export const Display = {
|
|
13
|
+
Summarized: "summarized",
|
|
14
|
+
Omitted: "omitted",
|
|
15
|
+
Updates: "updates",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
19
|
+
*/
|
|
20
|
+
export type Display = ClosedEnum<typeof Display>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The level of thinking to use for the model. Only supported by Google AI.
|
|
24
|
+
*/
|
|
25
|
+
export const ThinkingParamThinkingLevel = {
|
|
26
|
+
Minimal: "minimal",
|
|
27
|
+
Low: "low",
|
|
28
|
+
Medium: "medium",
|
|
29
|
+
High: "high",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* The level of thinking to use for the model. Only supported by Google AI.
|
|
33
|
+
*/
|
|
34
|
+
export type ThinkingParamThinkingLevel = ClosedEnum<
|
|
35
|
+
typeof ThinkingParamThinkingLevel
|
|
36
|
+
>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
|
|
40
|
+
*/
|
|
41
|
+
export const ThinkingParamType = {
|
|
42
|
+
Enabled: "enabled",
|
|
43
|
+
Disabled: "disabled",
|
|
44
|
+
Adaptive: "adaptive",
|
|
45
|
+
BetweenTools: "between_tools",
|
|
46
|
+
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
|
|
49
|
+
*/
|
|
50
|
+
export type ThinkingParamType = ClosedEnum<typeof ThinkingParamType>;
|
|
51
|
+
|
|
52
|
+
export type ThinkingParam = {
|
|
53
|
+
/**
|
|
54
|
+
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking where supported. Budget tokens should never exceed the max output tokens parameter. Supported by budget-based models such as Anthropic and Gemini 2.5.
|
|
55
|
+
*/
|
|
56
|
+
budgetTokens: number | null;
|
|
57
|
+
/**
|
|
58
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
59
|
+
*/
|
|
60
|
+
display?: Display | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The level of thinking to use for the model. Only supported by Google AI.
|
|
63
|
+
*/
|
|
64
|
+
thinkingLevel?: ThinkingParamThinkingLevel | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
|
|
67
|
+
*/
|
|
68
|
+
type: ThinkingParamType | null;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const Display$outboundSchema: z.ZodNativeEnum<typeof Display> = z
|
|
73
|
+
.nativeEnum(Display);
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ThinkingParamThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
77
|
+
typeof ThinkingParamThinkingLevel
|
|
78
|
+
> = z.nativeEnum(ThinkingParamThinkingLevel);
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const ThinkingParamType$outboundSchema: z.ZodNativeEnum<
|
|
82
|
+
typeof ThinkingParamType
|
|
83
|
+
> = z.nativeEnum(ThinkingParamType);
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type ThinkingParam$Outbound = {
|
|
87
|
+
budget_tokens: number | null;
|
|
88
|
+
display?: string | undefined;
|
|
89
|
+
thinking_level?: string | undefined;
|
|
90
|
+
type: string | null;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ThinkingParam$outboundSchema: z.ZodType<
|
|
95
|
+
ThinkingParam$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
ThinkingParam
|
|
98
|
+
> = z.object({
|
|
99
|
+
budgetTokens: z.nullable(z.number().int()),
|
|
100
|
+
display: Display$outboundSchema.optional(),
|
|
101
|
+
thinkingLevel: ThinkingParamThinkingLevel$outboundSchema.optional(),
|
|
102
|
+
type: z.nullable(ThinkingParamType$outboundSchema),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
budgetTokens: "budget_tokens",
|
|
106
|
+
thinkingLevel: "thinking_level",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function thinkingParamToJSON(thinkingParam: ThinkingParam): string {
|
|
111
|
+
return JSON.stringify(ThinkingParam$outboundSchema.parse(thinkingParam));
|
|
112
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 {
|
|
8
|
+
ExternalAgentHeader,
|
|
9
|
+
ExternalAgentHeader$Outbound,
|
|
10
|
+
ExternalAgentHeader$outboundSchema,
|
|
11
|
+
} from "./externalagentheader.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateExternalAgentRequest = {
|
|
14
|
+
displayName?: string | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
path?: string | undefined;
|
|
17
|
+
projectId?: string | undefined;
|
|
18
|
+
agentUrl?: string | undefined;
|
|
19
|
+
cardUrl?: string | undefined;
|
|
20
|
+
headers?: { [k: string]: ExternalAgentHeader } | undefined;
|
|
21
|
+
protocolVersion?: string | undefined;
|
|
22
|
+
preferredTransport?: string | undefined;
|
|
23
|
+
clearHeaders?: boolean | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type UpdateExternalAgentRequest$Outbound = {
|
|
28
|
+
display_name?: string | undefined;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
path?: string | undefined;
|
|
31
|
+
project_id?: string | undefined;
|
|
32
|
+
agent_url?: string | undefined;
|
|
33
|
+
card_url?: string | undefined;
|
|
34
|
+
headers?: { [k: string]: ExternalAgentHeader$Outbound } | undefined;
|
|
35
|
+
protocol_version?: string | undefined;
|
|
36
|
+
preferred_transport?: string | undefined;
|
|
37
|
+
clear_headers?: boolean | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const UpdateExternalAgentRequest$outboundSchema: z.ZodType<
|
|
42
|
+
UpdateExternalAgentRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
UpdateExternalAgentRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
displayName: z.string().optional(),
|
|
47
|
+
description: z.string().optional(),
|
|
48
|
+
path: z.string().optional(),
|
|
49
|
+
projectId: z.string().optional(),
|
|
50
|
+
agentUrl: z.string().optional(),
|
|
51
|
+
cardUrl: z.string().optional(),
|
|
52
|
+
headers: z.record(ExternalAgentHeader$outboundSchema).optional(),
|
|
53
|
+
protocolVersion: z.string().optional(),
|
|
54
|
+
preferredTransport: z.string().optional(),
|
|
55
|
+
clearHeaders: z.boolean().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
displayName: "display_name",
|
|
59
|
+
projectId: "project_id",
|
|
60
|
+
agentUrl: "agent_url",
|
|
61
|
+
cardUrl: "card_url",
|
|
62
|
+
protocolVersion: "protocol_version",
|
|
63
|
+
preferredTransport: "preferred_transport",
|
|
64
|
+
clearHeaders: "clear_headers",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export function updateExternalAgentRequestToJSON(
|
|
69
|
+
updateExternalAgentRequest: UpdateExternalAgentRequest,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
UpdateExternalAgentRequest$outboundSchema.parse(updateExternalAgentRequest),
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -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 UpdateExternalAgentResponse = {
|
|
12
|
+
agent?: ExternalAgent | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateExternalAgentResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateExternalAgentResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
agent: ExternalAgent$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateExternalAgentResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateExternalAgentResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateExternalAgentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateExternalAgentResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|