@orq-ai/node 3.2.6 → 3.2.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 +32 -32
- package/bin/mcp-server.js.map +17 -17
- 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/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/README.md +39 -1
- package/packages/orq-rc/docs/sdks/deployments/README.md +81 -0
- package/packages/orq-rc/docs/sdks/prompts/README.md +110 -110
- package/packages/orq-rc/jsr.json +2 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -1
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -1
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +178 -0
- package/packages/orq-rc/src/funcs/filesList.ts +0 -1
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -2
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +264 -0
- package/packages/orq-rc/src/lib/matchers.ts +4 -1
- package/packages/orq-rc/src/lib/security.ts +11 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +4 -2
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +599 -680
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -39
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +5960 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -42
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -42
- package/packages/orq-rc/src/models/operations/index.ts +1 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -46
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -44
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -42
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateprompt.ts +682 -599
- package/packages/orq-rc/src/sdk/deployments.ts +19 -0
- package/packages/orq-rc/src/sdk/prompts.ts +14 -14
- 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/bulkcreatedatapoints.ts +2 -2
- 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/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-03-
|
|
149
|
+
"2025-03-25T12:37:16.161Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-03-
|
|
183
|
+
created: z.date().default(() => new Date("2025-03-25T12:37:16.161Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -9,23 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* List sorting preference.
|
|
14
|
-
*/
|
|
15
|
-
export const QueryParamSort = {
|
|
16
|
-
Asc: "asc",
|
|
17
|
-
Desc: "desc",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* List sorting preference.
|
|
21
|
-
*/
|
|
22
|
-
export type QueryParamSort = ClosedEnum<typeof QueryParamSort>;
|
|
23
|
-
|
|
24
12
|
export type FileListRequest = {
|
|
25
|
-
/**
|
|
26
|
-
* List sorting preference.
|
|
27
|
-
*/
|
|
28
|
-
sort?: QueryParamSort | undefined;
|
|
29
13
|
/**
|
|
30
14
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
31
15
|
*/
|
|
@@ -89,34 +73,12 @@ export type FileListResponseBody = {
|
|
|
89
73
|
hasMore: boolean;
|
|
90
74
|
};
|
|
91
75
|
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const QueryParamSort$inboundSchema: z.ZodNativeEnum<
|
|
94
|
-
typeof QueryParamSort
|
|
95
|
-
> = z.nativeEnum(QueryParamSort);
|
|
96
|
-
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const QueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
99
|
-
typeof QueryParamSort
|
|
100
|
-
> = QueryParamSort$inboundSchema;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
-
*/
|
|
106
|
-
export namespace QueryParamSort$ {
|
|
107
|
-
/** @deprecated use `QueryParamSort$inboundSchema` instead. */
|
|
108
|
-
export const inboundSchema = QueryParamSort$inboundSchema;
|
|
109
|
-
/** @deprecated use `QueryParamSort$outboundSchema` instead. */
|
|
110
|
-
export const outboundSchema = QueryParamSort$outboundSchema;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
76
|
/** @internal */
|
|
114
77
|
export const FileListRequest$inboundSchema: z.ZodType<
|
|
115
78
|
FileListRequest,
|
|
116
79
|
z.ZodTypeDef,
|
|
117
80
|
unknown
|
|
118
81
|
> = z.object({
|
|
119
|
-
sort: QueryParamSort$inboundSchema.default("asc"),
|
|
120
82
|
limit: z.number().default(10),
|
|
121
83
|
starting_after: z.string().optional(),
|
|
122
84
|
ending_before: z.string().optional(),
|
|
@@ -129,7 +91,6 @@ export const FileListRequest$inboundSchema: z.ZodType<
|
|
|
129
91
|
|
|
130
92
|
/** @internal */
|
|
131
93
|
export type FileListRequest$Outbound = {
|
|
132
|
-
sort: string;
|
|
133
94
|
limit: number;
|
|
134
95
|
starting_after?: string | undefined;
|
|
135
96
|
ending_before?: string | undefined;
|
|
@@ -141,7 +102,6 @@ export const FileListRequest$outboundSchema: z.ZodType<
|
|
|
141
102
|
z.ZodTypeDef,
|
|
142
103
|
FileListRequest
|
|
143
104
|
> = z.object({
|
|
144
|
-
sort: QueryParamSort$outboundSchema.default("asc"),
|
|
145
105
|
limit: z.number().default(10),
|
|
146
106
|
startingAfter: z.string().optional(),
|
|
147
107
|
endingBefore: z.string().optional(),
|
|
@@ -236,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
236
196
|
file_name: z.string(),
|
|
237
197
|
workspace_id: z.string(),
|
|
238
198
|
created: z.string().datetime({ offset: true }).default(
|
|
239
|
-
"2025-03-
|
|
199
|
+
"2025-03-25T12:37:16.161Z",
|
|
240
200
|
).transform(v => new Date(v)),
|
|
241
201
|
}).transform((v) => {
|
|
242
202
|
return remap$(v, {
|
|
@@ -270,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
270
230
|
bytes: z.number(),
|
|
271
231
|
fileName: z.string(),
|
|
272
232
|
workspaceId: z.string(),
|
|
273
|
-
created: z.date().default(() => new Date("2025-03-
|
|
233
|
+
created: z.date().default(() => new Date("2025-03-25T12:37:16.161Z"))
|
|
274
234
|
.transform(v => v.toISOString()),
|
|
275
235
|
}).transform((v) => {
|
|
276
236
|
return remap$(v, {
|
|
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
247
247
|
file_name: z.string(),
|
|
248
248
|
workspace_id: z.string(),
|
|
249
249
|
created: z.string().datetime({ offset: true }).default(
|
|
250
|
-
"2025-03-
|
|
250
|
+
"2025-03-25T12:37:16.161Z",
|
|
251
251
|
).transform(v => new Date(v)),
|
|
252
252
|
}).transform((v) => {
|
|
253
253
|
return remap$(v, {
|
|
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
281
281
|
bytes: z.number(),
|
|
282
282
|
fileName: z.string(),
|
|
283
283
|
workspaceId: z.string(),
|
|
284
|
-
created: z.date().default(() => new Date("2025-03-
|
|
284
|
+
created: z.date().default(() => new Date("2025-03-25T12:37:16.161Z"))
|
|
285
285
|
.transform(v => v.toISOString()),
|
|
286
286
|
}).transform((v) => {
|
|
287
287
|
return remap$(v, {
|
|
@@ -9,25 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* List sorting preference.
|
|
14
|
-
*/
|
|
15
|
-
export const GetAllPromptsQueryParamSort = {
|
|
16
|
-
Asc: "asc",
|
|
17
|
-
Desc: "desc",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* List sorting preference.
|
|
21
|
-
*/
|
|
22
|
-
export type GetAllPromptsQueryParamSort = ClosedEnum<
|
|
23
|
-
typeof GetAllPromptsQueryParamSort
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type GetAllPromptsRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* List sorting preference.
|
|
29
|
-
*/
|
|
30
|
-
sort?: GetAllPromptsQueryParamSort | undefined;
|
|
31
13
|
/**
|
|
32
14
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
33
15
|
*/
|
|
@@ -504,34 +486,12 @@ export type GetAllPromptsResponseBody = {
|
|
|
504
486
|
hasMore: boolean;
|
|
505
487
|
};
|
|
506
488
|
|
|
507
|
-
/** @internal */
|
|
508
|
-
export const GetAllPromptsQueryParamSort$inboundSchema: z.ZodNativeEnum<
|
|
509
|
-
typeof GetAllPromptsQueryParamSort
|
|
510
|
-
> = z.nativeEnum(GetAllPromptsQueryParamSort);
|
|
511
|
-
|
|
512
|
-
/** @internal */
|
|
513
|
-
export const GetAllPromptsQueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
514
|
-
typeof GetAllPromptsQueryParamSort
|
|
515
|
-
> = GetAllPromptsQueryParamSort$inboundSchema;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* @internal
|
|
519
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
520
|
-
*/
|
|
521
|
-
export namespace GetAllPromptsQueryParamSort$ {
|
|
522
|
-
/** @deprecated use `GetAllPromptsQueryParamSort$inboundSchema` instead. */
|
|
523
|
-
export const inboundSchema = GetAllPromptsQueryParamSort$inboundSchema;
|
|
524
|
-
/** @deprecated use `GetAllPromptsQueryParamSort$outboundSchema` instead. */
|
|
525
|
-
export const outboundSchema = GetAllPromptsQueryParamSort$outboundSchema;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
489
|
/** @internal */
|
|
529
490
|
export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
530
491
|
GetAllPromptsRequest,
|
|
531
492
|
z.ZodTypeDef,
|
|
532
493
|
unknown
|
|
533
494
|
> = z.object({
|
|
534
|
-
sort: GetAllPromptsQueryParamSort$inboundSchema.default("asc"),
|
|
535
495
|
limit: z.number().default(10),
|
|
536
496
|
starting_after: z.string().optional(),
|
|
537
497
|
ending_before: z.string().optional(),
|
|
@@ -544,7 +504,6 @@ export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
|
544
504
|
|
|
545
505
|
/** @internal */
|
|
546
506
|
export type GetAllPromptsRequest$Outbound = {
|
|
547
|
-
sort: string;
|
|
548
507
|
limit: number;
|
|
549
508
|
starting_after?: string | undefined;
|
|
550
509
|
ending_before?: string | undefined;
|
|
@@ -556,7 +515,6 @@ export const GetAllPromptsRequest$outboundSchema: z.ZodType<
|
|
|
556
515
|
z.ZodTypeDef,
|
|
557
516
|
GetAllPromptsRequest
|
|
558
517
|
> = z.object({
|
|
559
|
-
sort: GetAllPromptsQueryParamSort$outboundSchema.default("asc"),
|
|
560
518
|
limit: z.number().default(10),
|
|
561
519
|
startingAfter: z.string().optional(),
|
|
562
520
|
endingBefore: z.string().optional(),
|
|
@@ -16,6 +16,7 @@ export * from "./deploymentcreatemetric.js";
|
|
|
16
16
|
export * from "./deploymentgetconfig.js";
|
|
17
17
|
export * from "./deploymentinvoke.js";
|
|
18
18
|
export * from "./deployments.js";
|
|
19
|
+
export * from "./deploymentstream.js";
|
|
19
20
|
export * from "./filedelete.js";
|
|
20
21
|
export * from "./fileget.js";
|
|
21
22
|
export * from "./filelist.js";
|
|
@@ -9,26 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* List sorting preference.
|
|
14
|
-
*/
|
|
15
|
-
export const ListDatasetDatapointsQueryParamSort = {
|
|
16
|
-
Asc: "asc",
|
|
17
|
-
Desc: "desc",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* List sorting preference.
|
|
21
|
-
*/
|
|
22
|
-
export type ListDatasetDatapointsQueryParamSort = ClosedEnum<
|
|
23
|
-
typeof ListDatasetDatapointsQueryParamSort
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type ListDatasetDatapointsRequest = {
|
|
27
13
|
datasetId: string;
|
|
28
|
-
/**
|
|
29
|
-
* List sorting preference.
|
|
30
|
-
*/
|
|
31
|
-
sort?: ListDatasetDatapointsQueryParamSort | undefined;
|
|
32
14
|
/**
|
|
33
15
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
34
16
|
*/
|
|
@@ -209,29 +191,6 @@ export type ListDatasetDatapointsResponseBody = {
|
|
|
209
191
|
hasMore: boolean;
|
|
210
192
|
};
|
|
211
193
|
|
|
212
|
-
/** @internal */
|
|
213
|
-
export const ListDatasetDatapointsQueryParamSort$inboundSchema: z.ZodNativeEnum<
|
|
214
|
-
typeof ListDatasetDatapointsQueryParamSort
|
|
215
|
-
> = z.nativeEnum(ListDatasetDatapointsQueryParamSort);
|
|
216
|
-
|
|
217
|
-
/** @internal */
|
|
218
|
-
export const ListDatasetDatapointsQueryParamSort$outboundSchema:
|
|
219
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsQueryParamSort> =
|
|
220
|
-
ListDatasetDatapointsQueryParamSort$inboundSchema;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* @internal
|
|
224
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
225
|
-
*/
|
|
226
|
-
export namespace ListDatasetDatapointsQueryParamSort$ {
|
|
227
|
-
/** @deprecated use `ListDatasetDatapointsQueryParamSort$inboundSchema` instead. */
|
|
228
|
-
export const inboundSchema =
|
|
229
|
-
ListDatasetDatapointsQueryParamSort$inboundSchema;
|
|
230
|
-
/** @deprecated use `ListDatasetDatapointsQueryParamSort$outboundSchema` instead. */
|
|
231
|
-
export const outboundSchema =
|
|
232
|
-
ListDatasetDatapointsQueryParamSort$outboundSchema;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
194
|
/** @internal */
|
|
236
195
|
export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
237
196
|
ListDatasetDatapointsRequest,
|
|
@@ -239,7 +198,6 @@ export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
|
239
198
|
unknown
|
|
240
199
|
> = z.object({
|
|
241
200
|
dataset_id: z.string(),
|
|
242
|
-
sort: ListDatasetDatapointsQueryParamSort$inboundSchema.default("asc"),
|
|
243
201
|
limit: z.number().default(10),
|
|
244
202
|
starting_after: z.string().optional(),
|
|
245
203
|
ending_before: z.string().optional(),
|
|
@@ -254,7 +212,6 @@ export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
|
254
212
|
/** @internal */
|
|
255
213
|
export type ListDatasetDatapointsRequest$Outbound = {
|
|
256
214
|
dataset_id: string;
|
|
257
|
-
sort: string;
|
|
258
215
|
limit: number;
|
|
259
216
|
starting_after?: string | undefined;
|
|
260
217
|
ending_before?: string | undefined;
|
|
@@ -267,7 +224,6 @@ export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
|
|
|
267
224
|
ListDatasetDatapointsRequest
|
|
268
225
|
> = z.object({
|
|
269
226
|
datasetId: z.string(),
|
|
270
|
-
sort: ListDatasetDatapointsQueryParamSort$outboundSchema.default("asc"),
|
|
271
227
|
limit: z.number().default(10),
|
|
272
228
|
startingAfter: z.string().optional(),
|
|
273
229
|
endingBefore: z.string().optional(),
|
|
@@ -956,7 +912,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
956
912
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
957
913
|
.optional(),
|
|
958
914
|
updated: z.string().datetime({ offset: true }).default(
|
|
959
|
-
"2025-03-
|
|
915
|
+
"2025-03-25T12:37:14.599Z",
|
|
960
916
|
).transform(v => new Date(v)),
|
|
961
917
|
}).transform((v) => {
|
|
962
918
|
return remap$(v, {
|
|
@@ -999,7 +955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
999
955
|
createdById: z.string().optional(),
|
|
1000
956
|
updatedById: z.string().optional(),
|
|
1001
957
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1002
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
958
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
1003
959
|
.transform(v => v.toISOString()),
|
|
1004
960
|
}).transform((v) => {
|
|
1005
961
|
return remap$(v, {
|
|
@@ -9,25 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* List sorting preference.
|
|
14
|
-
*/
|
|
15
|
-
export const ListDatasetsQueryParamSort = {
|
|
16
|
-
Asc: "asc",
|
|
17
|
-
Desc: "desc",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* List sorting preference.
|
|
21
|
-
*/
|
|
22
|
-
export type ListDatasetsQueryParamSort = ClosedEnum<
|
|
23
|
-
typeof ListDatasetsQueryParamSort
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type ListDatasetsRequest = {
|
|
27
|
-
/**
|
|
28
|
-
* List sorting preference.
|
|
29
|
-
*/
|
|
30
|
-
sort?: ListDatasetsQueryParamSort | undefined;
|
|
31
13
|
/**
|
|
32
14
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
33
15
|
*/
|
|
@@ -97,34 +79,12 @@ export type ListDatasetsResponseBody = {
|
|
|
97
79
|
hasMore: boolean;
|
|
98
80
|
};
|
|
99
81
|
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const ListDatasetsQueryParamSort$inboundSchema: z.ZodNativeEnum<
|
|
102
|
-
typeof ListDatasetsQueryParamSort
|
|
103
|
-
> = z.nativeEnum(ListDatasetsQueryParamSort);
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const ListDatasetsQueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
107
|
-
typeof ListDatasetsQueryParamSort
|
|
108
|
-
> = ListDatasetsQueryParamSort$inboundSchema;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
-
*/
|
|
114
|
-
export namespace ListDatasetsQueryParamSort$ {
|
|
115
|
-
/** @deprecated use `ListDatasetsQueryParamSort$inboundSchema` instead. */
|
|
116
|
-
export const inboundSchema = ListDatasetsQueryParamSort$inboundSchema;
|
|
117
|
-
/** @deprecated use `ListDatasetsQueryParamSort$outboundSchema` instead. */
|
|
118
|
-
export const outboundSchema = ListDatasetsQueryParamSort$outboundSchema;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
82
|
/** @internal */
|
|
122
83
|
export const ListDatasetsRequest$inboundSchema: z.ZodType<
|
|
123
84
|
ListDatasetsRequest,
|
|
124
85
|
z.ZodTypeDef,
|
|
125
86
|
unknown
|
|
126
87
|
> = z.object({
|
|
127
|
-
sort: ListDatasetsQueryParamSort$inboundSchema.default("asc"),
|
|
128
88
|
limit: z.number().default(10),
|
|
129
89
|
starting_after: z.string().optional(),
|
|
130
90
|
ending_before: z.string().optional(),
|
|
@@ -137,7 +97,6 @@ export const ListDatasetsRequest$inboundSchema: z.ZodType<
|
|
|
137
97
|
|
|
138
98
|
/** @internal */
|
|
139
99
|
export type ListDatasetsRequest$Outbound = {
|
|
140
|
-
sort: string;
|
|
141
100
|
limit: number;
|
|
142
101
|
starting_after?: string | undefined;
|
|
143
102
|
ending_before?: string | undefined;
|
|
@@ -149,7 +108,6 @@ export const ListDatasetsRequest$outboundSchema: z.ZodType<
|
|
|
149
108
|
z.ZodTypeDef,
|
|
150
109
|
ListDatasetsRequest
|
|
151
110
|
> = z.object({
|
|
152
|
-
sort: ListDatasetsQueryParamSort$outboundSchema.default("asc"),
|
|
153
111
|
limit: z.number().default(10),
|
|
154
112
|
startingAfter: z.string().optional(),
|
|
155
113
|
endingBefore: z.string().optional(),
|
|
@@ -295,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
295
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
296
254
|
.optional(),
|
|
297
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
298
|
-
"2025-03-
|
|
256
|
+
"2025-03-25T12:37:14.599Z",
|
|
299
257
|
).transform(v => new Date(v)),
|
|
300
258
|
}).transform((v) => {
|
|
301
259
|
return remap$(v, {
|
|
@@ -335,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
335
293
|
updatedById: z.string().optional(),
|
|
336
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
337
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
338
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
339
297
|
.transform(v => v.toISOString()),
|
|
340
298
|
}).transform((v) => {
|
|
341
299
|
return remap$(v, {
|
|
@@ -9,26 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* List sorting preference.
|
|
14
|
-
*/
|
|
15
|
-
export const ListPromptVersionsQueryParamSort = {
|
|
16
|
-
Asc: "asc",
|
|
17
|
-
Desc: "desc",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* List sorting preference.
|
|
21
|
-
*/
|
|
22
|
-
export type ListPromptVersionsQueryParamSort = ClosedEnum<
|
|
23
|
-
typeof ListPromptVersionsQueryParamSort
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
12
|
export type ListPromptVersionsRequest = {
|
|
27
13
|
promptId: string;
|
|
28
|
-
/**
|
|
29
|
-
* List sorting preference.
|
|
30
|
-
*/
|
|
31
|
-
sort?: ListPromptVersionsQueryParamSort | undefined;
|
|
32
14
|
/**
|
|
33
15
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
34
16
|
*/
|
|
@@ -508,27 +490,6 @@ export type ListPromptVersionsResponseBody = {
|
|
|
508
490
|
hasMore: boolean;
|
|
509
491
|
};
|
|
510
492
|
|
|
511
|
-
/** @internal */
|
|
512
|
-
export const ListPromptVersionsQueryParamSort$inboundSchema: z.ZodNativeEnum<
|
|
513
|
-
typeof ListPromptVersionsQueryParamSort
|
|
514
|
-
> = z.nativeEnum(ListPromptVersionsQueryParamSort);
|
|
515
|
-
|
|
516
|
-
/** @internal */
|
|
517
|
-
export const ListPromptVersionsQueryParamSort$outboundSchema: z.ZodNativeEnum<
|
|
518
|
-
typeof ListPromptVersionsQueryParamSort
|
|
519
|
-
> = ListPromptVersionsQueryParamSort$inboundSchema;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* @internal
|
|
523
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
524
|
-
*/
|
|
525
|
-
export namespace ListPromptVersionsQueryParamSort$ {
|
|
526
|
-
/** @deprecated use `ListPromptVersionsQueryParamSort$inboundSchema` instead. */
|
|
527
|
-
export const inboundSchema = ListPromptVersionsQueryParamSort$inboundSchema;
|
|
528
|
-
/** @deprecated use `ListPromptVersionsQueryParamSort$outboundSchema` instead. */
|
|
529
|
-
export const outboundSchema = ListPromptVersionsQueryParamSort$outboundSchema;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
493
|
/** @internal */
|
|
533
494
|
export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
534
495
|
ListPromptVersionsRequest,
|
|
@@ -536,7 +497,6 @@ export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
|
536
497
|
unknown
|
|
537
498
|
> = z.object({
|
|
538
499
|
prompt_id: z.string(),
|
|
539
|
-
sort: ListPromptVersionsQueryParamSort$inboundSchema.default("asc"),
|
|
540
500
|
limit: z.number().default(10),
|
|
541
501
|
starting_after: z.string().optional(),
|
|
542
502
|
ending_before: z.string().optional(),
|
|
@@ -551,7 +511,6 @@ export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
|
551
511
|
/** @internal */
|
|
552
512
|
export type ListPromptVersionsRequest$Outbound = {
|
|
553
513
|
prompt_id: string;
|
|
554
|
-
sort: string;
|
|
555
514
|
limit: number;
|
|
556
515
|
starting_after?: string | undefined;
|
|
557
516
|
ending_before?: string | undefined;
|
|
@@ -564,7 +523,6 @@ export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
|
|
|
564
523
|
ListPromptVersionsRequest
|
|
565
524
|
> = z.object({
|
|
566
525
|
promptId: z.string(),
|
|
567
|
-
sort: ListPromptVersionsQueryParamSort$outboundSchema.default("asc"),
|
|
568
526
|
limit: z.number().default(10),
|
|
569
527
|
startingAfter: z.string().optional(),
|
|
570
528
|
endingBefore: z.string().optional(),
|
|
@@ -834,7 +834,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
834
834
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
835
835
|
.optional(),
|
|
836
836
|
updated: z.string().datetime({ offset: true }).default(
|
|
837
|
-
"2025-03-
|
|
837
|
+
"2025-03-25T12:37:14.599Z",
|
|
838
838
|
).transform(v => new Date(v)),
|
|
839
839
|
}).transform((v) => {
|
|
840
840
|
return remap$(v, {
|
|
@@ -877,7 +877,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
877
877
|
createdById: z.string().optional(),
|
|
878
878
|
updatedById: z.string().optional(),
|
|
879
879
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
880
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
880
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
881
881
|
.transform(v => v.toISOString()),
|
|
882
882
|
}).transform((v) => {
|
|
883
883
|
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-03-
|
|
204
|
+
"2025-03-25T12:37:14.599Z",
|
|
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-03-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -1638,7 +1638,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1638
1638
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1639
1639
|
.optional(),
|
|
1640
1640
|
updated: z.string().datetime({ offset: true }).default(
|
|
1641
|
-
"2025-03-
|
|
1641
|
+
"2025-03-25T12:37:14.599Z",
|
|
1642
1642
|
).transform(v => new Date(v)),
|
|
1643
1643
|
}).transform((v) => {
|
|
1644
1644
|
return remap$(v, {
|
|
@@ -1682,7 +1682,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
1682
1682
|
createdById: z.string().optional(),
|
|
1683
1683
|
updatedById: z.string().optional(),
|
|
1684
1684
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1685
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
1685
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
1686
1686
|
.transform(v => v.toISOString()),
|
|
1687
1687
|
}).transform((v) => {
|
|
1688
1688
|
return remap$(v, {
|
|
@@ -283,7 +283,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
283
283
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
284
284
|
.optional(),
|
|
285
285
|
updated: z.string().datetime({ offset: true }).default(
|
|
286
|
-
"2025-03-
|
|
286
|
+
"2025-03-25T12:37:14.599Z",
|
|
287
287
|
).transform(v => new Date(v)),
|
|
288
288
|
}).transform((v) => {
|
|
289
289
|
return remap$(v, {
|
|
@@ -328,7 +328,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
328
328
|
parentId: z.string().optional(),
|
|
329
329
|
version: z.string().optional(),
|
|
330
330
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
331
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
331
|
+
updated: z.date().default(() => new Date("2025-03-25T12:37:14.599Z"))
|
|
332
332
|
.transform(v => v.toISOString()),
|
|
333
333
|
}).transform((v) => {
|
|
334
334
|
return remap$(v, {
|