@orq-ai/node 3.10.16 → 3.10.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 (132) hide show
  1. package/bin/mcp-server.js +608 -378
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/createeval.js +16 -16
  14. package/models/operations/createprompt.d.ts +163 -69
  15. package/models/operations/createprompt.d.ts.map +1 -1
  16. package/models/operations/createprompt.js +196 -96
  17. package/models/operations/createprompt.js.map +1 -1
  18. package/models/operations/deploymentgetconfig.d.ts +82 -35
  19. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  20. package/models/operations/deploymentgetconfig.js +106 -57
  21. package/models/operations/deploymentgetconfig.js.map +1 -1
  22. package/models/operations/deployments.d.ts +82 -35
  23. package/models/operations/deployments.d.ts.map +1 -1
  24. package/models/operations/deployments.js +99 -49
  25. package/models/operations/deployments.js.map +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/getallprompts.d.ts +81 -34
  30. package/models/operations/getallprompts.d.ts.map +1 -1
  31. package/models/operations/getallprompts.js +99 -49
  32. package/models/operations/getallprompts.js.map +1 -1
  33. package/models/operations/getevals.js +28 -28
  34. package/models/operations/getoneprompt.d.ts +81 -34
  35. package/models/operations/getoneprompt.d.ts.map +1 -1
  36. package/models/operations/getoneprompt.js +99 -49
  37. package/models/operations/getoneprompt.js.map +1 -1
  38. package/models/operations/getpromptversion.d.ts +81 -34
  39. package/models/operations/getpromptversion.d.ts.map +1 -1
  40. package/models/operations/getpromptversion.js +100 -50
  41. package/models/operations/getpromptversion.js.map +1 -1
  42. package/models/operations/listcontacts.js +2 -2
  43. package/models/operations/listdatasetdatapoints.js +2 -2
  44. package/models/operations/listdatasets.js +2 -2
  45. package/models/operations/listdatasources.js +2 -2
  46. package/models/operations/listpromptversions.d.ts +81 -34
  47. package/models/operations/listpromptversions.d.ts.map +1 -1
  48. package/models/operations/listpromptversions.js +99 -50
  49. package/models/operations/listpromptversions.js.map +1 -1
  50. package/models/operations/retrievecontact.js +2 -2
  51. package/models/operations/retrievedatapoint.js +2 -2
  52. package/models/operations/retrievedataset.js +2 -2
  53. package/models/operations/retrievedatasource.js +2 -2
  54. package/models/operations/updatecontact.js +2 -2
  55. package/models/operations/updatedatapoint.js +2 -2
  56. package/models/operations/updatedataset.js +2 -2
  57. package/models/operations/updatedatasource.js +2 -2
  58. package/models/operations/updateeval.js +16 -16
  59. package/models/operations/updateprompt.d.ts +162 -68
  60. package/models/operations/updateprompt.d.ts.map +1 -1
  61. package/models/operations/updateprompt.js +197 -97
  62. package/models/operations/updateprompt.js.map +1 -1
  63. package/package.json +1 -1
  64. package/packages/orq-rc/docs/sdks/datasets/README.md +1 -1
  65. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  66. package/packages/orq-rc/examples/package-lock.json +1 -1
  67. package/packages/orq-rc/jsr.json +1 -1
  68. package/packages/orq-rc/package-lock.json +2 -2
  69. package/packages/orq-rc/package.json +1 -1
  70. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +5 -4
  71. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +4 -4
  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/models/operations/createchunk.ts +54 -44
  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 +46 -63
  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/fileget.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  85. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  98. package/packages/orq-rc/src/sdk/datasets.ts +1 -1
  99. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/operations/createcontact.ts +2 -2
  104. package/src/models/operations/createdataset.ts +2 -2
  105. package/src/models/operations/createdatasetitem.ts +2 -2
  106. package/src/models/operations/createdatasource.ts +2 -2
  107. package/src/models/operations/createeval.ts +16 -16
  108. package/src/models/operations/createprompt.ts +347 -141
  109. package/src/models/operations/deploymentgetconfig.ts +173 -72
  110. package/src/models/operations/deployments.ts +168 -72
  111. package/src/models/operations/fileget.ts +2 -2
  112. package/src/models/operations/filelist.ts +2 -2
  113. package/src/models/operations/fileupload.ts +2 -2
  114. package/src/models/operations/getallprompts.ts +169 -71
  115. package/src/models/operations/getevals.ts +28 -28
  116. package/src/models/operations/getoneprompt.ts +169 -71
  117. package/src/models/operations/getpromptversion.ts +168 -70
  118. package/src/models/operations/listcontacts.ts +2 -2
  119. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  120. package/src/models/operations/listdatasets.ts +2 -2
  121. package/src/models/operations/listdatasources.ts +2 -2
  122. package/src/models/operations/listpromptversions.ts +170 -71
  123. package/src/models/operations/retrievecontact.ts +2 -2
  124. package/src/models/operations/retrievedatapoint.ts +2 -2
  125. package/src/models/operations/retrievedataset.ts +2 -2
  126. package/src/models/operations/retrievedatasource.ts +2 -2
  127. package/src/models/operations/updatecontact.ts +2 -2
  128. package/src/models/operations/updatedatapoint.ts +2 -2
  129. package/src/models/operations/updatedataset.ts +2 -2
  130. package/src/models/operations/updatedatasource.ts +2 -2
  131. package/src/models/operations/updateeval.ts +16 -16
  132. package/src/models/operations/updateprompt.ts +347 -141
@@ -54,22 +54,22 @@ export const GetOnePromptFormat = {
54
54
  */
55
55
  export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
56
56
 
57
- export const GetOnePromptResponseFormatPromptsType = {
57
+ export const GetOnePromptResponseFormatPromptsResponseType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
61
- typeof GetOnePromptResponseFormatPromptsType
60
+ export type GetOnePromptResponseFormatPromptsResponseType = ClosedEnum<
61
+ typeof GetOnePromptResponseFormatPromptsResponseType
62
62
  >;
63
63
 
64
- export type GetOnePromptResponseFormat2 = {
65
- type: GetOnePromptResponseFormatPromptsType;
64
+ export type GetOnePromptResponseFormat3 = {
65
+ type: GetOnePromptResponseFormatPromptsResponseType;
66
66
  };
67
67
 
68
- export const GetOnePromptResponseFormatType = {
68
+ export const GetOnePromptResponseFormatPromptsType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type GetOnePromptResponseFormatType = ClosedEnum<
72
- typeof GetOnePromptResponseFormatType
71
+ export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
72
+ typeof GetOnePromptResponseFormatPromptsType
73
73
  >;
74
74
 
75
75
  export type GetOnePromptResponseFormatJsonSchema = {
@@ -78,9 +78,20 @@ export type GetOnePromptResponseFormatJsonSchema = {
78
78
  schema: { [k: string]: any };
79
79
  };
80
80
 
81
+ export type GetOnePromptResponseFormat2 = {
82
+ type: GetOnePromptResponseFormatPromptsType;
83
+ jsonSchema: GetOnePromptResponseFormatJsonSchema;
84
+ };
85
+
86
+ export const GetOnePromptResponseFormatType = {
87
+ Text: "text",
88
+ } as const;
89
+ export type GetOnePromptResponseFormatType = ClosedEnum<
90
+ typeof GetOnePromptResponseFormatType
91
+ >;
92
+
81
93
  export type GetOnePromptResponseFormat1 = {
82
94
  type: GetOnePromptResponseFormatType;
83
- jsonSchema: GetOnePromptResponseFormatJsonSchema;
84
95
  };
85
96
 
86
97
  /**
@@ -95,8 +106,9 @@ export type GetOnePromptResponseFormat1 = {
95
106
  * 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
107
  */
97
108
  export type GetOnePromptResponseFormat =
109
+ | GetOnePromptResponseFormat2
98
110
  | GetOnePromptResponseFormat1
99
- | GetOnePromptResponseFormat2;
111
+ | GetOnePromptResponseFormat3;
100
112
 
101
113
  /**
102
114
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -219,8 +231,9 @@ export type GetOnePromptModelParameters = {
219
231
  * 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.
220
232
  */
221
233
  responseFormat?:
222
- | GetOnePromptResponseFormat1
223
234
  | GetOnePromptResponseFormat2
235
+ | GetOnePromptResponseFormat1
236
+ | GetOnePromptResponseFormat3
224
237
  | null
225
238
  | undefined;
226
239
  /**
@@ -634,104 +647,106 @@ export namespace GetOnePromptFormat$ {
634
647
  }
635
648
 
636
649
  /** @internal */
637
- export const GetOnePromptResponseFormatPromptsType$inboundSchema:
638
- z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
639
- GetOnePromptResponseFormatPromptsType,
640
- );
650
+ export const GetOnePromptResponseFormatPromptsResponseType$inboundSchema:
651
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> = z
652
+ .nativeEnum(GetOnePromptResponseFormatPromptsResponseType);
641
653
 
642
654
  /** @internal */
643
- export const GetOnePromptResponseFormatPromptsType$outboundSchema:
644
- z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
645
- GetOnePromptResponseFormatPromptsType$inboundSchema;
655
+ export const GetOnePromptResponseFormatPromptsResponseType$outboundSchema:
656
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> =
657
+ GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
646
658
 
647
659
  /**
648
660
  * @internal
649
661
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
650
662
  */
651
- export namespace GetOnePromptResponseFormatPromptsType$ {
652
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
663
+ export namespace GetOnePromptResponseFormatPromptsResponseType$ {
664
+ /** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
653
665
  export const inboundSchema =
654
- GetOnePromptResponseFormatPromptsType$inboundSchema;
655
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
666
+ GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
667
+ /** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
656
668
  export const outboundSchema =
657
- GetOnePromptResponseFormatPromptsType$outboundSchema;
669
+ GetOnePromptResponseFormatPromptsResponseType$outboundSchema;
658
670
  }
659
671
 
660
672
  /** @internal */
661
- export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
662
- GetOnePromptResponseFormat2,
673
+ export const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<
674
+ GetOnePromptResponseFormat3,
663
675
  z.ZodTypeDef,
664
676
  unknown
665
677
  > = z.object({
666
- type: GetOnePromptResponseFormatPromptsType$inboundSchema,
678
+ type: GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
667
679
  });
668
680
 
669
681
  /** @internal */
670
- export type GetOnePromptResponseFormat2$Outbound = {
682
+ export type GetOnePromptResponseFormat3$Outbound = {
671
683
  type: string;
672
684
  };
673
685
 
674
686
  /** @internal */
675
- export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
676
- GetOnePromptResponseFormat2$Outbound,
687
+ export const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<
688
+ GetOnePromptResponseFormat3$Outbound,
677
689
  z.ZodTypeDef,
678
- GetOnePromptResponseFormat2
690
+ GetOnePromptResponseFormat3
679
691
  > = z.object({
680
- type: GetOnePromptResponseFormatPromptsType$outboundSchema,
692
+ type: GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
681
693
  });
682
694
 
683
695
  /**
684
696
  * @internal
685
697
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
686
698
  */
687
- export namespace GetOnePromptResponseFormat2$ {
688
- /** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
689
- export const inboundSchema = GetOnePromptResponseFormat2$inboundSchema;
690
- /** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
691
- export const outboundSchema = GetOnePromptResponseFormat2$outboundSchema;
692
- /** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
693
- export type Outbound = GetOnePromptResponseFormat2$Outbound;
699
+ export namespace GetOnePromptResponseFormat3$ {
700
+ /** @deprecated use `GetOnePromptResponseFormat3$inboundSchema` instead. */
701
+ export const inboundSchema = GetOnePromptResponseFormat3$inboundSchema;
702
+ /** @deprecated use `GetOnePromptResponseFormat3$outboundSchema` instead. */
703
+ export const outboundSchema = GetOnePromptResponseFormat3$outboundSchema;
704
+ /** @deprecated use `GetOnePromptResponseFormat3$Outbound` instead. */
705
+ export type Outbound = GetOnePromptResponseFormat3$Outbound;
694
706
  }
695
707
 
696
- export function getOnePromptResponseFormat2ToJSON(
697
- getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
708
+ export function getOnePromptResponseFormat3ToJSON(
709
+ getOnePromptResponseFormat3: GetOnePromptResponseFormat3,
698
710
  ): string {
699
711
  return JSON.stringify(
700
- GetOnePromptResponseFormat2$outboundSchema.parse(
701
- getOnePromptResponseFormat2,
712
+ GetOnePromptResponseFormat3$outboundSchema.parse(
713
+ getOnePromptResponseFormat3,
702
714
  ),
703
715
  );
704
716
  }
705
717
 
706
- export function getOnePromptResponseFormat2FromJSON(
718
+ export function getOnePromptResponseFormat3FromJSON(
707
719
  jsonString: string,
708
- ): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
720
+ ): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError> {
709
721
  return safeParse(
710
722
  jsonString,
711
- (x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
712
- `Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
723
+ (x) => GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
724
+ `Failed to parse 'GetOnePromptResponseFormat3' from JSON`,
713
725
  );
714
726
  }
715
727
 
716
728
  /** @internal */
717
- export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
718
- typeof GetOnePromptResponseFormatType
719
- > = z.nativeEnum(GetOnePromptResponseFormatType);
729
+ export const GetOnePromptResponseFormatPromptsType$inboundSchema:
730
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
731
+ GetOnePromptResponseFormatPromptsType,
732
+ );
720
733
 
721
734
  /** @internal */
722
- export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
723
- typeof GetOnePromptResponseFormatType
724
- > = GetOnePromptResponseFormatType$inboundSchema;
735
+ export const GetOnePromptResponseFormatPromptsType$outboundSchema:
736
+ z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
737
+ GetOnePromptResponseFormatPromptsType$inboundSchema;
725
738
 
726
739
  /**
727
740
  * @internal
728
741
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
729
742
  */
730
- export namespace GetOnePromptResponseFormatType$ {
731
- /** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
732
- export const inboundSchema = GetOnePromptResponseFormatType$inboundSchema;
733
- /** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
734
- export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
743
+ export namespace GetOnePromptResponseFormatPromptsType$ {
744
+ /** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
745
+ export const inboundSchema =
746
+ GetOnePromptResponseFormatPromptsType$inboundSchema;
747
+ /** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
748
+ export const outboundSchema =
749
+ GetOnePromptResponseFormatPromptsType$outboundSchema;
735
750
  }
736
751
 
737
752
  /** @internal */
@@ -800,12 +815,12 @@ export function getOnePromptResponseFormatJsonSchemaFromJSON(
800
815
  }
801
816
 
802
817
  /** @internal */
803
- export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
804
- GetOnePromptResponseFormat1,
818
+ export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
819
+ GetOnePromptResponseFormat2,
805
820
  z.ZodTypeDef,
806
821
  unknown
807
822
  > = z.object({
808
- type: GetOnePromptResponseFormatType$inboundSchema,
823
+ type: GetOnePromptResponseFormatPromptsType$inboundSchema,
809
824
  json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
810
825
  }).transform((v) => {
811
826
  return remap$(v, {
@@ -814,18 +829,18 @@ export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
814
829
  });
815
830
 
816
831
  /** @internal */
817
- export type GetOnePromptResponseFormat1$Outbound = {
832
+ export type GetOnePromptResponseFormat2$Outbound = {
818
833
  type: string;
819
834
  json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
820
835
  };
821
836
 
822
837
  /** @internal */
823
- export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
824
- GetOnePromptResponseFormat1$Outbound,
838
+ export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
839
+ GetOnePromptResponseFormat2$Outbound,
825
840
  z.ZodTypeDef,
826
- GetOnePromptResponseFormat1
841
+ GetOnePromptResponseFormat2
827
842
  > = z.object({
828
- type: GetOnePromptResponseFormatType$outboundSchema,
843
+ type: GetOnePromptResponseFormatPromptsType$outboundSchema,
829
844
  jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
830
845
  }).transform((v) => {
831
846
  return remap$(v, {
@@ -833,6 +848,83 @@ export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
833
848
  });
834
849
  });
835
850
 
851
+ /**
852
+ * @internal
853
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
854
+ */
855
+ export namespace GetOnePromptResponseFormat2$ {
856
+ /** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
857
+ export const inboundSchema = GetOnePromptResponseFormat2$inboundSchema;
858
+ /** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
859
+ export const outboundSchema = GetOnePromptResponseFormat2$outboundSchema;
860
+ /** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
861
+ export type Outbound = GetOnePromptResponseFormat2$Outbound;
862
+ }
863
+
864
+ export function getOnePromptResponseFormat2ToJSON(
865
+ getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
866
+ ): string {
867
+ return JSON.stringify(
868
+ GetOnePromptResponseFormat2$outboundSchema.parse(
869
+ getOnePromptResponseFormat2,
870
+ ),
871
+ );
872
+ }
873
+
874
+ export function getOnePromptResponseFormat2FromJSON(
875
+ jsonString: string,
876
+ ): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
877
+ return safeParse(
878
+ jsonString,
879
+ (x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
880
+ `Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
881
+ );
882
+ }
883
+
884
+ /** @internal */
885
+ export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
886
+ typeof GetOnePromptResponseFormatType
887
+ > = z.nativeEnum(GetOnePromptResponseFormatType);
888
+
889
+ /** @internal */
890
+ export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
891
+ typeof GetOnePromptResponseFormatType
892
+ > = GetOnePromptResponseFormatType$inboundSchema;
893
+
894
+ /**
895
+ * @internal
896
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
897
+ */
898
+ export namespace GetOnePromptResponseFormatType$ {
899
+ /** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
900
+ export const inboundSchema = GetOnePromptResponseFormatType$inboundSchema;
901
+ /** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
902
+ export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
903
+ }
904
+
905
+ /** @internal */
906
+ export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
907
+ GetOnePromptResponseFormat1,
908
+ z.ZodTypeDef,
909
+ unknown
910
+ > = z.object({
911
+ type: GetOnePromptResponseFormatType$inboundSchema,
912
+ });
913
+
914
+ /** @internal */
915
+ export type GetOnePromptResponseFormat1$Outbound = {
916
+ type: string;
917
+ };
918
+
919
+ /** @internal */
920
+ export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
921
+ GetOnePromptResponseFormat1$Outbound,
922
+ z.ZodTypeDef,
923
+ GetOnePromptResponseFormat1
924
+ > = z.object({
925
+ type: GetOnePromptResponseFormatType$outboundSchema,
926
+ });
927
+
836
928
  /**
837
929
  * @internal
838
930
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -872,14 +964,16 @@ export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
872
964
  z.ZodTypeDef,
873
965
  unknown
874
966
  > = z.union([
875
- z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
876
967
  z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
968
+ z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
969
+ z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
877
970
  ]);
878
971
 
879
972
  /** @internal */
880
973
  export type GetOnePromptResponseFormat$Outbound =
974
+ | GetOnePromptResponseFormat2$Outbound
881
975
  | GetOnePromptResponseFormat1$Outbound
882
- | GetOnePromptResponseFormat2$Outbound;
976
+ | GetOnePromptResponseFormat3$Outbound;
883
977
 
884
978
  /** @internal */
885
979
  export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
@@ -887,8 +981,9 @@ export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
887
981
  z.ZodTypeDef,
888
982
  GetOnePromptResponseFormat
889
983
  > = z.union([
890
- z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
891
984
  z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
985
+ z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
986
+ z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
892
987
  ]);
893
988
 
894
989
  /**
@@ -1026,8 +1121,9 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
1026
1121
  style: z.string().optional(),
1027
1122
  responseFormat: z.nullable(
1028
1123
  z.union([
1029
- z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
1030
1124
  z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
1125
+ z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
1126
+ z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
1031
1127
  ]),
1032
1128
  ).optional(),
1033
1129
  photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
@@ -1056,8 +1152,9 @@ export type GetOnePromptModelParameters$Outbound = {
1056
1152
  quality?: string | undefined;
1057
1153
  style?: string | undefined;
1058
1154
  responseFormat?:
1059
- | GetOnePromptResponseFormat1$Outbound
1060
1155
  | GetOnePromptResponseFormat2$Outbound
1156
+ | GetOnePromptResponseFormat1$Outbound
1157
+ | GetOnePromptResponseFormat3$Outbound
1061
1158
  | null
1062
1159
  | undefined;
1063
1160
  photoRealVersion?: string | undefined;
@@ -1087,8 +1184,9 @@ export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
1087
1184
  style: z.string().optional(),
1088
1185
  responseFormat: z.nullable(
1089
1186
  z.union([
1090
- z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
1091
1187
  z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
1188
+ z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
1189
+ z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
1092
1190
  ]),
1093
1191
  ).optional(),
1094
1192
  photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),