@orq-ai/node 3.3.0-rc.12 → 3.3.0-rc.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.
- package/bin/mcp-server.js +81 -57
- package/bin/mcp-server.js.map +25 -25
- package/docs/sdks/knowledge/README.md +4 -0
- package/funcs/knowledgeListChunks.js +2 -0
- package/funcs/knowledgeListChunks.js.map +1 -1
- package/funcs/knowledgeListDatasources.js +2 -0
- package/funcs/knowledgeListDatasources.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- 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/createchunk.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.d.ts +8 -8
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +15 -16
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listchunks.d.ts +34 -0
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +28 -1
- package/models/operations/listchunks.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.d.ts +37 -0
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +31 -3
- package/models/operations/listdatasources.js.map +1 -1
- 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/package.json +1 -1
- package/src/funcs/knowledgeListChunks.ts +2 -0
- package/src/funcs/knowledgeListDatasources.ts +2 -0
- package/src/lib/config.ts +2 -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/createchunk.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 +18 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listchunks.ts +67 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +65 -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
|
@@ -130,14 +130,14 @@ export type CreateDatasourceRequest = {
|
|
|
130
130
|
requestBody: CreateDatasourceRequestBody;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
export const
|
|
133
|
+
export const CreateDatasourceStatus = {
|
|
134
134
|
Pending: "pending",
|
|
135
135
|
Processing: "processing",
|
|
136
136
|
Completed: "completed",
|
|
137
137
|
Failed: "failed",
|
|
138
138
|
Queued: "queued",
|
|
139
139
|
} as const;
|
|
140
|
-
export type
|
|
140
|
+
export type CreateDatasourceStatus = ClosedEnum<typeof CreateDatasourceStatus>;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Datasource successfully created
|
|
@@ -155,7 +155,7 @@ export type CreateDatasourceResponseBody = {
|
|
|
155
155
|
* The description of the knowledge base
|
|
156
156
|
*/
|
|
157
157
|
description?: string | undefined;
|
|
158
|
-
status:
|
|
158
|
+
status: CreateDatasourceStatus;
|
|
159
159
|
/**
|
|
160
160
|
* The unique identifier of the file used to create the datasource.
|
|
161
161
|
*/
|
|
@@ -725,22 +725,24 @@ export function createDatasourceRequestFromJSON(
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
/** @internal */
|
|
728
|
-
export const
|
|
729
|
-
|
|
728
|
+
export const CreateDatasourceStatus$inboundSchema: z.ZodNativeEnum<
|
|
729
|
+
typeof CreateDatasourceStatus
|
|
730
|
+
> = z.nativeEnum(CreateDatasourceStatus);
|
|
730
731
|
|
|
731
732
|
/** @internal */
|
|
732
|
-
export const
|
|
733
|
-
|
|
733
|
+
export const CreateDatasourceStatus$outboundSchema: z.ZodNativeEnum<
|
|
734
|
+
typeof CreateDatasourceStatus
|
|
735
|
+
> = CreateDatasourceStatus$inboundSchema;
|
|
734
736
|
|
|
735
737
|
/**
|
|
736
738
|
* @internal
|
|
737
739
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
738
740
|
*/
|
|
739
|
-
export namespace
|
|
740
|
-
/** @deprecated use `
|
|
741
|
-
export const inboundSchema =
|
|
742
|
-
/** @deprecated use `
|
|
743
|
-
export const outboundSchema =
|
|
741
|
+
export namespace CreateDatasourceStatus$ {
|
|
742
|
+
/** @deprecated use `CreateDatasourceStatus$inboundSchema` instead. */
|
|
743
|
+
export const inboundSchema = CreateDatasourceStatus$inboundSchema;
|
|
744
|
+
/** @deprecated use `CreateDatasourceStatus$outboundSchema` instead. */
|
|
745
|
+
export const outboundSchema = CreateDatasourceStatus$outboundSchema;
|
|
744
746
|
}
|
|
745
747
|
|
|
746
748
|
/** @internal */
|
|
@@ -749,10 +751,10 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
749
751
|
z.ZodTypeDef,
|
|
750
752
|
unknown
|
|
751
753
|
> = z.object({
|
|
752
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01JQCTRB55NRQE9TA5CZ38G32M"),
|
|
753
755
|
display_name: z.string(),
|
|
754
756
|
description: z.string().optional(),
|
|
755
|
-
status:
|
|
757
|
+
status: CreateDatasourceStatus$inboundSchema,
|
|
756
758
|
file_id: z.nullable(z.string()).optional(),
|
|
757
759
|
created: z.string(),
|
|
758
760
|
updated: z.string(),
|
|
@@ -793,10 +795,10 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
793
795
|
z.ZodTypeDef,
|
|
794
796
|
CreateDatasourceResponseBody
|
|
795
797
|
> = z.object({
|
|
796
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01JQCTRB55NRQE9TA5CZ38G32M"),
|
|
797
799
|
displayName: z.string(),
|
|
798
800
|
description: z.string().optional(),
|
|
799
|
-
status:
|
|
801
|
+
status: CreateDatasourceStatus$outboundSchema,
|
|
800
802
|
fileId: z.nullable(z.string()).optional(),
|
|
801
803
|
created: z.string(),
|
|
802
804
|
updated: z.string(),
|
|
@@ -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-27T22:14:50.109Z",
|
|
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-27T22:14:50.109Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-03-
|
|
199
|
+
"2025-03-27T22:14:50.109Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-03-
|
|
233
|
+
created: z.date().default(() => new Date("2025-03-27T22:14:50.109Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
247
247
|
file_name: z.string(),
|
|
248
248
|
workspace_id: z.string(),
|
|
249
249
|
created: z.string().datetime({ offset: true }).default(
|
|
250
|
-
"2025-03-
|
|
250
|
+
"2025-03-27T22:14:50.109Z",
|
|
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-27T22:14:50.109Z"))
|
|
285
285
|
.transform(v => v.toISOString()),
|
|
286
286
|
}).transform((v) => {
|
|
287
287
|
return remap$(v, {
|
|
@@ -9,6 +9,11 @@ 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
|
+
* Filter datasources by status.
|
|
14
|
+
*/
|
|
15
|
+
export type QueryParamStatus = Array<string> | string;
|
|
16
|
+
|
|
12
17
|
export type ListChunksRequest = {
|
|
13
18
|
/**
|
|
14
19
|
* The unique identifier of the knowledge base
|
|
@@ -30,6 +35,14 @@ export type ListChunksRequest = {
|
|
|
30
35
|
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
31
36
|
*/
|
|
32
37
|
endingBefore?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Search query to find datasources by name.
|
|
40
|
+
*/
|
|
41
|
+
q?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Filter datasources by status.
|
|
44
|
+
*/
|
|
45
|
+
status?: Array<string> | string | undefined;
|
|
33
46
|
};
|
|
34
47
|
|
|
35
48
|
export const ListChunksObject = {
|
|
@@ -100,6 +113,54 @@ export type ListChunksResponseBody = {
|
|
|
100
113
|
hasMore: boolean;
|
|
101
114
|
};
|
|
102
115
|
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const QueryParamStatus$inboundSchema: z.ZodType<
|
|
118
|
+
QueryParamStatus,
|
|
119
|
+
z.ZodTypeDef,
|
|
120
|
+
unknown
|
|
121
|
+
> = z.union([z.array(z.string()), z.string()]);
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export type QueryParamStatus$Outbound = Array<string> | string;
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const QueryParamStatus$outboundSchema: z.ZodType<
|
|
128
|
+
QueryParamStatus$Outbound,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
QueryParamStatus
|
|
131
|
+
> = z.union([z.array(z.string()), z.string()]);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @internal
|
|
135
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
+
*/
|
|
137
|
+
export namespace QueryParamStatus$ {
|
|
138
|
+
/** @deprecated use `QueryParamStatus$inboundSchema` instead. */
|
|
139
|
+
export const inboundSchema = QueryParamStatus$inboundSchema;
|
|
140
|
+
/** @deprecated use `QueryParamStatus$outboundSchema` instead. */
|
|
141
|
+
export const outboundSchema = QueryParamStatus$outboundSchema;
|
|
142
|
+
/** @deprecated use `QueryParamStatus$Outbound` instead. */
|
|
143
|
+
export type Outbound = QueryParamStatus$Outbound;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function queryParamStatusToJSON(
|
|
147
|
+
queryParamStatus: QueryParamStatus,
|
|
148
|
+
): string {
|
|
149
|
+
return JSON.stringify(
|
|
150
|
+
QueryParamStatus$outboundSchema.parse(queryParamStatus),
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function queryParamStatusFromJSON(
|
|
155
|
+
jsonString: string,
|
|
156
|
+
): SafeParseResult<QueryParamStatus, SDKValidationError> {
|
|
157
|
+
return safeParse(
|
|
158
|
+
jsonString,
|
|
159
|
+
(x) => QueryParamStatus$inboundSchema.parse(JSON.parse(x)),
|
|
160
|
+
`Failed to parse 'QueryParamStatus' from JSON`,
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
|
|
103
164
|
/** @internal */
|
|
104
165
|
export const ListChunksRequest$inboundSchema: z.ZodType<
|
|
105
166
|
ListChunksRequest,
|
|
@@ -111,6 +172,8 @@ export const ListChunksRequest$inboundSchema: z.ZodType<
|
|
|
111
172
|
limit: z.number().default(10),
|
|
112
173
|
starting_after: z.string().optional(),
|
|
113
174
|
ending_before: z.string().optional(),
|
|
175
|
+
q: z.string().optional(),
|
|
176
|
+
status: z.union([z.array(z.string()), z.string()]).optional(),
|
|
114
177
|
}).transform((v) => {
|
|
115
178
|
return remap$(v, {
|
|
116
179
|
"knowledge_id": "knowledgeId",
|
|
@@ -127,6 +190,8 @@ export type ListChunksRequest$Outbound = {
|
|
|
127
190
|
limit: number;
|
|
128
191
|
starting_after?: string | undefined;
|
|
129
192
|
ending_before?: string | undefined;
|
|
193
|
+
q?: string | undefined;
|
|
194
|
+
status?: Array<string> | string | undefined;
|
|
130
195
|
};
|
|
131
196
|
|
|
132
197
|
/** @internal */
|
|
@@ -140,6 +205,8 @@ export const ListChunksRequest$outboundSchema: z.ZodType<
|
|
|
140
205
|
limit: z.number().default(10),
|
|
141
206
|
startingAfter: z.string().optional(),
|
|
142
207
|
endingBefore: z.string().optional(),
|
|
208
|
+
q: z.string().optional(),
|
|
209
|
+
status: z.union([z.array(z.string()), z.string()]).optional(),
|
|
143
210
|
}).transform((v) => {
|
|
144
211
|
return remap$(v, {
|
|
145
212
|
knowledgeId: "knowledge_id",
|
|
@@ -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-03-
|
|
915
|
+
"2025-03-27T22:14:48.594Z",
|
|
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-03-
|
|
958
|
+
updated: z.date().default(() => new Date("2025-03-27T22:14:48.594Z"))
|
|
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-03-
|
|
256
|
+
"2025-03-27T22:14:48.594Z",
|
|
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-03-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-03-27T22:14:48.594Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -9,7 +9,15 @@ 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
|
+
* Filter datasources by status.
|
|
14
|
+
*/
|
|
15
|
+
export type Status = Array<string> | string;
|
|
16
|
+
|
|
12
17
|
export type ListDatasourcesRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the knowledge base
|
|
20
|
+
*/
|
|
13
21
|
knowledgeId: string;
|
|
14
22
|
/**
|
|
15
23
|
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
@@ -23,6 +31,14 @@ export type ListDatasourcesRequest = {
|
|
|
23
31
|
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
24
32
|
*/
|
|
25
33
|
endingBefore?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Search query to find datasources by name.
|
|
36
|
+
*/
|
|
37
|
+
q?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Filter datasources by status.
|
|
40
|
+
*/
|
|
41
|
+
status?: Array<string> | string | undefined;
|
|
26
42
|
};
|
|
27
43
|
|
|
28
44
|
export const ListDatasourcesObject = {
|
|
@@ -92,6 +108,47 @@ export type ListDatasourcesResponseBody = {
|
|
|
92
108
|
hasMore: boolean;
|
|
93
109
|
};
|
|
94
110
|
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const Status$inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown> = z
|
|
113
|
+
.union([z.array(z.string()), z.string()]);
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type Status$Outbound = Array<string> | string;
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const Status$outboundSchema: z.ZodType<
|
|
120
|
+
Status$Outbound,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
Status
|
|
123
|
+
> = z.union([z.array(z.string()), z.string()]);
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace Status$ {
|
|
130
|
+
/** @deprecated use `Status$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = Status$inboundSchema;
|
|
132
|
+
/** @deprecated use `Status$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = Status$outboundSchema;
|
|
134
|
+
/** @deprecated use `Status$Outbound` instead. */
|
|
135
|
+
export type Outbound = Status$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function statusToJSON(status: Status): string {
|
|
139
|
+
return JSON.stringify(Status$outboundSchema.parse(status));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function statusFromJSON(
|
|
143
|
+
jsonString: string,
|
|
144
|
+
): SafeParseResult<Status, SDKValidationError> {
|
|
145
|
+
return safeParse(
|
|
146
|
+
jsonString,
|
|
147
|
+
(x) => Status$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
+
`Failed to parse 'Status' from JSON`,
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
95
152
|
/** @internal */
|
|
96
153
|
export const ListDatasourcesRequest$inboundSchema: z.ZodType<
|
|
97
154
|
ListDatasourcesRequest,
|
|
@@ -102,6 +159,8 @@ export const ListDatasourcesRequest$inboundSchema: z.ZodType<
|
|
|
102
159
|
limit: z.number().default(10),
|
|
103
160
|
starting_after: z.string().optional(),
|
|
104
161
|
ending_before: z.string().optional(),
|
|
162
|
+
q: z.string().optional(),
|
|
163
|
+
status: z.union([z.array(z.string()), z.string()]).optional(),
|
|
105
164
|
}).transform((v) => {
|
|
106
165
|
return remap$(v, {
|
|
107
166
|
"knowledge_id": "knowledgeId",
|
|
@@ -116,6 +175,8 @@ export type ListDatasourcesRequest$Outbound = {
|
|
|
116
175
|
limit: number;
|
|
117
176
|
starting_after?: string | undefined;
|
|
118
177
|
ending_before?: string | undefined;
|
|
178
|
+
q?: string | undefined;
|
|
179
|
+
status?: Array<string> | string | undefined;
|
|
119
180
|
};
|
|
120
181
|
|
|
121
182
|
/** @internal */
|
|
@@ -128,6 +189,8 @@ export const ListDatasourcesRequest$outboundSchema: z.ZodType<
|
|
|
128
189
|
limit: z.number().default(10),
|
|
129
190
|
startingAfter: z.string().optional(),
|
|
130
191
|
endingBefore: z.string().optional(),
|
|
192
|
+
q: z.string().optional(),
|
|
193
|
+
status: z.union([z.array(z.string()), z.string()]).optional(),
|
|
131
194
|
}).transform((v) => {
|
|
132
195
|
return remap$(v, {
|
|
133
196
|
knowledgeId: "knowledge_id",
|
|
@@ -215,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
215
278
|
z.ZodTypeDef,
|
|
216
279
|
unknown
|
|
217
280
|
> = z.object({
|
|
218
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01JQCTRB531JQVNWM64H1NSW6S"),
|
|
219
282
|
display_name: z.string(),
|
|
220
283
|
description: z.string().optional(),
|
|
221
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -259,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
259
322
|
z.ZodTypeDef,
|
|
260
323
|
ListDatasourcesData
|
|
261
324
|
> = z.object({
|
|
262
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01JQCTRB531JQVNWM64H1NSW6S"),
|
|
263
326
|
displayName: z.string(),
|
|
264
327
|
description: z.string().optional(),
|
|
265
328
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -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-27T22:14:48.594Z",
|
|
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-27T22:14:48.594Z"))
|
|
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-27T22:14:48.594Z",
|
|
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-27T22:14:48.594Z"))
|
|
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("01JQCTRB547V5ST5RD1TFN2CWW"),
|
|
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("01JQCTRB547V5ST5RD1TFN2CWW"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -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-27T22:14:48.594Z",
|
|
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-27T22:14:48.594Z"))
|
|
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-27T22:14:48.594Z",
|
|
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-27T22:14:48.594Z"))
|
|
332
332
|
.transform(v => v.toISOString()),
|
|
333
333
|
}).transform((v) => {
|
|
334
334
|
return remap$(v, {
|