@orq-ai/node 3.11.7 → 3.11.9
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.
- package/bin/mcp-server.js +104 -104
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +128 -87
- package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
- package/packages/orq-rc/docs/sdks/proxy/README.md +1284 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
- package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
- package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
- package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
- package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
- package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
- package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
- package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
- package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
- package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
- package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
- package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +33 -1
- package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
- package/packages/orq-rc/src/models/components/deployments.ts +861 -0
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
- package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
- package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
- package/packages/orq-rc/src/models/operations/index.ts +16 -0
- package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
- package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
- package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +878 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
- package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
- package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
- package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/batches.ts +81 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
- package/packages/orq-rc/src/sdk/proxy.ts +211 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/temp/example.ts +5 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -110,6 +110,49 @@ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType =
|
|
|
110
110
|
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
|
|
111
111
|
>;
|
|
112
112
|
|
|
113
|
+
export const ListDatasetDatapointsAnnotationsDatasetsType = {
|
|
114
|
+
FilePath: "file_path",
|
|
115
|
+
} as const;
|
|
116
|
+
export type ListDatasetDatapointsAnnotationsDatasetsType = ClosedEnum<
|
|
117
|
+
typeof ListDatasetDatapointsAnnotationsDatasetsType
|
|
118
|
+
>;
|
|
119
|
+
|
|
120
|
+
export type ListDatasetDatapointsAnnotationsFilePath = {
|
|
121
|
+
fileId: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type ListDatasetDatapointsAnnotations2 = {
|
|
125
|
+
type: ListDatasetDatapointsAnnotationsDatasetsType;
|
|
126
|
+
text: string;
|
|
127
|
+
filePath: ListDatasetDatapointsAnnotationsFilePath;
|
|
128
|
+
startIndex: number;
|
|
129
|
+
endIndex: number;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export const ListDatasetDatapointsAnnotationsType = {
|
|
133
|
+
FileCitation: "file_citation",
|
|
134
|
+
} as const;
|
|
135
|
+
export type ListDatasetDatapointsAnnotationsType = ClosedEnum<
|
|
136
|
+
typeof ListDatasetDatapointsAnnotationsType
|
|
137
|
+
>;
|
|
138
|
+
|
|
139
|
+
export type ListDatasetDatapointsAnnotationsFileCitation = {
|
|
140
|
+
fileId: string;
|
|
141
|
+
quote?: string | undefined;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export type ListDatasetDatapointsAnnotations1 = {
|
|
145
|
+
type: ListDatasetDatapointsAnnotationsType;
|
|
146
|
+
text: string;
|
|
147
|
+
fileCitation: ListDatasetDatapointsAnnotationsFileCitation;
|
|
148
|
+
startIndex: number;
|
|
149
|
+
endIndex: number;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type ListDatasetDatapoints2Annotations =
|
|
153
|
+
| ListDatasetDatapointsAnnotations1
|
|
154
|
+
| ListDatasetDatapointsAnnotations2;
|
|
155
|
+
|
|
113
156
|
export type ListDatasetDatapoints2TextContentPart = {
|
|
114
157
|
/**
|
|
115
158
|
* The type of the content part.
|
|
@@ -119,6 +162,14 @@ export type ListDatasetDatapoints2TextContentPart = {
|
|
|
119
162
|
* The text content.
|
|
120
163
|
*/
|
|
121
164
|
text: string;
|
|
165
|
+
/**
|
|
166
|
+
* Annotations for the text content.
|
|
167
|
+
*/
|
|
168
|
+
annotations?:
|
|
169
|
+
| Array<
|
|
170
|
+
ListDatasetDatapointsAnnotations1 | ListDatasetDatapointsAnnotations2
|
|
171
|
+
>
|
|
172
|
+
| undefined;
|
|
122
173
|
};
|
|
123
174
|
|
|
124
175
|
export type ListDatasetDatapointsContentDatasets2 =
|
|
@@ -929,6 +980,433 @@ export namespace ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$ {
|
|
|
929
980
|
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema;
|
|
930
981
|
}
|
|
931
982
|
|
|
983
|
+
/** @internal */
|
|
984
|
+
export const ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema:
|
|
985
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsAnnotationsDatasetsType> = z
|
|
986
|
+
.nativeEnum(ListDatasetDatapointsAnnotationsDatasetsType);
|
|
987
|
+
|
|
988
|
+
/** @internal */
|
|
989
|
+
export const ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema:
|
|
990
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsAnnotationsDatasetsType> =
|
|
991
|
+
ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema;
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* @internal
|
|
995
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
996
|
+
*/
|
|
997
|
+
export namespace ListDatasetDatapointsAnnotationsDatasetsType$ {
|
|
998
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema` instead. */
|
|
999
|
+
export const inboundSchema =
|
|
1000
|
+
ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema;
|
|
1001
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema` instead. */
|
|
1002
|
+
export const outboundSchema =
|
|
1003
|
+
ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/** @internal */
|
|
1007
|
+
export const ListDatasetDatapointsAnnotationsFilePath$inboundSchema: z.ZodType<
|
|
1008
|
+
ListDatasetDatapointsAnnotationsFilePath,
|
|
1009
|
+
z.ZodTypeDef,
|
|
1010
|
+
unknown
|
|
1011
|
+
> = z.object({
|
|
1012
|
+
file_id: z.string(),
|
|
1013
|
+
}).transform((v) => {
|
|
1014
|
+
return remap$(v, {
|
|
1015
|
+
"file_id": "fileId",
|
|
1016
|
+
});
|
|
1017
|
+
});
|
|
1018
|
+
|
|
1019
|
+
/** @internal */
|
|
1020
|
+
export type ListDatasetDatapointsAnnotationsFilePath$Outbound = {
|
|
1021
|
+
file_id: string;
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
export const ListDatasetDatapointsAnnotationsFilePath$outboundSchema: z.ZodType<
|
|
1026
|
+
ListDatasetDatapointsAnnotationsFilePath$Outbound,
|
|
1027
|
+
z.ZodTypeDef,
|
|
1028
|
+
ListDatasetDatapointsAnnotationsFilePath
|
|
1029
|
+
> = z.object({
|
|
1030
|
+
fileId: z.string(),
|
|
1031
|
+
}).transform((v) => {
|
|
1032
|
+
return remap$(v, {
|
|
1033
|
+
fileId: "file_id",
|
|
1034
|
+
});
|
|
1035
|
+
});
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* @internal
|
|
1039
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1040
|
+
*/
|
|
1041
|
+
export namespace ListDatasetDatapointsAnnotationsFilePath$ {
|
|
1042
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFilePath$inboundSchema` instead. */
|
|
1043
|
+
export const inboundSchema =
|
|
1044
|
+
ListDatasetDatapointsAnnotationsFilePath$inboundSchema;
|
|
1045
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFilePath$outboundSchema` instead. */
|
|
1046
|
+
export const outboundSchema =
|
|
1047
|
+
ListDatasetDatapointsAnnotationsFilePath$outboundSchema;
|
|
1048
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFilePath$Outbound` instead. */
|
|
1049
|
+
export type Outbound = ListDatasetDatapointsAnnotationsFilePath$Outbound;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
export function listDatasetDatapointsAnnotationsFilePathToJSON(
|
|
1053
|
+
listDatasetDatapointsAnnotationsFilePath:
|
|
1054
|
+
ListDatasetDatapointsAnnotationsFilePath,
|
|
1055
|
+
): string {
|
|
1056
|
+
return JSON.stringify(
|
|
1057
|
+
ListDatasetDatapointsAnnotationsFilePath$outboundSchema.parse(
|
|
1058
|
+
listDatasetDatapointsAnnotationsFilePath,
|
|
1059
|
+
),
|
|
1060
|
+
);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export function listDatasetDatapointsAnnotationsFilePathFromJSON(
|
|
1064
|
+
jsonString: string,
|
|
1065
|
+
): SafeParseResult<
|
|
1066
|
+
ListDatasetDatapointsAnnotationsFilePath,
|
|
1067
|
+
SDKValidationError
|
|
1068
|
+
> {
|
|
1069
|
+
return safeParse(
|
|
1070
|
+
jsonString,
|
|
1071
|
+
(x) =>
|
|
1072
|
+
ListDatasetDatapointsAnnotationsFilePath$inboundSchema.parse(
|
|
1073
|
+
JSON.parse(x),
|
|
1074
|
+
),
|
|
1075
|
+
`Failed to parse 'ListDatasetDatapointsAnnotationsFilePath' from JSON`,
|
|
1076
|
+
);
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/** @internal */
|
|
1080
|
+
export const ListDatasetDatapointsAnnotations2$inboundSchema: z.ZodType<
|
|
1081
|
+
ListDatasetDatapointsAnnotations2,
|
|
1082
|
+
z.ZodTypeDef,
|
|
1083
|
+
unknown
|
|
1084
|
+
> = z.object({
|
|
1085
|
+
type: ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema,
|
|
1086
|
+
text: z.string(),
|
|
1087
|
+
file_path: z.lazy(() =>
|
|
1088
|
+
ListDatasetDatapointsAnnotationsFilePath$inboundSchema
|
|
1089
|
+
),
|
|
1090
|
+
start_index: z.number().int(),
|
|
1091
|
+
end_index: z.number().int(),
|
|
1092
|
+
}).transform((v) => {
|
|
1093
|
+
return remap$(v, {
|
|
1094
|
+
"file_path": "filePath",
|
|
1095
|
+
"start_index": "startIndex",
|
|
1096
|
+
"end_index": "endIndex",
|
|
1097
|
+
});
|
|
1098
|
+
});
|
|
1099
|
+
|
|
1100
|
+
/** @internal */
|
|
1101
|
+
export type ListDatasetDatapointsAnnotations2$Outbound = {
|
|
1102
|
+
type: string;
|
|
1103
|
+
text: string;
|
|
1104
|
+
file_path: ListDatasetDatapointsAnnotationsFilePath$Outbound;
|
|
1105
|
+
start_index: number;
|
|
1106
|
+
end_index: number;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
export const ListDatasetDatapointsAnnotations2$outboundSchema: z.ZodType<
|
|
1111
|
+
ListDatasetDatapointsAnnotations2$Outbound,
|
|
1112
|
+
z.ZodTypeDef,
|
|
1113
|
+
ListDatasetDatapointsAnnotations2
|
|
1114
|
+
> = z.object({
|
|
1115
|
+
type: ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema,
|
|
1116
|
+
text: z.string(),
|
|
1117
|
+
filePath: z.lazy(() =>
|
|
1118
|
+
ListDatasetDatapointsAnnotationsFilePath$outboundSchema
|
|
1119
|
+
),
|
|
1120
|
+
startIndex: z.number().int(),
|
|
1121
|
+
endIndex: z.number().int(),
|
|
1122
|
+
}).transform((v) => {
|
|
1123
|
+
return remap$(v, {
|
|
1124
|
+
filePath: "file_path",
|
|
1125
|
+
startIndex: "start_index",
|
|
1126
|
+
endIndex: "end_index",
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @internal
|
|
1132
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1133
|
+
*/
|
|
1134
|
+
export namespace ListDatasetDatapointsAnnotations2$ {
|
|
1135
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations2$inboundSchema` instead. */
|
|
1136
|
+
export const inboundSchema = ListDatasetDatapointsAnnotations2$inboundSchema;
|
|
1137
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations2$outboundSchema` instead. */
|
|
1138
|
+
export const outboundSchema =
|
|
1139
|
+
ListDatasetDatapointsAnnotations2$outboundSchema;
|
|
1140
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations2$Outbound` instead. */
|
|
1141
|
+
export type Outbound = ListDatasetDatapointsAnnotations2$Outbound;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
export function listDatasetDatapointsAnnotations2ToJSON(
|
|
1145
|
+
listDatasetDatapointsAnnotations2: ListDatasetDatapointsAnnotations2,
|
|
1146
|
+
): string {
|
|
1147
|
+
return JSON.stringify(
|
|
1148
|
+
ListDatasetDatapointsAnnotations2$outboundSchema.parse(
|
|
1149
|
+
listDatasetDatapointsAnnotations2,
|
|
1150
|
+
),
|
|
1151
|
+
);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
export function listDatasetDatapointsAnnotations2FromJSON(
|
|
1155
|
+
jsonString: string,
|
|
1156
|
+
): SafeParseResult<ListDatasetDatapointsAnnotations2, SDKValidationError> {
|
|
1157
|
+
return safeParse(
|
|
1158
|
+
jsonString,
|
|
1159
|
+
(x) => ListDatasetDatapointsAnnotations2$inboundSchema.parse(JSON.parse(x)),
|
|
1160
|
+
`Failed to parse 'ListDatasetDatapointsAnnotations2' from JSON`,
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/** @internal */
|
|
1165
|
+
export const ListDatasetDatapointsAnnotationsType$inboundSchema:
|
|
1166
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsAnnotationsType> = z.nativeEnum(
|
|
1167
|
+
ListDatasetDatapointsAnnotationsType,
|
|
1168
|
+
);
|
|
1169
|
+
|
|
1170
|
+
/** @internal */
|
|
1171
|
+
export const ListDatasetDatapointsAnnotationsType$outboundSchema:
|
|
1172
|
+
z.ZodNativeEnum<typeof ListDatasetDatapointsAnnotationsType> =
|
|
1173
|
+
ListDatasetDatapointsAnnotationsType$inboundSchema;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* @internal
|
|
1177
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1178
|
+
*/
|
|
1179
|
+
export namespace ListDatasetDatapointsAnnotationsType$ {
|
|
1180
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsType$inboundSchema` instead. */
|
|
1181
|
+
export const inboundSchema =
|
|
1182
|
+
ListDatasetDatapointsAnnotationsType$inboundSchema;
|
|
1183
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsType$outboundSchema` instead. */
|
|
1184
|
+
export const outboundSchema =
|
|
1185
|
+
ListDatasetDatapointsAnnotationsType$outboundSchema;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
/** @internal */
|
|
1189
|
+
export const ListDatasetDatapointsAnnotationsFileCitation$inboundSchema:
|
|
1190
|
+
z.ZodType<
|
|
1191
|
+
ListDatasetDatapointsAnnotationsFileCitation,
|
|
1192
|
+
z.ZodTypeDef,
|
|
1193
|
+
unknown
|
|
1194
|
+
> = z.object({
|
|
1195
|
+
file_id: z.string(),
|
|
1196
|
+
quote: z.string().optional(),
|
|
1197
|
+
}).transform((v) => {
|
|
1198
|
+
return remap$(v, {
|
|
1199
|
+
"file_id": "fileId",
|
|
1200
|
+
});
|
|
1201
|
+
});
|
|
1202
|
+
|
|
1203
|
+
/** @internal */
|
|
1204
|
+
export type ListDatasetDatapointsAnnotationsFileCitation$Outbound = {
|
|
1205
|
+
file_id: string;
|
|
1206
|
+
quote?: string | undefined;
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
/** @internal */
|
|
1210
|
+
export const ListDatasetDatapointsAnnotationsFileCitation$outboundSchema:
|
|
1211
|
+
z.ZodType<
|
|
1212
|
+
ListDatasetDatapointsAnnotationsFileCitation$Outbound,
|
|
1213
|
+
z.ZodTypeDef,
|
|
1214
|
+
ListDatasetDatapointsAnnotationsFileCitation
|
|
1215
|
+
> = z.object({
|
|
1216
|
+
fileId: z.string(),
|
|
1217
|
+
quote: z.string().optional(),
|
|
1218
|
+
}).transform((v) => {
|
|
1219
|
+
return remap$(v, {
|
|
1220
|
+
fileId: "file_id",
|
|
1221
|
+
});
|
|
1222
|
+
});
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* @internal
|
|
1226
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1227
|
+
*/
|
|
1228
|
+
export namespace ListDatasetDatapointsAnnotationsFileCitation$ {
|
|
1229
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFileCitation$inboundSchema` instead. */
|
|
1230
|
+
export const inboundSchema =
|
|
1231
|
+
ListDatasetDatapointsAnnotationsFileCitation$inboundSchema;
|
|
1232
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFileCitation$outboundSchema` instead. */
|
|
1233
|
+
export const outboundSchema =
|
|
1234
|
+
ListDatasetDatapointsAnnotationsFileCitation$outboundSchema;
|
|
1235
|
+
/** @deprecated use `ListDatasetDatapointsAnnotationsFileCitation$Outbound` instead. */
|
|
1236
|
+
export type Outbound = ListDatasetDatapointsAnnotationsFileCitation$Outbound;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
export function listDatasetDatapointsAnnotationsFileCitationToJSON(
|
|
1240
|
+
listDatasetDatapointsAnnotationsFileCitation:
|
|
1241
|
+
ListDatasetDatapointsAnnotationsFileCitation,
|
|
1242
|
+
): string {
|
|
1243
|
+
return JSON.stringify(
|
|
1244
|
+
ListDatasetDatapointsAnnotationsFileCitation$outboundSchema.parse(
|
|
1245
|
+
listDatasetDatapointsAnnotationsFileCitation,
|
|
1246
|
+
),
|
|
1247
|
+
);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
export function listDatasetDatapointsAnnotationsFileCitationFromJSON(
|
|
1251
|
+
jsonString: string,
|
|
1252
|
+
): SafeParseResult<
|
|
1253
|
+
ListDatasetDatapointsAnnotationsFileCitation,
|
|
1254
|
+
SDKValidationError
|
|
1255
|
+
> {
|
|
1256
|
+
return safeParse(
|
|
1257
|
+
jsonString,
|
|
1258
|
+
(x) =>
|
|
1259
|
+
ListDatasetDatapointsAnnotationsFileCitation$inboundSchema.parse(
|
|
1260
|
+
JSON.parse(x),
|
|
1261
|
+
),
|
|
1262
|
+
`Failed to parse 'ListDatasetDatapointsAnnotationsFileCitation' from JSON`,
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/** @internal */
|
|
1267
|
+
export const ListDatasetDatapointsAnnotations1$inboundSchema: z.ZodType<
|
|
1268
|
+
ListDatasetDatapointsAnnotations1,
|
|
1269
|
+
z.ZodTypeDef,
|
|
1270
|
+
unknown
|
|
1271
|
+
> = z.object({
|
|
1272
|
+
type: ListDatasetDatapointsAnnotationsType$inboundSchema,
|
|
1273
|
+
text: z.string(),
|
|
1274
|
+
file_citation: z.lazy(() =>
|
|
1275
|
+
ListDatasetDatapointsAnnotationsFileCitation$inboundSchema
|
|
1276
|
+
),
|
|
1277
|
+
start_index: z.number().int(),
|
|
1278
|
+
end_index: z.number().int(),
|
|
1279
|
+
}).transform((v) => {
|
|
1280
|
+
return remap$(v, {
|
|
1281
|
+
"file_citation": "fileCitation",
|
|
1282
|
+
"start_index": "startIndex",
|
|
1283
|
+
"end_index": "endIndex",
|
|
1284
|
+
});
|
|
1285
|
+
});
|
|
1286
|
+
|
|
1287
|
+
/** @internal */
|
|
1288
|
+
export type ListDatasetDatapointsAnnotations1$Outbound = {
|
|
1289
|
+
type: string;
|
|
1290
|
+
text: string;
|
|
1291
|
+
file_citation: ListDatasetDatapointsAnnotationsFileCitation$Outbound;
|
|
1292
|
+
start_index: number;
|
|
1293
|
+
end_index: number;
|
|
1294
|
+
};
|
|
1295
|
+
|
|
1296
|
+
/** @internal */
|
|
1297
|
+
export const ListDatasetDatapointsAnnotations1$outboundSchema: z.ZodType<
|
|
1298
|
+
ListDatasetDatapointsAnnotations1$Outbound,
|
|
1299
|
+
z.ZodTypeDef,
|
|
1300
|
+
ListDatasetDatapointsAnnotations1
|
|
1301
|
+
> = z.object({
|
|
1302
|
+
type: ListDatasetDatapointsAnnotationsType$outboundSchema,
|
|
1303
|
+
text: z.string(),
|
|
1304
|
+
fileCitation: z.lazy(() =>
|
|
1305
|
+
ListDatasetDatapointsAnnotationsFileCitation$outboundSchema
|
|
1306
|
+
),
|
|
1307
|
+
startIndex: z.number().int(),
|
|
1308
|
+
endIndex: z.number().int(),
|
|
1309
|
+
}).transform((v) => {
|
|
1310
|
+
return remap$(v, {
|
|
1311
|
+
fileCitation: "file_citation",
|
|
1312
|
+
startIndex: "start_index",
|
|
1313
|
+
endIndex: "end_index",
|
|
1314
|
+
});
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* @internal
|
|
1319
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1320
|
+
*/
|
|
1321
|
+
export namespace ListDatasetDatapointsAnnotations1$ {
|
|
1322
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations1$inboundSchema` instead. */
|
|
1323
|
+
export const inboundSchema = ListDatasetDatapointsAnnotations1$inboundSchema;
|
|
1324
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations1$outboundSchema` instead. */
|
|
1325
|
+
export const outboundSchema =
|
|
1326
|
+
ListDatasetDatapointsAnnotations1$outboundSchema;
|
|
1327
|
+
/** @deprecated use `ListDatasetDatapointsAnnotations1$Outbound` instead. */
|
|
1328
|
+
export type Outbound = ListDatasetDatapointsAnnotations1$Outbound;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
export function listDatasetDatapointsAnnotations1ToJSON(
|
|
1332
|
+
listDatasetDatapointsAnnotations1: ListDatasetDatapointsAnnotations1,
|
|
1333
|
+
): string {
|
|
1334
|
+
return JSON.stringify(
|
|
1335
|
+
ListDatasetDatapointsAnnotations1$outboundSchema.parse(
|
|
1336
|
+
listDatasetDatapointsAnnotations1,
|
|
1337
|
+
),
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export function listDatasetDatapointsAnnotations1FromJSON(
|
|
1342
|
+
jsonString: string,
|
|
1343
|
+
): SafeParseResult<ListDatasetDatapointsAnnotations1, SDKValidationError> {
|
|
1344
|
+
return safeParse(
|
|
1345
|
+
jsonString,
|
|
1346
|
+
(x) => ListDatasetDatapointsAnnotations1$inboundSchema.parse(JSON.parse(x)),
|
|
1347
|
+
`Failed to parse 'ListDatasetDatapointsAnnotations1' from JSON`,
|
|
1348
|
+
);
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
/** @internal */
|
|
1352
|
+
export const ListDatasetDatapoints2Annotations$inboundSchema: z.ZodType<
|
|
1353
|
+
ListDatasetDatapoints2Annotations,
|
|
1354
|
+
z.ZodTypeDef,
|
|
1355
|
+
unknown
|
|
1356
|
+
> = z.union([
|
|
1357
|
+
z.lazy(() => ListDatasetDatapointsAnnotations1$inboundSchema),
|
|
1358
|
+
z.lazy(() => ListDatasetDatapointsAnnotations2$inboundSchema),
|
|
1359
|
+
]);
|
|
1360
|
+
|
|
1361
|
+
/** @internal */
|
|
1362
|
+
export type ListDatasetDatapoints2Annotations$Outbound =
|
|
1363
|
+
| ListDatasetDatapointsAnnotations1$Outbound
|
|
1364
|
+
| ListDatasetDatapointsAnnotations2$Outbound;
|
|
1365
|
+
|
|
1366
|
+
/** @internal */
|
|
1367
|
+
export const ListDatasetDatapoints2Annotations$outboundSchema: z.ZodType<
|
|
1368
|
+
ListDatasetDatapoints2Annotations$Outbound,
|
|
1369
|
+
z.ZodTypeDef,
|
|
1370
|
+
ListDatasetDatapoints2Annotations
|
|
1371
|
+
> = z.union([
|
|
1372
|
+
z.lazy(() => ListDatasetDatapointsAnnotations1$outboundSchema),
|
|
1373
|
+
z.lazy(() => ListDatasetDatapointsAnnotations2$outboundSchema),
|
|
1374
|
+
]);
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* @internal
|
|
1378
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1379
|
+
*/
|
|
1380
|
+
export namespace ListDatasetDatapoints2Annotations$ {
|
|
1381
|
+
/** @deprecated use `ListDatasetDatapoints2Annotations$inboundSchema` instead. */
|
|
1382
|
+
export const inboundSchema = ListDatasetDatapoints2Annotations$inboundSchema;
|
|
1383
|
+
/** @deprecated use `ListDatasetDatapoints2Annotations$outboundSchema` instead. */
|
|
1384
|
+
export const outboundSchema =
|
|
1385
|
+
ListDatasetDatapoints2Annotations$outboundSchema;
|
|
1386
|
+
/** @deprecated use `ListDatasetDatapoints2Annotations$Outbound` instead. */
|
|
1387
|
+
export type Outbound = ListDatasetDatapoints2Annotations$Outbound;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
export function listDatasetDatapoints2AnnotationsToJSON(
|
|
1391
|
+
listDatasetDatapoints2Annotations: ListDatasetDatapoints2Annotations,
|
|
1392
|
+
): string {
|
|
1393
|
+
return JSON.stringify(
|
|
1394
|
+
ListDatasetDatapoints2Annotations$outboundSchema.parse(
|
|
1395
|
+
listDatasetDatapoints2Annotations,
|
|
1396
|
+
),
|
|
1397
|
+
);
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
export function listDatasetDatapoints2AnnotationsFromJSON(
|
|
1401
|
+
jsonString: string,
|
|
1402
|
+
): SafeParseResult<ListDatasetDatapoints2Annotations, SDKValidationError> {
|
|
1403
|
+
return safeParse(
|
|
1404
|
+
jsonString,
|
|
1405
|
+
(x) => ListDatasetDatapoints2Annotations$inboundSchema.parse(JSON.parse(x)),
|
|
1406
|
+
`Failed to parse 'ListDatasetDatapoints2Annotations' from JSON`,
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
932
1410
|
/** @internal */
|
|
933
1411
|
export const ListDatasetDatapoints2TextContentPart$inboundSchema: z.ZodType<
|
|
934
1412
|
ListDatasetDatapoints2TextContentPart,
|
|
@@ -938,12 +1416,24 @@ export const ListDatasetDatapoints2TextContentPart$inboundSchema: z.ZodType<
|
|
|
938
1416
|
type:
|
|
939
1417
|
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
940
1418
|
text: z.string(),
|
|
1419
|
+
annotations: z.array(
|
|
1420
|
+
z.union([
|
|
1421
|
+
z.lazy(() => ListDatasetDatapointsAnnotations1$inboundSchema),
|
|
1422
|
+
z.lazy(() => ListDatasetDatapointsAnnotations2$inboundSchema),
|
|
1423
|
+
]),
|
|
1424
|
+
).optional(),
|
|
941
1425
|
});
|
|
942
1426
|
|
|
943
1427
|
/** @internal */
|
|
944
1428
|
export type ListDatasetDatapoints2TextContentPart$Outbound = {
|
|
945
1429
|
type: string;
|
|
946
1430
|
text: string;
|
|
1431
|
+
annotations?:
|
|
1432
|
+
| Array<
|
|
1433
|
+
| ListDatasetDatapointsAnnotations1$Outbound
|
|
1434
|
+
| ListDatasetDatapointsAnnotations2$Outbound
|
|
1435
|
+
>
|
|
1436
|
+
| undefined;
|
|
947
1437
|
};
|
|
948
1438
|
|
|
949
1439
|
/** @internal */
|
|
@@ -955,6 +1445,12 @@ export const ListDatasetDatapoints2TextContentPart$outboundSchema: z.ZodType<
|
|
|
955
1445
|
type:
|
|
956
1446
|
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
957
1447
|
text: z.string(),
|
|
1448
|
+
annotations: z.array(
|
|
1449
|
+
z.union([
|
|
1450
|
+
z.lazy(() => ListDatasetDatapointsAnnotations1$outboundSchema),
|
|
1451
|
+
z.lazy(() => ListDatasetDatapointsAnnotations2$outboundSchema),
|
|
1452
|
+
]),
|
|
1453
|
+
).optional(),
|
|
958
1454
|
});
|
|
959
1455
|
|
|
960
1456
|
/**
|
|
@@ -2604,7 +3100,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2604
3100
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2605
3101
|
.optional(),
|
|
2606
3102
|
updated: z.string().datetime({ offset: true }).default(
|
|
2607
|
-
"2025-08-
|
|
3103
|
+
"2025-08-28T12:00:09.894Z",
|
|
2608
3104
|
).transform(v => new Date(v)),
|
|
2609
3105
|
}).transform((v) => {
|
|
2610
3106
|
return remap$(v, {
|
|
@@ -2668,7 +3164,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
2668
3164
|
createdById: z.string().optional(),
|
|
2669
3165
|
updatedById: z.string().optional(),
|
|
2670
3166
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2671
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
3167
|
+
updated: z.date().default(() => new Date("2025-08-28T12:00:09.894Z"))
|
|
2672
3168
|
.transform(v => v.toISOString()),
|
|
2673
3169
|
}).transform((v) => {
|
|
2674
3170
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-08-
|
|
256
|
+
"2025-08-28T12:00:09.894Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-08-28T12:00:09.894Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01K3R8SPE2ZZEN5VP69ABFX4PG"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01K3R8SPE2ZZEN5VP69ABFX4PG"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|