@orq-ai/node 3.6.16 → 3.6.17

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 (167) hide show
  1. package/bin/mcp-server.js +188 -188
  2. package/bin/mcp-server.js.map +35 -35
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/security.d.ts +2 -2
  7. package/lib/security.d.ts.map +1 -1
  8. package/mcp-server/mcp-server.js +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/models/components/deployments.d.ts +8 -8
  11. package/models/components/deployments.d.ts.map +1 -1
  12. package/models/components/deployments.js +8 -8
  13. package/models/components/deployments.js.map +1 -1
  14. package/models/operations/bulkcreatedatapoints.js +2 -2
  15. package/models/operations/createcontact.js +2 -2
  16. package/models/operations/createdataset.js +2 -2
  17. package/models/operations/createdatasetitem.js +2 -2
  18. package/models/operations/createdatasource.js +2 -2
  19. package/models/operations/createprompt.d.ts +12 -12
  20. package/models/operations/createprompt.d.ts.map +1 -1
  21. package/models/operations/createprompt.js +12 -12
  22. package/models/operations/createprompt.js.map +1 -1
  23. package/models/operations/deploymentcreatemetric.d.ts +8 -8
  24. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  25. package/models/operations/deploymentcreatemetric.js +8 -8
  26. package/models/operations/deploymentcreatemetric.js.map +1 -1
  27. package/models/operations/deploymentgetconfig.d.ts +14 -14
  28. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  29. package/models/operations/deploymentgetconfig.js +14 -14
  30. package/models/operations/deploymentgetconfig.js.map +1 -1
  31. package/models/operations/deploymentinvoke.d.ts +4 -4
  32. package/models/operations/deploymentinvoke.js +8 -8
  33. package/models/operations/deployments.d.ts +6 -6
  34. package/models/operations/deployments.d.ts.map +1 -1
  35. package/models/operations/deployments.js +6 -6
  36. package/models/operations/deployments.js.map +1 -1
  37. package/models/operations/deploymentstream.d.ts +12 -12
  38. package/models/operations/deploymentstream.d.ts.map +1 -1
  39. package/models/operations/deploymentstream.js +12 -12
  40. package/models/operations/deploymentstream.js.map +1 -1
  41. package/models/operations/fileget.js +2 -2
  42. package/models/operations/filelist.js +2 -2
  43. package/models/operations/fileupload.js +2 -2
  44. package/models/operations/getallprompts.d.ts +6 -6
  45. package/models/operations/getallprompts.d.ts.map +1 -1
  46. package/models/operations/getallprompts.js +6 -6
  47. package/models/operations/getallprompts.js.map +1 -1
  48. package/models/operations/getoneprompt.d.ts +6 -6
  49. package/models/operations/getoneprompt.d.ts.map +1 -1
  50. package/models/operations/getoneprompt.js +6 -6
  51. package/models/operations/getoneprompt.js.map +1 -1
  52. package/models/operations/getpromptversion.d.ts +6 -6
  53. package/models/operations/getpromptversion.d.ts.map +1 -1
  54. package/models/operations/getpromptversion.js +6 -6
  55. package/models/operations/getpromptversion.js.map +1 -1
  56. package/models/operations/listdatasetdatapoints.js +2 -2
  57. package/models/operations/listdatasets.js +2 -2
  58. package/models/operations/listdatasources.js +2 -2
  59. package/models/operations/listpromptversions.d.ts +6 -6
  60. package/models/operations/listpromptversions.d.ts.map +1 -1
  61. package/models/operations/listpromptversions.js +6 -6
  62. package/models/operations/listpromptversions.js.map +1 -1
  63. package/models/operations/retrievedatapoint.js +2 -2
  64. package/models/operations/retrievedataset.js +2 -2
  65. package/models/operations/retrievedatasource.js +2 -2
  66. package/models/operations/updatedatapoint.js +2 -2
  67. package/models/operations/updatedataset.js +2 -2
  68. package/models/operations/updatedatasource.js +2 -2
  69. package/models/operations/updateprompt.d.ts +12 -12
  70. package/models/operations/updateprompt.d.ts.map +1 -1
  71. package/models/operations/updateprompt.js +12 -12
  72. package/models/operations/updateprompt.js.map +1 -1
  73. package/package.json +1 -1
  74. package/packages/orq-rc/jsr.json +1 -1
  75. package/packages/orq-rc/package-lock.json +2 -2
  76. package/packages/orq-rc/package.json +1 -1
  77. package/packages/orq-rc/src/lib/config.ts +3 -3
  78. package/packages/orq-rc/src/lib/security.ts +2 -2
  79. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  81. package/packages/orq-rc/src/models/components/deployments.ts +16 -16
  82. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +18 -18
  85. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createeval.ts +121 -121
  87. package/packages/orq-rc/src/models/operations/createfeedback.ts +16 -16
  88. package/packages/orq-rc/src/models/operations/createprompt.ts +39 -39
  89. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +22 -18
  90. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -30
  91. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +13 -13
  92. package/packages/orq-rc/src/models/operations/deployments.ts +14 -14
  93. package/packages/orq-rc/src/models/operations/deploymentstream.ts +26 -26
  94. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +4 -4
  95. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
  96. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +4 -4
  97. package/packages/orq-rc/src/models/operations/evalslocalization.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/evalspii.ts +4 -4
  99. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +4 -4
  101. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +4 -4
  103. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +4 -4
  105. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +4 -4
  107. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +4 -4
  108. package/packages/orq-rc/src/models/operations/evalssummarization.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +4 -4
  110. package/packages/orq-rc/src/models/operations/evalstranslation.ts +4 -4
  111. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/getallprompts.ts +22 -22
  115. package/packages/orq-rc/src/models/operations/getevals.ts +339 -364
  116. package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
  117. package/packages/orq-rc/src/models/operations/getpromptversion.ts +22 -22
  118. package/packages/orq-rc/src/models/operations/invokeeval.ts +251 -223
  119. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +16 -12
  121. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/listpromptversions.ts +22 -22
  124. package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +18 -18
  125. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +10 -10
  127. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  129. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +21 -19
  131. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/updateeval.ts +139 -139
  134. package/packages/orq-rc/src/models/operations/updateprompt.ts +61 -106
  135. package/src/lib/config.ts +3 -3
  136. package/src/lib/security.ts +2 -2
  137. package/src/mcp-server/mcp-server.ts +1 -1
  138. package/src/mcp-server/server.ts +1 -1
  139. package/src/models/components/deployments.ts +16 -16
  140. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  141. package/src/models/operations/createcontact.ts +2 -2
  142. package/src/models/operations/createdataset.ts +2 -2
  143. package/src/models/operations/createdatasetitem.ts +2 -2
  144. package/src/models/operations/createdatasource.ts +2 -2
  145. package/src/models/operations/createprompt.ts +27 -27
  146. package/src/models/operations/deploymentcreatemetric.ts +22 -18
  147. package/src/models/operations/deploymentgetconfig.ts +30 -30
  148. package/src/models/operations/deploymentinvoke.ts +13 -13
  149. package/src/models/operations/deployments.ts +14 -14
  150. package/src/models/operations/deploymentstream.ts +26 -26
  151. package/src/models/operations/fileget.ts +2 -2
  152. package/src/models/operations/filelist.ts +2 -2
  153. package/src/models/operations/fileupload.ts +2 -2
  154. package/src/models/operations/getallprompts.ts +14 -14
  155. package/src/models/operations/getoneprompt.ts +14 -14
  156. package/src/models/operations/getpromptversion.ts +14 -14
  157. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  158. package/src/models/operations/listdatasets.ts +2 -2
  159. package/src/models/operations/listdatasources.ts +2 -2
  160. package/src/models/operations/listpromptversions.ts +14 -14
  161. package/src/models/operations/retrievedatapoint.ts +2 -2
  162. package/src/models/operations/retrievedataset.ts +2 -2
  163. package/src/models/operations/retrievedatasource.ts +2 -2
  164. package/src/models/operations/updatedatapoint.ts +2 -2
  165. package/src/models/operations/updatedataset.ts +2 -2
  166. package/src/models/operations/updatedatasource.ts +2 -2
  167. package/src/models/operations/updateprompt.ts +28 -28
@@ -74,7 +74,7 @@ export type GetOnePromptResponseFormatType = ClosedEnum<
74
74
 
75
75
  export type GetOnePromptResponseFormatJsonSchema = {
76
76
  name: string;
77
- strict: boolean;
77
+ strict?: boolean | undefined;
78
78
  schema: { [k: string]: any };
79
79
  };
80
80
 
@@ -95,8 +95,8 @@ export type GetOnePromptResponseFormat1 = {
95
95
  * 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.
96
96
  */
97
97
  export type GetOnePromptResponseFormat =
98
- | GetOnePromptResponseFormat2
99
- | GetOnePromptResponseFormat1;
98
+ | GetOnePromptResponseFormat1
99
+ | GetOnePromptResponseFormat2;
100
100
 
101
101
  /**
102
102
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -205,8 +205,8 @@ export type GetOnePromptModelParameters = {
205
205
  * 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.
206
206
  */
207
207
  responseFormat?:
208
- | GetOnePromptResponseFormat2
209
208
  | GetOnePromptResponseFormat1
209
+ | GetOnePromptResponseFormat2
210
210
  | null
211
211
  | undefined;
212
212
  /**
@@ -399,11 +399,11 @@ export type GetOnePromptPromptConfig = {
399
399
  /**
400
400
  * The id of the resource
401
401
  */
402
- modelDbId?: string | undefined;
402
+ modelDbId?: string | null | undefined;
403
403
  /**
404
404
  * The modality of the model
405
405
  */
406
- modelType?: GetOnePromptModelType | undefined;
406
+ modelType?: GetOnePromptModelType | null | undefined;
407
407
  /**
408
408
  * Model Parameters: Not all parameters apply to every model
409
409
  */
@@ -721,14 +721,14 @@ export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
721
721
  unknown
722
722
  > = z.object({
723
723
  name: z.string(),
724
- strict: z.boolean(),
724
+ strict: z.boolean().optional(),
725
725
  schema: z.record(z.any()),
726
726
  });
727
727
 
728
728
  /** @internal */
729
729
  export type GetOnePromptResponseFormatJsonSchema$Outbound = {
730
730
  name: string;
731
- strict: boolean;
731
+ strict?: boolean | undefined;
732
732
  schema: { [k: string]: any };
733
733
  };
734
734
 
@@ -739,7 +739,7 @@ export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
739
739
  GetOnePromptResponseFormatJsonSchema
740
740
  > = z.object({
741
741
  name: z.string(),
742
- strict: z.boolean(),
742
+ strict: z.boolean().optional(),
743
743
  schema: z.record(z.any()),
744
744
  });
745
745
 
@@ -852,14 +852,14 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
852
852
  z.ZodTypeDef,
853
853
  unknown
854
854
  > = z.union([
855
- z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
856
855
  z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
856
+ z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
857
857
  ]);
858
858
 
859
859
  /** @internal */
860
860
  export type GetOnePromptResponseFormat$Outbound =
861
- | GetOnePromptResponseFormat2$Outbound
862
- | GetOnePromptResponseFormat1$Outbound;
861
+ | GetOnePromptResponseFormat1$Outbound
862
+ | GetOnePromptResponseFormat2$Outbound;
863
863
 
864
864
  /** @internal */
865
865
  export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
@@ -867,8 +867,8 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
867
867
  z.ZodTypeDef,
868
868
  GetOnePromptResponseFormat
869
869
  > = z.union([
870
- z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
871
870
  z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
871
+ z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
872
872
  ]);
873
873
 
874
874
  /**
@@ -985,8 +985,8 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
985
985
  style: z.string().optional(),
986
986
  responseFormat: z.nullable(
987
987
  z.union([
988
- z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
989
988
  z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
989
+ z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
990
990
  ]),
991
991
  ).optional(),
992
992
  photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
@@ -1014,8 +1014,8 @@ export type GetOnePromptModelParameters$Outbound = {
1014
1014
  quality?: string | undefined;
1015
1015
  style?: string | undefined;
1016
1016
  responseFormat?:
1017
- | GetOnePromptResponseFormat2$Outbound
1018
1017
  | GetOnePromptResponseFormat1$Outbound
1018
+ | GetOnePromptResponseFormat2$Outbound
1019
1019
  | null
1020
1020
  | undefined;
1021
1021
  photoRealVersion?: string | undefined;
@@ -1044,8 +1044,8 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
1044
1044
  style: z.string().optional(),
1045
1045
  responseFormat: z.nullable(
1046
1046
  z.union([
1047
- z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
1048
1047
  z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
1048
+ z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
1049
1049
  ]),
1050
1050
  ).optional(),
1051
1051
  photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
@@ -1857,8 +1857,8 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1857
1857
  > = z.object({
1858
1858
  stream: z.boolean().optional(),
1859
1859
  model: z.string().optional(),
1860
- model_db_id: z.string().optional(),
1861
- model_type: GetOnePromptModelType$inboundSchema.optional(),
1860
+ model_db_id: z.nullable(z.string()).optional(),
1861
+ model_type: z.nullable(GetOnePromptModelType$inboundSchema).optional(),
1862
1862
  model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
1863
1863
  .optional(),
1864
1864
  provider: GetOnePromptProvider$inboundSchema.optional(),
@@ -1878,8 +1878,8 @@ export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
1878
1878
  export type GetOnePromptPromptConfig$Outbound = {
1879
1879
  stream?: boolean | undefined;
1880
1880
  model?: string | undefined;
1881
- model_db_id?: string | undefined;
1882
- model_type?: string | undefined;
1881
+ model_db_id?: string | null | undefined;
1882
+ model_type?: string | null | undefined;
1883
1883
  model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
1884
1884
  provider?: string | undefined;
1885
1885
  integration_id?: string | null | undefined;
@@ -1895,8 +1895,8 @@ export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
1895
1895
  > = z.object({
1896
1896
  stream: z.boolean().optional(),
1897
1897
  model: z.string().optional(),
1898
- modelDbId: z.string().optional(),
1899
- modelType: GetOnePromptModelType$outboundSchema.optional(),
1898
+ modelDbId: z.nullable(z.string()).optional(),
1899
+ modelType: z.nullable(GetOnePromptModelType$outboundSchema).optional(),
1900
1900
  modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
1901
1901
  .optional(),
1902
1902
  provider: GetOnePromptProvider$outboundSchema.optional(),
@@ -75,7 +75,7 @@ export type GetPromptVersionResponseFormatType = ClosedEnum<
75
75
 
76
76
  export type GetPromptVersionResponseFormatJsonSchema = {
77
77
  name: string;
78
- strict: boolean;
78
+ strict?: boolean | undefined;
79
79
  schema: { [k: string]: any };
80
80
  };
81
81
 
@@ -96,8 +96,8 @@ export type GetPromptVersionResponseFormat1 = {
96
96
  * 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.
97
97
  */
98
98
  export type GetPromptVersionResponseFormat =
99
- | GetPromptVersionResponseFormat2
100
- | GetPromptVersionResponseFormat1;
99
+ | GetPromptVersionResponseFormat1
100
+ | GetPromptVersionResponseFormat2;
101
101
 
102
102
  /**
103
103
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -206,8 +206,8 @@ export type GetPromptVersionModelParameters = {
206
206
  * 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.
207
207
  */
208
208
  responseFormat?:
209
- | GetPromptVersionResponseFormat2
210
209
  | GetPromptVersionResponseFormat1
210
+ | GetPromptVersionResponseFormat2
211
211
  | null
212
212
  | undefined;
213
213
  /**
@@ -402,11 +402,11 @@ export type GetPromptVersionPromptConfig = {
402
402
  /**
403
403
  * The id of the resource
404
404
  */
405
- modelDbId?: string | undefined;
405
+ modelDbId?: string | null | undefined;
406
406
  /**
407
407
  * The modality of the model
408
408
  */
409
- modelType?: GetPromptVersionModelType | undefined;
409
+ modelType?: GetPromptVersionModelType | null | undefined;
410
410
  /**
411
411
  * Model Parameters: Not all parameters apply to every model
412
412
  */
@@ -712,14 +712,14 @@ export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
712
712
  unknown
713
713
  > = z.object({
714
714
  name: z.string(),
715
- strict: z.boolean(),
715
+ strict: z.boolean().optional(),
716
716
  schema: z.record(z.any()),
717
717
  });
718
718
 
719
719
  /** @internal */
720
720
  export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
721
721
  name: string;
722
- strict: boolean;
722
+ strict?: boolean | undefined;
723
723
  schema: { [k: string]: any };
724
724
  };
725
725
 
@@ -730,7 +730,7 @@ export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
730
730
  GetPromptVersionResponseFormatJsonSchema
731
731
  > = z.object({
732
732
  name: z.string(),
733
- strict: z.boolean(),
733
+ strict: z.boolean().optional(),
734
734
  schema: z.record(z.any()),
735
735
  });
736
736
 
@@ -853,14 +853,14 @@ export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
853
853
  z.ZodTypeDef,
854
854
  unknown
855
855
  > = z.union([
856
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
857
856
  z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
857
+ z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
858
858
  ]);
859
859
 
860
860
  /** @internal */
861
861
  export type GetPromptVersionResponseFormat$Outbound =
862
- | GetPromptVersionResponseFormat2$Outbound
863
- | GetPromptVersionResponseFormat1$Outbound;
862
+ | GetPromptVersionResponseFormat1$Outbound
863
+ | GetPromptVersionResponseFormat2$Outbound;
864
864
 
865
865
  /** @internal */
866
866
  export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
@@ -868,8 +868,8 @@ export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
868
868
  z.ZodTypeDef,
869
869
  GetPromptVersionResponseFormat
870
870
  > = z.union([
871
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
872
871
  z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
872
+ z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
873
873
  ]);
874
874
 
875
875
  /**
@@ -988,8 +988,8 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
988
988
  style: z.string().optional(),
989
989
  responseFormat: z.nullable(
990
990
  z.union([
991
- z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
992
991
  z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
992
+ z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
993
993
  ]),
994
994
  ).optional(),
995
995
  photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
@@ -1017,8 +1017,8 @@ export type GetPromptVersionModelParameters$Outbound = {
1017
1017
  quality?: string | undefined;
1018
1018
  style?: string | undefined;
1019
1019
  responseFormat?:
1020
- | GetPromptVersionResponseFormat2$Outbound
1021
1020
  | GetPromptVersionResponseFormat1$Outbound
1021
+ | GetPromptVersionResponseFormat2$Outbound
1022
1022
  | null
1023
1023
  | undefined;
1024
1024
  photoRealVersion?: string | undefined;
@@ -1047,8 +1047,8 @@ export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
1047
1047
  style: z.string().optional(),
1048
1048
  responseFormat: z.nullable(
1049
1049
  z.union([
1050
- z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
1051
1050
  z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
1051
+ z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
1052
1052
  ]),
1053
1053
  ).optional(),
1054
1054
  photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
@@ -1877,8 +1877,8 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1877
1877
  > = z.object({
1878
1878
  stream: z.boolean().optional(),
1879
1879
  model: z.string().optional(),
1880
- model_db_id: z.string().optional(),
1881
- model_type: GetPromptVersionModelType$inboundSchema.optional(),
1880
+ model_db_id: z.nullable(z.string()).optional(),
1881
+ model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
1882
1882
  model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
1883
1883
  .optional(),
1884
1884
  provider: GetPromptVersionProvider$inboundSchema.optional(),
@@ -1898,8 +1898,8 @@ export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
1898
1898
  export type GetPromptVersionPromptConfig$Outbound = {
1899
1899
  stream?: boolean | undefined;
1900
1900
  model?: string | undefined;
1901
- model_db_id?: string | undefined;
1902
- model_type?: string | undefined;
1901
+ model_db_id?: string | null | undefined;
1902
+ model_type?: string | null | undefined;
1903
1903
  model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
1904
1904
  provider?: string | undefined;
1905
1905
  integration_id?: string | null | undefined;
@@ -1915,8 +1915,8 @@ export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
1915
1915
  > = z.object({
1916
1916
  stream: z.boolean().optional(),
1917
1917
  model: z.string().optional(),
1918
- modelDbId: z.string().optional(),
1919
- modelType: GetPromptVersionModelType$outboundSchema.optional(),
1918
+ modelDbId: z.nullable(z.string()).optional(),
1919
+ modelType: z.nullable(GetPromptVersionModelType$outboundSchema).optional(),
1920
1920
  modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
1921
1921
  .optional(),
1922
1922
  provider: GetPromptVersionProvider$outboundSchema.optional(),