@orq-ai/node 4.7.0-rc.26 → 4.7.0-rc.27

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 (88) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createcontact.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +4 -4
  8. package/models/operations/createdatasource.js +1 -1
  9. package/models/operations/createeval.js +16 -16
  10. package/models/operations/createidentity.js +1 -1
  11. package/models/operations/createimageedit.js +1 -1
  12. package/models/operations/createimageedit.js.map +1 -1
  13. package/models/operations/createimagevariation.js +1 -1
  14. package/models/operations/createimagevariation.js.map +1 -1
  15. package/models/operations/createresponse.d.ts +95 -20
  16. package/models/operations/createresponse.d.ts.map +1 -1
  17. package/models/operations/createresponse.js +69 -20
  18. package/models/operations/createresponse.js.map +1 -1
  19. package/models/operations/createtool.js +6 -6
  20. package/models/operations/getalltools.js +6 -6
  21. package/models/operations/getevals.js +16 -16
  22. package/models/operations/getv2humanevals.js +6 -6
  23. package/models/operations/getv2humanevalsets.js +2 -2
  24. package/models/operations/getv2humanevalsetsid.js +2 -2
  25. package/models/operations/getv2humanevalsid.js +6 -6
  26. package/models/operations/listdatasetdatapoints.js +4 -4
  27. package/models/operations/listdatasets.js +1 -1
  28. package/models/operations/listdatasources.js +1 -1
  29. package/models/operations/listidentities.js +1 -1
  30. package/models/operations/patchv2humanevalsetsid.js +2 -2
  31. package/models/operations/patchv2humanevalsid.js +12 -12
  32. package/models/operations/postv2feedbackevaluation.js +3 -3
  33. package/models/operations/postv2humanevals.js +12 -12
  34. package/models/operations/postv2humanevalsets.js +2 -2
  35. package/models/operations/retrievedatapoint.js +4 -4
  36. package/models/operations/retrievedataset.js +1 -1
  37. package/models/operations/retrievedatasource.js +1 -1
  38. package/models/operations/retrieveidentity.js +1 -1
  39. package/models/operations/retrievetool.js +6 -6
  40. package/models/operations/runagent.js +1 -1
  41. package/models/operations/streamrunagent.js +1 -1
  42. package/models/operations/updatedatapoint.js +4 -4
  43. package/models/operations/updatedataset.js +1 -1
  44. package/models/operations/updatedatasource.js +1 -1
  45. package/models/operations/updateeval.js +16 -16
  46. package/models/operations/updateidentity.js +1 -1
  47. package/models/operations/updatetool.js +7 -7
  48. package/package.json +1 -1
  49. package/src/lib/config.ts +2 -2
  50. package/src/models/components/reasoningpart.ts +1 -1
  51. package/src/models/operations/createcontact.ts +1 -1
  52. package/src/models/operations/createdataset.ts +1 -1
  53. package/src/models/operations/createdatasetitem.ts +4 -4
  54. package/src/models/operations/createdatasource.ts +1 -1
  55. package/src/models/operations/createeval.ts +16 -16
  56. package/src/models/operations/createidentity.ts +1 -1
  57. package/src/models/operations/createimageedit.ts +1 -1
  58. package/src/models/operations/createimagevariation.ts +1 -1
  59. package/src/models/operations/createresponse.ts +180 -40
  60. package/src/models/operations/createtool.ts +6 -6
  61. package/src/models/operations/getalltools.ts +6 -6
  62. package/src/models/operations/getevals.ts +16 -16
  63. package/src/models/operations/getv2humanevals.ts +6 -6
  64. package/src/models/operations/getv2humanevalsets.ts +2 -2
  65. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  66. package/src/models/operations/getv2humanevalsid.ts +6 -6
  67. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  68. package/src/models/operations/listdatasets.ts +1 -1
  69. package/src/models/operations/listdatasources.ts +1 -1
  70. package/src/models/operations/listidentities.ts +1 -1
  71. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  72. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  73. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  74. package/src/models/operations/postv2humanevals.ts +12 -12
  75. package/src/models/operations/postv2humanevalsets.ts +2 -2
  76. package/src/models/operations/retrievedatapoint.ts +4 -4
  77. package/src/models/operations/retrievedataset.ts +1 -1
  78. package/src/models/operations/retrievedatasource.ts +1 -1
  79. package/src/models/operations/retrieveidentity.ts +1 -1
  80. package/src/models/operations/retrievetool.ts +6 -6
  81. package/src/models/operations/runagent.ts +1 -1
  82. package/src/models/operations/streamrunagent.ts +1 -1
  83. package/src/models/operations/updatedatapoint.ts +4 -4
  84. package/src/models/operations/updatedataset.ts +1 -1
  85. package/src/models/operations/updatedatasource.ts +1 -1
  86. package/src/models/operations/updateeval.ts +16 -16
  87. package/src/models/operations/updateidentity.ts +1 -1
  88. package/src/models/operations/updatetool.ts +7 -7
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.7.0-rc.26",
71
+ sdkVersion: "4.7.0-rc.27",
72
72
  genVersion: "2.869.25",
73
- userAgent: "speakeasy-sdk/typescript 4.7.0-rc.26 2.869.25 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.7.0-rc.27 2.869.25 2.0 @orq-ai/node",
74
74
  } as const;
@@ -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("reasoning_01kmw99knz212d75yj5xam2bcx"),
43
+ _id: z.string().default("reasoning_01kmyvyy8ek0hyrmwwt44wbmrf"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-03-29T07:52:33.432Z",
137
+ "2026-03-30T07:57:15.372Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-03-29T07:52:33.432Z",
141
+ "2026-03-30T07:57:15.372Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-03-29T07:52:50.303Z",
2358
+ "2026-03-30T07:57:32.480Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-03-29T07:52:50.303Z",
2403
+ "2026-03-30T07:57:32.480Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-03-29T07:52:50.302Z",
2449
+ "2026-03-30T07:57:32.479Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-03-29T07:52:33.432Z",
2532
+ "2026-03-30T07:57:15.372Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KMW99M9KTZZBB21SSZ03MBCG"),
406
+ _id: z.string().default("01KMYVYYVTXVPVMJ94V63V2BEV"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
2245
2245
  > = z.object({
2246
2246
  _id: z.string(),
2247
2247
  description: z.string(),
2248
- created: z.string().default("2026-03-29T07:52:35.726Z"),
2249
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
2248
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
2249
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
2250
2250
  guardrail_config: z.union([
2251
2251
  z.lazy(() =>
2252
2252
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2394
2394
  .object({
2395
2395
  _id: z.string(),
2396
2396
  description: z.string(),
2397
- created: z.string().default("2026-03-29T07:52:35.726Z"),
2398
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
2397
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
2398
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
2399
2399
  guardrail_config: z.union([
2400
2400
  z.lazy(() =>
2401
2401
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
@@ -3184,8 +3184,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3184
3184
  > = z.object({
3185
3185
  _id: z.string(),
3186
3186
  description: z.string(),
3187
- created: z.string().default("2026-03-29T07:52:35.726Z"),
3188
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
3187
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
3188
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
3189
3189
  guardrail_config: z.union([
3190
3190
  z.lazy(() =>
3191
3191
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -3363,8 +3363,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3363
3363
  > = z.object({
3364
3364
  _id: z.string(),
3365
3365
  description: z.string(),
3366
- created: z.string().default("2026-03-29T07:52:35.726Z"),
3367
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
3366
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
3367
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
3368
3368
  guardrail_config: z.union([
3369
3369
  z.lazy(() =>
3370
3370
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -3504,8 +3504,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
3504
3504
  > = z.object({
3505
3505
  _id: z.string(),
3506
3506
  description: z.string(),
3507
- created: z.string().default("2026-03-29T07:52:35.726Z"),
3508
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
3507
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
3508
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
3509
3509
  guardrail_config: z.union([
3510
3510
  z.lazy(() =>
3511
3511
  CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3641,8 +3641,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
3641
3641
  > = z.object({
3642
3642
  _id: z.string(),
3643
3643
  description: z.string(),
3644
- created: z.string().default("2026-03-29T07:52:35.726Z"),
3645
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
3644
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
3645
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
3646
3646
  guardrail_config: z.union([
3647
3647
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3648
3648
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -3952,8 +3952,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
3952
3952
  > = z.object({
3953
3953
  _id: z.string(),
3954
3954
  description: z.string(),
3955
- created: z.string().default("2026-03-29T07:52:35.726Z"),
3956
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
3955
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
3956
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
3957
3957
  guardrail_config: z.union([
3958
3958
  z.lazy(() =>
3959
3959
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
@@ -4096,8 +4096,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4096
4096
  > = z.object({
4097
4097
  _id: z.string(),
4098
4098
  description: z.string(),
4099
- created: z.string().default("2026-03-29T07:52:35.726Z"),
4100
- updated: z.string().default("2026-03-29T07:52:35.726Z"),
4099
+ created: z.string().default("2026-03-30T07:57:17.785Z"),
4100
+ updated: z.string().default("2026-03-30T07:57:17.785Z"),
4101
4101
  guardrail_config: z.union([
4102
4102
  z.lazy(() =>
4103
4103
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
139
139
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
140
  .optional(),
141
141
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-03-29T07:52:33.432Z",
142
+ "2026-03-30T07:57:15.372Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {
@@ -907,7 +907,7 @@ export const CreateImageEditRequestBody$outboundSchema: z.ZodType<
907
907
  model: z.string(),
908
908
  image: z.any().optional(),
909
909
  prompt: z.string(),
910
- n: z.nullable(z.number().int().default(1)),
910
+ n: z.nullable(z.number().default(1)),
911
911
  size: z.nullable(z.string()).optional(),
912
912
  quality: z.nullable(CreateImageEditQuality$outboundSchema).optional(),
913
913
  responseFormat: CreateImageEditResponseFormat$outboundSchema.optional(),
@@ -925,7 +925,7 @@ export const CreateImageVariationRequestBody$outboundSchema: z.ZodType<
925
925
  > = z.object({
926
926
  image: z.any().optional(),
927
927
  model: z.string(),
928
- n: z.nullable(z.number().int().default(1)),
928
+ n: z.nullable(z.number().default(1)),
929
929
  responseFormat: CreateImageVariationResponseFormat$outboundSchema.default(
930
930
  "url",
931
931
  ),
@@ -801,6 +801,78 @@ export type IncompleteDetails = {
801
801
  reason: Reason;
802
802
  };
803
803
 
804
+ /**
805
+ * The type of summary part
806
+ */
807
+ export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type =
808
+ {
809
+ SummaryText: "summary_text",
810
+ } as const;
811
+ /**
812
+ * The type of summary part
813
+ */
814
+ export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type =
815
+ ClosedEnum<
816
+ typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type
817
+ >;
818
+
819
+ /**
820
+ * A text summary of the reasoning
821
+ */
822
+ export type OutputSummary = {
823
+ /**
824
+ * The type of summary part
825
+ */
826
+ type:
827
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type;
828
+ /**
829
+ * The summary text
830
+ */
831
+ text: string;
832
+ };
833
+
834
+ /**
835
+ * The status of the reasoning item
836
+ */
837
+ export const CreateResponseOutputRouterResponsesResponse200Status = {
838
+ InProgress: "in_progress",
839
+ Completed: "completed",
840
+ Incomplete: "incomplete",
841
+ Failed: "failed",
842
+ } as const;
843
+ /**
844
+ * The status of the reasoning item
845
+ */
846
+ export type CreateResponseOutputRouterResponsesResponse200Status = ClosedEnum<
847
+ typeof CreateResponseOutputRouterResponsesResponse200Status
848
+ >;
849
+
850
+ /**
851
+ * A reasoning output item from the model
852
+ */
853
+ export type Output5 = {
854
+ /**
855
+ * The unique identifier for this reasoning item
856
+ */
857
+ id: string;
858
+ /**
859
+ * The type of output item
860
+ */
861
+ type: "reasoning";
862
+ /**
863
+ * Summary of the reasoning
864
+ */
865
+ summary?: Array<OutputSummary> | undefined;
866
+ /**
867
+ * Encrypted reasoning content
868
+ */
869
+ encryptedContent?: string | null | undefined;
870
+ /**
871
+ * The status of the reasoning item
872
+ */
873
+ status?: CreateResponseOutputRouterResponsesResponse200Status | undefined;
874
+ };
875
+
804
876
  /**
805
877
  * The status of the function call
806
878
  */
@@ -908,7 +980,7 @@ export type CreateResponseOutputStatus = ClosedEnum<
908
980
  /**
909
981
  * The type of web search action
910
982
  */
911
- export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONType =
983
+ export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType =
912
984
  {
913
985
  Search: "search",
914
986
  OpenPage: "open_page",
@@ -917,9 +989,9 @@ export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONType =
917
989
  /**
918
990
  * The type of web search action
919
991
  */
920
- export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONType =
992
+ export type CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType =
921
993
  ClosedEnum<
922
- typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONType
994
+ typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType
923
995
  >;
924
996
 
925
997
  export type Sources = {
@@ -940,7 +1012,8 @@ export type Action = {
940
1012
  /**
941
1013
  * The type of web search action
942
1014
  */
943
- type: CreateResponseOutputRouterResponsesResponse200ApplicationJSONType;
1015
+ type:
1016
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType;
944
1017
  /**
945
1018
  * The search query (for search action)
946
1019
  */
@@ -1060,6 +1133,10 @@ export type Annotations1 = {
1060
1133
  * The title of the cited resource
1061
1134
  */
1062
1135
  title: string;
1136
+ /**
1137
+ * The text of the citation
1138
+ */
1139
+ text?: string | undefined;
1063
1140
  };
1064
1141
 
1065
1142
  /**
@@ -1086,7 +1163,7 @@ export type Content1 = {
1086
1163
  /**
1087
1164
  * Log probabilities of the output tokens if requested
1088
1165
  */
1089
- logprobs?: Array<any> | undefined;
1166
+ logprobs?: Array<any> | null | undefined;
1090
1167
  };
1091
1168
 
1092
1169
  export type OutputContent = Content1 | CreateResponseContentRouterResponses2;
@@ -1117,7 +1194,7 @@ export type Output1 = {
1117
1194
  content?: Array<Content1 | CreateResponseContentRouterResponses2> | undefined;
1118
1195
  };
1119
1196
 
1120
- export type Output = Output1 | Output2 | Output3 | Output4;
1197
+ export type Output = Output1 | Output2 | Output3 | Output4 | Output5;
1121
1198
 
1122
1199
  /**
1123
1200
  * Breakdown of input token usage
@@ -1224,11 +1301,11 @@ export type ToolsRankingOptions = {
1224
1301
  /**
1225
1302
  * The ranking algorithm
1226
1303
  */
1227
- ranker: ToolsRanker;
1304
+ ranker?: ToolsRanker | undefined;
1228
1305
  /**
1229
1306
  * Minimum relevance score
1230
1307
  */
1231
- scoreThreshold: number;
1308
+ scoreThreshold?: number | undefined;
1232
1309
  };
1233
1310
 
1234
1311
  /**
@@ -1246,7 +1323,7 @@ export type CreateResponseTools4 = {
1246
1323
  /**
1247
1324
  * Maximum number of results to return
1248
1325
  */
1249
- maxNumResults: number;
1326
+ maxNumResults?: number | undefined;
1250
1327
  /**
1251
1328
  * Filters to apply to the search
1252
1329
  */
@@ -1337,7 +1414,9 @@ export type CreateResponseTools3 = {
1337
1414
  /**
1338
1415
  * Amount of context to retrieve for each search result
1339
1416
  */
1340
- searchContextSize: CreateResponseToolsRouterResponsesSearchContextSize;
1417
+ searchContextSize?:
1418
+ | CreateResponseToolsRouterResponsesSearchContextSize
1419
+ | undefined;
1341
1420
  /**
1342
1421
  * User location for search localization
1343
1422
  */
@@ -1422,7 +1501,7 @@ export type CreateResponseTools2 = {
1422
1501
  /**
1423
1502
  * Amount of context to retrieve for each search result
1424
1503
  */
1425
- searchContextSize: CreateResponseToolsSearchContextSize;
1504
+ searchContextSize?: CreateResponseToolsSearchContextSize | undefined;
1426
1505
  /**
1427
1506
  * User location for search localization
1428
1507
  */
@@ -1564,7 +1643,7 @@ export type CreateResponseResponseBody = {
1564
1643
  /**
1565
1644
  * The error that occurred, if any
1566
1645
  */
1567
- error: ErrorT | null;
1646
+ error?: ErrorT | null | undefined;
1568
1647
  /**
1569
1648
  * Details about why the response is incomplete
1570
1649
  */
@@ -1580,7 +1659,7 @@ export type CreateResponseResponseBody = {
1580
1659
  /**
1581
1660
  * The list of output items generated by the model
1582
1661
  */
1583
- output: Array<Output1 | Output2 | Output3 | Output4>;
1662
+ output: Array<Output1 | Output2 | Output3 | Output4 | Output5>;
1584
1663
  /**
1585
1664
  * A convenience field with the concatenated text from all text content parts
1586
1665
  */
@@ -1616,7 +1695,7 @@ export type CreateResponseResponseBody = {
1616
1695
  /**
1617
1696
  * Controls how the model handles inputs longer than the maximum token length
1618
1697
  */
1619
- truncation: Truncation | null;
1698
+ truncation?: Truncation | null | undefined;
1620
1699
  /**
1621
1700
  * A unique identifier representing your end-user
1622
1701
  */
@@ -2127,8 +2206,8 @@ export const Ranker$outboundSchema: z.ZodNativeEnum<typeof Ranker> = z
2127
2206
 
2128
2207
  /** @internal */
2129
2208
  export type RankingOptions$Outbound = {
2130
- ranker: string;
2131
- score_threshold: number;
2209
+ ranker?: string | undefined;
2210
+ score_threshold?: number | undefined;
2132
2211
  };
2133
2212
 
2134
2213
  /** @internal */
@@ -2137,8 +2216,8 @@ export const RankingOptions$outboundSchema: z.ZodType<
2137
2216
  z.ZodTypeDef,
2138
2217
  RankingOptions
2139
2218
  > = z.object({
2140
- ranker: Ranker$outboundSchema.default("auto"),
2141
- scoreThreshold: z.number().default(0),
2219
+ ranker: Ranker$outboundSchema.optional(),
2220
+ scoreThreshold: z.number().optional(),
2142
2221
  }).transform((v) => {
2143
2222
  return remap$(v, {
2144
2223
  scoreThreshold: "score_threshold",
@@ -2153,7 +2232,7 @@ export function rankingOptionsToJSON(rankingOptions: RankingOptions): string {
2153
2232
  export type Tools4$Outbound = {
2154
2233
  type: "file_search";
2155
2234
  vector_store_ids?: Array<string> | undefined;
2156
- max_num_results: number;
2235
+ max_num_results?: number | undefined;
2157
2236
  filters?: any | undefined;
2158
2237
  ranking_options?: RankingOptions$Outbound | undefined;
2159
2238
  };
@@ -2166,7 +2245,7 @@ export const Tools4$outboundSchema: z.ZodType<
2166
2245
  > = z.object({
2167
2246
  type: z.literal("file_search"),
2168
2247
  vectorStoreIds: z.array(z.string()).optional(),
2169
- maxNumResults: z.number().int().default(20),
2248
+ maxNumResults: z.number().int().optional(),
2170
2249
  filters: z.any().optional(),
2171
2250
  rankingOptions: z.lazy(() => RankingOptions$outboundSchema).optional(),
2172
2251
  }).transform((v) => {
@@ -2248,7 +2327,7 @@ export function filtersToJSON(filters: Filters): string {
2248
2327
  /** @internal */
2249
2328
  export type Tools3$Outbound = {
2250
2329
  type: "web_search";
2251
- search_context_size: string;
2330
+ search_context_size?: string | undefined;
2252
2331
  user_location?: ToolsUserLocation$Outbound | undefined;
2253
2332
  filters?: Filters$Outbound | null | undefined;
2254
2333
  };
@@ -2260,7 +2339,7 @@ export const Tools3$outboundSchema: z.ZodType<
2260
2339
  Tools3
2261
2340
  > = z.object({
2262
2341
  type: z.literal("web_search"),
2263
- searchContextSize: ToolsSearchContextSize$outboundSchema.default("medium"),
2342
+ searchContextSize: ToolsSearchContextSize$outboundSchema.optional(),
2264
2343
  userLocation: z.lazy(() => ToolsUserLocation$outboundSchema).optional(),
2265
2344
  filters: z.nullable(z.lazy(() => Filters$outboundSchema)).optional(),
2266
2345
  }).transform((v) => {
@@ -2315,7 +2394,7 @@ export function userLocationToJSON(userLocation: UserLocation): string {
2315
2394
  export type Tools2$Outbound = {
2316
2395
  type: "web_search_preview";
2317
2396
  domains?: Array<string> | undefined;
2318
- search_context_size: string;
2397
+ search_context_size?: string | undefined;
2319
2398
  user_location?: UserLocation$Outbound | undefined;
2320
2399
  };
2321
2400
 
@@ -2327,7 +2406,7 @@ export const Tools2$outboundSchema: z.ZodType<
2327
2406
  > = z.object({
2328
2407
  type: z.literal("web_search_preview"),
2329
2408
  domains: z.array(z.string()).optional(),
2330
- searchContextSize: SearchContextSize$outboundSchema.default("medium"),
2409
+ searchContextSize: SearchContextSize$outboundSchema.optional(),
2331
2410
  userLocation: z.lazy(() => UserLocation$outboundSchema).optional(),
2332
2411
  }).transform((v) => {
2333
2412
  return remap$(v, {
@@ -2534,7 +2613,7 @@ export type CreateResponseRequestBody$Outbound = {
2534
2613
  >;
2535
2614
  include?: Array<string> | null | undefined;
2536
2615
  parallel_tool_calls?: boolean | null | undefined;
2537
- store: boolean | null;
2616
+ store?: boolean | null | undefined;
2538
2617
  service_tier?: string | null | undefined;
2539
2618
  tools?:
2540
2619
  | Array<
@@ -2582,7 +2661,7 @@ export const CreateResponseRequestBody$outboundSchema: z.ZodType<
2582
2661
  ]),
2583
2662
  include: z.nullable(z.array(Include$outboundSchema)).optional(),
2584
2663
  parallelToolCalls: z.nullable(z.boolean()).optional(),
2585
- store: z.nullable(z.boolean().default(true)),
2664
+ store: z.nullable(z.boolean()).optional(),
2586
2665
  serviceTier: z.nullable(ServiceTier$outboundSchema).optional(),
2587
2666
  tools: z.array(
2588
2667
  z.union([
@@ -2724,6 +2803,65 @@ export function incompleteDetailsFromJSON(
2724
2803
  );
2725
2804
  }
2726
2805
 
2806
+ /** @internal */
2807
+ export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type$inboundSchema:
2808
+ z.ZodNativeEnum<
2809
+ typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type
2810
+ > = z.nativeEnum(
2811
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type,
2812
+ );
2813
+
2814
+ /** @internal */
2815
+ export const OutputSummary$inboundSchema: z.ZodType<
2816
+ OutputSummary,
2817
+ z.ZodTypeDef,
2818
+ unknown
2819
+ > = z.object({
2820
+ type:
2821
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBody5Type$inboundSchema,
2822
+ text: z.string(),
2823
+ });
2824
+
2825
+ export function outputSummaryFromJSON(
2826
+ jsonString: string,
2827
+ ): SafeParseResult<OutputSummary, SDKValidationError> {
2828
+ return safeParse(
2829
+ jsonString,
2830
+ (x) => OutputSummary$inboundSchema.parse(JSON.parse(x)),
2831
+ `Failed to parse 'OutputSummary' from JSON`,
2832
+ );
2833
+ }
2834
+
2835
+ /** @internal */
2836
+ export const CreateResponseOutputRouterResponsesResponse200Status$inboundSchema:
2837
+ z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponse200Status> =
2838
+ z.nativeEnum(CreateResponseOutputRouterResponsesResponse200Status);
2839
+
2840
+ /** @internal */
2841
+ export const Output5$inboundSchema: z.ZodType<Output5, z.ZodTypeDef, unknown> =
2842
+ z.object({
2843
+ id: z.string(),
2844
+ type: z.literal("reasoning"),
2845
+ summary: z.array(z.lazy(() => OutputSummary$inboundSchema)).optional(),
2846
+ encrypted_content: z.nullable(z.string()).optional(),
2847
+ status: CreateResponseOutputRouterResponsesResponse200Status$inboundSchema
2848
+ .optional(),
2849
+ }).transform((v) => {
2850
+ return remap$(v, {
2851
+ "encrypted_content": "encryptedContent",
2852
+ });
2853
+ });
2854
+
2855
+ export function output5FromJSON(
2856
+ jsonString: string,
2857
+ ): SafeParseResult<Output5, SDKValidationError> {
2858
+ return safeParse(
2859
+ jsonString,
2860
+ (x) => Output5$inboundSchema.parse(JSON.parse(x)),
2861
+ `Failed to parse 'Output5' from JSON`,
2862
+ );
2863
+ }
2864
+
2727
2865
  /** @internal */
2728
2866
  export const CreateResponseOutputRouterResponsesResponseStatus$inboundSchema:
2729
2867
  z.ZodNativeEnum<typeof CreateResponseOutputRouterResponsesResponseStatus> = z
@@ -2785,11 +2923,11 @@ export const CreateResponseOutputStatus$inboundSchema: z.ZodNativeEnum<
2785
2923
  > = z.nativeEnum(CreateResponseOutputStatus);
2786
2924
 
2787
2925
  /** @internal */
2788
- export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONType$inboundSchema:
2926
+ export const CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType$inboundSchema:
2789
2927
  z.ZodNativeEnum<
2790
- typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONType
2928
+ typeof CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType
2791
2929
  > = z.nativeEnum(
2792
- CreateResponseOutputRouterResponsesResponse200ApplicationJSONType,
2930
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType,
2793
2931
  );
2794
2932
 
2795
2933
  /** @internal */
@@ -2813,7 +2951,7 @@ export function sourcesFromJSON(
2813
2951
  export const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown> = z
2814
2952
  .object({
2815
2953
  type:
2816
- CreateResponseOutputRouterResponsesResponse200ApplicationJSONType$inboundSchema,
2954
+ CreateResponseOutputRouterResponsesResponse200ApplicationJSONResponseBodyType$inboundSchema,
2817
2955
  query: z.string().optional(),
2818
2956
  url: z.string().optional(),
2819
2957
  pattern: z.string().optional(),
@@ -2915,6 +3053,7 @@ export const Annotations1$inboundSchema: z.ZodType<
2915
3053
  end_index: z.number(),
2916
3054
  url: z.string(),
2917
3055
  title: z.string(),
3056
+ text: z.string().optional(),
2918
3057
  }).transform((v) => {
2919
3058
  return remap$(v, {
2920
3059
  "start_index": "startIndex",
@@ -2966,7 +3105,7 @@ export const Content1$inboundSchema: z.ZodType<
2966
3105
  z.lazy(() => Annotations2$inboundSchema),
2967
3106
  ]),
2968
3107
  ).optional(),
2969
- logprobs: z.array(z.any()).optional(),
3108
+ logprobs: z.nullable(z.array(z.any())).optional(),
2970
3109
  });
2971
3110
 
2972
3111
  export function content1FromJSON(
@@ -3031,6 +3170,7 @@ export const Output$inboundSchema: z.ZodType<Output, z.ZodTypeDef, unknown> = z
3031
3170
  z.lazy(() => Output2$inboundSchema),
3032
3171
  z.lazy(() => Output3$inboundSchema),
3033
3172
  z.lazy(() => Output4$inboundSchema),
3173
+ z.lazy(() => Output5$inboundSchema),
3034
3174
  ]);
3035
3175
 
3036
3176
  export function outputFromJSON(
@@ -3218,8 +3358,8 @@ export const ToolsRankingOptions$inboundSchema: z.ZodType<
3218
3358
  z.ZodTypeDef,
3219
3359
  unknown
3220
3360
  > = z.object({
3221
- ranker: ToolsRanker$inboundSchema.default("auto"),
3222
- score_threshold: z.number().default(0),
3361
+ ranker: ToolsRanker$inboundSchema.optional(),
3362
+ score_threshold: z.number().optional(),
3223
3363
  }).transform((v) => {
3224
3364
  return remap$(v, {
3225
3365
  "score_threshold": "scoreThreshold",
@@ -3244,7 +3384,7 @@ export const CreateResponseTools4$inboundSchema: z.ZodType<
3244
3384
  > = z.object({
3245
3385
  type: z.literal("file_search"),
3246
3386
  vector_store_ids: z.array(z.string()).optional(),
3247
- max_num_results: z.number().int().default(20),
3387
+ max_num_results: z.number().int().optional(),
3248
3388
  filters: z.any().optional(),
3249
3389
  ranking_options: z.lazy(() => ToolsRankingOptions$inboundSchema).optional(),
3250
3390
  }).transform((v) => {
@@ -3341,9 +3481,8 @@ export const CreateResponseTools3$inboundSchema: z.ZodType<
3341
3481
  > = z.object({
3342
3482
  type: z.literal("web_search"),
3343
3483
  search_context_size:
3344
- CreateResponseToolsRouterResponsesSearchContextSize$inboundSchema.default(
3345
- "medium",
3346
- ),
3484
+ CreateResponseToolsRouterResponsesSearchContextSize$inboundSchema
3485
+ .optional(),
3347
3486
  user_location: z.lazy(() =>
3348
3487
  CreateResponseToolsRouterResponsesUserLocation$inboundSchema
3349
3488
  ).optional(),
@@ -3413,7 +3552,7 @@ export const CreateResponseTools2$inboundSchema: z.ZodType<
3413
3552
  type: z.literal("web_search_preview"),
3414
3553
  domains: z.array(z.string()).optional(),
3415
3554
  search_context_size: CreateResponseToolsSearchContextSize$inboundSchema
3416
- .default("medium"),
3555
+ .optional(),
3417
3556
  user_location: z.lazy(() => CreateResponseToolsUserLocation$inboundSchema)
3418
3557
  .optional(),
3419
3558
  }).transform((v) => {
@@ -3624,7 +3763,7 @@ export const CreateResponseResponseBody$inboundSchema: z.ZodType<
3624
3763
  object: CreateResponseObject$inboundSchema,
3625
3764
  created_at: z.number(),
3626
3765
  status: CreateResponseStatus$inboundSchema,
3627
- error: z.nullable(z.lazy(() => ErrorT$inboundSchema)),
3766
+ error: z.nullable(z.lazy(() => ErrorT$inboundSchema)).optional(),
3628
3767
  incomplete_details: z.nullable(z.lazy(() => IncompleteDetails$inboundSchema)),
3629
3768
  model: z.string(),
3630
3769
  instructions: z.nullable(z.string()).optional(),
@@ -3634,6 +3773,7 @@ export const CreateResponseResponseBody$inboundSchema: z.ZodType<
3634
3773
  z.lazy(() => Output2$inboundSchema),
3635
3774
  z.lazy(() => Output3$inboundSchema),
3636
3775
  z.lazy(() => Output4$inboundSchema),
3776
+ z.lazy(() => Output5$inboundSchema),
3637
3777
  ]),
3638
3778
  ),
3639
3779
  output_text: z.nullable(z.string()).optional(),
@@ -3661,7 +3801,7 @@ export const CreateResponseResponseBody$inboundSchema: z.ZodType<
3661
3801
  store: z.boolean().optional(),
3662
3802
  text: z.lazy(() => CreateResponseRouterResponsesText$inboundSchema)
3663
3803
  .optional(),
3664
- truncation: z.nullable(Truncation$inboundSchema.default("disabled")),
3804
+ truncation: z.nullable(Truncation$inboundSchema).optional(),
3665
3805
  user: z.nullable(z.string()).optional(),
3666
3806
  service_tier: z.nullable(CreateResponseServiceTier$inboundSchema).optional(),
3667
3807
  background: z.nullable(z.boolean()).optional(),