@orq-ai/node 3.10.17 → 3.10.19

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
@@ -144,7 +144,7 @@ var UpdateDatasourceStatus$;
144
144
  })(UpdateDatasourceStatus$ || (exports.UpdateDatasourceStatus$ = UpdateDatasourceStatus$ = {}));
145
145
  /** @internal */
146
146
  exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
147
- _id: z.string().default("01K2EXKNBDVHZTG3RRSVCKT3FC"),
147
+ _id: z.string().default("01K2HQWZ17XZCMWT11R82C7DDD"),
148
148
  display_name: z.string(),
149
149
  description: z.string().optional(),
150
150
  status: exports.UpdateDatasourceStatus$inboundSchema,
@@ -168,7 +168,7 @@ exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
168
168
  });
169
169
  /** @internal */
170
170
  exports.UpdateDatasourceResponseBody$outboundSchema = z.object({
171
- id: z.string().default("01K2EXKNBDVHZTG3RRSVCKT3FC"),
171
+ id: z.string().default("01K2HQWZ17XZCMWT11R82C7DDD"),
172
172
  displayName: z.string(),
173
173
  description: z.string().optional(),
174
174
  status: exports.UpdateDatasourceStatus$outboundSchema,
@@ -1302,8 +1302,8 @@ var UpdateEvalResponseBodyEvalsResponse200Type$;
1302
1302
  exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
1303
1303
  _id: z.string(),
1304
1304
  description: z.string(),
1305
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1306
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1305
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1306
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1307
1307
  guardrail_config: z.union([
1308
1308
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
1309
1309
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
@@ -1321,8 +1321,8 @@ exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
1321
1321
  exports.UpdateEvalResponseBodyPython$outboundSchema = z.object({
1322
1322
  id: z.string(),
1323
1323
  description: z.string(),
1324
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1325
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1324
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1325
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1326
1326
  guardrailConfig: z.union([
1327
1327
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema),
1328
1328
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$outboundSchema),
@@ -1524,8 +1524,8 @@ var UpdateEvalResponseBodyMethod$;
1524
1524
  exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
1525
1525
  _id: z.string(),
1526
1526
  description: z.string(),
1527
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1528
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1527
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1528
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1529
1529
  guardrail_config: z.union([
1530
1530
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
1531
1531
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
@@ -1546,8 +1546,8 @@ exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
1546
1546
  exports.UpdateEvalResponseBodyHTTP$outboundSchema = z.object({
1547
1547
  id: z.string(),
1548
1548
  description: z.string(),
1549
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1550
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1549
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1550
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1551
1551
  guardrailConfig: z.union([
1552
1552
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema),
1553
1553
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$outboundSchema),
@@ -1733,8 +1733,8 @@ var UpdateEvalResponseBodyEvalsType$;
1733
1733
  exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
1734
1734
  _id: z.string(),
1735
1735
  description: z.string(),
1736
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1737
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1736
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1737
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1738
1738
  guardrail_config: z.union([
1739
1739
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
1740
1740
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
@@ -1752,8 +1752,8 @@ exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
1752
1752
  exports.UpdateEvalResponseBodyJSON$outboundSchema = z.object({
1753
1753
  id: z.string(),
1754
1754
  description: z.string(),
1755
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1756
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1755
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1756
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1757
1757
  guardrailConfig: z.union([
1758
1758
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema),
1759
1759
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$outboundSchema),
@@ -1938,8 +1938,8 @@ var UpdateEvalResponseBodyType$;
1938
1938
  exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
1939
1939
  _id: z.string(),
1940
1940
  description: z.string(),
1941
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1942
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1941
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1942
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1943
1943
  guardrail_config: z.union([
1944
1944
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
1945
1945
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -1958,8 +1958,8 @@ exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
1958
1958
  exports.UpdateEvalResponseBodyLLM$outboundSchema = z.object({
1959
1959
  id: z.string(),
1960
1960
  description: z.string(),
1961
- created: z.string().default("2025-08-12T10:35:48.407Z"),
1962
- updated: z.string().default("2025-08-12T10:35:48.407Z"),
1961
+ created: z.string().default("2025-08-13T12:53:46.195Z"),
1962
+ updated: z.string().default("2025-08-13T12:53:46.195Z"),
1963
1963
  guardrailConfig: z.union([
1964
1964
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
1965
1965
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
@@ -16,16 +16,23 @@ export declare const UpdatePromptFormat: {
16
16
  */
17
17
  export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
18
18
  export declare const UpdatePromptResponseFormatPromptsRequestType: {
19
- readonly JsonObject: "json_object";
19
+ readonly Text: "text";
20
20
  };
21
21
  export type UpdatePromptResponseFormatPromptsRequestType = ClosedEnum<typeof UpdatePromptResponseFormatPromptsRequestType>;
22
22
  export type UpdatePromptResponseFormat3 = {
23
23
  type: UpdatePromptResponseFormatPromptsRequestType;
24
24
  };
25
25
  export declare const UpdatePromptResponseFormatPromptsType: {
26
- readonly JsonSchema: "json_schema";
26
+ readonly JsonObject: "json_object";
27
27
  };
28
28
  export type UpdatePromptResponseFormatPromptsType = ClosedEnum<typeof UpdatePromptResponseFormatPromptsType>;
29
+ export type UpdatePromptResponseFormat2 = {
30
+ type: UpdatePromptResponseFormatPromptsType;
31
+ };
32
+ export declare const UpdatePromptResponseFormatType: {
33
+ readonly JsonSchema: "json_schema";
34
+ };
35
+ export type UpdatePromptResponseFormatType = ClosedEnum<typeof UpdatePromptResponseFormatType>;
29
36
  export type ResponseFormatJsonSchema = {
30
37
  name: string;
31
38
  strict?: boolean | undefined;
@@ -33,16 +40,9 @@ export type ResponseFormatJsonSchema = {
33
40
  [k: string]: any;
34
41
  };
35
42
  };
36
- export type UpdatePromptResponseFormat2 = {
37
- type: UpdatePromptResponseFormatPromptsType;
38
- jsonSchema: ResponseFormatJsonSchema;
39
- };
40
- export declare const UpdatePromptResponseFormatType: {
41
- readonly Text: "text";
42
- };
43
- export type UpdatePromptResponseFormatType = ClosedEnum<typeof UpdatePromptResponseFormatType>;
44
43
  export type UpdatePromptResponseFormat1 = {
45
44
  type: UpdatePromptResponseFormatType;
45
+ jsonSchema: ResponseFormatJsonSchema;
46
46
  };
47
47
  /**
48
48
  * An object specifying the format that the model must output.
@@ -55,7 +55,7 @@ export type UpdatePromptResponseFormat1 = {
55
55
  *
56
56
  * 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.
57
57
  */
58
- export type UpdatePromptResponseFormat = UpdatePromptResponseFormat2 | UpdatePromptResponseFormat1 | UpdatePromptResponseFormat3;
58
+ export type UpdatePromptResponseFormat = UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3;
59
59
  /**
60
60
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
61
61
  */
@@ -166,7 +166,7 @@ export type UpdatePromptModelParameters = {
166
166
  *
167
167
  * 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.
168
168
  */
169
- responseFormat?: UpdatePromptResponseFormat2 | UpdatePromptResponseFormat1 | UpdatePromptResponseFormat3 | null | undefined;
169
+ responseFormat?: UpdatePromptResponseFormat1 | UpdatePromptResponseFormat2 | UpdatePromptResponseFormat3 | null | undefined;
170
170
  /**
171
171
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
172
172
  */
@@ -449,16 +449,23 @@ export declare const UpdatePromptPromptsFormat: {
449
449
  */
450
450
  export type UpdatePromptPromptsFormat = ClosedEnum<typeof UpdatePromptPromptsFormat>;
451
451
  export declare const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType: {
452
- readonly JsonObject: "json_object";
452
+ readonly Text: "text";
453
453
  };
454
454
  export type UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType = ClosedEnum<typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType>;
455
455
  export type UpdatePromptResponseFormatPrompts3 = {
456
456
  type: UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType;
457
457
  };
458
458
  export declare const UpdatePromptResponseFormatPromptsResponse200Type: {
459
- readonly JsonSchema: "json_schema";
459
+ readonly JsonObject: "json_object";
460
460
  };
461
461
  export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type>;
462
+ export type UpdatePromptResponseFormatPrompts2 = {
463
+ type: UpdatePromptResponseFormatPromptsResponse200Type;
464
+ };
465
+ export declare const UpdatePromptResponseFormatPromptsResponseType: {
466
+ readonly JsonSchema: "json_schema";
467
+ };
468
+ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof UpdatePromptResponseFormatPromptsResponseType>;
462
469
  export type UpdatePromptResponseFormatJsonSchema = {
463
470
  name: string;
464
471
  strict?: boolean | undefined;
@@ -466,16 +473,9 @@ export type UpdatePromptResponseFormatJsonSchema = {
466
473
  [k: string]: any;
467
474
  };
468
475
  };
469
- export type UpdatePromptResponseFormatPrompts2 = {
470
- type: UpdatePromptResponseFormatPromptsResponse200Type;
471
- jsonSchema: UpdatePromptResponseFormatJsonSchema;
472
- };
473
- export declare const UpdatePromptResponseFormatPromptsResponseType: {
474
- readonly Text: "text";
475
- };
476
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof UpdatePromptResponseFormatPromptsResponseType>;
477
476
  export type UpdatePromptResponseFormatPrompts1 = {
478
477
  type: UpdatePromptResponseFormatPromptsResponseType;
478
+ jsonSchema: UpdatePromptResponseFormatJsonSchema;
479
479
  };
480
480
  /**
481
481
  * An object specifying the format that the model must output.
@@ -488,7 +488,7 @@ export type UpdatePromptResponseFormatPrompts1 = {
488
488
  *
489
489
  * 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.
490
490
  */
491
- export type UpdatePromptPromptsResponseFormat = UpdatePromptResponseFormatPrompts2 | UpdatePromptResponseFormatPrompts1 | UpdatePromptResponseFormatPrompts3;
491
+ export type UpdatePromptPromptsResponseFormat = UpdatePromptResponseFormatPrompts1 | UpdatePromptResponseFormatPrompts2 | UpdatePromptResponseFormatPrompts3;
492
492
  /**
493
493
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
494
494
  */
@@ -599,7 +599,7 @@ export type UpdatePromptPromptsModelParameters = {
599
599
  *
600
600
  * 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.
601
601
  */
602
- responseFormat?: UpdatePromptResponseFormatPrompts2 | UpdatePromptResponseFormatPrompts1 | UpdatePromptResponseFormatPrompts3 | null | undefined;
602
+ responseFormat?: UpdatePromptResponseFormatPrompts1 | UpdatePromptResponseFormatPrompts2 | UpdatePromptResponseFormatPrompts3 | null | undefined;
603
603
  /**
604
604
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
605
605
  */
@@ -895,11 +895,11 @@ export declare const UpdatePromptResponseFormatPromptsRequestType$outboundSchema
895
895
  export declare namespace UpdatePromptResponseFormatPromptsRequestType$ {
896
896
  /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
897
897
  const inboundSchema: z.ZodNativeEnum<{
898
- readonly JsonObject: "json_object";
898
+ readonly Text: "text";
899
899
  }>;
900
900
  /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
901
901
  const outboundSchema: z.ZodNativeEnum<{
902
- readonly JsonObject: "json_object";
902
+ readonly Text: "text";
903
903
  }>;
904
904
  }
905
905
  /** @internal */
@@ -935,45 +935,18 @@ export declare const UpdatePromptResponseFormatPromptsType$outboundSchema: z.Zod
935
935
  export declare namespace UpdatePromptResponseFormatPromptsType$ {
936
936
  /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
937
937
  const inboundSchema: z.ZodNativeEnum<{
938
- readonly JsonSchema: "json_schema";
938
+ readonly JsonObject: "json_object";
939
939
  }>;
940
940
  /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
941
941
  const outboundSchema: z.ZodNativeEnum<{
942
- readonly JsonSchema: "json_schema";
942
+ readonly JsonObject: "json_object";
943
943
  }>;
944
944
  }
945
945
  /** @internal */
946
- export declare const ResponseFormatJsonSchema$inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
947
- /** @internal */
948
- export type ResponseFormatJsonSchema$Outbound = {
949
- name: string;
950
- strict?: boolean | undefined;
951
- schema: {
952
- [k: string]: any;
953
- };
954
- };
955
- /** @internal */
956
- export declare const ResponseFormatJsonSchema$outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
957
- /**
958
- * @internal
959
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
960
- */
961
- export declare namespace ResponseFormatJsonSchema$ {
962
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
963
- const inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
964
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
965
- const outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
966
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
967
- type Outbound = ResponseFormatJsonSchema$Outbound;
968
- }
969
- export declare function responseFormatJsonSchemaToJSON(responseFormatJsonSchema: ResponseFormatJsonSchema): string;
970
- export declare function responseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError>;
971
- /** @internal */
972
946
  export declare const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<UpdatePromptResponseFormat2, z.ZodTypeDef, unknown>;
973
947
  /** @internal */
974
948
  export type UpdatePromptResponseFormat2$Outbound = {
975
949
  type: string;
976
- json_schema: ResponseFormatJsonSchema$Outbound;
977
950
  };
978
951
  /** @internal */
979
952
  export declare const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<UpdatePromptResponseFormat2$Outbound, z.ZodTypeDef, UpdatePromptResponseFormat2>;
@@ -1002,18 +975,45 @@ export declare const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeE
1002
975
  export declare namespace UpdatePromptResponseFormatType$ {
1003
976
  /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1004
977
  const inboundSchema: z.ZodNativeEnum<{
1005
- readonly Text: "text";
978
+ readonly JsonSchema: "json_schema";
1006
979
  }>;
1007
980
  /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1008
981
  const outboundSchema: z.ZodNativeEnum<{
1009
- readonly Text: "text";
982
+ readonly JsonSchema: "json_schema";
1010
983
  }>;
1011
984
  }
1012
985
  /** @internal */
986
+ export declare const ResponseFormatJsonSchema$inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
987
+ /** @internal */
988
+ export type ResponseFormatJsonSchema$Outbound = {
989
+ name: string;
990
+ strict?: boolean | undefined;
991
+ schema: {
992
+ [k: string]: any;
993
+ };
994
+ };
995
+ /** @internal */
996
+ export declare const ResponseFormatJsonSchema$outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
997
+ /**
998
+ * @internal
999
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1000
+ */
1001
+ export declare namespace ResponseFormatJsonSchema$ {
1002
+ /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1003
+ const inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1004
+ /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1005
+ const outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
1006
+ /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1007
+ type Outbound = ResponseFormatJsonSchema$Outbound;
1008
+ }
1009
+ export declare function responseFormatJsonSchemaToJSON(responseFormatJsonSchema: ResponseFormatJsonSchema): string;
1010
+ export declare function responseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError>;
1011
+ /** @internal */
1013
1012
  export declare const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<UpdatePromptResponseFormat1, z.ZodTypeDef, unknown>;
1014
1013
  /** @internal */
1015
1014
  export type UpdatePromptResponseFormat1$Outbound = {
1016
1015
  type: string;
1016
+ json_schema: ResponseFormatJsonSchema$Outbound;
1017
1017
  };
1018
1018
  /** @internal */
1019
1019
  export declare const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<UpdatePromptResponseFormat1$Outbound, z.ZodTypeDef, UpdatePromptResponseFormat1>;
@@ -1034,7 +1034,7 @@ export declare function updatePromptResponseFormat1FromJSON(jsonString: string):
1034
1034
  /** @internal */
1035
1035
  export declare const UpdatePromptResponseFormat$inboundSchema: z.ZodType<UpdatePromptResponseFormat, z.ZodTypeDef, unknown>;
1036
1036
  /** @internal */
1037
- export type UpdatePromptResponseFormat$Outbound = UpdatePromptResponseFormat2$Outbound | UpdatePromptResponseFormat1$Outbound | UpdatePromptResponseFormat3$Outbound;
1037
+ export type UpdatePromptResponseFormat$Outbound = UpdatePromptResponseFormat1$Outbound | UpdatePromptResponseFormat2$Outbound | UpdatePromptResponseFormat3$Outbound;
1038
1038
  /** @internal */
1039
1039
  export declare const UpdatePromptResponseFormat$outboundSchema: z.ZodType<UpdatePromptResponseFormat$Outbound, z.ZodTypeDef, UpdatePromptResponseFormat>;
1040
1040
  /**
@@ -1153,7 +1153,7 @@ export type UpdatePromptModelParameters$Outbound = {
1153
1153
  dimensions?: string | undefined;
1154
1154
  quality?: string | undefined;
1155
1155
  style?: string | undefined;
1156
- responseFormat?: UpdatePromptResponseFormat2$Outbound | UpdatePromptResponseFormat1$Outbound | UpdatePromptResponseFormat3$Outbound | null | undefined;
1156
+ responseFormat?: UpdatePromptResponseFormat1$Outbound | UpdatePromptResponseFormat2$Outbound | UpdatePromptResponseFormat3$Outbound | null | undefined;
1157
1157
  photoRealVersion?: string | undefined;
1158
1158
  encoding_format?: string | undefined;
1159
1159
  reasoningEffort?: string | undefined;
@@ -1846,11 +1846,11 @@ export declare const UpdatePromptResponseFormatPromptsResponse200ApplicationJSON
1846
1846
  export declare namespace UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
1847
1847
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
1848
1848
  const inboundSchema: z.ZodNativeEnum<{
1849
- readonly JsonObject: "json_object";
1849
+ readonly Text: "text";
1850
1850
  }>;
1851
1851
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
1852
1852
  const outboundSchema: z.ZodNativeEnum<{
1853
- readonly JsonObject: "json_object";
1853
+ readonly Text: "text";
1854
1854
  }>;
1855
1855
  }
1856
1856
  /** @internal */
@@ -1886,45 +1886,18 @@ export declare const UpdatePromptResponseFormatPromptsResponse200Type$outboundSc
1886
1886
  export declare namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
1887
1887
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
1888
1888
  const inboundSchema: z.ZodNativeEnum<{
1889
- readonly JsonSchema: "json_schema";
1889
+ readonly JsonObject: "json_object";
1890
1890
  }>;
1891
1891
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
1892
1892
  const outboundSchema: z.ZodNativeEnum<{
1893
- readonly JsonSchema: "json_schema";
1893
+ readonly JsonObject: "json_object";
1894
1894
  }>;
1895
1895
  }
1896
1896
  /** @internal */
1897
- export declare const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1898
- /** @internal */
1899
- export type UpdatePromptResponseFormatJsonSchema$Outbound = {
1900
- name: string;
1901
- strict?: boolean | undefined;
1902
- schema: {
1903
- [k: string]: any;
1904
- };
1905
- };
1906
- /** @internal */
1907
- export declare const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatJsonSchema>;
1908
- /**
1909
- * @internal
1910
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1911
- */
1912
- export declare namespace UpdatePromptResponseFormatJsonSchema$ {
1913
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
1914
- const inboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1915
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
1916
- const outboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatJsonSchema>;
1917
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
1918
- type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
1919
- }
1920
- export declare function updatePromptResponseFormatJsonSchemaToJSON(updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema): string;
1921
- export declare function updatePromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError>;
1922
- /** @internal */
1923
1897
  export declare const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<UpdatePromptResponseFormatPrompts2, z.ZodTypeDef, unknown>;
1924
1898
  /** @internal */
1925
1899
  export type UpdatePromptResponseFormatPrompts2$Outbound = {
1926
1900
  type: string;
1927
- json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
1928
1901
  };
1929
1902
  /** @internal */
1930
1903
  export declare const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<UpdatePromptResponseFormatPrompts2$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatPrompts2>;
@@ -1953,18 +1926,45 @@ export declare const UpdatePromptResponseFormatPromptsResponseType$outboundSchem
1953
1926
  export declare namespace UpdatePromptResponseFormatPromptsResponseType$ {
1954
1927
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
1955
1928
  const inboundSchema: z.ZodNativeEnum<{
1956
- readonly Text: "text";
1929
+ readonly JsonSchema: "json_schema";
1957
1930
  }>;
1958
1931
  /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
1959
1932
  const outboundSchema: z.ZodNativeEnum<{
1960
- readonly Text: "text";
1933
+ readonly JsonSchema: "json_schema";
1961
1934
  }>;
1962
1935
  }
1963
1936
  /** @internal */
1937
+ export declare const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1938
+ /** @internal */
1939
+ export type UpdatePromptResponseFormatJsonSchema$Outbound = {
1940
+ name: string;
1941
+ strict?: boolean | undefined;
1942
+ schema: {
1943
+ [k: string]: any;
1944
+ };
1945
+ };
1946
+ /** @internal */
1947
+ export declare const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatJsonSchema>;
1948
+ /**
1949
+ * @internal
1950
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1951
+ */
1952
+ export declare namespace UpdatePromptResponseFormatJsonSchema$ {
1953
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
1954
+ const inboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1955
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
1956
+ const outboundSchema: z.ZodType<UpdatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatJsonSchema>;
1957
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
1958
+ type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
1959
+ }
1960
+ export declare function updatePromptResponseFormatJsonSchemaToJSON(updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema): string;
1961
+ export declare function updatePromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError>;
1962
+ /** @internal */
1964
1963
  export declare const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<UpdatePromptResponseFormatPrompts1, z.ZodTypeDef, unknown>;
1965
1964
  /** @internal */
1966
1965
  export type UpdatePromptResponseFormatPrompts1$Outbound = {
1967
1966
  type: string;
1967
+ json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
1968
1968
  };
1969
1969
  /** @internal */
1970
1970
  export declare const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<UpdatePromptResponseFormatPrompts1$Outbound, z.ZodTypeDef, UpdatePromptResponseFormatPrompts1>;
@@ -1985,7 +1985,7 @@ export declare function updatePromptResponseFormatPrompts1FromJSON(jsonString: s
1985
1985
  /** @internal */
1986
1986
  export declare const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<UpdatePromptPromptsResponseFormat, z.ZodTypeDef, unknown>;
1987
1987
  /** @internal */
1988
- export type UpdatePromptPromptsResponseFormat$Outbound = UpdatePromptResponseFormatPrompts2$Outbound | UpdatePromptResponseFormatPrompts1$Outbound | UpdatePromptResponseFormatPrompts3$Outbound;
1988
+ export type UpdatePromptPromptsResponseFormat$Outbound = UpdatePromptResponseFormatPrompts1$Outbound | UpdatePromptResponseFormatPrompts2$Outbound | UpdatePromptResponseFormatPrompts3$Outbound;
1989
1989
  /** @internal */
1990
1990
  export declare const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<UpdatePromptPromptsResponseFormat$Outbound, z.ZodTypeDef, UpdatePromptPromptsResponseFormat>;
1991
1991
  /**
@@ -2104,7 +2104,7 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
2104
2104
  dimensions?: string | undefined;
2105
2105
  quality?: string | undefined;
2106
2106
  style?: string | undefined;
2107
- responseFormat?: UpdatePromptResponseFormatPrompts2$Outbound | UpdatePromptResponseFormatPrompts1$Outbound | UpdatePromptResponseFormatPrompts3$Outbound | null | undefined;
2107
+ responseFormat?: UpdatePromptResponseFormatPrompts1$Outbound | UpdatePromptResponseFormatPrompts2$Outbound | UpdatePromptResponseFormatPrompts3$Outbound | null | undefined;
2108
2108
  photoRealVersion?: string | undefined;
2109
2109
  encoding_format?: string | undefined;
2110
2110
  reasoningEffort?: string | undefined;