@orq-ai/node 3.1.12 → 3.1.14
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 +74 -38
- package/bin/mcp-server.js.map +32 -31
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/mcp-server/extensions.d.ts +9 -0
- package/mcp-server/extensions.d.ts.map +1 -0
- package/mcp-server/extensions.js +6 -0
- package/mcp-server/extensions.js.map +1 -0
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/resources.d.ts +9 -4
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +36 -9
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +6 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/contactsCreate.js +1 -1
- package/mcp-server/tools/deploymentsGetConfig.js +1 -1
- package/mcp-server/tools/deploymentsInvoke.js +1 -1
- package/mcp-server/tools/deploymentsList.js +1 -1
- package/mcp-server/tools/deploymentsMetricsCreate.js +1 -1
- package/mcp-server/tools/deploymentsStream.js +1 -1
- package/mcp-server/tools/feedbackCreate.js +1 -1
- package/mcp-server/tools/filesCreate.js +1 -1
- package/mcp-server/tools/filesDelete.js +1 -1
- package/mcp-server/tools/filesGet.js +1 -1
- package/mcp-server/tools/filesList.js +1 -1
- package/mcp-server/tools/promptsCreate.js +1 -1
- package/mcp-server/tools/promptsDelete.js +1 -1
- package/mcp-server/tools/promptsGetVersion.js +1 -1
- package/mcp-server/tools/promptsList.js +1 -1
- package/mcp-server/tools/promptsListVersions.js +1 -1
- package/mcp-server/tools/promptsRetrieve.js +1 -1
- package/mcp-server/tools/promptsUpdate.js +1 -1
- package/mcp-server/tools/remoteconfigsRetrieve.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +3 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/operations/createcontact.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/package.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/datasetsList.ts +1 -0
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -0
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
- package/packages/orq-rc/src/funcs/filesList.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/sdks.ts +2 -7
- package/packages/orq-rc/src/mcp-server/extensions.ts +13 -0
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/resources.ts +75 -14
- package/packages/orq-rc/src/mcp-server/server.ts +16 -1
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools.ts +4 -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/deploymentcreatemetric.ts +2944 -1326
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +458 -407
- package/packages/orq-rc/src/models/operations/deployments.ts +39 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +42 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +42 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +46 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +44 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +42 -0
- 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/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/mcp-server/extensions.ts +13 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/resources.ts +75 -14
- package/src/mcp-server/server.ts +16 -1
- package/src/mcp-server/tools/contactsCreate.ts +1 -1
- package/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
- package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
- package/src/mcp-server/tools/deploymentsList.ts +1 -1
- package/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
- package/src/mcp-server/tools/deploymentsStream.ts +1 -1
- package/src/mcp-server/tools/feedbackCreate.ts +1 -1
- package/src/mcp-server/tools/filesCreate.ts +1 -1
- package/src/mcp-server/tools/filesDelete.ts +1 -1
- package/src/mcp-server/tools/filesGet.ts +1 -1
- package/src/mcp-server/tools/filesList.ts +1 -1
- package/src/mcp-server/tools/promptsCreate.ts +1 -1
- package/src/mcp-server/tools/promptsDelete.ts +1 -1
- package/src/mcp-server/tools/promptsGetVersion.ts +1 -1
- package/src/mcp-server/tools/promptsList.ts +1 -1
- package/src/mcp-server/tools/promptsListVersions.ts +1 -1
- package/src/mcp-server/tools/promptsRetrieve.ts +1 -1
- package/src/mcp-server/tools/promptsUpdate.ts +1 -1
- package/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
- package/src/mcp-server/tools.ts +4 -0
- package/src/models/operations/createcontact.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
|
@@ -9,7 +9,23 @@ 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 Sort = {
|
|
16
|
+
Asc: "asc",
|
|
17
|
+
Desc: "desc",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* List sorting preference.
|
|
21
|
+
*/
|
|
22
|
+
export type Sort = ClosedEnum<typeof Sort>;
|
|
23
|
+
|
|
12
24
|
export type DeploymentsRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* List sorting preference.
|
|
27
|
+
*/
|
|
28
|
+
sort?: Sort | undefined;
|
|
13
29
|
/**
|
|
14
30
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
31
|
*/
|
|
@@ -484,12 +500,33 @@ export type DeploymentsResponseBody = {
|
|
|
484
500
|
hasMore: boolean;
|
|
485
501
|
};
|
|
486
502
|
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const Sort$inboundSchema: z.ZodNativeEnum<typeof Sort> = z.nativeEnum(
|
|
505
|
+
Sort,
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
/** @internal */
|
|
509
|
+
export const Sort$outboundSchema: z.ZodNativeEnum<typeof Sort> =
|
|
510
|
+
Sort$inboundSchema;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* @internal
|
|
514
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
515
|
+
*/
|
|
516
|
+
export namespace Sort$ {
|
|
517
|
+
/** @deprecated use `Sort$inboundSchema` instead. */
|
|
518
|
+
export const inboundSchema = Sort$inboundSchema;
|
|
519
|
+
/** @deprecated use `Sort$outboundSchema` instead. */
|
|
520
|
+
export const outboundSchema = Sort$outboundSchema;
|
|
521
|
+
}
|
|
522
|
+
|
|
487
523
|
/** @internal */
|
|
488
524
|
export const DeploymentsRequest$inboundSchema: z.ZodType<
|
|
489
525
|
DeploymentsRequest,
|
|
490
526
|
z.ZodTypeDef,
|
|
491
527
|
unknown
|
|
492
528
|
> = z.object({
|
|
529
|
+
sort: Sort$inboundSchema.default("asc"),
|
|
493
530
|
limit: z.number().default(10),
|
|
494
531
|
starting_after: z.string().optional(),
|
|
495
532
|
ending_before: z.string().optional(),
|
|
@@ -502,6 +539,7 @@ export const DeploymentsRequest$inboundSchema: z.ZodType<
|
|
|
502
539
|
|
|
503
540
|
/** @internal */
|
|
504
541
|
export type DeploymentsRequest$Outbound = {
|
|
542
|
+
sort: string;
|
|
505
543
|
limit: number;
|
|
506
544
|
starting_after?: string | undefined;
|
|
507
545
|
ending_before?: string | undefined;
|
|
@@ -513,6 +551,7 @@ export const DeploymentsRequest$outboundSchema: z.ZodType<
|
|
|
513
551
|
z.ZodTypeDef,
|
|
514
552
|
DeploymentsRequest
|
|
515
553
|
> = z.object({
|
|
554
|
+
sort: Sort$outboundSchema.default("asc"),
|
|
516
555
|
limit: z.number().default(10),
|
|
517
556
|
startingAfter: z.string().optional(),
|
|
518
557
|
endingBefore: z.string().optional(),
|
|
@@ -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-13T22:21:46.762Z",
|
|
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-13T22:21:46.762Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -9,7 +9,23 @@ 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
|
+
|
|
12
24
|
export type FileListRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* List sorting preference.
|
|
27
|
+
*/
|
|
28
|
+
sort?: QueryParamSort | undefined;
|
|
13
29
|
/**
|
|
14
30
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
31
|
*/
|
|
@@ -73,12 +89,34 @@ export type FileListResponseBody = {
|
|
|
73
89
|
hasMore: boolean;
|
|
74
90
|
};
|
|
75
91
|
|
|
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
|
+
|
|
76
113
|
/** @internal */
|
|
77
114
|
export const FileListRequest$inboundSchema: z.ZodType<
|
|
78
115
|
FileListRequest,
|
|
79
116
|
z.ZodTypeDef,
|
|
80
117
|
unknown
|
|
81
118
|
> = z.object({
|
|
119
|
+
sort: QueryParamSort$inboundSchema.default("asc"),
|
|
82
120
|
limit: z.number().default(10),
|
|
83
121
|
starting_after: z.string().optional(),
|
|
84
122
|
ending_before: z.string().optional(),
|
|
@@ -91,6 +129,7 @@ export const FileListRequest$inboundSchema: z.ZodType<
|
|
|
91
129
|
|
|
92
130
|
/** @internal */
|
|
93
131
|
export type FileListRequest$Outbound = {
|
|
132
|
+
sort: string;
|
|
94
133
|
limit: number;
|
|
95
134
|
starting_after?: string | undefined;
|
|
96
135
|
ending_before?: string | undefined;
|
|
@@ -102,6 +141,7 @@ export const FileListRequest$outboundSchema: z.ZodType<
|
|
|
102
141
|
z.ZodTypeDef,
|
|
103
142
|
FileListRequest
|
|
104
143
|
> = z.object({
|
|
144
|
+
sort: QueryParamSort$outboundSchema.default("asc"),
|
|
105
145
|
limit: z.number().default(10),
|
|
106
146
|
startingAfter: z.string().optional(),
|
|
107
147
|
endingBefore: z.string().optional(),
|
|
@@ -196,7 +236,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
236
|
file_name: z.string(),
|
|
197
237
|
workspace_id: z.string(),
|
|
198
238
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-03-
|
|
239
|
+
"2025-03-13T22:21:46.762Z",
|
|
200
240
|
).transform(v => new Date(v)),
|
|
201
241
|
}).transform((v) => {
|
|
202
242
|
return remap$(v, {
|
|
@@ -230,7 +270,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
270
|
bytes: z.number(),
|
|
231
271
|
fileName: z.string(),
|
|
232
272
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-03-
|
|
273
|
+
created: z.date().default(() => new Date("2025-03-13T22:21:46.762Z"))
|
|
234
274
|
.transform(v => v.toISOString()),
|
|
235
275
|
}).transform((v) => {
|
|
236
276
|
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-13T22:21:46.762Z",
|
|
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-13T22:21:46.762Z"))
|
|
285
285
|
.transform(v => v.toISOString()),
|
|
286
286
|
}).transform((v) => {
|
|
287
287
|
return remap$(v, {
|
|
@@ -9,7 +9,25 @@ 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
|
+
|
|
12
26
|
export type GetAllPromptsRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* List sorting preference.
|
|
29
|
+
*/
|
|
30
|
+
sort?: GetAllPromptsQueryParamSort | undefined;
|
|
13
31
|
/**
|
|
14
32
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
33
|
*/
|
|
@@ -486,12 +504,34 @@ export type GetAllPromptsResponseBody = {
|
|
|
486
504
|
hasMore: boolean;
|
|
487
505
|
};
|
|
488
506
|
|
|
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
|
+
|
|
489
528
|
/** @internal */
|
|
490
529
|
export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
491
530
|
GetAllPromptsRequest,
|
|
492
531
|
z.ZodTypeDef,
|
|
493
532
|
unknown
|
|
494
533
|
> = z.object({
|
|
534
|
+
sort: GetAllPromptsQueryParamSort$inboundSchema.default("asc"),
|
|
495
535
|
limit: z.number().default(10),
|
|
496
536
|
starting_after: z.string().optional(),
|
|
497
537
|
ending_before: z.string().optional(),
|
|
@@ -504,6 +544,7 @@ export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
|
504
544
|
|
|
505
545
|
/** @internal */
|
|
506
546
|
export type GetAllPromptsRequest$Outbound = {
|
|
547
|
+
sort: string;
|
|
507
548
|
limit: number;
|
|
508
549
|
starting_after?: string | undefined;
|
|
509
550
|
ending_before?: string | undefined;
|
|
@@ -515,6 +556,7 @@ export const GetAllPromptsRequest$outboundSchema: z.ZodType<
|
|
|
515
556
|
z.ZodTypeDef,
|
|
516
557
|
GetAllPromptsRequest
|
|
517
558
|
> = z.object({
|
|
559
|
+
sort: GetAllPromptsQueryParamSort$outboundSchema.default("asc"),
|
|
518
560
|
limit: z.number().default(10),
|
|
519
561
|
startingAfter: z.string().optional(),
|
|
520
562
|
endingBefore: z.string().optional(),
|
|
@@ -9,8 +9,26 @@ 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
|
+
|
|
12
26
|
export type ListDatasetDatapointsRequest = {
|
|
13
27
|
datasetId: string;
|
|
28
|
+
/**
|
|
29
|
+
* List sorting preference.
|
|
30
|
+
*/
|
|
31
|
+
sort?: ListDatasetDatapointsQueryParamSort | undefined;
|
|
14
32
|
/**
|
|
15
33
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
16
34
|
*/
|
|
@@ -191,6 +209,29 @@ export type ListDatasetDatapointsResponseBody = {
|
|
|
191
209
|
hasMore: boolean;
|
|
192
210
|
};
|
|
193
211
|
|
|
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
|
+
|
|
194
235
|
/** @internal */
|
|
195
236
|
export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
196
237
|
ListDatasetDatapointsRequest,
|
|
@@ -198,6 +239,7 @@ export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
|
198
239
|
unknown
|
|
199
240
|
> = z.object({
|
|
200
241
|
dataset_id: z.string(),
|
|
242
|
+
sort: ListDatasetDatapointsQueryParamSort$inboundSchema.default("asc"),
|
|
201
243
|
limit: z.number().default(10),
|
|
202
244
|
starting_after: z.string().optional(),
|
|
203
245
|
ending_before: z.string().optional(),
|
|
@@ -212,6 +254,7 @@ export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
|
|
|
212
254
|
/** @internal */
|
|
213
255
|
export type ListDatasetDatapointsRequest$Outbound = {
|
|
214
256
|
dataset_id: string;
|
|
257
|
+
sort: string;
|
|
215
258
|
limit: number;
|
|
216
259
|
starting_after?: string | undefined;
|
|
217
260
|
ending_before?: string | undefined;
|
|
@@ -224,6 +267,7 @@ export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
|
|
|
224
267
|
ListDatasetDatapointsRequest
|
|
225
268
|
> = z.object({
|
|
226
269
|
datasetId: z.string(),
|
|
270
|
+
sort: ListDatasetDatapointsQueryParamSort$outboundSchema.default("asc"),
|
|
227
271
|
limit: z.number().default(10),
|
|
228
272
|
startingAfter: z.string().optional(),
|
|
229
273
|
endingBefore: z.string().optional(),
|
|
@@ -912,7 +956,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
912
956
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
913
957
|
.optional(),
|
|
914
958
|
updated: z.string().datetime({ offset: true }).default(
|
|
915
|
-
"2025-03-
|
|
959
|
+
"2025-03-13T22:21:45.672Z",
|
|
916
960
|
).transform(v => new Date(v)),
|
|
917
961
|
}).transform((v) => {
|
|
918
962
|
return remap$(v, {
|
|
@@ -955,7 +999,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
955
999
|
createdById: z.string().optional(),
|
|
956
1000
|
updatedById: z.string().optional(),
|
|
957
1001
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
958
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
1002
|
+
updated: z.date().default(() => new Date("2025-03-13T22:21:45.672Z"))
|
|
959
1003
|
.transform(v => v.toISOString()),
|
|
960
1004
|
}).transform((v) => {
|
|
961
1005
|
return remap$(v, {
|
|
@@ -9,7 +9,25 @@ 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
|
+
|
|
12
26
|
export type ListDatasetsRequest = {
|
|
27
|
+
/**
|
|
28
|
+
* List sorting preference.
|
|
29
|
+
*/
|
|
30
|
+
sort?: ListDatasetsQueryParamSort | undefined;
|
|
13
31
|
/**
|
|
14
32
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
33
|
*/
|
|
@@ -79,12 +97,34 @@ export type ListDatasetsResponseBody = {
|
|
|
79
97
|
hasMore: boolean;
|
|
80
98
|
};
|
|
81
99
|
|
|
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
|
+
|
|
82
121
|
/** @internal */
|
|
83
122
|
export const ListDatasetsRequest$inboundSchema: z.ZodType<
|
|
84
123
|
ListDatasetsRequest,
|
|
85
124
|
z.ZodTypeDef,
|
|
86
125
|
unknown
|
|
87
126
|
> = z.object({
|
|
127
|
+
sort: ListDatasetsQueryParamSort$inboundSchema.default("asc"),
|
|
88
128
|
limit: z.number().default(10),
|
|
89
129
|
starting_after: z.string().optional(),
|
|
90
130
|
ending_before: z.string().optional(),
|
|
@@ -97,6 +137,7 @@ export const ListDatasetsRequest$inboundSchema: z.ZodType<
|
|
|
97
137
|
|
|
98
138
|
/** @internal */
|
|
99
139
|
export type ListDatasetsRequest$Outbound = {
|
|
140
|
+
sort: string;
|
|
100
141
|
limit: number;
|
|
101
142
|
starting_after?: string | undefined;
|
|
102
143
|
ending_before?: string | undefined;
|
|
@@ -108,6 +149,7 @@ export const ListDatasetsRequest$outboundSchema: z.ZodType<
|
|
|
108
149
|
z.ZodTypeDef,
|
|
109
150
|
ListDatasetsRequest
|
|
110
151
|
> = z.object({
|
|
152
|
+
sort: ListDatasetsQueryParamSort$outboundSchema.default("asc"),
|
|
111
153
|
limit: z.number().default(10),
|
|
112
154
|
startingAfter: z.string().optional(),
|
|
113
155
|
endingBefore: z.string().optional(),
|
|
@@ -253,7 +295,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
295
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
296
|
.optional(),
|
|
255
297
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-03-
|
|
298
|
+
"2025-03-13T22:21:45.672Z",
|
|
257
299
|
).transform(v => new Date(v)),
|
|
258
300
|
}).transform((v) => {
|
|
259
301
|
return remap$(v, {
|
|
@@ -293,7 +335,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
335
|
updatedById: z.string().optional(),
|
|
294
336
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
337
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-03-
|
|
338
|
+
updated: z.date().default(() => new Date("2025-03-13T22:21:45.672Z"))
|
|
297
339
|
.transform(v => v.toISOString()),
|
|
298
340
|
}).transform((v) => {
|
|
299
341
|
return remap$(v, {
|
|
@@ -9,8 +9,26 @@ 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
|
+
|
|
12
26
|
export type ListPromptVersionsRequest = {
|
|
13
27
|
promptId: string;
|
|
28
|
+
/**
|
|
29
|
+
* List sorting preference.
|
|
30
|
+
*/
|
|
31
|
+
sort?: ListPromptVersionsQueryParamSort | undefined;
|
|
14
32
|
/**
|
|
15
33
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
16
34
|
*/
|
|
@@ -490,6 +508,27 @@ export type ListPromptVersionsResponseBody = {
|
|
|
490
508
|
hasMore: boolean;
|
|
491
509
|
};
|
|
492
510
|
|
|
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
|
+
|
|
493
532
|
/** @internal */
|
|
494
533
|
export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
495
534
|
ListPromptVersionsRequest,
|
|
@@ -497,6 +536,7 @@ export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
|
497
536
|
unknown
|
|
498
537
|
> = z.object({
|
|
499
538
|
prompt_id: z.string(),
|
|
539
|
+
sort: ListPromptVersionsQueryParamSort$inboundSchema.default("asc"),
|
|
500
540
|
limit: z.number().default(10),
|
|
501
541
|
starting_after: z.string().optional(),
|
|
502
542
|
ending_before: z.string().optional(),
|
|
@@ -511,6 +551,7 @@ export const ListPromptVersionsRequest$inboundSchema: z.ZodType<
|
|
|
511
551
|
/** @internal */
|
|
512
552
|
export type ListPromptVersionsRequest$Outbound = {
|
|
513
553
|
prompt_id: string;
|
|
554
|
+
sort: string;
|
|
514
555
|
limit: number;
|
|
515
556
|
starting_after?: string | undefined;
|
|
516
557
|
ending_before?: string | undefined;
|
|
@@ -523,6 +564,7 @@ export const ListPromptVersionsRequest$outboundSchema: z.ZodType<
|
|
|
523
564
|
ListPromptVersionsRequest
|
|
524
565
|
> = z.object({
|
|
525
566
|
promptId: z.string(),
|
|
567
|
+
sort: ListPromptVersionsQueryParamSort$outboundSchema.default("asc"),
|
|
526
568
|
limit: z.number().default(10),
|
|
527
569
|
startingAfter: z.string().optional(),
|
|
528
570
|
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-13T22:21:45.672Z",
|
|
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-13T22:21:45.672Z"))
|
|
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-13T22:21:45.672Z",
|
|
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-13T22:21:45.672Z"))
|
|
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-13T22:21:45.672Z",
|
|
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-13T22:21:45.672Z"))
|
|
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-13T22:21:45.672Z",
|
|
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-13T22:21:45.672Z"))
|
|
332
332
|
.transform(v => v.toISOString()),
|
|
333
333
|
}).transform((v) => {
|
|
334
334
|
return remap$(v, {
|
package/src/lib/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "2.0",
|
|
67
|
-
sdkVersion: "3.1.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.1.
|
|
67
|
+
sdkVersion: "3.1.14",
|
|
68
|
+
genVersion: "2.548.6",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 3.1.14 2.548.6 2.0 @orq-ai/node",
|
|
70
70
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -195,14 +195,9 @@ export class ClientSDK {
|
|
|
195
195
|
|
|
196
196
|
if (conf.body instanceof ReadableStream) {
|
|
197
197
|
if (!fetchOptions) {
|
|
198
|
-
fetchOptions = {
|
|
199
|
-
// @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769
|
|
200
|
-
duplex: "half",
|
|
201
|
-
};
|
|
202
|
-
} else {
|
|
203
|
-
// @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769
|
|
204
|
-
fetchOptions.duplex = "half";
|
|
198
|
+
fetchOptions = {};
|
|
205
199
|
}
|
|
200
|
+
Object.assign(fetchOptions, { duplex: "half" });
|
|
206
201
|
}
|
|
207
202
|
|
|
208
203
|
let input;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ZodRawShape } from "zod";
|
|
6
|
+
import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
|
|
7
|
+
import { ToolDefinition } from "./tools.js";
|
|
8
|
+
|
|
9
|
+
export type Register = {
|
|
10
|
+
tool: <A extends ZodRawShape | undefined>(def: ToolDefinition<A>) => void;
|
|
11
|
+
resource: (def: ResourceDefinition) => void;
|
|
12
|
+
resourceTemplate: (def: ResourceTemplateDefinition) => void;
|
|
13
|
+
};
|