@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.
- 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/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/proxy/README.md +1212 -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/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/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 +543 -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/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
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListBatchesRequest = {
|
|
13
|
+
after: string;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ListBatchesObject = {
|
|
18
|
+
List: "list",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ListBatchesObject = ClosedEnum<typeof ListBatchesObject>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The object type, which is always batch.
|
|
24
|
+
*/
|
|
25
|
+
export const ListBatchesBatchesObject = {
|
|
26
|
+
Batch: "batch",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* The object type, which is always batch.
|
|
30
|
+
*/
|
|
31
|
+
export type ListBatchesBatchesObject = ClosedEnum<
|
|
32
|
+
typeof ListBatchesBatchesObject
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Errors associated with the batch.
|
|
37
|
+
*/
|
|
38
|
+
export type ListBatchesErrors = {};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The request counts for different statuses within the batch.
|
|
42
|
+
*/
|
|
43
|
+
export type ListBatchesRequestCounts = {
|
|
44
|
+
/**
|
|
45
|
+
* Total number of requests in the batch.
|
|
46
|
+
*/
|
|
47
|
+
total: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of requests that have been completed successfully.
|
|
50
|
+
*/
|
|
51
|
+
completed: number;
|
|
52
|
+
/**
|
|
53
|
+
* Number of requests that have failed.
|
|
54
|
+
*/
|
|
55
|
+
failed: number;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type ListBatchesData = {
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the batch job.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* The object type, which is always batch.
|
|
65
|
+
*/
|
|
66
|
+
object: ListBatchesBatchesObject;
|
|
67
|
+
/**
|
|
68
|
+
* The OpenAI API endpoint used by the batch.
|
|
69
|
+
*/
|
|
70
|
+
endpoint: string;
|
|
71
|
+
/**
|
|
72
|
+
* Errors associated with the batch.
|
|
73
|
+
*/
|
|
74
|
+
errors: ListBatchesErrors;
|
|
75
|
+
/**
|
|
76
|
+
* The ID of the input file for the batch.
|
|
77
|
+
*/
|
|
78
|
+
inputFileId: string;
|
|
79
|
+
/**
|
|
80
|
+
* The time frame within which the batch should be processed.
|
|
81
|
+
*/
|
|
82
|
+
completionWindow: string;
|
|
83
|
+
/**
|
|
84
|
+
* The current status of the batch.
|
|
85
|
+
*/
|
|
86
|
+
status: string;
|
|
87
|
+
/**
|
|
88
|
+
* The ID of the file containing the outputs of successfully executed requests.
|
|
89
|
+
*/
|
|
90
|
+
outputFileId: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* The ID of the file containing the outputs of requests with errors.
|
|
93
|
+
*/
|
|
94
|
+
errorFileId: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* The Unix timestamp (in seconds) for when the batch was created.
|
|
97
|
+
*/
|
|
98
|
+
createdAt: number;
|
|
99
|
+
/**
|
|
100
|
+
* The Unix timestamp (in seconds) for when the batch started processing.
|
|
101
|
+
*/
|
|
102
|
+
inProgressAt: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* The Unix timestamp (in seconds) for when the batch will expire.
|
|
105
|
+
*/
|
|
106
|
+
expiresAt: number | null;
|
|
107
|
+
/**
|
|
108
|
+
* The Unix timestamp (in seconds) for when the batch started finalizing.
|
|
109
|
+
*/
|
|
110
|
+
finalizingAt: number | null;
|
|
111
|
+
/**
|
|
112
|
+
* The Unix timestamp (in seconds) for when the batch was completed.
|
|
113
|
+
*/
|
|
114
|
+
completedAt: number | null;
|
|
115
|
+
/**
|
|
116
|
+
* The Unix timestamp (in seconds) for when the batch failed.
|
|
117
|
+
*/
|
|
118
|
+
failedAt: number | null;
|
|
119
|
+
/**
|
|
120
|
+
* The Unix timestamp (in seconds) for when the batch expired.
|
|
121
|
+
*/
|
|
122
|
+
expiredAt: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* The Unix timestamp (in seconds) for when the batch started cancelling.
|
|
125
|
+
*/
|
|
126
|
+
cancellingAt: number | null;
|
|
127
|
+
/**
|
|
128
|
+
* The Unix timestamp (in seconds) for when the batch was cancelled.
|
|
129
|
+
*/
|
|
130
|
+
cancelledAt: number | null;
|
|
131
|
+
/**
|
|
132
|
+
* The request counts for different statuses within the batch.
|
|
133
|
+
*/
|
|
134
|
+
requestCounts: ListBatchesRequestCounts;
|
|
135
|
+
/**
|
|
136
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
|
|
137
|
+
*
|
|
138
|
+
* @remarks
|
|
139
|
+
*
|
|
140
|
+
* Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
|
|
141
|
+
*/
|
|
142
|
+
metadata?: { [k: string]: any } | undefined;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A list of paginated Batch objects.
|
|
147
|
+
*/
|
|
148
|
+
export type ListBatchesResponseBody = {
|
|
149
|
+
object: ListBatchesObject;
|
|
150
|
+
data: Array<ListBatchesData>;
|
|
151
|
+
hasMore: boolean;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const ListBatchesRequest$inboundSchema: z.ZodType<
|
|
156
|
+
ListBatchesRequest,
|
|
157
|
+
z.ZodTypeDef,
|
|
158
|
+
unknown
|
|
159
|
+
> = z.object({
|
|
160
|
+
after: z.string(),
|
|
161
|
+
limit: z.number().default(10),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type ListBatchesRequest$Outbound = {
|
|
166
|
+
after: string;
|
|
167
|
+
limit: number;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const ListBatchesRequest$outboundSchema: z.ZodType<
|
|
172
|
+
ListBatchesRequest$Outbound,
|
|
173
|
+
z.ZodTypeDef,
|
|
174
|
+
ListBatchesRequest
|
|
175
|
+
> = z.object({
|
|
176
|
+
after: z.string(),
|
|
177
|
+
limit: z.number().default(10),
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
183
|
+
*/
|
|
184
|
+
export namespace ListBatchesRequest$ {
|
|
185
|
+
/** @deprecated use `ListBatchesRequest$inboundSchema` instead. */
|
|
186
|
+
export const inboundSchema = ListBatchesRequest$inboundSchema;
|
|
187
|
+
/** @deprecated use `ListBatchesRequest$outboundSchema` instead. */
|
|
188
|
+
export const outboundSchema = ListBatchesRequest$outboundSchema;
|
|
189
|
+
/** @deprecated use `ListBatchesRequest$Outbound` instead. */
|
|
190
|
+
export type Outbound = ListBatchesRequest$Outbound;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function listBatchesRequestToJSON(
|
|
194
|
+
listBatchesRequest: ListBatchesRequest,
|
|
195
|
+
): string {
|
|
196
|
+
return JSON.stringify(
|
|
197
|
+
ListBatchesRequest$outboundSchema.parse(listBatchesRequest),
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function listBatchesRequestFromJSON(
|
|
202
|
+
jsonString: string,
|
|
203
|
+
): SafeParseResult<ListBatchesRequest, SDKValidationError> {
|
|
204
|
+
return safeParse(
|
|
205
|
+
jsonString,
|
|
206
|
+
(x) => ListBatchesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
+
`Failed to parse 'ListBatchesRequest' from JSON`,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export const ListBatchesObject$inboundSchema: z.ZodNativeEnum<
|
|
213
|
+
typeof ListBatchesObject
|
|
214
|
+
> = z.nativeEnum(ListBatchesObject);
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const ListBatchesObject$outboundSchema: z.ZodNativeEnum<
|
|
218
|
+
typeof ListBatchesObject
|
|
219
|
+
> = ListBatchesObject$inboundSchema;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace ListBatchesObject$ {
|
|
226
|
+
/** @deprecated use `ListBatchesObject$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = ListBatchesObject$inboundSchema;
|
|
228
|
+
/** @deprecated use `ListBatchesObject$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = ListBatchesObject$outboundSchema;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** @internal */
|
|
233
|
+
export const ListBatchesBatchesObject$inboundSchema: z.ZodNativeEnum<
|
|
234
|
+
typeof ListBatchesBatchesObject
|
|
235
|
+
> = z.nativeEnum(ListBatchesBatchesObject);
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const ListBatchesBatchesObject$outboundSchema: z.ZodNativeEnum<
|
|
239
|
+
typeof ListBatchesBatchesObject
|
|
240
|
+
> = ListBatchesBatchesObject$inboundSchema;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
245
|
+
*/
|
|
246
|
+
export namespace ListBatchesBatchesObject$ {
|
|
247
|
+
/** @deprecated use `ListBatchesBatchesObject$inboundSchema` instead. */
|
|
248
|
+
export const inboundSchema = ListBatchesBatchesObject$inboundSchema;
|
|
249
|
+
/** @deprecated use `ListBatchesBatchesObject$outboundSchema` instead. */
|
|
250
|
+
export const outboundSchema = ListBatchesBatchesObject$outboundSchema;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const ListBatchesErrors$inboundSchema: z.ZodType<
|
|
255
|
+
ListBatchesErrors,
|
|
256
|
+
z.ZodTypeDef,
|
|
257
|
+
unknown
|
|
258
|
+
> = z.object({});
|
|
259
|
+
|
|
260
|
+
/** @internal */
|
|
261
|
+
export type ListBatchesErrors$Outbound = {};
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export const ListBatchesErrors$outboundSchema: z.ZodType<
|
|
265
|
+
ListBatchesErrors$Outbound,
|
|
266
|
+
z.ZodTypeDef,
|
|
267
|
+
ListBatchesErrors
|
|
268
|
+
> = z.object({});
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @internal
|
|
272
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
273
|
+
*/
|
|
274
|
+
export namespace ListBatchesErrors$ {
|
|
275
|
+
/** @deprecated use `ListBatchesErrors$inboundSchema` instead. */
|
|
276
|
+
export const inboundSchema = ListBatchesErrors$inboundSchema;
|
|
277
|
+
/** @deprecated use `ListBatchesErrors$outboundSchema` instead. */
|
|
278
|
+
export const outboundSchema = ListBatchesErrors$outboundSchema;
|
|
279
|
+
/** @deprecated use `ListBatchesErrors$Outbound` instead. */
|
|
280
|
+
export type Outbound = ListBatchesErrors$Outbound;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export function listBatchesErrorsToJSON(
|
|
284
|
+
listBatchesErrors: ListBatchesErrors,
|
|
285
|
+
): string {
|
|
286
|
+
return JSON.stringify(
|
|
287
|
+
ListBatchesErrors$outboundSchema.parse(listBatchesErrors),
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function listBatchesErrorsFromJSON(
|
|
292
|
+
jsonString: string,
|
|
293
|
+
): SafeParseResult<ListBatchesErrors, SDKValidationError> {
|
|
294
|
+
return safeParse(
|
|
295
|
+
jsonString,
|
|
296
|
+
(x) => ListBatchesErrors$inboundSchema.parse(JSON.parse(x)),
|
|
297
|
+
`Failed to parse 'ListBatchesErrors' from JSON`,
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** @internal */
|
|
302
|
+
export const ListBatchesRequestCounts$inboundSchema: z.ZodType<
|
|
303
|
+
ListBatchesRequestCounts,
|
|
304
|
+
z.ZodTypeDef,
|
|
305
|
+
unknown
|
|
306
|
+
> = z.object({
|
|
307
|
+
total: z.number().int(),
|
|
308
|
+
completed: z.number().int(),
|
|
309
|
+
failed: z.number().int(),
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
/** @internal */
|
|
313
|
+
export type ListBatchesRequestCounts$Outbound = {
|
|
314
|
+
total: number;
|
|
315
|
+
completed: number;
|
|
316
|
+
failed: number;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const ListBatchesRequestCounts$outboundSchema: z.ZodType<
|
|
321
|
+
ListBatchesRequestCounts$Outbound,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
ListBatchesRequestCounts
|
|
324
|
+
> = z.object({
|
|
325
|
+
total: z.number().int(),
|
|
326
|
+
completed: z.number().int(),
|
|
327
|
+
failed: z.number().int(),
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* @internal
|
|
332
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
333
|
+
*/
|
|
334
|
+
export namespace ListBatchesRequestCounts$ {
|
|
335
|
+
/** @deprecated use `ListBatchesRequestCounts$inboundSchema` instead. */
|
|
336
|
+
export const inboundSchema = ListBatchesRequestCounts$inboundSchema;
|
|
337
|
+
/** @deprecated use `ListBatchesRequestCounts$outboundSchema` instead. */
|
|
338
|
+
export const outboundSchema = ListBatchesRequestCounts$outboundSchema;
|
|
339
|
+
/** @deprecated use `ListBatchesRequestCounts$Outbound` instead. */
|
|
340
|
+
export type Outbound = ListBatchesRequestCounts$Outbound;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export function listBatchesRequestCountsToJSON(
|
|
344
|
+
listBatchesRequestCounts: ListBatchesRequestCounts,
|
|
345
|
+
): string {
|
|
346
|
+
return JSON.stringify(
|
|
347
|
+
ListBatchesRequestCounts$outboundSchema.parse(listBatchesRequestCounts),
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export function listBatchesRequestCountsFromJSON(
|
|
352
|
+
jsonString: string,
|
|
353
|
+
): SafeParseResult<ListBatchesRequestCounts, SDKValidationError> {
|
|
354
|
+
return safeParse(
|
|
355
|
+
jsonString,
|
|
356
|
+
(x) => ListBatchesRequestCounts$inboundSchema.parse(JSON.parse(x)),
|
|
357
|
+
`Failed to parse 'ListBatchesRequestCounts' from JSON`,
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/** @internal */
|
|
362
|
+
export const ListBatchesData$inboundSchema: z.ZodType<
|
|
363
|
+
ListBatchesData,
|
|
364
|
+
z.ZodTypeDef,
|
|
365
|
+
unknown
|
|
366
|
+
> = z.object({
|
|
367
|
+
id: z.string(),
|
|
368
|
+
object: ListBatchesBatchesObject$inboundSchema,
|
|
369
|
+
endpoint: z.string(),
|
|
370
|
+
errors: z.lazy(() => ListBatchesErrors$inboundSchema),
|
|
371
|
+
input_file_id: z.string(),
|
|
372
|
+
completion_window: z.string(),
|
|
373
|
+
status: z.string(),
|
|
374
|
+
output_file_id: z.nullable(z.string()),
|
|
375
|
+
error_file_id: z.nullable(z.string()),
|
|
376
|
+
created_at: z.number().int(),
|
|
377
|
+
in_progress_at: z.nullable(z.number().int()),
|
|
378
|
+
expires_at: z.nullable(z.number().int()),
|
|
379
|
+
finalizing_at: z.nullable(z.number().int()),
|
|
380
|
+
completed_at: z.nullable(z.number().int()),
|
|
381
|
+
failed_at: z.nullable(z.number().int()),
|
|
382
|
+
expired_at: z.nullable(z.number().int()),
|
|
383
|
+
cancelling_at: z.nullable(z.number().int()),
|
|
384
|
+
cancelled_at: z.nullable(z.number().int()),
|
|
385
|
+
request_counts: z.lazy(() => ListBatchesRequestCounts$inboundSchema),
|
|
386
|
+
metadata: z.record(z.any()).optional(),
|
|
387
|
+
}).transform((v) => {
|
|
388
|
+
return remap$(v, {
|
|
389
|
+
"input_file_id": "inputFileId",
|
|
390
|
+
"completion_window": "completionWindow",
|
|
391
|
+
"output_file_id": "outputFileId",
|
|
392
|
+
"error_file_id": "errorFileId",
|
|
393
|
+
"created_at": "createdAt",
|
|
394
|
+
"in_progress_at": "inProgressAt",
|
|
395
|
+
"expires_at": "expiresAt",
|
|
396
|
+
"finalizing_at": "finalizingAt",
|
|
397
|
+
"completed_at": "completedAt",
|
|
398
|
+
"failed_at": "failedAt",
|
|
399
|
+
"expired_at": "expiredAt",
|
|
400
|
+
"cancelling_at": "cancellingAt",
|
|
401
|
+
"cancelled_at": "cancelledAt",
|
|
402
|
+
"request_counts": "requestCounts",
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
/** @internal */
|
|
407
|
+
export type ListBatchesData$Outbound = {
|
|
408
|
+
id: string;
|
|
409
|
+
object: string;
|
|
410
|
+
endpoint: string;
|
|
411
|
+
errors: ListBatchesErrors$Outbound;
|
|
412
|
+
input_file_id: string;
|
|
413
|
+
completion_window: string;
|
|
414
|
+
status: string;
|
|
415
|
+
output_file_id: string | null;
|
|
416
|
+
error_file_id: string | null;
|
|
417
|
+
created_at: number;
|
|
418
|
+
in_progress_at: number | null;
|
|
419
|
+
expires_at: number | null;
|
|
420
|
+
finalizing_at: number | null;
|
|
421
|
+
completed_at: number | null;
|
|
422
|
+
failed_at: number | null;
|
|
423
|
+
expired_at: number | null;
|
|
424
|
+
cancelling_at: number | null;
|
|
425
|
+
cancelled_at: number | null;
|
|
426
|
+
request_counts: ListBatchesRequestCounts$Outbound;
|
|
427
|
+
metadata?: { [k: string]: any } | undefined;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/** @internal */
|
|
431
|
+
export const ListBatchesData$outboundSchema: z.ZodType<
|
|
432
|
+
ListBatchesData$Outbound,
|
|
433
|
+
z.ZodTypeDef,
|
|
434
|
+
ListBatchesData
|
|
435
|
+
> = z.object({
|
|
436
|
+
id: z.string(),
|
|
437
|
+
object: ListBatchesBatchesObject$outboundSchema,
|
|
438
|
+
endpoint: z.string(),
|
|
439
|
+
errors: z.lazy(() => ListBatchesErrors$outboundSchema),
|
|
440
|
+
inputFileId: z.string(),
|
|
441
|
+
completionWindow: z.string(),
|
|
442
|
+
status: z.string(),
|
|
443
|
+
outputFileId: z.nullable(z.string()),
|
|
444
|
+
errorFileId: z.nullable(z.string()),
|
|
445
|
+
createdAt: z.number().int(),
|
|
446
|
+
inProgressAt: z.nullable(z.number().int()),
|
|
447
|
+
expiresAt: z.nullable(z.number().int()),
|
|
448
|
+
finalizingAt: z.nullable(z.number().int()),
|
|
449
|
+
completedAt: z.nullable(z.number().int()),
|
|
450
|
+
failedAt: z.nullable(z.number().int()),
|
|
451
|
+
expiredAt: z.nullable(z.number().int()),
|
|
452
|
+
cancellingAt: z.nullable(z.number().int()),
|
|
453
|
+
cancelledAt: z.nullable(z.number().int()),
|
|
454
|
+
requestCounts: z.lazy(() => ListBatchesRequestCounts$outboundSchema),
|
|
455
|
+
metadata: z.record(z.any()).optional(),
|
|
456
|
+
}).transform((v) => {
|
|
457
|
+
return remap$(v, {
|
|
458
|
+
inputFileId: "input_file_id",
|
|
459
|
+
completionWindow: "completion_window",
|
|
460
|
+
outputFileId: "output_file_id",
|
|
461
|
+
errorFileId: "error_file_id",
|
|
462
|
+
createdAt: "created_at",
|
|
463
|
+
inProgressAt: "in_progress_at",
|
|
464
|
+
expiresAt: "expires_at",
|
|
465
|
+
finalizingAt: "finalizing_at",
|
|
466
|
+
completedAt: "completed_at",
|
|
467
|
+
failedAt: "failed_at",
|
|
468
|
+
expiredAt: "expired_at",
|
|
469
|
+
cancellingAt: "cancelling_at",
|
|
470
|
+
cancelledAt: "cancelled_at",
|
|
471
|
+
requestCounts: "request_counts",
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @internal
|
|
477
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
478
|
+
*/
|
|
479
|
+
export namespace ListBatchesData$ {
|
|
480
|
+
/** @deprecated use `ListBatchesData$inboundSchema` instead. */
|
|
481
|
+
export const inboundSchema = ListBatchesData$inboundSchema;
|
|
482
|
+
/** @deprecated use `ListBatchesData$outboundSchema` instead. */
|
|
483
|
+
export const outboundSchema = ListBatchesData$outboundSchema;
|
|
484
|
+
/** @deprecated use `ListBatchesData$Outbound` instead. */
|
|
485
|
+
export type Outbound = ListBatchesData$Outbound;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export function listBatchesDataToJSON(
|
|
489
|
+
listBatchesData: ListBatchesData,
|
|
490
|
+
): string {
|
|
491
|
+
return JSON.stringify(ListBatchesData$outboundSchema.parse(listBatchesData));
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export function listBatchesDataFromJSON(
|
|
495
|
+
jsonString: string,
|
|
496
|
+
): SafeParseResult<ListBatchesData, SDKValidationError> {
|
|
497
|
+
return safeParse(
|
|
498
|
+
jsonString,
|
|
499
|
+
(x) => ListBatchesData$inboundSchema.parse(JSON.parse(x)),
|
|
500
|
+
`Failed to parse 'ListBatchesData' from JSON`,
|
|
501
|
+
);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/** @internal */
|
|
505
|
+
export const ListBatchesResponseBody$inboundSchema: z.ZodType<
|
|
506
|
+
ListBatchesResponseBody,
|
|
507
|
+
z.ZodTypeDef,
|
|
508
|
+
unknown
|
|
509
|
+
> = z.object({
|
|
510
|
+
object: ListBatchesObject$inboundSchema,
|
|
511
|
+
data: z.array(z.lazy(() => ListBatchesData$inboundSchema)),
|
|
512
|
+
has_more: z.boolean(),
|
|
513
|
+
}).transform((v) => {
|
|
514
|
+
return remap$(v, {
|
|
515
|
+
"has_more": "hasMore",
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
|
|
519
|
+
/** @internal */
|
|
520
|
+
export type ListBatchesResponseBody$Outbound = {
|
|
521
|
+
object: string;
|
|
522
|
+
data: Array<ListBatchesData$Outbound>;
|
|
523
|
+
has_more: boolean;
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
/** @internal */
|
|
527
|
+
export const ListBatchesResponseBody$outboundSchema: z.ZodType<
|
|
528
|
+
ListBatchesResponseBody$Outbound,
|
|
529
|
+
z.ZodTypeDef,
|
|
530
|
+
ListBatchesResponseBody
|
|
531
|
+
> = z.object({
|
|
532
|
+
object: ListBatchesObject$outboundSchema,
|
|
533
|
+
data: z.array(z.lazy(() => ListBatchesData$outboundSchema)),
|
|
534
|
+
hasMore: z.boolean(),
|
|
535
|
+
}).transform((v) => {
|
|
536
|
+
return remap$(v, {
|
|
537
|
+
hasMore: "has_more",
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @internal
|
|
543
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
544
|
+
*/
|
|
545
|
+
export namespace ListBatchesResponseBody$ {
|
|
546
|
+
/** @deprecated use `ListBatchesResponseBody$inboundSchema` instead. */
|
|
547
|
+
export const inboundSchema = ListBatchesResponseBody$inboundSchema;
|
|
548
|
+
/** @deprecated use `ListBatchesResponseBody$outboundSchema` instead. */
|
|
549
|
+
export const outboundSchema = ListBatchesResponseBody$outboundSchema;
|
|
550
|
+
/** @deprecated use `ListBatchesResponseBody$Outbound` instead. */
|
|
551
|
+
export type Outbound = ListBatchesResponseBody$Outbound;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export function listBatchesResponseBodyToJSON(
|
|
555
|
+
listBatchesResponseBody: ListBatchesResponseBody,
|
|
556
|
+
): string {
|
|
557
|
+
return JSON.stringify(
|
|
558
|
+
ListBatchesResponseBody$outboundSchema.parse(listBatchesResponseBody),
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export function listBatchesResponseBodyFromJSON(
|
|
563
|
+
jsonString: string,
|
|
564
|
+
): SafeParseResult<ListBatchesResponseBody, SDKValidationError> {
|
|
565
|
+
return safeParse(
|
|
566
|
+
jsonString,
|
|
567
|
+
(x) => ListBatchesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
568
|
+
`Failed to parse 'ListBatchesResponseBody' from JSON`,
|
|
569
|
+
);
|
|
570
|
+
}
|
|
@@ -470,7 +470,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
|
|
|
470
470
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
471
471
|
.optional(),
|
|
472
472
|
updated: z.string().datetime({ offset: true }).default(
|
|
473
|
-
"2025-08-
|
|
473
|
+
"2025-08-27T07:41:07.739Z",
|
|
474
474
|
).transform(v => new Date(v)),
|
|
475
475
|
}).transform((v) => {
|
|
476
476
|
return remap$(v, {
|
|
@@ -508,7 +508,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
|
|
|
508
508
|
isActive: z.boolean(),
|
|
509
509
|
consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
|
|
510
510
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
511
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
511
|
+
updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
|
|
512
512
|
.transform(v => v.toISOString()),
|
|
513
513
|
}).transform((v) => {
|
|
514
514
|
return remap$(v, {
|
|
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
345
345
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
346
346
|
.optional(),
|
|
347
347
|
updated: z.string().datetime({ offset: true }).default(
|
|
348
|
-
"2025-08-
|
|
348
|
+
"2025-08-27T07:41:07.739Z",
|
|
349
349
|
).transform(v => new Date(v)),
|
|
350
350
|
metrics: z.lazy(() => Metrics$inboundSchema),
|
|
351
351
|
}).transform((v) => {
|
|
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
382
382
|
tags: z.array(z.string()).optional(),
|
|
383
383
|
metadata: z.record(z.any()).optional(),
|
|
384
384
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
385
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
385
|
+
updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
|
|
386
386
|
.transform(v => v.toISOString()),
|
|
387
387
|
metrics: z.lazy(() => Metrics$outboundSchema),
|
|
388
388
|
}).transform((v) => {
|