@orq-ai/node 3.10.17 → 3.10.20

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 (139) hide show
  1. package/bin/mcp-server.js +382 -382
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/contactsCreate.example.ts +1 -1
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +2 -2
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/createprompt.d.ts +94 -94
  16. package/models/operations/createprompt.d.ts.map +1 -1
  17. package/models/operations/createprompt.js +98 -98
  18. package/models/operations/createprompt.js.map +1 -1
  19. package/models/operations/deploymentgetconfig.d.ts +47 -47
  20. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  21. package/models/operations/deploymentgetconfig.js +49 -49
  22. package/models/operations/deploymentgetconfig.js.map +1 -1
  23. package/models/operations/deployments.d.ts +47 -47
  24. package/models/operations/deployments.d.ts.map +1 -1
  25. package/models/operations/deployments.js +49 -49
  26. package/models/operations/deployments.js.map +1 -1
  27. package/models/operations/fileget.js +2 -2
  28. package/models/operations/filelist.js +2 -2
  29. package/models/operations/fileupload.js +2 -2
  30. package/models/operations/getallprompts.d.ts +47 -47
  31. package/models/operations/getallprompts.d.ts.map +1 -1
  32. package/models/operations/getallprompts.js +50 -50
  33. package/models/operations/getallprompts.js.map +1 -1
  34. package/models/operations/getevals.js +28 -28
  35. package/models/operations/getoneprompt.d.ts +47 -47
  36. package/models/operations/getoneprompt.d.ts.map +1 -1
  37. package/models/operations/getoneprompt.js +49 -49
  38. package/models/operations/getoneprompt.js.map +1 -1
  39. package/models/operations/getpromptversion.d.ts +47 -47
  40. package/models/operations/getpromptversion.d.ts.map +1 -1
  41. package/models/operations/getpromptversion.js +49 -49
  42. package/models/operations/getpromptversion.js.map +1 -1
  43. package/models/operations/listcontacts.js +2 -2
  44. package/models/operations/listdatasetdatapoints.js +2 -2
  45. package/models/operations/listdatasets.js +2 -2
  46. package/models/operations/listdatasources.js +2 -2
  47. package/models/operations/listpromptversions.d.ts +47 -47
  48. package/models/operations/listpromptversions.d.ts.map +1 -1
  49. package/models/operations/listpromptversions.js +49 -49
  50. package/models/operations/listpromptversions.js.map +1 -1
  51. package/models/operations/retrievecontact.js +2 -2
  52. package/models/operations/retrievedatapoint.js +2 -2
  53. package/models/operations/retrievedataset.js +2 -2
  54. package/models/operations/retrievedatasource.js +2 -2
  55. package/models/operations/updatecontact.js +2 -2
  56. package/models/operations/updatedatapoint.js +2 -2
  57. package/models/operations/updatedataset.js +2 -2
  58. package/models/operations/updatedatasource.js +2 -2
  59. package/models/operations/updateeval.js +16 -16
  60. package/models/operations/updateprompt.d.ts +94 -94
  61. package/models/operations/updateprompt.d.ts.map +1 -1
  62. package/models/operations/updateprompt.js +99 -99
  63. package/models/operations/updateprompt.js.map +1 -1
  64. package/package.json +1 -1
  65. package/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
  66. package/packages/orq-rc/examples/contactsCreate.example.ts +1 -1
  67. package/packages/orq-rc/examples/package-lock.json +1 -1
  68. package/packages/orq-rc/jsr.json +1 -1
  69. package/packages/orq-rc/package-lock.json +2 -2
  70. package/packages/orq-rc/package.json +1 -1
  71. package/packages/orq-rc/src/funcs/contactsCreate.ts +1 -1
  72. package/packages/orq-rc/src/lib/config.ts +3 -3
  73. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  74. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  75. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/createprompt.ts +246 -40
  82. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +121 -20
  83. package/packages/orq-rc/src/models/operations/deployments.ts +115 -19
  84. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/getallprompts.ts +100 -2
  88. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  89. package/packages/orq-rc/src/models/operations/getoneprompt.ts +100 -2
  90. package/packages/orq-rc/src/models/operations/getpromptversion.ts +100 -2
  91. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/listpromptversions.ts +101 -2
  96. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  105. package/packages/orq-rc/src/models/operations/updateprompt.ts +210 -4
  106. package/packages/orq-rc/src/sdk/contacts.ts +1 -1
  107. package/src/lib/config.ts +3 -3
  108. package/src/mcp-server/mcp-server.ts +1 -1
  109. package/src/mcp-server/server.ts +1 -1
  110. package/src/models/operations/createcontact.ts +2 -2
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +2 -2
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +16 -16
  115. package/src/models/operations/createprompt.ts +179 -179
  116. package/src/models/operations/deploymentgetconfig.ts +106 -106
  117. package/src/models/operations/deployments.ts +94 -94
  118. package/src/models/operations/fileget.ts +2 -2
  119. package/src/models/operations/filelist.ts +2 -2
  120. package/src/models/operations/fileupload.ts +2 -2
  121. package/src/models/operations/getallprompts.ts +98 -98
  122. package/src/models/operations/getevals.ts +28 -28
  123. package/src/models/operations/getoneprompt.ts +94 -94
  124. package/src/models/operations/getpromptversion.ts +104 -104
  125. package/src/models/operations/listcontacts.ts +2 -2
  126. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  127. package/src/models/operations/listdatasets.ts +2 -2
  128. package/src/models/operations/listdatasources.ts +2 -2
  129. package/src/models/operations/listpromptversions.ts +103 -103
  130. package/src/models/operations/retrievecontact.ts +2 -2
  131. package/src/models/operations/retrievedatapoint.ts +2 -2
  132. package/src/models/operations/retrievedataset.ts +2 -2
  133. package/src/models/operations/retrievedatasource.ts +2 -2
  134. package/src/models/operations/updatecontact.ts +2 -2
  135. package/src/models/operations/updatedatapoint.ts +2 -2
  136. package/src/models/operations/updatedataset.ts +2 -2
  137. package/src/models/operations/updatedatasource.ts +2 -2
  138. package/src/models/operations/updateeval.ts +16 -16
  139. package/src/models/operations/updateprompt.ts +183 -183
@@ -43,7 +43,7 @@ export const CreatePromptFormat = {
43
43
  export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
44
44
 
45
45
  export const CreatePromptResponseFormatPromptsType = {
46
- JsonObject: "json_object",
46
+ Text: "text",
47
47
  } as const;
48
48
  export type CreatePromptResponseFormatPromptsType = ClosedEnum<
49
49
  typeof CreatePromptResponseFormatPromptsType
@@ -54,30 +54,30 @@ export type ResponseFormat3 = {
54
54
  };
55
55
 
56
56
  export const CreatePromptResponseFormatType = {
57
- JsonSchema: "json_schema",
57
+ JsonObject: "json_object",
58
58
  } as const;
59
59
  export type CreatePromptResponseFormatType = ClosedEnum<
60
60
  typeof CreatePromptResponseFormatType
61
61
  >;
62
62
 
63
- export type JsonSchema = {
64
- name: string;
65
- strict?: boolean | undefined;
66
- schema: { [k: string]: any };
67
- };
68
-
69
63
  export type ResponseFormat2 = {
70
64
  type: CreatePromptResponseFormatType;
71
- jsonSchema: JsonSchema;
72
65
  };
73
66
 
74
67
  export const ResponseFormatType = {
75
- Text: "text",
68
+ JsonSchema: "json_schema",
76
69
  } as const;
77
70
  export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
78
71
 
72
+ export type JsonSchema = {
73
+ name: string;
74
+ strict?: boolean | undefined;
75
+ schema: { [k: string]: any };
76
+ };
77
+
79
78
  export type ResponseFormat1 = {
80
79
  type: ResponseFormatType;
80
+ jsonSchema: JsonSchema;
81
81
  };
82
82
 
83
83
  /**
@@ -92,8 +92,8 @@ export type ResponseFormat1 = {
92
92
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
93
93
  */
94
94
  export type ResponseFormat =
95
- | ResponseFormat2
96
95
  | ResponseFormat1
96
+ | ResponseFormat2
97
97
  | ResponseFormat3;
98
98
 
99
99
  /**
@@ -211,8 +211,8 @@ export type ModelParameters = {
211
211
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
212
212
  */
213
213
  responseFormat?:
214
- | ResponseFormat2
215
214
  | ResponseFormat1
215
+ | ResponseFormat2
216
216
  | ResponseFormat3
217
217
  | null
218
218
  | undefined;
@@ -531,7 +531,7 @@ export type CreatePromptPromptsFormat = ClosedEnum<
531
531
  >;
532
532
 
533
533
  export const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
534
- JsonObject: "json_object",
534
+ Text: "text",
535
535
  } as const;
536
536
  export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType =
537
537
  ClosedEnum<
@@ -543,32 +543,32 @@ export type CreatePromptResponseFormat3 = {
543
543
  };
544
544
 
545
545
  export const CreatePromptResponseFormatPromptsResponse200Type = {
546
- JsonSchema: "json_schema",
546
+ JsonObject: "json_object",
547
547
  } as const;
548
548
  export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
549
549
  typeof CreatePromptResponseFormatPromptsResponse200Type
550
550
  >;
551
551
 
552
- export type CreatePromptResponseFormatJsonSchema = {
553
- name: string;
554
- strict?: boolean | undefined;
555
- schema: { [k: string]: any };
556
- };
557
-
558
552
  export type CreatePromptResponseFormat2 = {
559
553
  type: CreatePromptResponseFormatPromptsResponse200Type;
560
- jsonSchema: CreatePromptResponseFormatJsonSchema;
561
554
  };
562
555
 
563
556
  export const CreatePromptResponseFormatPromptsResponseType = {
564
- Text: "text",
557
+ JsonSchema: "json_schema",
565
558
  } as const;
566
559
  export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
567
560
  typeof CreatePromptResponseFormatPromptsResponseType
568
561
  >;
569
562
 
563
+ export type CreatePromptResponseFormatJsonSchema = {
564
+ name: string;
565
+ strict?: boolean | undefined;
566
+ schema: { [k: string]: any };
567
+ };
568
+
570
569
  export type CreatePromptResponseFormat1 = {
571
570
  type: CreatePromptResponseFormatPromptsResponseType;
571
+ jsonSchema: CreatePromptResponseFormatJsonSchema;
572
572
  };
573
573
 
574
574
  /**
@@ -583,8 +583,8 @@ export type CreatePromptResponseFormat1 = {
583
583
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
584
584
  */
585
585
  export type CreatePromptResponseFormat =
586
- | CreatePromptResponseFormat2
587
586
  | CreatePromptResponseFormat1
587
+ | CreatePromptResponseFormat2
588
588
  | CreatePromptResponseFormat3;
589
589
 
590
590
  /**
@@ -708,8 +708,8 @@ export type CreatePromptModelParameters = {
708
708
  * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
709
709
  */
710
710
  responseFormat?:
711
- | CreatePromptResponseFormat2
712
711
  | CreatePromptResponseFormat1
712
+ | CreatePromptResponseFormat2
713
713
  | CreatePromptResponseFormat3
714
714
  | null
715
715
  | undefined;
@@ -1153,62 +1153,6 @@ export namespace CreatePromptResponseFormatType$ {
1153
1153
  export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
1154
1154
  }
1155
1155
 
1156
- /** @internal */
1157
- export const JsonSchema$inboundSchema: z.ZodType<
1158
- JsonSchema,
1159
- z.ZodTypeDef,
1160
- unknown
1161
- > = z.object({
1162
- name: z.string(),
1163
- strict: z.boolean().optional(),
1164
- schema: z.record(z.any()),
1165
- });
1166
-
1167
- /** @internal */
1168
- export type JsonSchema$Outbound = {
1169
- name: string;
1170
- strict?: boolean | undefined;
1171
- schema: { [k: string]: any };
1172
- };
1173
-
1174
- /** @internal */
1175
- export const JsonSchema$outboundSchema: z.ZodType<
1176
- JsonSchema$Outbound,
1177
- z.ZodTypeDef,
1178
- JsonSchema
1179
- > = z.object({
1180
- name: z.string(),
1181
- strict: z.boolean().optional(),
1182
- schema: z.record(z.any()),
1183
- });
1184
-
1185
- /**
1186
- * @internal
1187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1188
- */
1189
- export namespace JsonSchema$ {
1190
- /** @deprecated use `JsonSchema$inboundSchema` instead. */
1191
- export const inboundSchema = JsonSchema$inboundSchema;
1192
- /** @deprecated use `JsonSchema$outboundSchema` instead. */
1193
- export const outboundSchema = JsonSchema$outboundSchema;
1194
- /** @deprecated use `JsonSchema$Outbound` instead. */
1195
- export type Outbound = JsonSchema$Outbound;
1196
- }
1197
-
1198
- export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1199
- return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1200
- }
1201
-
1202
- export function jsonSchemaFromJSON(
1203
- jsonString: string,
1204
- ): SafeParseResult<JsonSchema, SDKValidationError> {
1205
- return safeParse(
1206
- jsonString,
1207
- (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1208
- `Failed to parse 'JsonSchema' from JSON`,
1209
- );
1210
- }
1211
-
1212
1156
  /** @internal */
1213
1157
  export const ResponseFormat2$inboundSchema: z.ZodType<
1214
1158
  ResponseFormat2,
@@ -1216,17 +1160,11 @@ export const ResponseFormat2$inboundSchema: z.ZodType<
1216
1160
  unknown
1217
1161
  > = z.object({
1218
1162
  type: CreatePromptResponseFormatType$inboundSchema,
1219
- json_schema: z.lazy(() => JsonSchema$inboundSchema),
1220
- }).transform((v) => {
1221
- return remap$(v, {
1222
- "json_schema": "jsonSchema",
1223
- });
1224
1163
  });
1225
1164
 
1226
1165
  /** @internal */
1227
1166
  export type ResponseFormat2$Outbound = {
1228
1167
  type: string;
1229
- json_schema: JsonSchema$Outbound;
1230
1168
  };
1231
1169
 
1232
1170
  /** @internal */
@@ -1236,11 +1174,6 @@ export const ResponseFormat2$outboundSchema: z.ZodType<
1236
1174
  ResponseFormat2
1237
1175
  > = z.object({
1238
1176
  type: CreatePromptResponseFormatType$outboundSchema,
1239
- jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1240
- }).transform((v) => {
1241
- return remap$(v, {
1242
- jsonSchema: "json_schema",
1243
- });
1244
1177
  });
1245
1178
 
1246
1179
  /**
@@ -1293,6 +1226,62 @@ export namespace ResponseFormatType$ {
1293
1226
  export const outboundSchema = ResponseFormatType$outboundSchema;
1294
1227
  }
1295
1228
 
1229
+ /** @internal */
1230
+ export const JsonSchema$inboundSchema: z.ZodType<
1231
+ JsonSchema,
1232
+ z.ZodTypeDef,
1233
+ unknown
1234
+ > = z.object({
1235
+ name: z.string(),
1236
+ strict: z.boolean().optional(),
1237
+ schema: z.record(z.any()),
1238
+ });
1239
+
1240
+ /** @internal */
1241
+ export type JsonSchema$Outbound = {
1242
+ name: string;
1243
+ strict?: boolean | undefined;
1244
+ schema: { [k: string]: any };
1245
+ };
1246
+
1247
+ /** @internal */
1248
+ export const JsonSchema$outboundSchema: z.ZodType<
1249
+ JsonSchema$Outbound,
1250
+ z.ZodTypeDef,
1251
+ JsonSchema
1252
+ > = z.object({
1253
+ name: z.string(),
1254
+ strict: z.boolean().optional(),
1255
+ schema: z.record(z.any()),
1256
+ });
1257
+
1258
+ /**
1259
+ * @internal
1260
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1261
+ */
1262
+ export namespace JsonSchema$ {
1263
+ /** @deprecated use `JsonSchema$inboundSchema` instead. */
1264
+ export const inboundSchema = JsonSchema$inboundSchema;
1265
+ /** @deprecated use `JsonSchema$outboundSchema` instead. */
1266
+ export const outboundSchema = JsonSchema$outboundSchema;
1267
+ /** @deprecated use `JsonSchema$Outbound` instead. */
1268
+ export type Outbound = JsonSchema$Outbound;
1269
+ }
1270
+
1271
+ export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1272
+ return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1273
+ }
1274
+
1275
+ export function jsonSchemaFromJSON(
1276
+ jsonString: string,
1277
+ ): SafeParseResult<JsonSchema, SDKValidationError> {
1278
+ return safeParse(
1279
+ jsonString,
1280
+ (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1281
+ `Failed to parse 'JsonSchema' from JSON`,
1282
+ );
1283
+ }
1284
+
1296
1285
  /** @internal */
1297
1286
  export const ResponseFormat1$inboundSchema: z.ZodType<
1298
1287
  ResponseFormat1,
@@ -1300,11 +1289,17 @@ export const ResponseFormat1$inboundSchema: z.ZodType<
1300
1289
  unknown
1301
1290
  > = z.object({
1302
1291
  type: ResponseFormatType$inboundSchema,
1292
+ json_schema: z.lazy(() => JsonSchema$inboundSchema),
1293
+ }).transform((v) => {
1294
+ return remap$(v, {
1295
+ "json_schema": "jsonSchema",
1296
+ });
1303
1297
  });
1304
1298
 
1305
1299
  /** @internal */
1306
1300
  export type ResponseFormat1$Outbound = {
1307
1301
  type: string;
1302
+ json_schema: JsonSchema$Outbound;
1308
1303
  };
1309
1304
 
1310
1305
  /** @internal */
@@ -1314,6 +1309,11 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
1314
1309
  ResponseFormat1
1315
1310
  > = z.object({
1316
1311
  type: ResponseFormatType$outboundSchema,
1312
+ jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1313
+ }).transform((v) => {
1314
+ return remap$(v, {
1315
+ jsonSchema: "json_schema",
1316
+ });
1317
1317
  });
1318
1318
 
1319
1319
  /**
@@ -1351,15 +1351,15 @@ export const ResponseFormat$inboundSchema: z.ZodType<
1351
1351
  z.ZodTypeDef,
1352
1352
  unknown
1353
1353
  > = z.union([
1354
- z.lazy(() => ResponseFormat2$inboundSchema),
1355
1354
  z.lazy(() => ResponseFormat1$inboundSchema),
1355
+ z.lazy(() => ResponseFormat2$inboundSchema),
1356
1356
  z.lazy(() => ResponseFormat3$inboundSchema),
1357
1357
  ]);
1358
1358
 
1359
1359
  /** @internal */
1360
1360
  export type ResponseFormat$Outbound =
1361
- | ResponseFormat2$Outbound
1362
1361
  | ResponseFormat1$Outbound
1362
+ | ResponseFormat2$Outbound
1363
1363
  | ResponseFormat3$Outbound;
1364
1364
 
1365
1365
  /** @internal */
@@ -1368,8 +1368,8 @@ export const ResponseFormat$outboundSchema: z.ZodType<
1368
1368
  z.ZodTypeDef,
1369
1369
  ResponseFormat
1370
1370
  > = z.union([
1371
- z.lazy(() => ResponseFormat2$outboundSchema),
1372
1371
  z.lazy(() => ResponseFormat1$outboundSchema),
1372
+ z.lazy(() => ResponseFormat2$outboundSchema),
1373
1373
  z.lazy(() => ResponseFormat3$outboundSchema),
1374
1374
  ]);
1375
1375
 
@@ -1502,8 +1502,8 @@ export const ModelParameters$inboundSchema: z.ZodType<
1502
1502
  style: z.string().optional(),
1503
1503
  responseFormat: z.nullable(
1504
1504
  z.union([
1505
- z.lazy(() => ResponseFormat2$inboundSchema),
1506
1505
  z.lazy(() => ResponseFormat1$inboundSchema),
1506
+ z.lazy(() => ResponseFormat2$inboundSchema),
1507
1507
  z.lazy(() => ResponseFormat3$inboundSchema),
1508
1508
  ]),
1509
1509
  ).optional(),
@@ -1533,8 +1533,8 @@ export type ModelParameters$Outbound = {
1533
1533
  quality?: string | undefined;
1534
1534
  style?: string | undefined;
1535
1535
  responseFormat?:
1536
- | ResponseFormat2$Outbound
1537
1536
  | ResponseFormat1$Outbound
1537
+ | ResponseFormat2$Outbound
1538
1538
  | ResponseFormat3$Outbound
1539
1539
  | null
1540
1540
  | undefined;
@@ -1565,8 +1565,8 @@ export const ModelParameters$outboundSchema: z.ZodType<
1565
1565
  style: z.string().optional(),
1566
1566
  responseFormat: z.nullable(
1567
1567
  z.union([
1568
- z.lazy(() => ResponseFormat2$outboundSchema),
1569
1568
  z.lazy(() => ResponseFormat1$outboundSchema),
1569
+ z.lazy(() => ResponseFormat2$outboundSchema),
1570
1570
  z.lazy(() => ResponseFormat3$outboundSchema),
1571
1571
  ]),
1572
1572
  ).optional(),
@@ -2792,71 +2792,6 @@ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
2792
2792
  CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2793
2793
  }
2794
2794
 
2795
- /** @internal */
2796
- export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2797
- CreatePromptResponseFormatJsonSchema,
2798
- z.ZodTypeDef,
2799
- unknown
2800
- > = z.object({
2801
- name: z.string(),
2802
- strict: z.boolean().optional(),
2803
- schema: z.record(z.any()),
2804
- });
2805
-
2806
- /** @internal */
2807
- export type CreatePromptResponseFormatJsonSchema$Outbound = {
2808
- name: string;
2809
- strict?: boolean | undefined;
2810
- schema: { [k: string]: any };
2811
- };
2812
-
2813
- /** @internal */
2814
- export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2815
- CreatePromptResponseFormatJsonSchema$Outbound,
2816
- z.ZodTypeDef,
2817
- CreatePromptResponseFormatJsonSchema
2818
- > = z.object({
2819
- name: z.string(),
2820
- strict: z.boolean().optional(),
2821
- schema: z.record(z.any()),
2822
- });
2823
-
2824
- /**
2825
- * @internal
2826
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2827
- */
2828
- export namespace CreatePromptResponseFormatJsonSchema$ {
2829
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2830
- export const inboundSchema =
2831
- CreatePromptResponseFormatJsonSchema$inboundSchema;
2832
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2833
- export const outboundSchema =
2834
- CreatePromptResponseFormatJsonSchema$outboundSchema;
2835
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2836
- export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2837
- }
2838
-
2839
- export function createPromptResponseFormatJsonSchemaToJSON(
2840
- createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2841
- ): string {
2842
- return JSON.stringify(
2843
- CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2844
- createPromptResponseFormatJsonSchema,
2845
- ),
2846
- );
2847
- }
2848
-
2849
- export function createPromptResponseFormatJsonSchemaFromJSON(
2850
- jsonString: string,
2851
- ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2852
- return safeParse(
2853
- jsonString,
2854
- (x) =>
2855
- CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2856
- `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2857
- );
2858
- }
2859
-
2860
2795
  /** @internal */
2861
2796
  export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2862
2797
  CreatePromptResponseFormat2,
@@ -2864,17 +2799,11 @@ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2864
2799
  unknown
2865
2800
  > = z.object({
2866
2801
  type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2867
- json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2868
- }).transform((v) => {
2869
- return remap$(v, {
2870
- "json_schema": "jsonSchema",
2871
- });
2872
2802
  });
2873
2803
 
2874
2804
  /** @internal */
2875
2805
  export type CreatePromptResponseFormat2$Outbound = {
2876
2806
  type: string;
2877
- json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2878
2807
  };
2879
2808
 
2880
2809
  /** @internal */
@@ -2884,11 +2813,6 @@ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2884
2813
  CreatePromptResponseFormat2
2885
2814
  > = z.object({
2886
2815
  type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2887
- jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2888
- }).transform((v) => {
2889
- return remap$(v, {
2890
- jsonSchema: "json_schema",
2891
- });
2892
2816
  });
2893
2817
 
2894
2818
  /**
@@ -2947,6 +2871,71 @@ export namespace CreatePromptResponseFormatPromptsResponseType$ {
2947
2871
  CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2948
2872
  }
2949
2873
 
2874
+ /** @internal */
2875
+ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2876
+ CreatePromptResponseFormatJsonSchema,
2877
+ z.ZodTypeDef,
2878
+ unknown
2879
+ > = z.object({
2880
+ name: z.string(),
2881
+ strict: z.boolean().optional(),
2882
+ schema: z.record(z.any()),
2883
+ });
2884
+
2885
+ /** @internal */
2886
+ export type CreatePromptResponseFormatJsonSchema$Outbound = {
2887
+ name: string;
2888
+ strict?: boolean | undefined;
2889
+ schema: { [k: string]: any };
2890
+ };
2891
+
2892
+ /** @internal */
2893
+ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2894
+ CreatePromptResponseFormatJsonSchema$Outbound,
2895
+ z.ZodTypeDef,
2896
+ CreatePromptResponseFormatJsonSchema
2897
+ > = z.object({
2898
+ name: z.string(),
2899
+ strict: z.boolean().optional(),
2900
+ schema: z.record(z.any()),
2901
+ });
2902
+
2903
+ /**
2904
+ * @internal
2905
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2906
+ */
2907
+ export namespace CreatePromptResponseFormatJsonSchema$ {
2908
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2909
+ export const inboundSchema =
2910
+ CreatePromptResponseFormatJsonSchema$inboundSchema;
2911
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2912
+ export const outboundSchema =
2913
+ CreatePromptResponseFormatJsonSchema$outboundSchema;
2914
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2915
+ export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2916
+ }
2917
+
2918
+ export function createPromptResponseFormatJsonSchemaToJSON(
2919
+ createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2920
+ ): string {
2921
+ return JSON.stringify(
2922
+ CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2923
+ createPromptResponseFormatJsonSchema,
2924
+ ),
2925
+ );
2926
+ }
2927
+
2928
+ export function createPromptResponseFormatJsonSchemaFromJSON(
2929
+ jsonString: string,
2930
+ ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2931
+ return safeParse(
2932
+ jsonString,
2933
+ (x) =>
2934
+ CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2935
+ `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2936
+ );
2937
+ }
2938
+
2950
2939
  /** @internal */
2951
2940
  export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2952
2941
  CreatePromptResponseFormat1,
@@ -2954,11 +2943,17 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2954
2943
  unknown
2955
2944
  > = z.object({
2956
2945
  type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2946
+ json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2947
+ }).transform((v) => {
2948
+ return remap$(v, {
2949
+ "json_schema": "jsonSchema",
2950
+ });
2957
2951
  });
2958
2952
 
2959
2953
  /** @internal */
2960
2954
  export type CreatePromptResponseFormat1$Outbound = {
2961
2955
  type: string;
2956
+ json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2962
2957
  };
2963
2958
 
2964
2959
  /** @internal */
@@ -2968,6 +2963,11 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2968
2963
  CreatePromptResponseFormat1
2969
2964
  > = z.object({
2970
2965
  type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2966
+ jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2967
+ }).transform((v) => {
2968
+ return remap$(v, {
2969
+ jsonSchema: "json_schema",
2970
+ });
2971
2971
  });
2972
2972
 
2973
2973
  /**
@@ -3009,15 +3009,15 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
3009
3009
  z.ZodTypeDef,
3010
3010
  unknown
3011
3011
  > = z.union([
3012
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3013
3012
  z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
3013
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3014
3014
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
3015
3015
  ]);
3016
3016
 
3017
3017
  /** @internal */
3018
3018
  export type CreatePromptResponseFormat$Outbound =
3019
- | CreatePromptResponseFormat2$Outbound
3020
3019
  | CreatePromptResponseFormat1$Outbound
3020
+ | CreatePromptResponseFormat2$Outbound
3021
3021
  | CreatePromptResponseFormat3$Outbound;
3022
3022
 
3023
3023
  /** @internal */
@@ -3026,8 +3026,8 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
3026
3026
  z.ZodTypeDef,
3027
3027
  CreatePromptResponseFormat
3028
3028
  > = z.union([
3029
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3030
3029
  z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3030
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3031
3031
  z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
3032
3032
  ]);
3033
3033
 
@@ -3166,8 +3166,8 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
3166
3166
  style: z.string().optional(),
3167
3167
  responseFormat: z.nullable(
3168
3168
  z.union([
3169
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3170
3169
  z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
3170
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
3171
3171
  z.lazy(() => CreatePromptResponseFormat3$inboundSchema),
3172
3172
  ]),
3173
3173
  ).optional(),
@@ -3197,8 +3197,8 @@ export type CreatePromptModelParameters$Outbound = {
3197
3197
  quality?: string | undefined;
3198
3198
  style?: string | undefined;
3199
3199
  responseFormat?:
3200
- | CreatePromptResponseFormat2$Outbound
3201
3200
  | CreatePromptResponseFormat1$Outbound
3201
+ | CreatePromptResponseFormat2$Outbound
3202
3202
  | CreatePromptResponseFormat3$Outbound
3203
3203
  | null
3204
3204
  | undefined;
@@ -3229,8 +3229,8 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
3229
3229
  style: z.string().optional(),
3230
3230
  responseFormat: z.nullable(
3231
3231
  z.union([
3232
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3233
3232
  z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
3233
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
3234
3234
  z.lazy(() => CreatePromptResponseFormat3$outboundSchema),
3235
3235
  ]),
3236
3236
  ).optional(),