@orq-ai/node 3.11.7 → 3.11.8

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 (155) hide show
  1. package/bin/mcp-server.js +104 -104
  2. package/bin/mcp-server.js.map +26 -26
  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/fileget.js +2 -2
  15. package/models/operations/filelist.js +2 -2
  16. package/models/operations/fileupload.js +2 -2
  17. package/models/operations/getevals.js +28 -28
  18. package/models/operations/listcontacts.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievecontact.js +2 -2
  23. package/models/operations/retrievedatapoint.js +2 -2
  24. package/models/operations/retrievedataset.js +2 -2
  25. package/models/operations/retrievedatasource.js +2 -2
  26. package/models/operations/updatecontact.js +2 -2
  27. package/models/operations/updatedatapoint.js +2 -2
  28. package/models/operations/updatedataset.js +2 -2
  29. package/models/operations/updatedatasource.js +2 -2
  30. package/models/operations/updateeval.js +16 -16
  31. package/package.json +1 -1
  32. package/packages/orq-rc/README.md +128 -87
  33. package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
  34. package/packages/orq-rc/docs/sdks/proxy/README.md +1212 -0
  35. package/packages/orq-rc/examples/package-lock.json +1 -1
  36. package/packages/orq-rc/jsr.json +1 -1
  37. package/packages/orq-rc/package-lock.json +2 -2
  38. package/packages/orq-rc/package.json +1 -1
  39. package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
  40. package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
  41. package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
  42. package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
  43. package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
  44. package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
  45. package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
  46. package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
  47. package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
  48. package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
  49. package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
  50. package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
  51. package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
  52. package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
  53. package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
  54. package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
  55. package/packages/orq-rc/src/lib/config.ts +3 -3
  56. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  57. package/packages/orq-rc/src/mcp-server/server.ts +33 -1
  58. package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
  59. package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
  60. package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
  61. package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
  62. package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
  63. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
  64. package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
  65. package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
  66. package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
  67. package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
  68. package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
  69. package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
  70. package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
  71. package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
  72. package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
  73. package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
  74. package/packages/orq-rc/src/models/components/deployments.ts +861 -0
  75. package/packages/orq-rc/src/models/components/index.ts +1 -0
  76. package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
  77. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  78. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
  79. package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
  80. package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
  81. package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
  82. package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
  83. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
  85. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
  88. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  90. package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
  91. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
  92. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
  93. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
  94. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
  99. package/packages/orq-rc/src/models/operations/index.ts +16 -0
  100. package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
  101. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
  104. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  106. package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
  107. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
  108. package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
  109. package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
  110. package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +543 -0
  111. package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
  112. package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
  113. package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
  114. package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
  115. package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
  116. package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
  117. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  118. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
  119. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  120. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  123. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
  124. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  125. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  127. package/packages/orq-rc/src/sdk/batches.ts +81 -0
  128. package/packages/orq-rc/src/sdk/proxy.ts +211 -0
  129. package/packages/orq-rc/src/sdk/sdk.ts +12 -0
  130. package/packages/orq-rc/temp/example.ts +5 -0
  131. package/src/lib/config.ts +3 -3
  132. package/src/mcp-server/mcp-server.ts +1 -1
  133. package/src/mcp-server/server.ts +1 -1
  134. package/src/models/operations/createcontact.ts +2 -2
  135. package/src/models/operations/createdataset.ts +2 -2
  136. package/src/models/operations/createdatasetitem.ts +2 -2
  137. package/src/models/operations/createdatasource.ts +2 -2
  138. package/src/models/operations/createeval.ts +16 -16
  139. package/src/models/operations/fileget.ts +2 -2
  140. package/src/models/operations/filelist.ts +2 -2
  141. package/src/models/operations/fileupload.ts +2 -2
  142. package/src/models/operations/getevals.ts +28 -28
  143. package/src/models/operations/listcontacts.ts +2 -2
  144. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  145. package/src/models/operations/listdatasets.ts +2 -2
  146. package/src/models/operations/listdatasources.ts +2 -2
  147. package/src/models/operations/retrievecontact.ts +2 -2
  148. package/src/models/operations/retrievedatapoint.ts +2 -2
  149. package/src/models/operations/retrievedataset.ts +2 -2
  150. package/src/models/operations/retrievedatasource.ts +2 -2
  151. package/src/models/operations/updatecontact.ts +2 -2
  152. package/src/models/operations/updatedatapoint.ts +2 -2
  153. package/src/models/operations/updatedataset.ts +2 -2
  154. package/src/models/operations/updatedatasource.ts +2 -2
  155. package/src/models/operations/updateeval.ts +16 -16
@@ -88,6 +88,49 @@ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
88
88
  export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONType =
89
89
  ClosedEnum<typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType>;
90
90
 
91
+ export const RetrieveDatapointAnnotationsDatasetsType = {
92
+ FilePath: "file_path",
93
+ } as const;
94
+ export type RetrieveDatapointAnnotationsDatasetsType = ClosedEnum<
95
+ typeof RetrieveDatapointAnnotationsDatasetsType
96
+ >;
97
+
98
+ export type RetrieveDatapointAnnotationsFilePath = {
99
+ fileId: string;
100
+ };
101
+
102
+ export type RetrieveDatapointAnnotations2 = {
103
+ type: RetrieveDatapointAnnotationsDatasetsType;
104
+ text: string;
105
+ filePath: RetrieveDatapointAnnotationsFilePath;
106
+ startIndex: number;
107
+ endIndex: number;
108
+ };
109
+
110
+ export const RetrieveDatapointAnnotationsType = {
111
+ FileCitation: "file_citation",
112
+ } as const;
113
+ export type RetrieveDatapointAnnotationsType = ClosedEnum<
114
+ typeof RetrieveDatapointAnnotationsType
115
+ >;
116
+
117
+ export type RetrieveDatapointAnnotationsFileCitation = {
118
+ fileId: string;
119
+ quote?: string | undefined;
120
+ };
121
+
122
+ export type RetrieveDatapointAnnotations1 = {
123
+ type: RetrieveDatapointAnnotationsType;
124
+ text: string;
125
+ fileCitation: RetrieveDatapointAnnotationsFileCitation;
126
+ startIndex: number;
127
+ endIndex: number;
128
+ };
129
+
130
+ export type RetrieveDatapoint2Annotations =
131
+ | RetrieveDatapointAnnotations1
132
+ | RetrieveDatapointAnnotations2;
133
+
91
134
  export type RetrieveDatapoint2TextContentPart = {
92
135
  /**
93
136
  * The type of the content part.
@@ -97,6 +140,12 @@ export type RetrieveDatapoint2TextContentPart = {
97
140
  * The text content.
98
141
  */
99
142
  text: string;
143
+ /**
144
+ * Annotations for the text content.
145
+ */
146
+ annotations?:
147
+ | Array<RetrieveDatapointAnnotations1 | RetrieveDatapointAnnotations2>
148
+ | undefined;
100
149
  };
101
150
 
102
151
  export type RetrieveDatapointContentDatasets2 =
@@ -851,6 +900,415 @@ export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$ {
851
900
  RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema;
852
901
  }
853
902
 
903
+ /** @internal */
904
+ export const RetrieveDatapointAnnotationsDatasetsType$inboundSchema:
905
+ z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> = z
906
+ .nativeEnum(RetrieveDatapointAnnotationsDatasetsType);
907
+
908
+ /** @internal */
909
+ export const RetrieveDatapointAnnotationsDatasetsType$outboundSchema:
910
+ z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> =
911
+ RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
912
+
913
+ /**
914
+ * @internal
915
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
916
+ */
917
+ export namespace RetrieveDatapointAnnotationsDatasetsType$ {
918
+ /** @deprecated use `RetrieveDatapointAnnotationsDatasetsType$inboundSchema` instead. */
919
+ export const inboundSchema =
920
+ RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
921
+ /** @deprecated use `RetrieveDatapointAnnotationsDatasetsType$outboundSchema` instead. */
922
+ export const outboundSchema =
923
+ RetrieveDatapointAnnotationsDatasetsType$outboundSchema;
924
+ }
925
+
926
+ /** @internal */
927
+ export const RetrieveDatapointAnnotationsFilePath$inboundSchema: z.ZodType<
928
+ RetrieveDatapointAnnotationsFilePath,
929
+ z.ZodTypeDef,
930
+ unknown
931
+ > = z.object({
932
+ file_id: z.string(),
933
+ }).transform((v) => {
934
+ return remap$(v, {
935
+ "file_id": "fileId",
936
+ });
937
+ });
938
+
939
+ /** @internal */
940
+ export type RetrieveDatapointAnnotationsFilePath$Outbound = {
941
+ file_id: string;
942
+ };
943
+
944
+ /** @internal */
945
+ export const RetrieveDatapointAnnotationsFilePath$outboundSchema: z.ZodType<
946
+ RetrieveDatapointAnnotationsFilePath$Outbound,
947
+ z.ZodTypeDef,
948
+ RetrieveDatapointAnnotationsFilePath
949
+ > = z.object({
950
+ fileId: z.string(),
951
+ }).transform((v) => {
952
+ return remap$(v, {
953
+ fileId: "file_id",
954
+ });
955
+ });
956
+
957
+ /**
958
+ * @internal
959
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
960
+ */
961
+ export namespace RetrieveDatapointAnnotationsFilePath$ {
962
+ /** @deprecated use `RetrieveDatapointAnnotationsFilePath$inboundSchema` instead. */
963
+ export const inboundSchema =
964
+ RetrieveDatapointAnnotationsFilePath$inboundSchema;
965
+ /** @deprecated use `RetrieveDatapointAnnotationsFilePath$outboundSchema` instead. */
966
+ export const outboundSchema =
967
+ RetrieveDatapointAnnotationsFilePath$outboundSchema;
968
+ /** @deprecated use `RetrieveDatapointAnnotationsFilePath$Outbound` instead. */
969
+ export type Outbound = RetrieveDatapointAnnotationsFilePath$Outbound;
970
+ }
971
+
972
+ export function retrieveDatapointAnnotationsFilePathToJSON(
973
+ retrieveDatapointAnnotationsFilePath: RetrieveDatapointAnnotationsFilePath,
974
+ ): string {
975
+ return JSON.stringify(
976
+ RetrieveDatapointAnnotationsFilePath$outboundSchema.parse(
977
+ retrieveDatapointAnnotationsFilePath,
978
+ ),
979
+ );
980
+ }
981
+
982
+ export function retrieveDatapointAnnotationsFilePathFromJSON(
983
+ jsonString: string,
984
+ ): SafeParseResult<RetrieveDatapointAnnotationsFilePath, SDKValidationError> {
985
+ return safeParse(
986
+ jsonString,
987
+ (x) =>
988
+ RetrieveDatapointAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
989
+ `Failed to parse 'RetrieveDatapointAnnotationsFilePath' from JSON`,
990
+ );
991
+ }
992
+
993
+ /** @internal */
994
+ export const RetrieveDatapointAnnotations2$inboundSchema: z.ZodType<
995
+ RetrieveDatapointAnnotations2,
996
+ z.ZodTypeDef,
997
+ unknown
998
+ > = z.object({
999
+ type: RetrieveDatapointAnnotationsDatasetsType$inboundSchema,
1000
+ text: z.string(),
1001
+ file_path: z.lazy(() => RetrieveDatapointAnnotationsFilePath$inboundSchema),
1002
+ start_index: z.number().int(),
1003
+ end_index: z.number().int(),
1004
+ }).transform((v) => {
1005
+ return remap$(v, {
1006
+ "file_path": "filePath",
1007
+ "start_index": "startIndex",
1008
+ "end_index": "endIndex",
1009
+ });
1010
+ });
1011
+
1012
+ /** @internal */
1013
+ export type RetrieveDatapointAnnotations2$Outbound = {
1014
+ type: string;
1015
+ text: string;
1016
+ file_path: RetrieveDatapointAnnotationsFilePath$Outbound;
1017
+ start_index: number;
1018
+ end_index: number;
1019
+ };
1020
+
1021
+ /** @internal */
1022
+ export const RetrieveDatapointAnnotations2$outboundSchema: z.ZodType<
1023
+ RetrieveDatapointAnnotations2$Outbound,
1024
+ z.ZodTypeDef,
1025
+ RetrieveDatapointAnnotations2
1026
+ > = z.object({
1027
+ type: RetrieveDatapointAnnotationsDatasetsType$outboundSchema,
1028
+ text: z.string(),
1029
+ filePath: z.lazy(() => RetrieveDatapointAnnotationsFilePath$outboundSchema),
1030
+ startIndex: z.number().int(),
1031
+ endIndex: z.number().int(),
1032
+ }).transform((v) => {
1033
+ return remap$(v, {
1034
+ filePath: "file_path",
1035
+ startIndex: "start_index",
1036
+ endIndex: "end_index",
1037
+ });
1038
+ });
1039
+
1040
+ /**
1041
+ * @internal
1042
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1043
+ */
1044
+ export namespace RetrieveDatapointAnnotations2$ {
1045
+ /** @deprecated use `RetrieveDatapointAnnotations2$inboundSchema` instead. */
1046
+ export const inboundSchema = RetrieveDatapointAnnotations2$inboundSchema;
1047
+ /** @deprecated use `RetrieveDatapointAnnotations2$outboundSchema` instead. */
1048
+ export const outboundSchema = RetrieveDatapointAnnotations2$outboundSchema;
1049
+ /** @deprecated use `RetrieveDatapointAnnotations2$Outbound` instead. */
1050
+ export type Outbound = RetrieveDatapointAnnotations2$Outbound;
1051
+ }
1052
+
1053
+ export function retrieveDatapointAnnotations2ToJSON(
1054
+ retrieveDatapointAnnotations2: RetrieveDatapointAnnotations2,
1055
+ ): string {
1056
+ return JSON.stringify(
1057
+ RetrieveDatapointAnnotations2$outboundSchema.parse(
1058
+ retrieveDatapointAnnotations2,
1059
+ ),
1060
+ );
1061
+ }
1062
+
1063
+ export function retrieveDatapointAnnotations2FromJSON(
1064
+ jsonString: string,
1065
+ ): SafeParseResult<RetrieveDatapointAnnotations2, SDKValidationError> {
1066
+ return safeParse(
1067
+ jsonString,
1068
+ (x) => RetrieveDatapointAnnotations2$inboundSchema.parse(JSON.parse(x)),
1069
+ `Failed to parse 'RetrieveDatapointAnnotations2' from JSON`,
1070
+ );
1071
+ }
1072
+
1073
+ /** @internal */
1074
+ export const RetrieveDatapointAnnotationsType$inboundSchema: z.ZodNativeEnum<
1075
+ typeof RetrieveDatapointAnnotationsType
1076
+ > = z.nativeEnum(RetrieveDatapointAnnotationsType);
1077
+
1078
+ /** @internal */
1079
+ export const RetrieveDatapointAnnotationsType$outboundSchema: z.ZodNativeEnum<
1080
+ typeof RetrieveDatapointAnnotationsType
1081
+ > = RetrieveDatapointAnnotationsType$inboundSchema;
1082
+
1083
+ /**
1084
+ * @internal
1085
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1086
+ */
1087
+ export namespace RetrieveDatapointAnnotationsType$ {
1088
+ /** @deprecated use `RetrieveDatapointAnnotationsType$inboundSchema` instead. */
1089
+ export const inboundSchema = RetrieveDatapointAnnotationsType$inboundSchema;
1090
+ /** @deprecated use `RetrieveDatapointAnnotationsType$outboundSchema` instead. */
1091
+ export const outboundSchema = RetrieveDatapointAnnotationsType$outboundSchema;
1092
+ }
1093
+
1094
+ /** @internal */
1095
+ export const RetrieveDatapointAnnotationsFileCitation$inboundSchema: z.ZodType<
1096
+ RetrieveDatapointAnnotationsFileCitation,
1097
+ z.ZodTypeDef,
1098
+ unknown
1099
+ > = z.object({
1100
+ file_id: z.string(),
1101
+ quote: z.string().optional(),
1102
+ }).transform((v) => {
1103
+ return remap$(v, {
1104
+ "file_id": "fileId",
1105
+ });
1106
+ });
1107
+
1108
+ /** @internal */
1109
+ export type RetrieveDatapointAnnotationsFileCitation$Outbound = {
1110
+ file_id: string;
1111
+ quote?: string | undefined;
1112
+ };
1113
+
1114
+ /** @internal */
1115
+ export const RetrieveDatapointAnnotationsFileCitation$outboundSchema: z.ZodType<
1116
+ RetrieveDatapointAnnotationsFileCitation$Outbound,
1117
+ z.ZodTypeDef,
1118
+ RetrieveDatapointAnnotationsFileCitation
1119
+ > = z.object({
1120
+ fileId: z.string(),
1121
+ quote: z.string().optional(),
1122
+ }).transform((v) => {
1123
+ return remap$(v, {
1124
+ fileId: "file_id",
1125
+ });
1126
+ });
1127
+
1128
+ /**
1129
+ * @internal
1130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1131
+ */
1132
+ export namespace RetrieveDatapointAnnotationsFileCitation$ {
1133
+ /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$inboundSchema` instead. */
1134
+ export const inboundSchema =
1135
+ RetrieveDatapointAnnotationsFileCitation$inboundSchema;
1136
+ /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$outboundSchema` instead. */
1137
+ export const outboundSchema =
1138
+ RetrieveDatapointAnnotationsFileCitation$outboundSchema;
1139
+ /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$Outbound` instead. */
1140
+ export type Outbound = RetrieveDatapointAnnotationsFileCitation$Outbound;
1141
+ }
1142
+
1143
+ export function retrieveDatapointAnnotationsFileCitationToJSON(
1144
+ retrieveDatapointAnnotationsFileCitation:
1145
+ RetrieveDatapointAnnotationsFileCitation,
1146
+ ): string {
1147
+ return JSON.stringify(
1148
+ RetrieveDatapointAnnotationsFileCitation$outboundSchema.parse(
1149
+ retrieveDatapointAnnotationsFileCitation,
1150
+ ),
1151
+ );
1152
+ }
1153
+
1154
+ export function retrieveDatapointAnnotationsFileCitationFromJSON(
1155
+ jsonString: string,
1156
+ ): SafeParseResult<
1157
+ RetrieveDatapointAnnotationsFileCitation,
1158
+ SDKValidationError
1159
+ > {
1160
+ return safeParse(
1161
+ jsonString,
1162
+ (x) =>
1163
+ RetrieveDatapointAnnotationsFileCitation$inboundSchema.parse(
1164
+ JSON.parse(x),
1165
+ ),
1166
+ `Failed to parse 'RetrieveDatapointAnnotationsFileCitation' from JSON`,
1167
+ );
1168
+ }
1169
+
1170
+ /** @internal */
1171
+ export const RetrieveDatapointAnnotations1$inboundSchema: z.ZodType<
1172
+ RetrieveDatapointAnnotations1,
1173
+ z.ZodTypeDef,
1174
+ unknown
1175
+ > = z.object({
1176
+ type: RetrieveDatapointAnnotationsType$inboundSchema,
1177
+ text: z.string(),
1178
+ file_citation: z.lazy(() =>
1179
+ RetrieveDatapointAnnotationsFileCitation$inboundSchema
1180
+ ),
1181
+ start_index: z.number().int(),
1182
+ end_index: z.number().int(),
1183
+ }).transform((v) => {
1184
+ return remap$(v, {
1185
+ "file_citation": "fileCitation",
1186
+ "start_index": "startIndex",
1187
+ "end_index": "endIndex",
1188
+ });
1189
+ });
1190
+
1191
+ /** @internal */
1192
+ export type RetrieveDatapointAnnotations1$Outbound = {
1193
+ type: string;
1194
+ text: string;
1195
+ file_citation: RetrieveDatapointAnnotationsFileCitation$Outbound;
1196
+ start_index: number;
1197
+ end_index: number;
1198
+ };
1199
+
1200
+ /** @internal */
1201
+ export const RetrieveDatapointAnnotations1$outboundSchema: z.ZodType<
1202
+ RetrieveDatapointAnnotations1$Outbound,
1203
+ z.ZodTypeDef,
1204
+ RetrieveDatapointAnnotations1
1205
+ > = z.object({
1206
+ type: RetrieveDatapointAnnotationsType$outboundSchema,
1207
+ text: z.string(),
1208
+ fileCitation: z.lazy(() =>
1209
+ RetrieveDatapointAnnotationsFileCitation$outboundSchema
1210
+ ),
1211
+ startIndex: z.number().int(),
1212
+ endIndex: z.number().int(),
1213
+ }).transform((v) => {
1214
+ return remap$(v, {
1215
+ fileCitation: "file_citation",
1216
+ startIndex: "start_index",
1217
+ endIndex: "end_index",
1218
+ });
1219
+ });
1220
+
1221
+ /**
1222
+ * @internal
1223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1224
+ */
1225
+ export namespace RetrieveDatapointAnnotations1$ {
1226
+ /** @deprecated use `RetrieveDatapointAnnotations1$inboundSchema` instead. */
1227
+ export const inboundSchema = RetrieveDatapointAnnotations1$inboundSchema;
1228
+ /** @deprecated use `RetrieveDatapointAnnotations1$outboundSchema` instead. */
1229
+ export const outboundSchema = RetrieveDatapointAnnotations1$outboundSchema;
1230
+ /** @deprecated use `RetrieveDatapointAnnotations1$Outbound` instead. */
1231
+ export type Outbound = RetrieveDatapointAnnotations1$Outbound;
1232
+ }
1233
+
1234
+ export function retrieveDatapointAnnotations1ToJSON(
1235
+ retrieveDatapointAnnotations1: RetrieveDatapointAnnotations1,
1236
+ ): string {
1237
+ return JSON.stringify(
1238
+ RetrieveDatapointAnnotations1$outboundSchema.parse(
1239
+ retrieveDatapointAnnotations1,
1240
+ ),
1241
+ );
1242
+ }
1243
+
1244
+ export function retrieveDatapointAnnotations1FromJSON(
1245
+ jsonString: string,
1246
+ ): SafeParseResult<RetrieveDatapointAnnotations1, SDKValidationError> {
1247
+ return safeParse(
1248
+ jsonString,
1249
+ (x) => RetrieveDatapointAnnotations1$inboundSchema.parse(JSON.parse(x)),
1250
+ `Failed to parse 'RetrieveDatapointAnnotations1' from JSON`,
1251
+ );
1252
+ }
1253
+
1254
+ /** @internal */
1255
+ export const RetrieveDatapoint2Annotations$inboundSchema: z.ZodType<
1256
+ RetrieveDatapoint2Annotations,
1257
+ z.ZodTypeDef,
1258
+ unknown
1259
+ > = z.union([
1260
+ z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
1261
+ z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
1262
+ ]);
1263
+
1264
+ /** @internal */
1265
+ export type RetrieveDatapoint2Annotations$Outbound =
1266
+ | RetrieveDatapointAnnotations1$Outbound
1267
+ | RetrieveDatapointAnnotations2$Outbound;
1268
+
1269
+ /** @internal */
1270
+ export const RetrieveDatapoint2Annotations$outboundSchema: z.ZodType<
1271
+ RetrieveDatapoint2Annotations$Outbound,
1272
+ z.ZodTypeDef,
1273
+ RetrieveDatapoint2Annotations
1274
+ > = z.union([
1275
+ z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
1276
+ z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
1277
+ ]);
1278
+
1279
+ /**
1280
+ * @internal
1281
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1282
+ */
1283
+ export namespace RetrieveDatapoint2Annotations$ {
1284
+ /** @deprecated use `RetrieveDatapoint2Annotations$inboundSchema` instead. */
1285
+ export const inboundSchema = RetrieveDatapoint2Annotations$inboundSchema;
1286
+ /** @deprecated use `RetrieveDatapoint2Annotations$outboundSchema` instead. */
1287
+ export const outboundSchema = RetrieveDatapoint2Annotations$outboundSchema;
1288
+ /** @deprecated use `RetrieveDatapoint2Annotations$Outbound` instead. */
1289
+ export type Outbound = RetrieveDatapoint2Annotations$Outbound;
1290
+ }
1291
+
1292
+ export function retrieveDatapoint2AnnotationsToJSON(
1293
+ retrieveDatapoint2Annotations: RetrieveDatapoint2Annotations,
1294
+ ): string {
1295
+ return JSON.stringify(
1296
+ RetrieveDatapoint2Annotations$outboundSchema.parse(
1297
+ retrieveDatapoint2Annotations,
1298
+ ),
1299
+ );
1300
+ }
1301
+
1302
+ export function retrieveDatapoint2AnnotationsFromJSON(
1303
+ jsonString: string,
1304
+ ): SafeParseResult<RetrieveDatapoint2Annotations, SDKValidationError> {
1305
+ return safeParse(
1306
+ jsonString,
1307
+ (x) => RetrieveDatapoint2Annotations$inboundSchema.parse(JSON.parse(x)),
1308
+ `Failed to parse 'RetrieveDatapoint2Annotations' from JSON`,
1309
+ );
1310
+ }
1311
+
854
1312
  /** @internal */
855
1313
  export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
856
1314
  RetrieveDatapoint2TextContentPart,
@@ -859,12 +1317,24 @@ export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
859
1317
  > = z.object({
860
1318
  type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
861
1319
  text: z.string(),
1320
+ annotations: z.array(
1321
+ z.union([
1322
+ z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
1323
+ z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
1324
+ ]),
1325
+ ).optional(),
862
1326
  });
863
1327
 
864
1328
  /** @internal */
865
1329
  export type RetrieveDatapoint2TextContentPart$Outbound = {
866
1330
  type: string;
867
1331
  text: string;
1332
+ annotations?:
1333
+ | Array<
1334
+ | RetrieveDatapointAnnotations1$Outbound
1335
+ | RetrieveDatapointAnnotations2$Outbound
1336
+ >
1337
+ | undefined;
868
1338
  };
869
1339
 
870
1340
  /** @internal */
@@ -875,6 +1345,12 @@ export const RetrieveDatapoint2TextContentPart$outboundSchema: z.ZodType<
875
1345
  > = z.object({
876
1346
  type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
877
1347
  text: z.string(),
1348
+ annotations: z.array(
1349
+ z.union([
1350
+ z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
1351
+ z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
1352
+ ]),
1353
+ ).optional(),
878
1354
  });
879
1355
 
880
1356
  /**
@@ -2481,7 +2957,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2481
2957
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2482
2958
  .optional(),
2483
2959
  updated: z.string().datetime({ offset: true }).default(
2484
- "2025-08-20T11:38:10.692Z",
2960
+ "2025-08-27T07:41:07.739Z",
2485
2961
  ).transform(v => new Date(v)),
2486
2962
  }).transform((v) => {
2487
2963
  return remap$(v, {
@@ -2539,7 +3015,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
2539
3015
  createdById: z.string().optional(),
2540
3016
  updatedById: z.string().optional(),
2541
3017
  created: z.date().transform(v => v.toISOString()).optional(),
2542
- updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
3018
+ updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
2543
3019
  .transform(v => v.toISOString()),
2544
3020
  }).transform((v) => {
2545
3021
  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-20T11:38:10.692Z",
204
+ "2025-08-27T07:41:07.739Z",
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-20T11:38:10.692Z"))
244
+ updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
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("01K33MBNM5F3Y37VJ9MXC7J1X0"),
175
+ _id: z.string().default("01K3N7JN4VCWBDB2TPRDDAZJSE"),
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("01K33MBNM5F3Y37VJ9MXC7J1X0"),
219
+ id: z.string().default("01K3N7JN4VCWBDB2TPRDDAZJSE"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -543,7 +543,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
543
543
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
544
544
  .optional(),
545
545
  updated: z.string().datetime({ offset: true }).default(
546
- "2025-08-20T11:38:10.692Z",
546
+ "2025-08-27T07:41:07.739Z",
547
547
  ).transform(v => new Date(v)),
548
548
  }).transform((v) => {
549
549
  return remap$(v, {
@@ -581,7 +581,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
581
581
  isActive: z.boolean(),
582
582
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
583
583
  created: z.date().transform(v => v.toISOString()).optional(),
584
- updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
584
+ updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
585
585
  .transform(v => v.toISOString()),
586
586
  }).transform((v) => {
587
587
  return remap$(v, {
@@ -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-20T11:38:10.692Z",
247
+ "2025-08-27T07:41:07.739Z",
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-20T11:38:10.692Z"))
285
+ updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {