@orq-ai/node 4.15.12 → 4.15.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -37
- package/funcs/feedbackSubmit.d.ts +17 -0
- package/funcs/feedbackSubmit.d.ts.map +1 -0
- package/funcs/feedbackSubmit.js +115 -0
- package/funcs/feedbackSubmit.js.map +1 -0
- package/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/classifyanswer.d.ts +1 -1
- package/models/components/classifyusage.d.ts +2 -2
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/submitfeedbackrequest.d.ts +21 -0
- package/models/components/submitfeedbackrequest.d.ts.map +1 -0
- package/models/components/submitfeedbackrequest.js +57 -0
- package/models/components/submitfeedbackrequest.js.map +1 -0
- package/models/components/submitfeedbackresponse.d.ts +13 -0
- package/models/components/submitfeedbackresponse.d.ts.map +1 -0
- package/models/components/submitfeedbackresponse.js +55 -0
- package/models/components/submitfeedbackresponse.js.map +1 -0
- package/models/operations/createclassify.d.ts +3 -2
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +1 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- 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/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/environmentsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/environmentsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/environmentsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/environmentsList.ts +172 -0
- package/packages/orq-rc/src/funcs/environmentsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/responsesCompact.ts +183 -0
- package/packages/orq-rc/src/funcs/workspaceSecurityAddIPRange.ts +3 -3
- package/packages/orq-rc/src/funcs/workspaceSecurityCreateDomain.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityDeleteDomain.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityDeleteIPRange.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityGetIPAllowlist.ts +3 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityListDomains.ts +1 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +3 -1
- package/packages/orq-rc/src/funcs/workspaceSecurityVerifyDomain.ts +3 -3
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createenvironmentrequest.ts +60 -0
- package/packages/orq-rc/src/models/components/createenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteenvironmentresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/environment.ts +78 -0
- package/packages/orq-rc/src/models/components/getenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +9 -0
- package/packages/orq-rc/src/models/components/listenvironmentsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/publiccompactionitem.ts +79 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +12 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateenvironmentrequest.ts +53 -0
- package/packages/orq-rc/src/models/components/updateenvironmentresponse.ts +32 -0
- package/packages/orq-rc/src/models/errors/compactresponse.ts +155 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/compactresponse.ts +244 -0
- package/packages/orq-rc/src/models/operations/createannotation.ts +32 -19
- package/packages/orq-rc/src/models/operations/createembedding.ts +11 -7
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +18 -12
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +3 -4
- package/packages/orq-rc/src/models/operations/environmentdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/environmentget.ts +36 -0
- package/packages/orq-rc/src/models/operations/environmentlist.ts +50 -0
- package/packages/orq-rc/src/models/operations/environmentupdate.ts +41 -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 +5 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +14 -18
- 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/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/environments.ts +100 -0
- package/packages/orq-rc/src/sdk/responses.ts +18 -0
- package/packages/orq-rc/src/sdk/sdk.ts +16 -10
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/feedback.d.ts +8 -0
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +10 -0
- package/sdk/feedback.js.map +1 -1
- package/src/funcs/feedbackSubmit.ts +162 -0
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifyanswer.ts +1 -1
- package/src/models/components/classifyusage.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/submitfeedbackrequest.ts +48 -0
- package/src/models/components/submitfeedbackresponse.ts +39 -0
- package/src/models/operations/createclassify.ts +4 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- 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/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- 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/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- 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/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/feedback.ts +19 -0
|
@@ -0,0 +1,244 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The role of the message sender (for message items).
|
|
15
|
+
*/
|
|
16
|
+
export const InputRole = {
|
|
17
|
+
User: "user",
|
|
18
|
+
Assistant: "assistant",
|
|
19
|
+
System: "system",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The role of the message sender (for message items).
|
|
23
|
+
*/
|
|
24
|
+
export type InputRole = ClosedEnum<typeof InputRole>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The type of item.
|
|
28
|
+
*/
|
|
29
|
+
export const InputType = {
|
|
30
|
+
Message: "message",
|
|
31
|
+
FunctionCall: "function_call",
|
|
32
|
+
FunctionCallOutput: "function_call_output",
|
|
33
|
+
ItemReference: "item_reference",
|
|
34
|
+
Reasoning: "reasoning",
|
|
35
|
+
CustomToolCall: "custom_tool_call",
|
|
36
|
+
CustomToolCallOutput: "custom_tool_call_output",
|
|
37
|
+
Compaction: "compaction",
|
|
38
|
+
} as const;
|
|
39
|
+
/**
|
|
40
|
+
* The type of item.
|
|
41
|
+
*/
|
|
42
|
+
export type InputType = ClosedEnum<typeof InputType>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An input item. The "type" field determines the item kind.
|
|
46
|
+
*/
|
|
47
|
+
export type Input2 = {
|
|
48
|
+
/**
|
|
49
|
+
* The content of the item.
|
|
50
|
+
*/
|
|
51
|
+
content?: string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The ID of the item.
|
|
54
|
+
*/
|
|
55
|
+
id?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The role of the message sender (for message items).
|
|
58
|
+
*/
|
|
59
|
+
role?: InputRole | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* The type of item.
|
|
62
|
+
*/
|
|
63
|
+
type?: InputType | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Input to compact: a string or an array of input items (messages, files, etc.).
|
|
68
|
+
*/
|
|
69
|
+
export type CompactResponseInput = string | Array<Input2>;
|
|
70
|
+
|
|
71
|
+
export type CompactResponseRequestBody = {
|
|
72
|
+
/**
|
|
73
|
+
* Input to compact: a string or an array of input items (messages, files, etc.).
|
|
74
|
+
*/
|
|
75
|
+
input?: string | Array<Input2> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Custom instructions for the compaction summarization.
|
|
78
|
+
*/
|
|
79
|
+
instructions?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The model to use for compaction in provider/model format (e.g. openai/gpt-4o). Required.
|
|
82
|
+
*/
|
|
83
|
+
model?: string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* The ID of a previous response to continue from.
|
|
86
|
+
*/
|
|
87
|
+
previousResponseId?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Key for prompt caching across requests.
|
|
90
|
+
*/
|
|
91
|
+
promptCacheKey?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Always "response.compaction".
|
|
96
|
+
*/
|
|
97
|
+
export const CompactResponseObject = {
|
|
98
|
+
ResponseCompaction: "response.compaction",
|
|
99
|
+
} as const;
|
|
100
|
+
/**
|
|
101
|
+
* Always "response.compaction".
|
|
102
|
+
*/
|
|
103
|
+
export type CompactResponseObject = ClosedEnum<typeof CompactResponseObject>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Compaction completed successfully.
|
|
107
|
+
*/
|
|
108
|
+
export type CompactResponseResponseBody = {
|
|
109
|
+
/**
|
|
110
|
+
* Unix timestamp (seconds) when the response was created.
|
|
111
|
+
*/
|
|
112
|
+
createdAt: number;
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the compaction response.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
/**
|
|
118
|
+
* Always "response.compaction".
|
|
119
|
+
*/
|
|
120
|
+
object: CompactResponseObject;
|
|
121
|
+
/**
|
|
122
|
+
* The compacted list of output items.
|
|
123
|
+
*/
|
|
124
|
+
output: Array<components.PublicCompactionItem> | null;
|
|
125
|
+
usage: components.PublicUsage;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
|
|
130
|
+
.nativeEnum(InputRole);
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
|
|
134
|
+
.nativeEnum(InputType);
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export type Input2$Outbound = {
|
|
138
|
+
content?: string | undefined;
|
|
139
|
+
id?: string | undefined;
|
|
140
|
+
role?: string | undefined;
|
|
141
|
+
type?: string | undefined;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const Input2$outboundSchema: z.ZodType<
|
|
146
|
+
Input2$Outbound,
|
|
147
|
+
z.ZodTypeDef,
|
|
148
|
+
Input2
|
|
149
|
+
> = z.object({
|
|
150
|
+
content: z.string().optional(),
|
|
151
|
+
id: z.string().optional(),
|
|
152
|
+
role: InputRole$outboundSchema.optional(),
|
|
153
|
+
type: InputType$outboundSchema.optional(),
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export function input2ToJSON(input2: Input2): string {
|
|
157
|
+
return JSON.stringify(Input2$outboundSchema.parse(input2));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** @internal */
|
|
161
|
+
export type CompactResponseInput$Outbound = string | Array<Input2$Outbound>;
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const CompactResponseInput$outboundSchema: z.ZodType<
|
|
165
|
+
CompactResponseInput$Outbound,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
CompactResponseInput
|
|
168
|
+
> = z.union([z.string(), z.array(z.lazy(() => Input2$outboundSchema))]);
|
|
169
|
+
|
|
170
|
+
export function compactResponseInputToJSON(
|
|
171
|
+
compactResponseInput: CompactResponseInput,
|
|
172
|
+
): string {
|
|
173
|
+
return JSON.stringify(
|
|
174
|
+
CompactResponseInput$outboundSchema.parse(compactResponseInput),
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export type CompactResponseRequestBody$Outbound = {
|
|
180
|
+
input?: string | Array<Input2$Outbound> | undefined;
|
|
181
|
+
instructions?: string | undefined;
|
|
182
|
+
model?: string | undefined;
|
|
183
|
+
previous_response_id?: string | undefined;
|
|
184
|
+
prompt_cache_key?: string | undefined;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const CompactResponseRequestBody$outboundSchema: z.ZodType<
|
|
189
|
+
CompactResponseRequestBody$Outbound,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
CompactResponseRequestBody
|
|
192
|
+
> = z.object({
|
|
193
|
+
input: z.union([z.string(), z.array(z.lazy(() => Input2$outboundSchema))])
|
|
194
|
+
.optional(),
|
|
195
|
+
instructions: z.string().optional(),
|
|
196
|
+
model: z.string().optional(),
|
|
197
|
+
previousResponseId: z.string().optional(),
|
|
198
|
+
promptCacheKey: z.string().optional(),
|
|
199
|
+
}).transform((v) => {
|
|
200
|
+
return remap$(v, {
|
|
201
|
+
previousResponseId: "previous_response_id",
|
|
202
|
+
promptCacheKey: "prompt_cache_key",
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
export function compactResponseRequestBodyToJSON(
|
|
207
|
+
compactResponseRequestBody: CompactResponseRequestBody,
|
|
208
|
+
): string {
|
|
209
|
+
return JSON.stringify(
|
|
210
|
+
CompactResponseRequestBody$outboundSchema.parse(compactResponseRequestBody),
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const CompactResponseObject$inboundSchema: z.ZodNativeEnum<
|
|
216
|
+
typeof CompactResponseObject
|
|
217
|
+
> = z.nativeEnum(CompactResponseObject);
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
export const CompactResponseResponseBody$inboundSchema: z.ZodType<
|
|
221
|
+
CompactResponseResponseBody,
|
|
222
|
+
z.ZodTypeDef,
|
|
223
|
+
unknown
|
|
224
|
+
> = z.object({
|
|
225
|
+
created_at: z.number().int(),
|
|
226
|
+
id: z.string(),
|
|
227
|
+
object: CompactResponseObject$inboundSchema,
|
|
228
|
+
output: z.nullable(z.array(components.PublicCompactionItem$inboundSchema)),
|
|
229
|
+
usage: components.PublicUsage$inboundSchema,
|
|
230
|
+
}).transform((v) => {
|
|
231
|
+
return remap$(v, {
|
|
232
|
+
"created_at": "createdAt",
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
export function compactResponseResponseBodyFromJSON(
|
|
237
|
+
jsonString: string,
|
|
238
|
+
): SafeParseResult<CompactResponseResponseBody, SDKValidationError> {
|
|
239
|
+
return safeParse(
|
|
240
|
+
jsonString,
|
|
241
|
+
(x) => CompactResponseResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
242
|
+
`Failed to parse 'CompactResponseResponseBody' from JSON`,
|
|
243
|
+
);
|
|
244
|
+
}
|
|
@@ -8,7 +8,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type CreateAnnotationAnnotationsValue =
|
|
12
|
+
| string
|
|
13
|
+
| number
|
|
14
|
+
| boolean
|
|
15
|
+
| Array<string>;
|
|
12
16
|
|
|
13
17
|
export type Annotations2 = {
|
|
14
18
|
/**
|
|
@@ -28,7 +32,7 @@ export type Annotations2 = {
|
|
|
28
32
|
/**
|
|
29
33
|
* The feedback value. For single-select, provide a string or single-element array. For multi-select, provide an array of strings. For range evaluations, provide a number. For boolean, provide a boolean. For text/correction, provide a string.
|
|
30
34
|
*/
|
|
31
|
-
export type
|
|
35
|
+
export type AnnotationsValue = string | number | boolean | Array<string>;
|
|
32
36
|
|
|
33
37
|
export type Annotations1 = {
|
|
34
38
|
/**
|
|
@@ -61,28 +65,30 @@ export type CreateAnnotationRequest = {
|
|
|
61
65
|
* Unique identifier of the span
|
|
62
66
|
*/
|
|
63
67
|
spanId: string;
|
|
64
|
-
requestBody
|
|
68
|
+
requestBody: CreateAnnotationRequestBody;
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
/** @internal */
|
|
68
|
-
export type
|
|
72
|
+
export type CreateAnnotationAnnotationsValue$Outbound =
|
|
69
73
|
| string
|
|
70
74
|
| number
|
|
71
75
|
| boolean
|
|
72
76
|
| Array<string>;
|
|
73
77
|
|
|
74
78
|
/** @internal */
|
|
75
|
-
export const
|
|
76
|
-
|
|
79
|
+
export const CreateAnnotationAnnotationsValue$outboundSchema: z.ZodType<
|
|
80
|
+
CreateAnnotationAnnotationsValue$Outbound,
|
|
77
81
|
z.ZodTypeDef,
|
|
78
|
-
|
|
82
|
+
CreateAnnotationAnnotationsValue
|
|
79
83
|
> = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
|
|
80
84
|
|
|
81
|
-
export function
|
|
82
|
-
|
|
85
|
+
export function createAnnotationAnnotationsValueToJSON(
|
|
86
|
+
createAnnotationAnnotationsValue: CreateAnnotationAnnotationsValue,
|
|
83
87
|
): string {
|
|
84
88
|
return JSON.stringify(
|
|
85
|
-
|
|
89
|
+
CreateAnnotationAnnotationsValue$outboundSchema.parse(
|
|
90
|
+
createAnnotationAnnotationsValue,
|
|
91
|
+
),
|
|
86
92
|
);
|
|
87
93
|
}
|
|
88
94
|
|
|
@@ -113,17 +119,25 @@ export function annotations2ToJSON(annotations2: Annotations2): string {
|
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
/** @internal */
|
|
116
|
-
export type
|
|
122
|
+
export type AnnotationsValue$Outbound =
|
|
123
|
+
| string
|
|
124
|
+
| number
|
|
125
|
+
| boolean
|
|
126
|
+
| Array<string>;
|
|
117
127
|
|
|
118
128
|
/** @internal */
|
|
119
|
-
export const
|
|
120
|
-
|
|
129
|
+
export const AnnotationsValue$outboundSchema: z.ZodType<
|
|
130
|
+
AnnotationsValue$Outbound,
|
|
121
131
|
z.ZodTypeDef,
|
|
122
|
-
|
|
132
|
+
AnnotationsValue
|
|
123
133
|
> = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
|
|
124
134
|
|
|
125
|
-
export function
|
|
126
|
-
|
|
135
|
+
export function annotationsValueToJSON(
|
|
136
|
+
annotationsValue: AnnotationsValue,
|
|
137
|
+
): string {
|
|
138
|
+
return JSON.stringify(
|
|
139
|
+
AnnotationsValue$outboundSchema.parse(annotationsValue),
|
|
140
|
+
);
|
|
127
141
|
}
|
|
128
142
|
|
|
129
143
|
/** @internal */
|
|
@@ -226,7 +240,7 @@ export function createAnnotationRequestBodyToJSON(
|
|
|
226
240
|
export type CreateAnnotationRequest$Outbound = {
|
|
227
241
|
trace_id: string;
|
|
228
242
|
span_id: string;
|
|
229
|
-
RequestBody
|
|
243
|
+
RequestBody: CreateAnnotationRequestBody$Outbound;
|
|
230
244
|
};
|
|
231
245
|
|
|
232
246
|
/** @internal */
|
|
@@ -237,8 +251,7 @@ export const CreateAnnotationRequest$outboundSchema: z.ZodType<
|
|
|
237
251
|
> = z.object({
|
|
238
252
|
traceId: z.string(),
|
|
239
253
|
spanId: z.string(),
|
|
240
|
-
requestBody: z.lazy(() => CreateAnnotationRequestBody$outboundSchema)
|
|
241
|
-
.optional(),
|
|
254
|
+
requestBody: z.lazy(() => CreateAnnotationRequestBody$outboundSchema),
|
|
242
255
|
}).transform((v) => {
|
|
243
256
|
return remap$(v, {
|
|
244
257
|
traceId: "trace_id",
|
|
@@ -22,7 +22,7 @@ export const EncodingFormat = {
|
|
|
22
22
|
*/
|
|
23
23
|
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type CreateEmbeddingInput2 = string | Array<number>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Input text to embed, encoded as a string or array of tokens.
|
|
@@ -101,17 +101,21 @@ export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
|
101
101
|
> = z.nativeEnum(EncodingFormat);
|
|
102
102
|
|
|
103
103
|
/** @internal */
|
|
104
|
-
export type
|
|
104
|
+
export type CreateEmbeddingInput2$Outbound = string | Array<number>;
|
|
105
105
|
|
|
106
106
|
/** @internal */
|
|
107
|
-
export const
|
|
108
|
-
|
|
107
|
+
export const CreateEmbeddingInput2$outboundSchema: z.ZodType<
|
|
108
|
+
CreateEmbeddingInput2$Outbound,
|
|
109
109
|
z.ZodTypeDef,
|
|
110
|
-
|
|
110
|
+
CreateEmbeddingInput2
|
|
111
111
|
> = z.union([z.string(), z.array(z.number().int())]);
|
|
112
112
|
|
|
113
|
-
export function
|
|
114
|
-
|
|
113
|
+
export function createEmbeddingInput2ToJSON(
|
|
114
|
+
createEmbeddingInput2: CreateEmbeddingInput2,
|
|
115
|
+
): string {
|
|
116
|
+
return JSON.stringify(
|
|
117
|
+
CreateEmbeddingInput2$outboundSchema.parse(createEmbeddingInput2),
|
|
118
|
+
);
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
/** @internal */
|
|
@@ -353,7 +353,7 @@ export type Reasoning = {
|
|
|
353
353
|
/**
|
|
354
354
|
* The role of the message sender (for message items).
|
|
355
355
|
*/
|
|
356
|
-
export const
|
|
356
|
+
export const CreateRouterResponseInputRole = {
|
|
357
357
|
User: "user",
|
|
358
358
|
Assistant: "assistant",
|
|
359
359
|
System: "system",
|
|
@@ -362,7 +362,9 @@ export const InputRole = {
|
|
|
362
362
|
/**
|
|
363
363
|
* The role of the message sender (for message items).
|
|
364
364
|
*/
|
|
365
|
-
export type
|
|
365
|
+
export type CreateRouterResponseInputRole = ClosedEnum<
|
|
366
|
+
typeof CreateRouterResponseInputRole
|
|
367
|
+
>;
|
|
366
368
|
|
|
367
369
|
/**
|
|
368
370
|
* The status of a model-generated input item.
|
|
@@ -380,7 +382,7 @@ export type InputStatus = ClosedEnum<typeof InputStatus>;
|
|
|
380
382
|
/**
|
|
381
383
|
* The type of item.
|
|
382
384
|
*/
|
|
383
|
-
export const
|
|
385
|
+
export const CreateRouterResponseInputType = {
|
|
384
386
|
Message: "message",
|
|
385
387
|
FunctionCall: "function_call",
|
|
386
388
|
FunctionCallOutput: "function_call_output",
|
|
@@ -411,7 +413,9 @@ export const InputType = {
|
|
|
411
413
|
/**
|
|
412
414
|
* The type of item.
|
|
413
415
|
*/
|
|
414
|
-
export type
|
|
416
|
+
export type CreateRouterResponseInputType = ClosedEnum<
|
|
417
|
+
typeof CreateRouterResponseInputType
|
|
418
|
+
>;
|
|
415
419
|
|
|
416
420
|
/**
|
|
417
421
|
* An input item. The "type" field determines the item kind: "message", "function_call", "function_call_output", "item_reference", etc.
|
|
@@ -452,7 +456,7 @@ export type CreateRouterResponseInput2 = {
|
|
|
452
456
|
/**
|
|
453
457
|
* The role of the message sender (for message items).
|
|
454
458
|
*/
|
|
455
|
-
role?:
|
|
459
|
+
role?: CreateRouterResponseInputRole | undefined;
|
|
456
460
|
/**
|
|
457
461
|
* The status of a model-generated input item.
|
|
458
462
|
*/
|
|
@@ -460,7 +464,7 @@ export type CreateRouterResponseInput2 = {
|
|
|
460
464
|
/**
|
|
461
465
|
* The type of item.
|
|
462
466
|
*/
|
|
463
|
-
type?:
|
|
467
|
+
type?: CreateRouterResponseInputType | undefined;
|
|
464
468
|
};
|
|
465
469
|
|
|
466
470
|
/**
|
|
@@ -1472,16 +1476,18 @@ export function reasoningToJSON(reasoning: Reasoning): string {
|
|
|
1472
1476
|
}
|
|
1473
1477
|
|
|
1474
1478
|
/** @internal */
|
|
1475
|
-
export const
|
|
1476
|
-
|
|
1479
|
+
export const CreateRouterResponseInputRole$outboundSchema: z.ZodNativeEnum<
|
|
1480
|
+
typeof CreateRouterResponseInputRole
|
|
1481
|
+
> = z.nativeEnum(CreateRouterResponseInputRole);
|
|
1477
1482
|
|
|
1478
1483
|
/** @internal */
|
|
1479
1484
|
export const InputStatus$outboundSchema: z.ZodNativeEnum<typeof InputStatus> = z
|
|
1480
1485
|
.nativeEnum(InputStatus);
|
|
1481
1486
|
|
|
1482
1487
|
/** @internal */
|
|
1483
|
-
export const
|
|
1484
|
-
|
|
1488
|
+
export const CreateRouterResponseInputType$outboundSchema: z.ZodNativeEnum<
|
|
1489
|
+
typeof CreateRouterResponseInputType
|
|
1490
|
+
> = z.nativeEnum(CreateRouterResponseInputType);
|
|
1485
1491
|
|
|
1486
1492
|
/** @internal */
|
|
1487
1493
|
export type CreateRouterResponseInput2$Outbound = {
|
|
@@ -1522,9 +1528,9 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1522
1528
|
name: z.string().optional(),
|
|
1523
1529
|
output: z.string().optional(),
|
|
1524
1530
|
reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
|
|
1525
|
-
role:
|
|
1531
|
+
role: CreateRouterResponseInputRole$outboundSchema.optional(),
|
|
1526
1532
|
status: InputStatus$outboundSchema.optional(),
|
|
1527
|
-
type:
|
|
1533
|
+
type: CreateRouterResponseInputType$outboundSchema.optional(),
|
|
1528
1534
|
}).transform((v) => {
|
|
1529
1535
|
return remap$(v, {
|
|
1530
1536
|
callId: "call_id",
|
|
@@ -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_01M3CFSBXRW4RZVG6YMNTNFA66"),
|
|
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_01M3CFSBXQ2H8YEHKXXQQDVS3X"),
|
|
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_01M3CFSBXPG06H5933EH5C2E78"),
|
|
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_01M3CFSBXN70XAT8R9Z8YAGDX1"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -30,7 +30,7 @@ export type DeleteAnnotationRequest = {
|
|
|
30
30
|
* Unique identifier of the span
|
|
31
31
|
*/
|
|
32
32
|
spanId: string;
|
|
33
|
-
requestBody
|
|
33
|
+
requestBody: DeleteAnnotationRequestBody;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/** @internal */
|
|
@@ -95,7 +95,7 @@ export function deleteAnnotationRequestBodyToJSON(
|
|
|
95
95
|
export type DeleteAnnotationRequest$Outbound = {
|
|
96
96
|
trace_id: string;
|
|
97
97
|
span_id: string;
|
|
98
|
-
RequestBody
|
|
98
|
+
RequestBody: DeleteAnnotationRequestBody$Outbound;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
/** @internal */
|
|
@@ -106,8 +106,7 @@ export const DeleteAnnotationRequest$outboundSchema: z.ZodType<
|
|
|
106
106
|
> = z.object({
|
|
107
107
|
traceId: z.string(),
|
|
108
108
|
spanId: z.string(),
|
|
109
|
-
requestBody: z.lazy(() => DeleteAnnotationRequestBody$outboundSchema)
|
|
110
|
-
.optional(),
|
|
109
|
+
requestBody: z.lazy(() => DeleteAnnotationRequestBody$outboundSchema),
|
|
111
110
|
}).transform((v) => {
|
|
112
111
|
return remap$(v, {
|
|
113
112
|
traceId: "trace_id",
|
|
@@ -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 EnvironmentDeleteRequest = {
|
|
9
|
+
environmentId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type EnvironmentDeleteRequest$Outbound = {
|
|
14
|
+
environment_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const EnvironmentDeleteRequest$outboundSchema: z.ZodType<
|
|
19
|
+
EnvironmentDeleteRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
EnvironmentDeleteRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
environmentId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
environmentId: "environment_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function environmentDeleteRequestToJSON(
|
|
31
|
+
environmentDeleteRequest: EnvironmentDeleteRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
EnvironmentDeleteRequest$outboundSchema.parse(environmentDeleteRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -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 EnvironmentGetRequest = {
|
|
9
|
+
environmentId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type EnvironmentGetRequest$Outbound = {
|
|
14
|
+
environment_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const EnvironmentGetRequest$outboundSchema: z.ZodType<
|
|
19
|
+
EnvironmentGetRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
EnvironmentGetRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
environmentId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
environmentId: "environment_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function environmentGetRequestToJSON(
|
|
31
|
+
environmentGetRequest: EnvironmentGetRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
EnvironmentGetRequest$outboundSchema.parse(environmentGetRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type EnvironmentListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
projectId?: string | undefined;
|
|
13
|
+
search?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type EnvironmentListRequest$Outbound = {
|
|
18
|
+
limit?: number | undefined;
|
|
19
|
+
starting_after?: string | undefined;
|
|
20
|
+
ending_before?: string | undefined;
|
|
21
|
+
project_id?: string | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const EnvironmentListRequest$outboundSchema: z.ZodType<
|
|
27
|
+
EnvironmentListRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
EnvironmentListRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
limit: z.number().int().optional(),
|
|
32
|
+
startingAfter: z.string().optional(),
|
|
33
|
+
endingBefore: z.string().optional(),
|
|
34
|
+
projectId: z.string().optional(),
|
|
35
|
+
search: z.string().optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
startingAfter: "starting_after",
|
|
39
|
+
endingBefore: "ending_before",
|
|
40
|
+
projectId: "project_id",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function environmentListRequestToJSON(
|
|
45
|
+
environmentListRequest: EnvironmentListRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
EnvironmentListRequest$outboundSchema.parse(environmentListRequest),
|
|
49
|
+
);
|
|
50
|
+
}
|