@orq-ai/node 3.3.14 → 3.3.15
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 +51 -43
- package/bin/mcp-server.js.map +24 -24
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +12 -0
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.js +7 -2
- package/lib/sdks.js.map +1 -1
- 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/createdatasource.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/listdatasources.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/docs/sdks/knowledge/README.md +22 -0
- 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/sessionsCreate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/matchers.ts +20 -0
- package/packages/orq-rc/src/lib/sdks.ts +8 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +31 -89
- 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/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +8 -8
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -4
- 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/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- 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/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatetool.ts +6 -6
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- 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/createdatasource.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/listdatasources.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
|
@@ -735,7 +735,7 @@ export function dataHttpFromJSON(
|
|
|
735
735
|
/** @internal */
|
|
736
736
|
export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
|
|
737
737
|
.object({
|
|
738
|
-
_id: z.string().default("
|
|
738
|
+
_id: z.string().default("tool_01JS22A9GBA35JBE3JNA3QW38V"),
|
|
739
739
|
path: z.string(),
|
|
740
740
|
key: z.string(),
|
|
741
741
|
description: z.string(),
|
|
@@ -784,7 +784,7 @@ export const Data3$outboundSchema: z.ZodType<
|
|
|
784
784
|
z.ZodTypeDef,
|
|
785
785
|
Data3
|
|
786
786
|
> = z.object({
|
|
787
|
-
id: z.string().default("
|
|
787
|
+
id: z.string().default("tool_01JS22A9GBA35JBE3JNA3QW38V"),
|
|
788
788
|
path: z.string(),
|
|
789
789
|
key: z.string(),
|
|
790
790
|
description: z.string(),
|
|
@@ -938,7 +938,7 @@ export function dataJsonSchemaFromJSON(
|
|
|
938
938
|
/** @internal */
|
|
939
939
|
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
940
940
|
.object({
|
|
941
|
-
_id: z.string().default("
|
|
941
|
+
_id: z.string().default("tool_01JS22A9GBRF5ZP9J22KNE0752"),
|
|
942
942
|
path: z.string(),
|
|
943
943
|
key: z.string(),
|
|
944
944
|
description: z.string(),
|
|
@@ -988,7 +988,7 @@ export const Data2$outboundSchema: z.ZodType<
|
|
|
988
988
|
z.ZodTypeDef,
|
|
989
989
|
Data2
|
|
990
990
|
> = z.object({
|
|
991
|
-
id: z.string().default("
|
|
991
|
+
id: z.string().default("tool_01JS22A9GBRF5ZP9J22KNE0752"),
|
|
992
992
|
path: z.string(),
|
|
993
993
|
key: z.string(),
|
|
994
994
|
description: z.string(),
|
|
@@ -1143,7 +1143,7 @@ export function dataFunctionFromJSON(
|
|
|
1143
1143
|
/** @internal */
|
|
1144
1144
|
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
1145
1145
|
.object({
|
|
1146
|
-
_id: z.string().default("
|
|
1146
|
+
_id: z.string().default("tool_01JS22A9GANEYQ2N9VSG03CD08"),
|
|
1147
1147
|
path: z.string(),
|
|
1148
1148
|
key: z.string(),
|
|
1149
1149
|
description: z.string(),
|
|
@@ -1192,7 +1192,7 @@ export const Data1$outboundSchema: z.ZodType<
|
|
|
1192
1192
|
z.ZodTypeDef,
|
|
1193
1193
|
Data1
|
|
1194
1194
|
> = z.object({
|
|
1195
|
-
id: z.string().default("
|
|
1195
|
+
id: z.string().default("tool_01JS22A9GANEYQ2N9VSG03CD08"),
|
|
1196
1196
|
path: z.string(),
|
|
1197
1197
|
key: z.string(),
|
|
1198
1198
|
description: z.string(),
|
|
@@ -441,7 +441,7 @@ export type GetOnePromptMetadata = {
|
|
|
441
441
|
/**
|
|
442
442
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
443
443
|
*/
|
|
444
|
-
language?: GetOnePromptLanguage | undefined;
|
|
444
|
+
language?: GetOnePromptLanguage | null | undefined;
|
|
445
445
|
};
|
|
446
446
|
|
|
447
447
|
/**
|
|
@@ -1829,7 +1829,7 @@ export const GetOnePromptMetadata$inboundSchema: z.ZodType<
|
|
|
1829
1829
|
unknown
|
|
1830
1830
|
> = z.object({
|
|
1831
1831
|
use_cases: z.array(GetOnePromptUseCases$inboundSchema).optional(),
|
|
1832
|
-
language: GetOnePromptLanguage$inboundSchema.optional(),
|
|
1832
|
+
language: z.nullable(GetOnePromptLanguage$inboundSchema).optional(),
|
|
1833
1833
|
}).transform((v) => {
|
|
1834
1834
|
return remap$(v, {
|
|
1835
1835
|
"use_cases": "useCases",
|
|
@@ -1839,7 +1839,7 @@ export const GetOnePromptMetadata$inboundSchema: z.ZodType<
|
|
|
1839
1839
|
/** @internal */
|
|
1840
1840
|
export type GetOnePromptMetadata$Outbound = {
|
|
1841
1841
|
use_cases?: Array<string> | undefined;
|
|
1842
|
-
language?: string | undefined;
|
|
1842
|
+
language?: string | null | undefined;
|
|
1843
1843
|
};
|
|
1844
1844
|
|
|
1845
1845
|
/** @internal */
|
|
@@ -1849,7 +1849,7 @@ export const GetOnePromptMetadata$outboundSchema: z.ZodType<
|
|
|
1849
1849
|
GetOnePromptMetadata
|
|
1850
1850
|
> = z.object({
|
|
1851
1851
|
useCases: z.array(GetOnePromptUseCases$outboundSchema).optional(),
|
|
1852
|
-
language: GetOnePromptLanguage$outboundSchema.optional(),
|
|
1852
|
+
language: z.nullable(GetOnePromptLanguage$outboundSchema).optional(),
|
|
1853
1853
|
}).transform((v) => {
|
|
1854
1854
|
return remap$(v, {
|
|
1855
1855
|
useCases: "use_cases",
|
|
@@ -448,7 +448,7 @@ export type GetPromptVersionMetadata = {
|
|
|
448
448
|
/**
|
|
449
449
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
450
450
|
*/
|
|
451
|
-
language?: GetPromptVersionLanguage | undefined;
|
|
451
|
+
language?: GetPromptVersionLanguage | null | undefined;
|
|
452
452
|
};
|
|
453
453
|
|
|
454
454
|
/**
|
|
@@ -1844,7 +1844,7 @@ export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
|
|
|
1844
1844
|
unknown
|
|
1845
1845
|
> = z.object({
|
|
1846
1846
|
use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
|
|
1847
|
-
language: GetPromptVersionLanguage$inboundSchema.optional(),
|
|
1847
|
+
language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
|
|
1848
1848
|
}).transform((v) => {
|
|
1849
1849
|
return remap$(v, {
|
|
1850
1850
|
"use_cases": "useCases",
|
|
@@ -1854,7 +1854,7 @@ export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
/** @internal */
|
|
1855
1855
|
export type GetPromptVersionMetadata$Outbound = {
|
|
1856
1856
|
use_cases?: Array<string> | undefined;
|
|
1857
|
-
language?: string | undefined;
|
|
1857
|
+
language?: string | null | undefined;
|
|
1858
1858
|
};
|
|
1859
1859
|
|
|
1860
1860
|
/** @internal */
|
|
@@ -1864,7 +1864,7 @@ export const GetPromptVersionMetadata$outboundSchema: z.ZodType<
|
|
|
1864
1864
|
GetPromptVersionMetadata
|
|
1865
1865
|
> = z.object({
|
|
1866
1866
|
useCases: z.array(GetPromptVersionUseCases$outboundSchema).optional(),
|
|
1867
|
-
language: GetPromptVersionLanguage$outboundSchema.optional(),
|
|
1867
|
+
language: z.nullable(GetPromptVersionLanguage$outboundSchema).optional(),
|
|
1868
1868
|
}).transform((v) => {
|
|
1869
1869
|
return remap$(v, {
|
|
1870
1870
|
useCases: "use_cases",
|
|
@@ -912,7 +912,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
912
912
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
913
913
|
.optional(),
|
|
914
914
|
updated: z.string().datetime({ offset: true }).default(
|
|
915
|
-
"2025-04-
|
|
915
|
+
"2025-04-17T14:26:40.965Z",
|
|
916
916
|
).transform(v => new Date(v)),
|
|
917
917
|
}).transform((v) => {
|
|
918
918
|
return remap$(v, {
|
|
@@ -955,7 +955,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
955
955
|
createdById: z.string().optional(),
|
|
956
956
|
updatedById: z.string().optional(),
|
|
957
957
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
958
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
958
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
959
959
|
.transform(v => v.toISOString()),
|
|
960
960
|
}).transform((v) => {
|
|
961
961
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-04-
|
|
256
|
+
"2025-04-17T14:26:40.965Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01JS22A9HQ6N00QDCMPCVJYPVX"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01JS22A9HQ6N00QDCMPCVJYPVX"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -466,7 +466,7 @@ export type ListPromptVersionsMetadata = {
|
|
|
466
466
|
/**
|
|
467
467
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
468
468
|
*/
|
|
469
|
-
language?: ListPromptVersionsLanguage | undefined;
|
|
469
|
+
language?: ListPromptVersionsLanguage | null | undefined;
|
|
470
470
|
};
|
|
471
471
|
|
|
472
472
|
export type ListPromptVersionsData = {
|
|
@@ -1910,7 +1910,7 @@ export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
|
|
|
1910
1910
|
unknown
|
|
1911
1911
|
> = z.object({
|
|
1912
1912
|
use_cases: z.array(ListPromptVersionsUseCases$inboundSchema).optional(),
|
|
1913
|
-
language: ListPromptVersionsLanguage$inboundSchema.optional(),
|
|
1913
|
+
language: z.nullable(ListPromptVersionsLanguage$inboundSchema).optional(),
|
|
1914
1914
|
}).transform((v) => {
|
|
1915
1915
|
return remap$(v, {
|
|
1916
1916
|
"use_cases": "useCases",
|
|
@@ -1920,7 +1920,7 @@ export const ListPromptVersionsMetadata$inboundSchema: z.ZodType<
|
|
|
1920
1920
|
/** @internal */
|
|
1921
1921
|
export type ListPromptVersionsMetadata$Outbound = {
|
|
1922
1922
|
use_cases?: Array<string> | undefined;
|
|
1923
|
-
language?: string | undefined;
|
|
1923
|
+
language?: string | null | undefined;
|
|
1924
1924
|
};
|
|
1925
1925
|
|
|
1926
1926
|
/** @internal */
|
|
@@ -1930,7 +1930,7 @@ export const ListPromptVersionsMetadata$outboundSchema: z.ZodType<
|
|
|
1930
1930
|
ListPromptVersionsMetadata
|
|
1931
1931
|
> = z.object({
|
|
1932
1932
|
useCases: z.array(ListPromptVersionsUseCases$outboundSchema).optional(),
|
|
1933
|
-
language: ListPromptVersionsLanguage$outboundSchema.optional(),
|
|
1933
|
+
language: z.nullable(ListPromptVersionsLanguage$outboundSchema).optional(),
|
|
1934
1934
|
}).transform((v) => {
|
|
1935
1935
|
return remap$(v, {
|
|
1936
1936
|
useCases: "use_cases",
|
|
@@ -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-04-
|
|
837
|
+
"2025-04-17T14:26:40.965Z",
|
|
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-04-
|
|
880
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
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-04-
|
|
204
|
+
"2025-04-17T14:26:40.965Z",
|
|
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-04-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01JS22A9HRC8VBRMFCAS6W5SH8"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01JS22A9HRC8VBRMFCAS6W5SH8"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -742,7 +742,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
742
742
|
z.ZodTypeDef,
|
|
743
743
|
unknown
|
|
744
744
|
> = z.object({
|
|
745
|
-
_id: z.string().default("
|
|
745
|
+
_id: z.string().default("tool_01JS22A9GKM1J2XBPDRM4ATH0R"),
|
|
746
746
|
path: z.string(),
|
|
747
747
|
key: z.string(),
|
|
748
748
|
description: z.string(),
|
|
@@ -791,7 +791,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
791
791
|
z.ZodTypeDef,
|
|
792
792
|
RetrieveToolResponseBody3
|
|
793
793
|
> = z.object({
|
|
794
|
-
id: z.string().default("
|
|
794
|
+
id: z.string().default("tool_01JS22A9GKM1J2XBPDRM4ATH0R"),
|
|
795
795
|
path: z.string(),
|
|
796
796
|
key: z.string(),
|
|
797
797
|
description: z.string(),
|
|
@@ -965,7 +965,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
965
965
|
z.ZodTypeDef,
|
|
966
966
|
unknown
|
|
967
967
|
> = z.object({
|
|
968
|
-
_id: z.string().default("
|
|
968
|
+
_id: z.string().default("tool_01JS22A9GKXVAJ4QNVAWXJPHGV"),
|
|
969
969
|
path: z.string(),
|
|
970
970
|
key: z.string(),
|
|
971
971
|
description: z.string(),
|
|
@@ -1015,7 +1015,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1015
1015
|
z.ZodTypeDef,
|
|
1016
1016
|
RetrieveToolResponseBody2
|
|
1017
1017
|
> = z.object({
|
|
1018
|
-
id: z.string().default("
|
|
1018
|
+
id: z.string().default("tool_01JS22A9GKXVAJ4QNVAWXJPHGV"),
|
|
1019
1019
|
path: z.string(),
|
|
1020
1020
|
key: z.string(),
|
|
1021
1021
|
description: z.string(),
|
|
@@ -1185,7 +1185,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
1185
1185
|
z.ZodTypeDef,
|
|
1186
1186
|
unknown
|
|
1187
1187
|
> = z.object({
|
|
1188
|
-
_id: z.string().default("
|
|
1188
|
+
_id: z.string().default("tool_01JS22A9GJTVYCFNRF5V29PT6G"),
|
|
1189
1189
|
path: z.string(),
|
|
1190
1190
|
key: z.string(),
|
|
1191
1191
|
description: z.string(),
|
|
@@ -1234,7 +1234,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
1234
1234
|
z.ZodTypeDef,
|
|
1235
1235
|
RetrieveToolResponseBody1
|
|
1236
1236
|
> = z.object({
|
|
1237
|
-
id: z.string().default("
|
|
1237
|
+
id: z.string().default("tool_01JS22A9GJTVYCFNRF5V29PT6G"),
|
|
1238
1238
|
path: z.string(),
|
|
1239
1239
|
key: z.string(),
|
|
1240
1240
|
description: z.string(),
|
|
@@ -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-04-
|
|
1641
|
+
"2025-04-17T14:26:40.965Z",
|
|
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-04-
|
|
1685
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
1686
1686
|
.transform(v => v.toISOString()),
|
|
1687
1687
|
}).transform((v) => {
|
|
1688
1688
|
return remap$(v, {
|
|
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
302
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
303
303
|
.optional(),
|
|
304
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
305
|
-
"2025-04-
|
|
305
|
+
"2025-04-17T14:26:40.965Z",
|
|
306
306
|
).transform(v => new Date(v)),
|
|
307
307
|
}).transform((v) => {
|
|
308
308
|
return remap$(v, {
|
|
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
347
347
|
parentId: z.string().optional(),
|
|
348
348
|
version: z.string().optional(),
|
|
349
349
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
350
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
350
|
+
updated: z.date().default(() => new Date("2025-04-17T14:26:40.965Z"))
|
|
351
351
|
.transform(v => v.toISOString()),
|
|
352
352
|
}).transform((v) => {
|
|
353
353
|
return remap$(v, {
|
|
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
244
244
|
z.ZodTypeDef,
|
|
245
245
|
unknown
|
|
246
246
|
> = z.object({
|
|
247
|
-
_id: z.string().default("
|
|
247
|
+
_id: z.string().default("01JS22A9HT11V8NR8C0VSFRA21"),
|
|
248
248
|
display_name: z.string(),
|
|
249
249
|
description: z.string().optional(),
|
|
250
250
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
288
288
|
z.ZodTypeDef,
|
|
289
289
|
UpdateDatasourceResponseBody
|
|
290
290
|
> = z.object({
|
|
291
|
-
id: z.string().default("
|
|
291
|
+
id: z.string().default("01JS22A9HT11V8NR8C0VSFRA21"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -415,7 +415,7 @@ export type UpdatePromptMetadata = {
|
|
|
415
415
|
/**
|
|
416
416
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
417
417
|
*/
|
|
418
|
-
language?: UpdatePromptLanguage | undefined;
|
|
418
|
+
language?: UpdatePromptLanguage | null | undefined;
|
|
419
419
|
};
|
|
420
420
|
|
|
421
421
|
export type UpdatePromptRequestBody = {
|
|
@@ -897,7 +897,7 @@ export type UpdatePromptPromptsMetadata = {
|
|
|
897
897
|
/**
|
|
898
898
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
899
899
|
*/
|
|
900
|
-
language?: UpdatePromptPromptsLanguage | undefined;
|
|
900
|
+
language?: UpdatePromptPromptsLanguage | null | undefined;
|
|
901
901
|
};
|
|
902
902
|
|
|
903
903
|
/**
|
|
@@ -2192,7 +2192,7 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
|
|
|
2192
2192
|
unknown
|
|
2193
2193
|
> = z.object({
|
|
2194
2194
|
use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
|
|
2195
|
-
language: UpdatePromptLanguage$inboundSchema.optional(),
|
|
2195
|
+
language: z.nullable(UpdatePromptLanguage$inboundSchema).optional(),
|
|
2196
2196
|
}).transform((v) => {
|
|
2197
2197
|
return remap$(v, {
|
|
2198
2198
|
"use_cases": "useCases",
|
|
@@ -2202,7 +2202,7 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
|
|
|
2202
2202
|
/** @internal */
|
|
2203
2203
|
export type UpdatePromptMetadata$Outbound = {
|
|
2204
2204
|
use_cases?: Array<string> | undefined;
|
|
2205
|
-
language?: string | undefined;
|
|
2205
|
+
language?: string | null | undefined;
|
|
2206
2206
|
};
|
|
2207
2207
|
|
|
2208
2208
|
/** @internal */
|
|
@@ -2212,7 +2212,7 @@ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
|
|
|
2212
2212
|
UpdatePromptMetadata
|
|
2213
2213
|
> = z.object({
|
|
2214
2214
|
useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
|
|
2215
|
-
language: UpdatePromptLanguage$outboundSchema.optional(),
|
|
2215
|
+
language: z.nullable(UpdatePromptLanguage$outboundSchema).optional(),
|
|
2216
2216
|
}).transform((v) => {
|
|
2217
2217
|
return remap$(v, {
|
|
2218
2218
|
useCases: "use_cases",
|
|
@@ -3763,7 +3763,7 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
|
3763
3763
|
unknown
|
|
3764
3764
|
> = z.object({
|
|
3765
3765
|
use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
|
|
3766
|
-
language: UpdatePromptPromptsLanguage$inboundSchema.optional(),
|
|
3766
|
+
language: z.nullable(UpdatePromptPromptsLanguage$inboundSchema).optional(),
|
|
3767
3767
|
}).transform((v) => {
|
|
3768
3768
|
return remap$(v, {
|
|
3769
3769
|
"use_cases": "useCases",
|
|
@@ -3773,7 +3773,7 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
|
3773
3773
|
/** @internal */
|
|
3774
3774
|
export type UpdatePromptPromptsMetadata$Outbound = {
|
|
3775
3775
|
use_cases?: Array<string> | undefined;
|
|
3776
|
-
language?: string | undefined;
|
|
3776
|
+
language?: string | null | undefined;
|
|
3777
3777
|
};
|
|
3778
3778
|
|
|
3779
3779
|
/** @internal */
|
|
@@ -3783,7 +3783,7 @@ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3783
3783
|
UpdatePromptPromptsMetadata
|
|
3784
3784
|
> = z.object({
|
|
3785
3785
|
useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
|
|
3786
|
-
language: UpdatePromptPromptsLanguage$outboundSchema.optional(),
|
|
3786
|
+
language: z.nullable(UpdatePromptPromptsLanguage$outboundSchema).optional(),
|
|
3787
3787
|
}).transform((v) => {
|
|
3788
3788
|
return remap$(v, {
|
|
3789
3789
|
useCases: "use_cases",
|
|
@@ -1860,7 +1860,7 @@ export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1860
1860
|
z.ZodTypeDef,
|
|
1861
1861
|
unknown
|
|
1862
1862
|
> = z.object({
|
|
1863
|
-
_id: z.string().default("
|
|
1863
|
+
_id: z.string().default("tool_01JS22A9GGPSS23RGG0NBSENF1"),
|
|
1864
1864
|
path: z.string(),
|
|
1865
1865
|
key: z.string(),
|
|
1866
1866
|
description: z.string(),
|
|
@@ -1909,7 +1909,7 @@ export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1909
1909
|
z.ZodTypeDef,
|
|
1910
1910
|
UpdateToolResponseBody3
|
|
1911
1911
|
> = z.object({
|
|
1912
|
-
id: z.string().default("
|
|
1912
|
+
id: z.string().default("tool_01JS22A9GGPSS23RGG0NBSENF1"),
|
|
1913
1913
|
path: z.string(),
|
|
1914
1914
|
key: z.string(),
|
|
1915
1915
|
description: z.string(),
|
|
@@ -2079,7 +2079,7 @@ export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
2079
2079
|
z.ZodTypeDef,
|
|
2080
2080
|
unknown
|
|
2081
2081
|
> = z.object({
|
|
2082
|
-
_id: z.string().default("
|
|
2082
|
+
_id: z.string().default("tool_01JS22A9GG403MWBA9XSXG5BZ7"),
|
|
2083
2083
|
path: z.string(),
|
|
2084
2084
|
key: z.string(),
|
|
2085
2085
|
description: z.string(),
|
|
@@ -2129,7 +2129,7 @@ export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
2129
2129
|
z.ZodTypeDef,
|
|
2130
2130
|
UpdateToolResponseBody2
|
|
2131
2131
|
> = z.object({
|
|
2132
|
-
id: z.string().default("
|
|
2132
|
+
id: z.string().default("tool_01JS22A9GG403MWBA9XSXG5BZ7"),
|
|
2133
2133
|
path: z.string(),
|
|
2134
2134
|
key: z.string(),
|
|
2135
2135
|
description: z.string(),
|
|
@@ -2299,7 +2299,7 @@ export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2299
2299
|
z.ZodTypeDef,
|
|
2300
2300
|
unknown
|
|
2301
2301
|
> = z.object({
|
|
2302
|
-
_id: z.string().default("
|
|
2302
|
+
_id: z.string().default("tool_01JS22A9GFHJNAKNWERTR1YYAA"),
|
|
2303
2303
|
path: z.string(),
|
|
2304
2304
|
key: z.string(),
|
|
2305
2305
|
description: z.string(),
|
|
@@ -2348,7 +2348,7 @@ export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2348
2348
|
z.ZodTypeDef,
|
|
2349
2349
|
UpdateToolResponseBody1
|
|
2350
2350
|
> = z.object({
|
|
2351
|
-
id: z.string().default("
|
|
2351
|
+
id: z.string().default("tool_01JS22A9GFHJNAKNWERTR1YYAA"),
|
|
2352
2352
|
path: z.string(),
|
|
2353
2353
|
key: z.string(),
|
|
2354
2354
|
description: z.string(),
|
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.3.
|
|
68
|
-
genVersion: "2.
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 3.3.
|
|
67
|
+
sdkVersion: "3.3.15",
|
|
68
|
+
genVersion: "2.585.0",
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 3.3.15 2.585.0 2.0 @orq-ai/node",
|
|
70
70
|
} as const;
|
package/src/lib/matchers.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { isPlainObject } from "./is-plain-object.js";
|
|
|
11
11
|
import { safeParse } from "./schemas.js";
|
|
12
12
|
|
|
13
13
|
export type Encoding =
|
|
14
|
+
| "jsonl"
|
|
14
15
|
| "json"
|
|
15
16
|
| "text"
|
|
16
17
|
| "bytes"
|
|
@@ -20,6 +21,7 @@ export type Encoding =
|
|
|
20
21
|
| "fail";
|
|
21
22
|
|
|
22
23
|
const DEFAULT_CONTENT_TYPES: Record<Encoding, string> = {
|
|
24
|
+
jsonl: "application/jsonl",
|
|
23
25
|
json: "application/json",
|
|
24
26
|
text: "text/plain",
|
|
25
27
|
bytes: "application/octet-stream",
|
|
@@ -73,6 +75,21 @@ export function json<T>(
|
|
|
73
75
|
return { ...options, enc: "json", codes, schema };
|
|
74
76
|
}
|
|
75
77
|
|
|
78
|
+
export function jsonl<T>(
|
|
79
|
+
codes: StatusCodePredicate,
|
|
80
|
+
schema: Schema<T>,
|
|
81
|
+
options?: MatchOptions,
|
|
82
|
+
): ValueMatcher<T> {
|
|
83
|
+
return { ...options, enc: "jsonl", codes, schema };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function jsonlErr<E>(
|
|
87
|
+
codes: StatusCodePredicate,
|
|
88
|
+
schema: Schema<E>,
|
|
89
|
+
options?: MatchOptions,
|
|
90
|
+
): ErrorMatcher<E> {
|
|
91
|
+
return { ...options, err: true, enc: "jsonl", codes, schema };
|
|
92
|
+
}
|
|
76
93
|
export function textErr<E>(
|
|
77
94
|
codes: StatusCodePredicate,
|
|
78
95
|
schema: Schema<E>,
|
|
@@ -205,6 +222,9 @@ export function match<T, E>(
|
|
|
205
222
|
case "json":
|
|
206
223
|
raw = await response.json();
|
|
207
224
|
break;
|
|
225
|
+
case "jsonl":
|
|
226
|
+
raw = response.body;
|
|
227
|
+
break;
|
|
208
228
|
case "bytes":
|
|
209
229
|
raw = new Uint8Array(await response.arrayBuffer());
|
|
210
230
|
break;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -302,7 +302,9 @@ export class ClientSDK {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
const jsonLikeContentTypeRE =
|
|
305
|
+
const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
|
|
306
|
+
const jsonlLikeContentTypeRE =
|
|
307
|
+
/(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
|
|
306
308
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
307
309
|
if (!logger) {
|
|
308
310
|
return;
|
|
@@ -368,9 +370,13 @@ async function logResponse(
|
|
|
368
370
|
logger.group("Body:");
|
|
369
371
|
switch (true) {
|
|
370
372
|
case matchContentType(res, "application/json")
|
|
371
|
-
|| jsonLikeContentTypeRE.test(ct):
|
|
373
|
+
|| jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):
|
|
372
374
|
logger.log(await res.clone().json());
|
|
373
375
|
break;
|
|
376
|
+
case matchContentType(res, "application/jsonl")
|
|
377
|
+
|| jsonlLikeContentTypeRE.test(ct):
|
|
378
|
+
logger.log(await res.clone().text());
|
|
379
|
+
break;
|
|
374
380
|
case matchContentType(res, "text/event-stream"):
|
|
375
381
|
logger.log(`<${contentType}>`);
|
|
376
382
|
break;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -1731,7 +1731,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
1731
1731
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1732
1732
|
.optional(),
|
|
1733
1733
|
updated: z.string().datetime({ offset: true }).default(
|
|
1734
|
-
"2025-04-
|
|
1734
|
+
"2025-04-17T14:46:09.375Z",
|
|
1735
1735
|
).transform(v => new Date(v)),
|
|
1736
1736
|
}).transform((v) => {
|
|
1737
1737
|
return remap$(v, {
|
|
@@ -1775,7 +1775,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
1775
1775
|
createdById: z.string().optional(),
|
|
1776
1776
|
updatedById: z.string().optional(),
|
|
1777
1777
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
1778
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
1778
|
+
updated: z.date().default(() => new Date("2025-04-17T14:46:09.375Z"))
|
|
1779
1779
|
.transform(v => v.toISOString()),
|
|
1780
1780
|
}).transform((v) => {
|
|
1781
1781
|
return remap$(v, {
|
|
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
177
177
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
178
178
|
.optional(),
|
|
179
179
|
updated: z.string().datetime({ offset: true }).default(
|
|
180
|
-
"2025-04-
|
|
180
|
+
"2025-04-17T14:46:09.375Z",
|
|
181
181
|
).transform(v => new Date(v)),
|
|
182
182
|
}).transform((v) => {
|
|
183
183
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
214
214
|
tags: z.array(z.string()).optional(),
|
|
215
215
|
metadata: z.record(z.any()).optional(),
|
|
216
216
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
217
|
-
updated: z.date().default(() => new Date("2025-04-
|
|
217
|
+
updated: z.date().default(() => new Date("2025-04-17T14:46:09.375Z"))
|
|
218
218
|
.transform(v => v.toISOString()),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
return remap$(v, {
|