@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
@@ -69,22 +69,22 @@ export type ListPromptVersionsFormat = ClosedEnum<
69
69
  typeof ListPromptVersionsFormat
70
70
  >;
71
71
 
72
- export const ListPromptVersionsResponseFormatPromptsType = {
72
+ export const ListPromptVersionsResponseFormatPromptsResponseType = {
73
73
  JsonObject: "json_object",
74
74
  } as const;
75
- export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<
76
- typeof ListPromptVersionsResponseFormatPromptsType
75
+ export type ListPromptVersionsResponseFormatPromptsResponseType = ClosedEnum<
76
+ typeof ListPromptVersionsResponseFormatPromptsResponseType
77
77
  >;
78
78
 
79
- export type ListPromptVersionsResponseFormat2 = {
80
- type: ListPromptVersionsResponseFormatPromptsType;
79
+ export type ListPromptVersionsResponseFormat3 = {
80
+ type: ListPromptVersionsResponseFormatPromptsResponseType;
81
81
  };
82
82
 
83
- export const ListPromptVersionsResponseFormatType = {
83
+ export const ListPromptVersionsResponseFormatPromptsType = {
84
84
  JsonSchema: "json_schema",
85
85
  } as const;
86
- export type ListPromptVersionsResponseFormatType = ClosedEnum<
87
- typeof ListPromptVersionsResponseFormatType
86
+ export type ListPromptVersionsResponseFormatPromptsType = ClosedEnum<
87
+ typeof ListPromptVersionsResponseFormatPromptsType
88
88
  >;
89
89
 
90
90
  export type ListPromptVersionsResponseFormatJsonSchema = {
@@ -93,9 +93,20 @@ export type ListPromptVersionsResponseFormatJsonSchema = {
93
93
  schema: { [k: string]: any };
94
94
  };
95
95
 
96
+ export type ListPromptVersionsResponseFormat2 = {
97
+ type: ListPromptVersionsResponseFormatPromptsType;
98
+ jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
99
+ };
100
+
101
+ export const ListPromptVersionsResponseFormatType = {
102
+ Text: "text",
103
+ } as const;
104
+ export type ListPromptVersionsResponseFormatType = ClosedEnum<
105
+ typeof ListPromptVersionsResponseFormatType
106
+ >;
107
+
96
108
  export type ListPromptVersionsResponseFormat1 = {
97
109
  type: ListPromptVersionsResponseFormatType;
98
- jsonSchema: ListPromptVersionsResponseFormatJsonSchema;
99
110
  };
100
111
 
101
112
  /**
@@ -110,8 +121,9 @@ export type ListPromptVersionsResponseFormat1 = {
110
121
  * 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.
111
122
  */
112
123
  export type ListPromptVersionsResponseFormat =
124
+ | ListPromptVersionsResponseFormat2
113
125
  | ListPromptVersionsResponseFormat1
114
- | ListPromptVersionsResponseFormat2;
126
+ | ListPromptVersionsResponseFormat3;
115
127
 
116
128
  /**
117
129
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
@@ -236,8 +248,9 @@ export type ListPromptVersionsModelParameters = {
236
248
  * 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.
237
249
  */
238
250
  responseFormat?:
239
- | ListPromptVersionsResponseFormat1
240
251
  | ListPromptVersionsResponseFormat2
252
+ | ListPromptVersionsResponseFormat1
253
+ | ListPromptVersionsResponseFormat3
241
254
  | null
242
255
  | undefined;
243
256
  /**
@@ -678,107 +691,106 @@ export namespace ListPromptVersionsFormat$ {
678
691
  }
679
692
 
680
693
  /** @internal */
681
- export const ListPromptVersionsResponseFormatPromptsType$inboundSchema:
682
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> = z
683
- .nativeEnum(ListPromptVersionsResponseFormatPromptsType);
694
+ export const ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema:
695
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
696
+ z.nativeEnum(ListPromptVersionsResponseFormatPromptsResponseType);
684
697
 
685
698
  /** @internal */
686
- export const ListPromptVersionsResponseFormatPromptsType$outboundSchema:
687
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> =
688
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
699
+ export const ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema:
700
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsResponseType> =
701
+ ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema;
689
702
 
690
703
  /**
691
704
  * @internal
692
705
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
693
706
  */
694
- export namespace ListPromptVersionsResponseFormatPromptsType$ {
695
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$inboundSchema` instead. */
707
+ export namespace ListPromptVersionsResponseFormatPromptsResponseType$ {
708
+ /** @deprecated use `ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema` instead. */
696
709
  export const inboundSchema =
697
- ListPromptVersionsResponseFormatPromptsType$inboundSchema;
698
- /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$outboundSchema` instead. */
710
+ ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema;
711
+ /** @deprecated use `ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema` instead. */
699
712
  export const outboundSchema =
700
- ListPromptVersionsResponseFormatPromptsType$outboundSchema;
713
+ ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema;
701
714
  }
702
715
 
703
716
  /** @internal */
704
- export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
705
- ListPromptVersionsResponseFormat2,
717
+ export const ListPromptVersionsResponseFormat3$inboundSchema: z.ZodType<
718
+ ListPromptVersionsResponseFormat3,
706
719
  z.ZodTypeDef,
707
720
  unknown
708
721
  > = z.object({
709
- type: ListPromptVersionsResponseFormatPromptsType$inboundSchema,
722
+ type: ListPromptVersionsResponseFormatPromptsResponseType$inboundSchema,
710
723
  });
711
724
 
712
725
  /** @internal */
713
- export type ListPromptVersionsResponseFormat2$Outbound = {
726
+ export type ListPromptVersionsResponseFormat3$Outbound = {
714
727
  type: string;
715
728
  };
716
729
 
717
730
  /** @internal */
718
- export const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<
719
- ListPromptVersionsResponseFormat2$Outbound,
731
+ export const ListPromptVersionsResponseFormat3$outboundSchema: z.ZodType<
732
+ ListPromptVersionsResponseFormat3$Outbound,
720
733
  z.ZodTypeDef,
721
- ListPromptVersionsResponseFormat2
734
+ ListPromptVersionsResponseFormat3
722
735
  > = z.object({
723
- type: ListPromptVersionsResponseFormatPromptsType$outboundSchema,
736
+ type: ListPromptVersionsResponseFormatPromptsResponseType$outboundSchema,
724
737
  });
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 ListPromptVersionsResponseFormat2$ {
731
- /** @deprecated use `ListPromptVersionsResponseFormat2$inboundSchema` instead. */
732
- export const inboundSchema = ListPromptVersionsResponseFormat2$inboundSchema;
733
- /** @deprecated use `ListPromptVersionsResponseFormat2$outboundSchema` instead. */
743
+ export namespace ListPromptVersionsResponseFormat3$ {
744
+ /** @deprecated use `ListPromptVersionsResponseFormat3$inboundSchema` instead. */
745
+ export const inboundSchema = ListPromptVersionsResponseFormat3$inboundSchema;
746
+ /** @deprecated use `ListPromptVersionsResponseFormat3$outboundSchema` instead. */
734
747
  export const outboundSchema =
735
- ListPromptVersionsResponseFormat2$outboundSchema;
736
- /** @deprecated use `ListPromptVersionsResponseFormat2$Outbound` instead. */
737
- export type Outbound = ListPromptVersionsResponseFormat2$Outbound;
748
+ ListPromptVersionsResponseFormat3$outboundSchema;
749
+ /** @deprecated use `ListPromptVersionsResponseFormat3$Outbound` instead. */
750
+ export type Outbound = ListPromptVersionsResponseFormat3$Outbound;
738
751
  }
739
752
 
740
- export function listPromptVersionsResponseFormat2ToJSON(
741
- listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2,
753
+ export function listPromptVersionsResponseFormat3ToJSON(
754
+ listPromptVersionsResponseFormat3: ListPromptVersionsResponseFormat3,
742
755
  ): string {
743
756
  return JSON.stringify(
744
- ListPromptVersionsResponseFormat2$outboundSchema.parse(
745
- listPromptVersionsResponseFormat2,
757
+ ListPromptVersionsResponseFormat3$outboundSchema.parse(
758
+ listPromptVersionsResponseFormat3,
746
759
  ),
747
760
  );
748
761
  }
749
762
 
750
- export function listPromptVersionsResponseFormat2FromJSON(
763
+ export function listPromptVersionsResponseFormat3FromJSON(
751
764
  jsonString: string,
752
- ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
765
+ ): SafeParseResult<ListPromptVersionsResponseFormat3, SDKValidationError> {
753
766
  return safeParse(
754
767
  jsonString,
755
- (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
756
- `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
768
+ (x) => ListPromptVersionsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
769
+ `Failed to parse 'ListPromptVersionsResponseFormat3' from JSON`,
757
770
  );
758
771
  }
759
772
 
760
773
  /** @internal */
761
- export const ListPromptVersionsResponseFormatType$inboundSchema:
762
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> = z.nativeEnum(
763
- ListPromptVersionsResponseFormatType,
764
- );
774
+ export const ListPromptVersionsResponseFormatPromptsType$inboundSchema:
775
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> = z
776
+ .nativeEnum(ListPromptVersionsResponseFormatPromptsType);
765
777
 
766
778
  /** @internal */
767
- export const ListPromptVersionsResponseFormatType$outboundSchema:
768
- z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> =
769
- ListPromptVersionsResponseFormatType$inboundSchema;
779
+ export const ListPromptVersionsResponseFormatPromptsType$outboundSchema:
780
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatPromptsType> =
781
+ ListPromptVersionsResponseFormatPromptsType$inboundSchema;
770
782
 
771
783
  /**
772
784
  * @internal
773
785
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
774
786
  */
775
- export namespace ListPromptVersionsResponseFormatType$ {
776
- /** @deprecated use `ListPromptVersionsResponseFormatType$inboundSchema` instead. */
787
+ export namespace ListPromptVersionsResponseFormatPromptsType$ {
788
+ /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$inboundSchema` instead. */
777
789
  export const inboundSchema =
778
- ListPromptVersionsResponseFormatType$inboundSchema;
779
- /** @deprecated use `ListPromptVersionsResponseFormatType$outboundSchema` instead. */
790
+ ListPromptVersionsResponseFormatPromptsType$inboundSchema;
791
+ /** @deprecated use `ListPromptVersionsResponseFormatPromptsType$outboundSchema` instead. */
780
792
  export const outboundSchema =
781
- ListPromptVersionsResponseFormatType$outboundSchema;
793
+ ListPromptVersionsResponseFormatPromptsType$outboundSchema;
782
794
  }
783
795
 
784
796
  /** @internal */
@@ -852,12 +864,12 @@ export function listPromptVersionsResponseFormatJsonSchemaFromJSON(
852
864
  }
853
865
 
854
866
  /** @internal */
855
- export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
856
- ListPromptVersionsResponseFormat1,
867
+ export const ListPromptVersionsResponseFormat2$inboundSchema: z.ZodType<
868
+ ListPromptVersionsResponseFormat2,
857
869
  z.ZodTypeDef,
858
870
  unknown
859
871
  > = z.object({
860
- type: ListPromptVersionsResponseFormatType$inboundSchema,
872
+ type: ListPromptVersionsResponseFormatPromptsType$inboundSchema,
861
873
  json_schema: z.lazy(() =>
862
874
  ListPromptVersionsResponseFormatJsonSchema$inboundSchema
863
875
  ),
@@ -868,18 +880,18 @@ export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
868
880
  });
869
881
 
870
882
  /** @internal */
871
- export type ListPromptVersionsResponseFormat1$Outbound = {
883
+ export type ListPromptVersionsResponseFormat2$Outbound = {
872
884
  type: string;
873
885
  json_schema: ListPromptVersionsResponseFormatJsonSchema$Outbound;
874
886
  };
875
887
 
876
888
  /** @internal */
877
- export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
878
- ListPromptVersionsResponseFormat1$Outbound,
889
+ export const ListPromptVersionsResponseFormat2$outboundSchema: z.ZodType<
890
+ ListPromptVersionsResponseFormat2$Outbound,
879
891
  z.ZodTypeDef,
880
- ListPromptVersionsResponseFormat1
892
+ ListPromptVersionsResponseFormat2
881
893
  > = z.object({
882
- type: ListPromptVersionsResponseFormatType$outboundSchema,
894
+ type: ListPromptVersionsResponseFormatPromptsType$outboundSchema,
883
895
  jsonSchema: z.lazy(() =>
884
896
  ListPromptVersionsResponseFormatJsonSchema$outboundSchema
885
897
  ),
@@ -889,6 +901,87 @@ export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
889
901
  });
890
902
  });
891
903
 
904
+ /**
905
+ * @internal
906
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
907
+ */
908
+ export namespace ListPromptVersionsResponseFormat2$ {
909
+ /** @deprecated use `ListPromptVersionsResponseFormat2$inboundSchema` instead. */
910
+ export const inboundSchema = ListPromptVersionsResponseFormat2$inboundSchema;
911
+ /** @deprecated use `ListPromptVersionsResponseFormat2$outboundSchema` instead. */
912
+ export const outboundSchema =
913
+ ListPromptVersionsResponseFormat2$outboundSchema;
914
+ /** @deprecated use `ListPromptVersionsResponseFormat2$Outbound` instead. */
915
+ export type Outbound = ListPromptVersionsResponseFormat2$Outbound;
916
+ }
917
+
918
+ export function listPromptVersionsResponseFormat2ToJSON(
919
+ listPromptVersionsResponseFormat2: ListPromptVersionsResponseFormat2,
920
+ ): string {
921
+ return JSON.stringify(
922
+ ListPromptVersionsResponseFormat2$outboundSchema.parse(
923
+ listPromptVersionsResponseFormat2,
924
+ ),
925
+ );
926
+ }
927
+
928
+ export function listPromptVersionsResponseFormat2FromJSON(
929
+ jsonString: string,
930
+ ): SafeParseResult<ListPromptVersionsResponseFormat2, SDKValidationError> {
931
+ return safeParse(
932
+ jsonString,
933
+ (x) => ListPromptVersionsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
934
+ `Failed to parse 'ListPromptVersionsResponseFormat2' from JSON`,
935
+ );
936
+ }
937
+
938
+ /** @internal */
939
+ export const ListPromptVersionsResponseFormatType$inboundSchema:
940
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> = z.nativeEnum(
941
+ ListPromptVersionsResponseFormatType,
942
+ );
943
+
944
+ /** @internal */
945
+ export const ListPromptVersionsResponseFormatType$outboundSchema:
946
+ z.ZodNativeEnum<typeof ListPromptVersionsResponseFormatType> =
947
+ ListPromptVersionsResponseFormatType$inboundSchema;
948
+
949
+ /**
950
+ * @internal
951
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
952
+ */
953
+ export namespace ListPromptVersionsResponseFormatType$ {
954
+ /** @deprecated use `ListPromptVersionsResponseFormatType$inboundSchema` instead. */
955
+ export const inboundSchema =
956
+ ListPromptVersionsResponseFormatType$inboundSchema;
957
+ /** @deprecated use `ListPromptVersionsResponseFormatType$outboundSchema` instead. */
958
+ export const outboundSchema =
959
+ ListPromptVersionsResponseFormatType$outboundSchema;
960
+ }
961
+
962
+ /** @internal */
963
+ export const ListPromptVersionsResponseFormat1$inboundSchema: z.ZodType<
964
+ ListPromptVersionsResponseFormat1,
965
+ z.ZodTypeDef,
966
+ unknown
967
+ > = z.object({
968
+ type: ListPromptVersionsResponseFormatType$inboundSchema,
969
+ });
970
+
971
+ /** @internal */
972
+ export type ListPromptVersionsResponseFormat1$Outbound = {
973
+ type: string;
974
+ };
975
+
976
+ /** @internal */
977
+ export const ListPromptVersionsResponseFormat1$outboundSchema: z.ZodType<
978
+ ListPromptVersionsResponseFormat1$Outbound,
979
+ z.ZodTypeDef,
980
+ ListPromptVersionsResponseFormat1
981
+ > = z.object({
982
+ type: ListPromptVersionsResponseFormatType$outboundSchema,
983
+ });
984
+
892
985
  /**
893
986
  * @internal
894
987
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -929,14 +1022,16 @@ export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
929
1022
  z.ZodTypeDef,
930
1023
  unknown
931
1024
  > = z.union([
932
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
933
1025
  z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1026
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1027
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
934
1028
  ]);
935
1029
 
936
1030
  /** @internal */
937
1031
  export type ListPromptVersionsResponseFormat$Outbound =
1032
+ | ListPromptVersionsResponseFormat2$Outbound
938
1033
  | ListPromptVersionsResponseFormat1$Outbound
939
- | ListPromptVersionsResponseFormat2$Outbound;
1034
+ | ListPromptVersionsResponseFormat3$Outbound;
940
1035
 
941
1036
  /** @internal */
942
1037
  export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
@@ -944,8 +1039,9 @@ export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
944
1039
  z.ZodTypeDef,
945
1040
  ListPromptVersionsResponseFormat
946
1041
  > = z.union([
947
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
948
1042
  z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1043
+ z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1044
+ z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
949
1045
  ]);
950
1046
 
951
1047
  /**
@@ -1087,8 +1183,9 @@ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
1087
1183
  style: z.string().optional(),
1088
1184
  responseFormat: z.nullable(
1089
1185
  z.union([
1090
- z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1091
1186
  z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
1187
+ z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
1188
+ z.lazy(() => ListPromptVersionsResponseFormat3$inboundSchema),
1092
1189
  ]),
1093
1190
  ).optional(),
1094
1191
  photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
@@ -1117,8 +1214,9 @@ export type ListPromptVersionsModelParameters$Outbound = {
1117
1214
  quality?: string | undefined;
1118
1215
  style?: string | undefined;
1119
1216
  responseFormat?:
1120
- | ListPromptVersionsResponseFormat1$Outbound
1121
1217
  | ListPromptVersionsResponseFormat2$Outbound
1218
+ | ListPromptVersionsResponseFormat1$Outbound
1219
+ | ListPromptVersionsResponseFormat3$Outbound
1122
1220
  | null
1123
1221
  | undefined;
1124
1222
  photoRealVersion?: string | undefined;
@@ -1148,8 +1246,9 @@ export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
1148
1246
  style: z.string().optional(),
1149
1247
  responseFormat: z.nullable(
1150
1248
  z.union([
1151
- z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1152
1249
  z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
1250
+ z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
1251
+ z.lazy(() => ListPromptVersionsResponseFormat3$outboundSchema),
1153
1252
  ]),
1154
1253
  ).optional(),
1155
1254
  photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-08-11T09:31:18.066Z",
130
+ "2025-08-12T10:35:45.801Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
168
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {
@@ -2481,7 +2481,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2481
2481
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2482
2482
  .optional(),
2483
2483
  updated: z.string().datetime({ offset: true }).default(
2484
- "2025-08-11T09:31:18.066Z",
2484
+ "2025-08-12T10:35:45.801Z",
2485
2485
  ).transform(v => new Date(v)),
2486
2486
  }).transform((v) => {
2487
2487
  return remap$(v, {
@@ -2539,7 +2539,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
2539
2539
  createdById: z.string().optional(),
2540
2540
  updatedById: z.string().optional(),
2541
2541
  created: z.date().transform(v => v.toISOString()).optional(),
2542
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
2542
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
2543
2543
  .transform(v => v.toISOString()),
2544
2544
  }).transform((v) => {
2545
2545
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-08-11T09:31:18.066Z",
204
+ "2025-08-12T10:35:45.801Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
244
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01K2C7GVTS05XCVFKHY660S3P1"),
175
+ _id: z.string().default("01K2EXKNBB488J57WPGH5TM8TA"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01K2C7GVTS05XCVFKHY660S3P1"),
219
+ id: z.string().default("01K2EXKNBB488J57WPGH5TM8TA"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
244
244
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
245
245
  .optional(),
246
246
  updated: z.string().datetime({ offset: true }).default(
247
- "2025-08-11T09:31:18.066Z",
247
+ "2025-08-12T10:35:45.801Z",
248
248
  ).transform(v => new Date(v)),
249
249
  }).transform((v) => {
250
250
  return remap$(v, {
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
282
282
  tags: z.array(z.string()).optional(),
283
283
  metadata: z.record(z.any()).optional(),
284
284
  created: z.date().transform(v => v.toISOString()).optional(),
285
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
285
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -5046,7 +5046,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
5046
5046
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
5047
5047
  .optional(),
5048
5048
  updated: z.string().datetime({ offset: true }).default(
5049
- "2025-08-11T09:31:18.066Z",
5049
+ "2025-08-12T10:35:45.801Z",
5050
5050
  ).transform(v => new Date(v)),
5051
5051
  }).transform((v) => {
5052
5052
  return remap$(v, {
@@ -5108,7 +5108,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
5108
5108
  createdById: z.string().optional(),
5109
5109
  updatedById: z.string().optional(),
5110
5110
  created: z.date().transform(v => v.toISOString()).optional(),
5111
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
5111
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
5112
5112
  .transform(v => v.toISOString()),
5113
5113
  }).transform((v) => {
5114
5114
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-08-11T09:31:18.066Z",
305
+ "2025-08-12T10:35:45.801Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-08-11T09:31:18.066Z"))
350
+ updated: z.date().default(() => new Date("2025-08-12T10:35:45.801Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01K2C7GVTTPVX56X225EMVC0GQ"),
247
+ _id: z.string().default("01K2EXKNBDVHZTG3RRSVCKT3FC"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01K2C7GVTTPVX56X225EMVC0GQ"),
291
+ id: z.string().default("01K2EXKNBDVHZTG3RRSVCKT3FC"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,
@@ -2674,8 +2674,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
2674
2674
  > = z.object({
2675
2675
  _id: z.string(),
2676
2676
  description: z.string(),
2677
- created: z.string().default("2025-08-11T09:31:20.314Z"),
2678
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
2677
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
2678
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
2679
2679
  guardrail_config: z.union([
2680
2680
  z.lazy(() =>
2681
2681
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
@@ -2717,8 +2717,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
2717
2717
  > = z.object({
2718
2718
  id: z.string(),
2719
2719
  description: z.string(),
2720
- created: z.string().default("2025-08-11T09:31:20.314Z"),
2721
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
2720
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
2721
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
2722
2722
  guardrailConfig: z.union([
2723
2723
  z.lazy(() =>
2724
2724
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
@@ -3139,8 +3139,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3139
3139
  > = z.object({
3140
3140
  _id: z.string(),
3141
3141
  description: z.string(),
3142
- created: z.string().default("2025-08-11T09:31:20.314Z"),
3143
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
3142
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
3143
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
3144
3144
  guardrail_config: z.union([
3145
3145
  z.lazy(() =>
3146
3146
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
@@ -3188,8 +3188,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
3188
3188
  > = z.object({
3189
3189
  id: z.string(),
3190
3190
  description: z.string(),
3191
- created: z.string().default("2025-08-11T09:31:20.314Z"),
3192
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
3191
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
3192
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
3193
3193
  guardrailConfig: z.union([
3194
3194
  z.lazy(() =>
3195
3195
  UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
@@ -3579,8 +3579,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
3579
3579
  > = z.object({
3580
3580
  _id: z.string(),
3581
3581
  description: z.string(),
3582
- created: z.string().default("2025-08-11T09:31:20.314Z"),
3583
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
3582
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
3583
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
3584
3584
  guardrail_config: z.union([
3585
3585
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
3586
3586
  z.lazy(() =>
@@ -3620,8 +3620,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
3620
3620
  > = z.object({
3621
3621
  id: z.string(),
3622
3622
  description: z.string(),
3623
- created: z.string().default("2025-08-11T09:31:20.314Z"),
3624
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
3623
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
3624
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
3625
3625
  guardrailConfig: z.union([
3626
3626
  z.lazy(() =>
3627
3627
  UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
@@ -3979,8 +3979,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
3979
3979
  > = z.object({
3980
3980
  _id: z.string(),
3981
3981
  description: z.string(),
3982
- created: z.string().default("2025-08-11T09:31:20.314Z"),
3983
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
3982
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
3983
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
3984
3984
  guardrail_config: z.union([
3985
3985
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
3986
3986
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -4020,8 +4020,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
4020
4020
  > = z.object({
4021
4021
  id: z.string(),
4022
4022
  description: z.string(),
4023
- created: z.string().default("2025-08-11T09:31:20.314Z"),
4024
- updated: z.string().default("2025-08-11T09:31:20.314Z"),
4023
+ created: z.string().default("2025-08-12T10:35:48.407Z"),
4024
+ updated: z.string().default("2025-08-12T10:35:48.407Z"),
4025
4025
  guardrailConfig: z.union([
4026
4026
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
4027
4027
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),