@orq-ai/node 4.16.0-rc.16 → 4.16.0-rc.18

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.
Files changed (129) hide show
  1. package/README.md +43 -38
  2. package/funcs/responsesCompact.d.ts +18 -0
  3. package/funcs/responsesCompact.d.ts.map +1 -0
  4. package/funcs/responsesCompact.js +119 -0
  5. package/funcs/responsesCompact.js.map +1 -0
  6. package/funcs/workspaceSecurityAddIPRange.js +1 -1
  7. package/funcs/workspaceSecurityAddIPRange.js.map +1 -1
  8. package/funcs/workspaceSecurityCreateDomain.js +1 -1
  9. package/funcs/workspaceSecurityCreateDomain.js.map +1 -1
  10. package/funcs/workspaceSecurityDeleteDomain.js +1 -1
  11. package/funcs/workspaceSecurityDeleteDomain.js.map +1 -1
  12. package/funcs/workspaceSecurityDeleteIPRange.js +1 -1
  13. package/funcs/workspaceSecurityDeleteIPRange.js.map +1 -1
  14. package/funcs/workspaceSecurityGetIPAllowlist.js +1 -1
  15. package/funcs/workspaceSecurityGetIPAllowlist.js.map +1 -1
  16. package/funcs/workspaceSecurityListDomains.js +1 -1
  17. package/funcs/workspaceSecurityListDomains.js.map +1 -1
  18. package/funcs/workspaceSecurityUpdateIPAllowlist.js +1 -1
  19. package/funcs/workspaceSecurityUpdateIPAllowlist.js.map +1 -1
  20. package/funcs/workspaceSecurityVerifyDomain.js +1 -1
  21. package/funcs/workspaceSecurityVerifyDomain.js.map +1 -1
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +3 -3
  24. package/lib/config.js +3 -3
  25. package/models/components/index.d.ts +1 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/publiccompactionitem.d.ts +42 -0
  30. package/models/components/publiccompactionitem.d.ts.map +1 -0
  31. package/models/components/publiccompactionitem.js +68 -0
  32. package/models/components/publiccompactionitem.js.map +1 -0
  33. package/models/components/querytelemetryrequest.d.ts +8 -0
  34. package/models/components/querytelemetryrequest.d.ts.map +1 -1
  35. package/models/components/querytelemetryrequest.js +4 -0
  36. package/models/components/querytelemetryrequest.js.map +1 -1
  37. package/models/components/reasoningpart.js +1 -1
  38. package/models/errors/compactresponse.d.ts +67 -0
  39. package/models/errors/compactresponse.d.ts.map +1 -0
  40. package/models/errors/compactresponse.js +127 -0
  41. package/models/errors/compactresponse.js.map +1 -0
  42. package/models/errors/index.d.ts +1 -0
  43. package/models/errors/index.d.ts.map +1 -1
  44. package/models/errors/index.js +1 -0
  45. package/models/errors/index.js.map +1 -1
  46. package/models/operations/compactresponse.d.ts +149 -0
  47. package/models/operations/compactresponse.d.ts.map +1 -0
  48. package/models/operations/compactresponse.js +130 -0
  49. package/models/operations/compactresponse.js.map +1 -0
  50. package/models/operations/createannotation.d.ts +10 -10
  51. package/models/operations/createannotation.d.ts.map +1 -1
  52. package/models/operations/createannotation.js +10 -11
  53. package/models/operations/createannotation.js.map +1 -1
  54. package/models/operations/createembedding.d.ts +4 -4
  55. package/models/operations/createembedding.d.ts.map +1 -1
  56. package/models/operations/createembedding.js +5 -5
  57. package/models/operations/createembedding.js.map +1 -1
  58. package/models/operations/createrouterresponse.d.ts +8 -8
  59. package/models/operations/createrouterresponse.d.ts.map +1 -1
  60. package/models/operations/createrouterresponse.js +7 -9
  61. package/models/operations/createrouterresponse.js.map +1 -1
  62. package/models/operations/createtool.js +4 -4
  63. package/models/operations/deleteannotation.d.ts +2 -2
  64. package/models/operations/deleteannotation.d.ts.map +1 -1
  65. package/models/operations/deleteannotation.js +1 -2
  66. package/models/operations/deleteannotation.js.map +1 -1
  67. package/models/operations/getalltools.js +4 -4
  68. package/models/operations/getv2humanevalsets.js +2 -2
  69. package/models/operations/getv2humanevalsetsid.js +2 -2
  70. package/models/operations/index.d.ts +1 -0
  71. package/models/operations/index.d.ts.map +1 -1
  72. package/models/operations/index.js +1 -0
  73. package/models/operations/index.js.map +1 -1
  74. package/models/operations/patchv2humanevalsetsid.js +2 -2
  75. package/models/operations/postv2feedback.d.ts +7 -7
  76. package/models/operations/postv2feedback.d.ts.map +1 -1
  77. package/models/operations/postv2feedback.js +9 -9
  78. package/models/operations/postv2feedback.js.map +1 -1
  79. package/models/operations/postv2feedbackevaluation.js +4 -4
  80. package/models/operations/postv2humanevalsets.js +2 -2
  81. package/models/operations/retrievetool.js +4 -4
  82. package/models/operations/runagent.js +1 -1
  83. package/models/operations/streamrunagent.js +1 -1
  84. package/models/operations/updatetool.js +4 -4
  85. package/package.json +6 -6
  86. package/sdk/responses.d.ts +7 -0
  87. package/sdk/responses.d.ts.map +1 -1
  88. package/sdk/responses.js +10 -0
  89. package/sdk/responses.js.map +1 -1
  90. package/sdk/sdk.d.ts +4 -4
  91. package/sdk/sdk.d.ts.map +1 -1
  92. package/sdk/sdk.js +6 -6
  93. package/sdk/sdk.js.map +1 -1
  94. package/src/funcs/responsesCompact.ts +183 -0
  95. package/src/funcs/workspaceSecurityAddIPRange.ts +3 -3
  96. package/src/funcs/workspaceSecurityCreateDomain.ts +1 -1
  97. package/src/funcs/workspaceSecurityDeleteDomain.ts +1 -1
  98. package/src/funcs/workspaceSecurityDeleteIPRange.ts +1 -1
  99. package/src/funcs/workspaceSecurityGetIPAllowlist.ts +3 -1
  100. package/src/funcs/workspaceSecurityListDomains.ts +1 -1
  101. package/src/funcs/workspaceSecurityUpdateIPAllowlist.ts +3 -1
  102. package/src/funcs/workspaceSecurityVerifyDomain.ts +3 -3
  103. package/src/lib/config.ts +3 -3
  104. package/src/models/components/index.ts +1 -0
  105. package/src/models/components/publiccompactionitem.ts +79 -0
  106. package/src/models/components/querytelemetryrequest.ts +12 -0
  107. package/src/models/components/reasoningpart.ts +1 -1
  108. package/src/models/errors/compactresponse.ts +155 -0
  109. package/src/models/errors/index.ts +1 -0
  110. package/src/models/operations/compactresponse.ts +244 -0
  111. package/src/models/operations/createannotation.ts +32 -19
  112. package/src/models/operations/createembedding.ts +11 -7
  113. package/src/models/operations/createrouterresponse.ts +18 -12
  114. package/src/models/operations/createtool.ts +4 -4
  115. package/src/models/operations/deleteannotation.ts +3 -4
  116. package/src/models/operations/getalltools.ts +4 -4
  117. package/src/models/operations/getv2humanevalsets.ts +2 -2
  118. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  119. package/src/models/operations/index.ts +1 -0
  120. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  121. package/src/models/operations/postv2feedback.ts +14 -18
  122. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  123. package/src/models/operations/postv2humanevalsets.ts +2 -2
  124. package/src/models/operations/retrievetool.ts +4 -4
  125. package/src/models/operations/runagent.ts +1 -1
  126. package/src/models/operations/streamrunagent.ts +1 -1
  127. package/src/models/operations/updatetool.ts +4 -4
  128. package/src/sdk/responses.ts +18 -0
  129. package/src/sdk/sdk.ts +10 -10
@@ -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 AnnotationsValue = string | number | boolean | Array<string>;
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 Value = string | number | boolean | Array<string>;
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?: CreateAnnotationRequestBody | undefined;
68
+ requestBody: CreateAnnotationRequestBody;
65
69
  };
66
70
 
67
71
  /** @internal */
68
- export type AnnotationsValue$Outbound =
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 AnnotationsValue$outboundSchema: z.ZodType<
76
- AnnotationsValue$Outbound,
79
+ export const CreateAnnotationAnnotationsValue$outboundSchema: z.ZodType<
80
+ CreateAnnotationAnnotationsValue$Outbound,
77
81
  z.ZodTypeDef,
78
- AnnotationsValue
82
+ CreateAnnotationAnnotationsValue
79
83
  > = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
80
84
 
81
- export function annotationsValueToJSON(
82
- annotationsValue: AnnotationsValue,
85
+ export function createAnnotationAnnotationsValueToJSON(
86
+ createAnnotationAnnotationsValue: CreateAnnotationAnnotationsValue,
83
87
  ): string {
84
88
  return JSON.stringify(
85
- AnnotationsValue$outboundSchema.parse(annotationsValue),
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 Value$Outbound = string | number | boolean | Array<string>;
122
+ export type AnnotationsValue$Outbound =
123
+ | string
124
+ | number
125
+ | boolean
126
+ | Array<string>;
117
127
 
118
128
  /** @internal */
119
- export const Value$outboundSchema: z.ZodType<
120
- Value$Outbound,
129
+ export const AnnotationsValue$outboundSchema: z.ZodType<
130
+ AnnotationsValue$Outbound,
121
131
  z.ZodTypeDef,
122
- Value
132
+ AnnotationsValue
123
133
  > = z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]);
124
134
 
125
- export function valueToJSON(value: Value): string {
126
- return JSON.stringify(Value$outboundSchema.parse(value));
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?: CreateAnnotationRequestBody$Outbound | undefined;
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 Input2 = string | Array<number>;
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 Input2$Outbound = string | Array<number>;
104
+ export type CreateEmbeddingInput2$Outbound = string | Array<number>;
105
105
 
106
106
  /** @internal */
107
- export const Input2$outboundSchema: z.ZodType<
108
- Input2$Outbound,
107
+ export const CreateEmbeddingInput2$outboundSchema: z.ZodType<
108
+ CreateEmbeddingInput2$Outbound,
109
109
  z.ZodTypeDef,
110
- Input2
110
+ CreateEmbeddingInput2
111
111
  > = z.union([z.string(), z.array(z.number().int())]);
112
112
 
113
- export function input2ToJSON(input2: Input2): string {
114
- return JSON.stringify(Input2$outboundSchema.parse(input2));
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 InputRole = {
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 InputRole = ClosedEnum<typeof InputRole>;
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 InputType = {
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 InputType = ClosedEnum<typeof InputType>;
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?: InputRole | undefined;
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?: InputType | undefined;
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 InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
1476
- .nativeEnum(InputRole);
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 InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
1484
- .nativeEnum(InputType);
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: InputRole$outboundSchema.optional(),
1531
+ role: CreateRouterResponseInputRole$outboundSchema.optional(),
1526
1532
  status: InputStatus$outboundSchema.optional(),
1527
- type: InputType$outboundSchema.optional(),
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("tool_01M37EHKZKCFXN0X7ZQS85VCMF"),
1578
+ _id: z.string().default("tool_01M3BR6RN4Y0D0B9JH12CRS6S4"),
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("tool_01M37EHKZJ1GYV2RJ54033C0FC"),
1764
+ _id: z.string().default("tool_01M3BR6RN335XHS85BDAGMTZ8Y"),
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("tool_01M37EHKZHPBPJW01QBVV5Y29A"),
1857
+ _id: z.string().default("tool_01M3BR6RN3T8R7D0XD8HAHH18F"),
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("tool_01M37EHKZH6241YJ363M11GG96"),
1958
+ _id: z.string().default("tool_01M3BR6RN29PGDYV7N9D0N2VMA"),
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?: DeleteAnnotationRequestBody | undefined;
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?: DeleteAnnotationRequestBody$Outbound | undefined;
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",
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
639
639
  z.ZodTypeDef,
640
640
  unknown
641
641
  > = z.object({
642
- _id: z.string().default("tool_01M37EHKZDK9D4BWDAER0J2GN6"),
642
+ _id: z.string().default("tool_01M3BR6RMZKPWYME2CADWYJGSG"),
643
643
  path: z.string(),
644
644
  key: z.string(),
645
645
  display_name: z.string().optional(),
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
821
821
  z.ZodTypeDef,
822
822
  unknown
823
823
  > = z.object({
824
- _id: z.string().default("tool_01M37EHKZC1VS8SJ3NE37Z7QK4"),
824
+ _id: z.string().default("tool_01M3BR6RMYQASWNJBE65V04C3N"),
825
825
  path: z.string(),
826
826
  key: z.string(),
827
827
  display_name: z.string().optional(),
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
914
914
  z.ZodTypeDef,
915
915
  unknown
916
916
  > = z.object({
917
- _id: z.string().default("tool_01M37EHKZB03QCWX9BA6D3VZVP"),
917
+ _id: z.string().default("tool_01M3BR6RMXCS2NWKPG32AT7WYY"),
918
918
  path: z.string(),
919
919
  key: z.string(),
920
920
  display_name: z.string().optional(),
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1012
1012
  z.ZodTypeDef,
1013
1013
  unknown
1014
1014
  > = z.object({
1015
- _id: z.string().default("tool_01M37EHKZA8PWKC67MEXQVAG5K"),
1015
+ _id: z.string().default("tool_01M3BR6RMXQYZ09Q9ZCX54DSE0"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-09-23T15:35:49.666Z",
143
+ "2026-09-25T07:41:40.319Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-09-23T15:35:49.666Z",
188
+ "2026-09-25T07:41:40.319Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-09-23T15:35:49.666Z",
144
+ "2026-09-25T07:41:40.319Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-09-23T15:35:49.666Z",
189
+ "2026-09-25T07:41:40.319Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -23,6 +23,7 @@ export * from "./budgetupdate.js";
23
23
  export * from "./bulkcreatedatapoints.js";
24
24
  export * from "./clearannotationqueue.js";
25
25
  export * from "./cleardataset.js";
26
+ export * from "./compactresponse.js";
26
27
  export * from "./createagentrequest.js";
27
28
  export * from "./createagentresponserequest.js";
28
29
  export * from "./createagentschedule.js";
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-09-23T15:35:49.666Z",
321
+ "2026-09-25T07:41:40.319Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-09-23T15:35:49.666Z",
367
+ "2026-09-25T07:41:40.319Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),