@orq-ai/node 3.1.12 → 3.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/bin/mcp-server.js +74 -38
  2. package/bin/mcp-server.js.map +32 -31
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/sdks.d.ts.map +1 -1
  7. package/lib/sdks.js +2 -8
  8. package/lib/sdks.js.map +1 -1
  9. package/mcp-server/extensions.d.ts +9 -0
  10. package/mcp-server/extensions.d.ts.map +1 -0
  11. package/mcp-server/extensions.js +6 -0
  12. package/mcp-server/extensions.js.map +1 -0
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/resources.d.ts +9 -4
  15. package/mcp-server/resources.d.ts.map +1 -1
  16. package/mcp-server/resources.js +36 -9
  17. package/mcp-server/resources.js.map +1 -1
  18. package/mcp-server/server.d.ts.map +1 -1
  19. package/mcp-server/server.js +6 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/contactsCreate.js +1 -1
  22. package/mcp-server/tools/deploymentsGetConfig.js +1 -1
  23. package/mcp-server/tools/deploymentsInvoke.js +1 -1
  24. package/mcp-server/tools/deploymentsList.js +1 -1
  25. package/mcp-server/tools/deploymentsMetricsCreate.js +1 -1
  26. package/mcp-server/tools/deploymentsStream.js +1 -1
  27. package/mcp-server/tools/feedbackCreate.js +1 -1
  28. package/mcp-server/tools/filesCreate.js +1 -1
  29. package/mcp-server/tools/filesDelete.js +1 -1
  30. package/mcp-server/tools/filesGet.js +1 -1
  31. package/mcp-server/tools/filesList.js +1 -1
  32. package/mcp-server/tools/promptsCreate.js +1 -1
  33. package/mcp-server/tools/promptsDelete.js +1 -1
  34. package/mcp-server/tools/promptsGetVersion.js +1 -1
  35. package/mcp-server/tools/promptsList.js +1 -1
  36. package/mcp-server/tools/promptsListVersions.js +1 -1
  37. package/mcp-server/tools/promptsRetrieve.js +1 -1
  38. package/mcp-server/tools/promptsUpdate.js +1 -1
  39. package/mcp-server/tools/remoteconfigsRetrieve.js +1 -1
  40. package/mcp-server/tools.d.ts.map +1 -1
  41. package/mcp-server/tools.js +3 -0
  42. package/mcp-server/tools.js.map +1 -1
  43. package/models/operations/createcontact.js +2 -2
  44. package/models/operations/fileget.js +2 -2
  45. package/models/operations/filelist.js +2 -2
  46. package/models/operations/fileupload.js +2 -2
  47. package/package.json +1 -1
  48. package/packages/orq-rc/jsr.json +1 -1
  49. package/packages/orq-rc/package-lock.json +2 -2
  50. package/packages/orq-rc/package.json +1 -1
  51. package/packages/orq-rc/src/funcs/datasetsList.ts +1 -0
  52. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -0
  53. package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -0
  54. package/packages/orq-rc/src/funcs/filesList.ts +1 -0
  55. package/packages/orq-rc/src/funcs/promptsList.ts +1 -0
  56. package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -0
  57. package/packages/orq-rc/src/lib/config.ts +3 -3
  58. package/packages/orq-rc/src/lib/sdks.ts +2 -7
  59. package/packages/orq-rc/src/mcp-server/extensions.ts +13 -0
  60. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  61. package/packages/orq-rc/src/mcp-server/resources.ts +75 -14
  62. package/packages/orq-rc/src/mcp-server/server.ts +16 -1
  63. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +1 -1
  64. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +1 -1
  65. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +1 -1
  66. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +1 -1
  67. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +1 -1
  68. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +1 -1
  69. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +1 -1
  70. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +1 -1
  71. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +1 -1
  72. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +1 -1
  73. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +1 -1
  74. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +1 -1
  75. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +1 -1
  76. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
  77. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
  78. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +1 -1
  79. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
  80. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +1 -1
  81. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +1 -1
  82. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +1 -1
  83. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +1 -1
  84. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +1 -1
  85. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +1 -1
  86. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +1 -1
  87. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +1 -1
  88. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +1 -1
  89. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +1 -1
  90. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +1 -1
  91. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +1 -1
  92. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
  93. package/packages/orq-rc/src/mcp-server/tools.ts +4 -0
  94. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2944 -1326
  99. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +458 -407
  100. package/packages/orq-rc/src/models/operations/deployments.ts +39 -0
  101. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/filelist.ts +42 -2
  103. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/getallprompts.ts +42 -0
  105. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +46 -2
  106. package/packages/orq-rc/src/models/operations/listdatasets.ts +44 -2
  107. package/packages/orq-rc/src/models/operations/listpromptversions.ts +42 -0
  108. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  109. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  112. package/src/lib/config.ts +3 -3
  113. package/src/lib/sdks.ts +2 -7
  114. package/src/mcp-server/extensions.ts +13 -0
  115. package/src/mcp-server/mcp-server.ts +1 -1
  116. package/src/mcp-server/resources.ts +75 -14
  117. package/src/mcp-server/server.ts +16 -1
  118. package/src/mcp-server/tools/contactsCreate.ts +1 -1
  119. package/src/mcp-server/tools/deploymentsGetConfig.ts +1 -1
  120. package/src/mcp-server/tools/deploymentsInvoke.ts +1 -1
  121. package/src/mcp-server/tools/deploymentsList.ts +1 -1
  122. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +1 -1
  123. package/src/mcp-server/tools/deploymentsStream.ts +1 -1
  124. package/src/mcp-server/tools/feedbackCreate.ts +1 -1
  125. package/src/mcp-server/tools/filesCreate.ts +1 -1
  126. package/src/mcp-server/tools/filesDelete.ts +1 -1
  127. package/src/mcp-server/tools/filesGet.ts +1 -1
  128. package/src/mcp-server/tools/filesList.ts +1 -1
  129. package/src/mcp-server/tools/promptsCreate.ts +1 -1
  130. package/src/mcp-server/tools/promptsDelete.ts +1 -1
  131. package/src/mcp-server/tools/promptsGetVersion.ts +1 -1
  132. package/src/mcp-server/tools/promptsList.ts +1 -1
  133. package/src/mcp-server/tools/promptsListVersions.ts +1 -1
  134. package/src/mcp-server/tools/promptsRetrieve.ts +1 -1
  135. package/src/mcp-server/tools/promptsUpdate.ts +1 -1
  136. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +1 -1
  137. package/src/mcp-server/tools.ts +4 -0
  138. package/src/models/operations/createcontact.ts +2 -2
  139. package/src/models/operations/fileget.ts +2 -2
  140. package/src/models/operations/filelist.ts +2 -2
  141. package/src/models/operations/fileupload.ts +2 -2
@@ -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-06T10:07:28.545Z",
149
+ "2025-03-12T14:05:35.121Z",
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-06T10:07:28.545Z"))
183
+ created: z.date().default(() => new Date("2025-03-12T14:05:35.121Z"))
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-06T10:07:28.545Z",
239
+ "2025-03-12T14:05:35.121Z",
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-06T10:07:28.545Z"))
273
+ created: z.date().default(() => new Date("2025-03-12T14:05:35.121Z"))
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-06T10:07:28.545Z",
250
+ "2025-03-12T14:05:35.121Z",
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-06T10:07:28.545Z"))
284
+ created: z.date().default(() => new Date("2025-03-12T14:05:35.121Z"))
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-06T10:07:27.387Z",
959
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
1002
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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-06T10:07:27.387Z",
298
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
338
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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-06T10:07:27.387Z",
837
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
880
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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-06T10:07:27.387Z",
204
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
244
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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-06T10:07:27.387Z",
1641
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
1685
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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-06T10:07:27.387Z",
286
+ "2025-03-12T14:05:34.024Z",
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-06T10:07:27.387Z"))
331
+ updated: z.date().default(() => new Date("2025-03-12T14:05:34.024Z"))
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.12",
68
- genVersion: "2.541.0",
69
- userAgent: "speakeasy-sdk/typescript 3.1.12 2.541.0 2.0 @orq-ai/node",
67
+ sdkVersion: "3.1.13",
68
+ genVersion: "2.548.1",
69
+ userAgent: "speakeasy-sdk/typescript 3.1.13 2.548.1 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
+ };
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "3.1.12",
22
+ currentVersion: "3.1.13",
23
23
  },
24
24
  });
25
25