@orq-ai/node 3.3.0-rc.17 → 3.3.0-rc.18
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/README.md +4 -0
- package/bin/mcp-server.js +540 -123
- package/bin/mcp-server.js.map +30 -24
- package/docs/sdks/knowledge/README.md +166 -0
- package/funcs/knowledgeRetrieveChunk.d.ts +13 -0
- package/funcs/knowledgeRetrieveChunk.d.ts.map +1 -0
- package/funcs/knowledgeRetrieveChunk.js +122 -0
- package/funcs/knowledgeRetrieveChunk.js.map +1 -0
- package/funcs/knowledgeUpdateDatasource.d.ts +13 -0
- package/funcs/knowledgeUpdateDatasource.d.ts.map +1 -0
- package/funcs/knowledgeUpdateDatasource.js +119 -0
- package/funcs/knowledgeUpdateDatasource.js.map +1 -0
- 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.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/knowledgeRetrieveChunk.d.ts +8 -0
- package/mcp-server/tools/knowledgeRetrieveChunk.d.ts.map +1 -0
- package/mcp-server/tools/knowledgeRetrieveChunk.js +62 -0
- package/mcp-server/tools/knowledgeRetrieveChunk.js.map +1 -0
- package/mcp-server/tools/knowledgeUpdateDatasource.d.ts +8 -0
- package/mcp-server/tools/knowledgeUpdateDatasource.d.ts.map +1 -0
- package/mcp-server/tools/knowledgeUpdateDatasource.js +62 -0
- package/mcp-server/tools/knowledgeUpdateDatasource.js.map +1 -0
- 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.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/getonechunk.d.ts +158 -0
- package/models/operations/getonechunk.d.ts.map +1 -0
- package/models/operations/getonechunk.js +166 -0
- package/models/operations/getonechunk.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- 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.d.ts +177 -0
- package/models/operations/updatedatasource.d.ts.map +1 -0
- package/models/operations/updatedatasource.js +210 -0
- package/models/operations/updatedatasource.js.map +1 -0
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +8 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +14 -0
- package/sdk/knowledge.js.map +1 -1
- package/src/funcs/knowledgeRetrieveChunk.ts +167 -0
- package/src/funcs/knowledgeUpdateDatasource.ts +164 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
- package/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
- 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 +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/getonechunk.ts +265 -0
- package/src/models/operations/index.ts +2 -0
- 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 +345 -0
- package/src/sdk/knowledge.ts +30 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34231,9 +34231,9 @@ var init_config = __esm(() => {
|
|
|
34231
34231
|
SDK_METADATA = {
|
|
34232
34232
|
language: "typescript",
|
|
34233
34233
|
openapiDocVersion: "2.0",
|
|
34234
|
-
sdkVersion: "3.3.0-rc.
|
|
34234
|
+
sdkVersion: "3.3.0-rc.18",
|
|
34235
34235
|
genVersion: "2.563.1",
|
|
34236
|
-
userAgent: "speakeasy-sdk/typescript 3.3.0-rc.
|
|
34236
|
+
userAgent: "speakeasy-sdk/typescript 3.3.0-rc.18 2.563.1 2.0 @orq-ai/node"
|
|
34237
34237
|
};
|
|
34238
34238
|
});
|
|
34239
34239
|
|
|
@@ -36268,7 +36268,7 @@ var init_bulkcreatedatapoints = __esm(() => {
|
|
|
36268
36268
|
created_by_id: stringType().optional(),
|
|
36269
36269
|
updated_by_id: stringType().optional(),
|
|
36270
36270
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36271
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
36271
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
36272
36272
|
}).transform((v2) => {
|
|
36273
36273
|
return remap(v2, {
|
|
36274
36274
|
_id: "id",
|
|
@@ -36289,7 +36289,7 @@ var init_bulkcreatedatapoints = __esm(() => {
|
|
|
36289
36289
|
createdById: stringType().optional(),
|
|
36290
36290
|
updatedById: stringType().optional(),
|
|
36291
36291
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36292
|
-
updated: dateType().default(() => new Date("2025-
|
|
36292
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
36293
36293
|
}).transform((v2) => {
|
|
36294
36294
|
return remap(v2, {
|
|
36295
36295
|
id: "_id",
|
|
@@ -36492,7 +36492,7 @@ var init_createchunk = __esm(() => {
|
|
|
36492
36492
|
knowledge_id: stringType(),
|
|
36493
36493
|
workspace_id: stringType(),
|
|
36494
36494
|
data_source_id: stringType(),
|
|
36495
|
-
id: stringType().default("
|
|
36495
|
+
id: stringType().default("chunk_01JQRGTRHDQ7FACQDQ10GT3KAR"),
|
|
36496
36496
|
text: stringType(),
|
|
36497
36497
|
enabled: booleanType().default(true),
|
|
36498
36498
|
metadata: lazyType(() => CreateChunkKnowledgeMetadata$inboundSchema).optional(),
|
|
@@ -36515,7 +36515,7 @@ var init_createchunk = __esm(() => {
|
|
|
36515
36515
|
knowledgeId: stringType(),
|
|
36516
36516
|
workspaceId: stringType(),
|
|
36517
36517
|
dataSourceId: stringType(),
|
|
36518
|
-
id: stringType().default("
|
|
36518
|
+
id: stringType().default("chunk_01JQRGTRHDQ7FACQDQ10GT3KAR"),
|
|
36519
36519
|
text: stringType(),
|
|
36520
36520
|
enabled: booleanType().default(true),
|
|
36521
36521
|
metadata: lazyType(() => CreateChunkKnowledgeMetadata$outboundSchema).optional(),
|
|
@@ -36586,7 +36586,7 @@ var init_createcontact = __esm(() => {
|
|
|
36586
36586
|
tags: arrayType(stringType()).optional(),
|
|
36587
36587
|
metadata: recordType(anyType()).optional(),
|
|
36588
36588
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36589
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
36589
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
36590
36590
|
}).transform((v2) => {
|
|
36591
36591
|
return remap(v2, {
|
|
36592
36592
|
external_id: "externalId",
|
|
@@ -36603,7 +36603,7 @@ var init_createcontact = __esm(() => {
|
|
|
36603
36603
|
tags: arrayType(stringType()).optional(),
|
|
36604
36604
|
metadata: recordType(anyType()).optional(),
|
|
36605
36605
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36606
|
-
updated: dateType().default(() => new Date("2025-
|
|
36606
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
36607
36607
|
}).transform((v2) => {
|
|
36608
36608
|
return remap(v2, {
|
|
36609
36609
|
externalId: "external_id",
|
|
@@ -36673,7 +36673,7 @@ var init_createdataset = __esm(() => {
|
|
|
36673
36673
|
updated_by_id: stringType().optional(),
|
|
36674
36674
|
metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
|
|
36675
36675
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
36676
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
36676
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
36677
36677
|
}).transform((v2) => {
|
|
36678
36678
|
return remap(v2, {
|
|
36679
36679
|
_id: "id",
|
|
@@ -36693,7 +36693,7 @@ var init_createdataset = __esm(() => {
|
|
|
36693
36693
|
updatedById: stringType().optional(),
|
|
36694
36694
|
metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
|
|
36695
36695
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
36696
|
-
updated: dateType().default(() => new Date("2025-
|
|
36696
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
36697
36697
|
}).transform((v2) => {
|
|
36698
36698
|
return remap(v2, {
|
|
36699
36699
|
id: "_id",
|
|
@@ -37129,7 +37129,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37129
37129
|
created_by_id: stringType().optional(),
|
|
37130
37130
|
updated_by_id: stringType().optional(),
|
|
37131
37131
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
37132
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
37132
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
37133
37133
|
}).transform((v2) => {
|
|
37134
37134
|
return remap(v2, {
|
|
37135
37135
|
_id: "id",
|
|
@@ -37150,7 +37150,7 @@ var init_createdatasetitem = __esm(() => {
|
|
|
37150
37150
|
createdById: stringType().optional(),
|
|
37151
37151
|
updatedById: stringType().optional(),
|
|
37152
37152
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
37153
|
-
updated: dateType().default(() => new Date("2025-
|
|
37153
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
37154
37154
|
}).transform((v2) => {
|
|
37155
37155
|
return remap(v2, {
|
|
37156
37156
|
id: "_id",
|
|
@@ -37372,7 +37372,7 @@ var init_createdatasource = __esm(() => {
|
|
|
37372
37372
|
CreateDatasourceStatus$.outboundSchema = CreateDatasourceStatus$outboundSchema;
|
|
37373
37373
|
})(CreateDatasourceStatus$ ||= {});
|
|
37374
37374
|
CreateDatasourceResponseBody$inboundSchema = objectType({
|
|
37375
|
-
_id: stringType().default("
|
|
37375
|
+
_id: stringType().default("01JQRGTRHBDGGHR25HNAT0ZZ7F"),
|
|
37376
37376
|
display_name: stringType(),
|
|
37377
37377
|
description: stringType().optional(),
|
|
37378
37378
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -37395,7 +37395,7 @@ var init_createdatasource = __esm(() => {
|
|
|
37395
37395
|
});
|
|
37396
37396
|
});
|
|
37397
37397
|
CreateDatasourceResponseBody$outboundSchema = objectType({
|
|
37398
|
-
id: stringType().default("
|
|
37398
|
+
id: stringType().default("01JQRGTRHBDGGHR25HNAT0ZZ7F"),
|
|
37399
37399
|
displayName: stringType(),
|
|
37400
37400
|
description: stringType().optional(),
|
|
37401
37401
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -43920,7 +43920,7 @@ var init_fileget = __esm(() => {
|
|
|
43920
43920
|
bytes: numberType(),
|
|
43921
43921
|
file_name: stringType(),
|
|
43922
43922
|
workspace_id: stringType(),
|
|
43923
|
-
created: stringType().datetime({ offset: true }).default("2025-
|
|
43923
|
+
created: stringType().datetime({ offset: true }).default("2025-04-01T11:12:16.659Z").transform((v2) => new Date(v2))
|
|
43924
43924
|
}).transform((v2) => {
|
|
43925
43925
|
return remap(v2, {
|
|
43926
43926
|
_id: "id",
|
|
@@ -43936,7 +43936,7 @@ var init_fileget = __esm(() => {
|
|
|
43936
43936
|
bytes: numberType(),
|
|
43937
43937
|
fileName: stringType(),
|
|
43938
43938
|
workspaceId: stringType(),
|
|
43939
|
-
created: dateType().default(() => new Date("2025-
|
|
43939
|
+
created: dateType().default(() => new Date("2025-04-01T11:12:16.659Z")).transform((v2) => v2.toISOString())
|
|
43940
43940
|
}).transform((v2) => {
|
|
43941
43941
|
return remap(v2, {
|
|
43942
43942
|
id: "_id",
|
|
@@ -44007,7 +44007,7 @@ var init_filelist = __esm(() => {
|
|
|
44007
44007
|
bytes: numberType(),
|
|
44008
44008
|
file_name: stringType(),
|
|
44009
44009
|
workspace_id: stringType(),
|
|
44010
|
-
created: stringType().datetime({ offset: true }).default("2025-
|
|
44010
|
+
created: stringType().datetime({ offset: true }).default("2025-04-01T11:12:16.659Z").transform((v2) => new Date(v2))
|
|
44011
44011
|
}).transform((v2) => {
|
|
44012
44012
|
return remap(v2, {
|
|
44013
44013
|
_id: "id",
|
|
@@ -44023,7 +44023,7 @@ var init_filelist = __esm(() => {
|
|
|
44023
44023
|
bytes: numberType(),
|
|
44024
44024
|
fileName: stringType(),
|
|
44025
44025
|
workspaceId: stringType(),
|
|
44026
|
-
created: dateType().default(() => new Date("2025-
|
|
44026
|
+
created: dateType().default(() => new Date("2025-04-01T11:12:16.659Z")).transform((v2) => v2.toISOString())
|
|
44027
44027
|
}).transform((v2) => {
|
|
44028
44028
|
return remap(v2, {
|
|
44029
44029
|
id: "_id",
|
|
@@ -44155,7 +44155,7 @@ var init_fileupload = __esm(() => {
|
|
|
44155
44155
|
bytes: numberType(),
|
|
44156
44156
|
file_name: stringType(),
|
|
44157
44157
|
workspace_id: stringType(),
|
|
44158
|
-
created: stringType().datetime({ offset: true }).default("2025-
|
|
44158
|
+
created: stringType().datetime({ offset: true }).default("2025-04-01T11:12:16.659Z").transform((v2) => new Date(v2))
|
|
44159
44159
|
}).transform((v2) => {
|
|
44160
44160
|
return remap(v2, {
|
|
44161
44161
|
_id: "id",
|
|
@@ -44171,7 +44171,7 @@ var init_fileupload = __esm(() => {
|
|
|
44171
44171
|
bytes: numberType(),
|
|
44172
44172
|
fileName: stringType(),
|
|
44173
44173
|
workspaceId: stringType(),
|
|
44174
|
-
created: dateType().default(() => new Date("2025-
|
|
44174
|
+
created: dateType().default(() => new Date("2025-04-01T11:12:16.659Z")).transform((v2) => v2.toISOString())
|
|
44175
44175
|
}).transform((v2) => {
|
|
44176
44176
|
return remap(v2, {
|
|
44177
44177
|
id: "_id",
|
|
@@ -44816,6 +44816,90 @@ var init_getallprompts = __esm(() => {
|
|
|
44816
44816
|
})(GetAllPromptsResponseBody$ ||= {});
|
|
44817
44817
|
});
|
|
44818
44818
|
|
|
44819
|
+
// src/models/operations/getonechunk.ts
|
|
44820
|
+
var GetOneChunkStatus, GetOneChunkRequest$inboundSchema, GetOneChunkRequest$outboundSchema, GetOneChunkRequest$, GetOneChunkStatus$inboundSchema, GetOneChunkStatus$outboundSchema, GetOneChunkStatus$, GetOneChunkResponseBody$inboundSchema, GetOneChunkResponseBody$outboundSchema, GetOneChunkResponseBody$;
|
|
44821
|
+
var init_getonechunk = __esm(() => {
|
|
44822
|
+
init_lib();
|
|
44823
|
+
init_primitives();
|
|
44824
|
+
GetOneChunkStatus = {
|
|
44825
|
+
Pending: "pending",
|
|
44826
|
+
Processing: "processing",
|
|
44827
|
+
Completed: "completed",
|
|
44828
|
+
Failed: "failed",
|
|
44829
|
+
Queued: "queued"
|
|
44830
|
+
};
|
|
44831
|
+
GetOneChunkRequest$inboundSchema = objectType({
|
|
44832
|
+
chunk_id: stringType(),
|
|
44833
|
+
datasource_id: stringType(),
|
|
44834
|
+
knowledge_id: stringType()
|
|
44835
|
+
}).transform((v2) => {
|
|
44836
|
+
return remap(v2, {
|
|
44837
|
+
chunk_id: "chunkId",
|
|
44838
|
+
datasource_id: "datasourceId",
|
|
44839
|
+
knowledge_id: "knowledgeId"
|
|
44840
|
+
});
|
|
44841
|
+
});
|
|
44842
|
+
GetOneChunkRequest$outboundSchema = objectType({
|
|
44843
|
+
chunkId: stringType(),
|
|
44844
|
+
datasourceId: stringType(),
|
|
44845
|
+
knowledgeId: stringType()
|
|
44846
|
+
}).transform((v2) => {
|
|
44847
|
+
return remap(v2, {
|
|
44848
|
+
chunkId: "chunk_id",
|
|
44849
|
+
datasourceId: "datasource_id",
|
|
44850
|
+
knowledgeId: "knowledge_id"
|
|
44851
|
+
});
|
|
44852
|
+
});
|
|
44853
|
+
((GetOneChunkRequest$) => {
|
|
44854
|
+
GetOneChunkRequest$.inboundSchema = GetOneChunkRequest$inboundSchema;
|
|
44855
|
+
GetOneChunkRequest$.outboundSchema = GetOneChunkRequest$outboundSchema;
|
|
44856
|
+
})(GetOneChunkRequest$ ||= {});
|
|
44857
|
+
GetOneChunkStatus$inboundSchema = nativeEnumType(GetOneChunkStatus);
|
|
44858
|
+
GetOneChunkStatus$outboundSchema = GetOneChunkStatus$inboundSchema;
|
|
44859
|
+
((GetOneChunkStatus$) => {
|
|
44860
|
+
GetOneChunkStatus$.inboundSchema = GetOneChunkStatus$inboundSchema;
|
|
44861
|
+
GetOneChunkStatus$.outboundSchema = GetOneChunkStatus$outboundSchema;
|
|
44862
|
+
})(GetOneChunkStatus$ ||= {});
|
|
44863
|
+
GetOneChunkResponseBody$inboundSchema = objectType({
|
|
44864
|
+
_id: stringType(),
|
|
44865
|
+
text: stringType(),
|
|
44866
|
+
metadata: recordType(stringType()).optional(),
|
|
44867
|
+
enabled: booleanType(),
|
|
44868
|
+
status: GetOneChunkStatus$inboundSchema,
|
|
44869
|
+
created: stringType(),
|
|
44870
|
+
updated: stringType(),
|
|
44871
|
+
created_by_id: stringType().optional(),
|
|
44872
|
+
update_by_id: stringType().optional()
|
|
44873
|
+
}).transform((v2) => {
|
|
44874
|
+
return remap(v2, {
|
|
44875
|
+
_id: "id",
|
|
44876
|
+
created_by_id: "createdById",
|
|
44877
|
+
update_by_id: "updateById"
|
|
44878
|
+
});
|
|
44879
|
+
});
|
|
44880
|
+
GetOneChunkResponseBody$outboundSchema = objectType({
|
|
44881
|
+
id: stringType(),
|
|
44882
|
+
text: stringType(),
|
|
44883
|
+
metadata: recordType(stringType()).optional(),
|
|
44884
|
+
enabled: booleanType(),
|
|
44885
|
+
status: GetOneChunkStatus$outboundSchema,
|
|
44886
|
+
created: stringType(),
|
|
44887
|
+
updated: stringType(),
|
|
44888
|
+
createdById: stringType().optional(),
|
|
44889
|
+
updateById: stringType().optional()
|
|
44890
|
+
}).transform((v2) => {
|
|
44891
|
+
return remap(v2, {
|
|
44892
|
+
id: "_id",
|
|
44893
|
+
createdById: "created_by_id",
|
|
44894
|
+
updateById: "update_by_id"
|
|
44895
|
+
});
|
|
44896
|
+
});
|
|
44897
|
+
((GetOneChunkResponseBody$) => {
|
|
44898
|
+
GetOneChunkResponseBody$.inboundSchema = GetOneChunkResponseBody$inboundSchema;
|
|
44899
|
+
GetOneChunkResponseBody$.outboundSchema = GetOneChunkResponseBody$outboundSchema;
|
|
44900
|
+
})(GetOneChunkResponseBody$ ||= {});
|
|
44901
|
+
});
|
|
44902
|
+
|
|
44819
44903
|
// src/models/operations/getoneknowledge.ts
|
|
44820
44904
|
var GetOneKnowledgeRetrievalType, GetOneKnowledgeRequest$inboundSchema, GetOneKnowledgeRequest$outboundSchema, GetOneKnowledgeRequest$, GetOneKnowledgeRetrievalType$inboundSchema, GetOneKnowledgeRetrievalType$outboundSchema, GetOneKnowledgeRetrievalType$, GetOneKnowledgeRerankConfig$inboundSchema, GetOneKnowledgeRerankConfig$outboundSchema, GetOneKnowledgeRerankConfig$, GetOneKnowledgeRetrievalSettings$inboundSchema, GetOneKnowledgeRetrievalSettings$outboundSchema, GetOneKnowledgeRetrievalSettings$, GetOneKnowledgeResponseBody$inboundSchema, GetOneKnowledgeResponseBody$outboundSchema, GetOneKnowledgeResponseBody$;
|
|
44821
44905
|
var init_getoneknowledge = __esm(() => {
|
|
@@ -46467,7 +46551,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
46467
46551
|
created_by_id: stringType().optional(),
|
|
46468
46552
|
updated_by_id: stringType().optional(),
|
|
46469
46553
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
46470
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
46554
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
46471
46555
|
}).transform((v2) => {
|
|
46472
46556
|
return remap(v2, {
|
|
46473
46557
|
_id: "id",
|
|
@@ -46488,7 +46572,7 @@ var init_listdatasetdatapoints = __esm(() => {
|
|
|
46488
46572
|
createdById: stringType().optional(),
|
|
46489
46573
|
updatedById: stringType().optional(),
|
|
46490
46574
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
46491
|
-
updated: dateType().default(() => new Date("2025-
|
|
46575
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
46492
46576
|
}).transform((v2) => {
|
|
46493
46577
|
return remap(v2, {
|
|
46494
46578
|
id: "_id",
|
|
@@ -46596,7 +46680,7 @@ var init_listdatasets = __esm(() => {
|
|
|
46596
46680
|
updated_by_id: stringType().optional(),
|
|
46597
46681
|
metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
|
|
46598
46682
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
46599
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
46683
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
46600
46684
|
}).transform((v2) => {
|
|
46601
46685
|
return remap(v2, {
|
|
46602
46686
|
_id: "id",
|
|
@@ -46616,7 +46700,7 @@ var init_listdatasets = __esm(() => {
|
|
|
46616
46700
|
updatedById: stringType().optional(),
|
|
46617
46701
|
metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
|
|
46618
46702
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
46619
|
-
updated: dateType().default(() => new Date("2025-
|
|
46703
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
46620
46704
|
}).transform((v2) => {
|
|
46621
46705
|
return remap(v2, {
|
|
46622
46706
|
id: "_id",
|
|
@@ -46721,7 +46805,7 @@ var init_listdatasources = __esm(() => {
|
|
|
46721
46805
|
ListDatasourcesStatus$.outboundSchema = ListDatasourcesStatus$outboundSchema;
|
|
46722
46806
|
})(ListDatasourcesStatus$ ||= {});
|
|
46723
46807
|
ListDatasourcesData$inboundSchema = objectType({
|
|
46724
|
-
_id: stringType().default("
|
|
46808
|
+
_id: stringType().default("01JQRGTRHAKGNH6XBM9B5BTXNT"),
|
|
46725
46809
|
display_name: stringType(),
|
|
46726
46810
|
description: stringType().optional(),
|
|
46727
46811
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -46744,7 +46828,7 @@ var init_listdatasources = __esm(() => {
|
|
|
46744
46828
|
});
|
|
46745
46829
|
});
|
|
46746
46830
|
ListDatasourcesData$outboundSchema = objectType({
|
|
46747
|
-
id: stringType().default("
|
|
46831
|
+
id: stringType().default("01JQRGTRHAKGNH6XBM9B5BTXNT"),
|
|
46748
46832
|
displayName: stringType(),
|
|
46749
46833
|
description: stringType().optional(),
|
|
46750
46834
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -47835,7 +47919,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
47835
47919
|
created_by_id: stringType().optional(),
|
|
47836
47920
|
updated_by_id: stringType().optional(),
|
|
47837
47921
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
47838
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
47922
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
47839
47923
|
}).transform((v2) => {
|
|
47840
47924
|
return remap(v2, {
|
|
47841
47925
|
_id: "id",
|
|
@@ -47856,7 +47940,7 @@ var init_retrievedatapoint = __esm(() => {
|
|
|
47856
47940
|
createdById: stringType().optional(),
|
|
47857
47941
|
updatedById: stringType().optional(),
|
|
47858
47942
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
47859
|
-
updated: dateType().default(() => new Date("2025-
|
|
47943
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
47860
47944
|
}).transform((v2) => {
|
|
47861
47945
|
return remap(v2, {
|
|
47862
47946
|
id: "_id",
|
|
@@ -47927,7 +48011,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
47927
48011
|
updated_by_id: stringType().optional(),
|
|
47928
48012
|
metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
|
|
47929
48013
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
47930
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
48014
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
47931
48015
|
}).transform((v2) => {
|
|
47932
48016
|
return remap(v2, {
|
|
47933
48017
|
_id: "id",
|
|
@@ -47947,7 +48031,7 @@ var init_retrievedataset = __esm(() => {
|
|
|
47947
48031
|
updatedById: stringType().optional(),
|
|
47948
48032
|
metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
|
|
47949
48033
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
47950
|
-
updated: dateType().default(() => new Date("2025-
|
|
48034
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
47951
48035
|
}).transform((v2) => {
|
|
47952
48036
|
return remap(v2, {
|
|
47953
48037
|
id: "_id",
|
|
@@ -48005,7 +48089,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
48005
48089
|
RetrieveDatasourceStatus$.outboundSchema = RetrieveDatasourceStatus$outboundSchema;
|
|
48006
48090
|
})(RetrieveDatasourceStatus$ ||= {});
|
|
48007
48091
|
RetrieveDatasourceResponseBody$inboundSchema = objectType({
|
|
48008
|
-
_id: stringType().default("
|
|
48092
|
+
_id: stringType().default("01JQRGTRHBFWGJ9B5H1APFV8RB"),
|
|
48009
48093
|
display_name: stringType(),
|
|
48010
48094
|
description: stringType().optional(),
|
|
48011
48095
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -48028,7 +48112,7 @@ var init_retrievedatasource = __esm(() => {
|
|
|
48028
48112
|
});
|
|
48029
48113
|
});
|
|
48030
48114
|
RetrieveDatasourceResponseBody$outboundSchema = objectType({
|
|
48031
|
-
id: stringType().default("
|
|
48115
|
+
id: stringType().default("01JQRGTRHBFWGJ9B5H1APFV8RB"),
|
|
48032
48116
|
displayName: stringType(),
|
|
48033
48117
|
description: stringType().optional(),
|
|
48034
48118
|
status: RetrieveDatasourceStatus$outboundSchema,
|
|
@@ -49092,7 +49176,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
49092
49176
|
created_by_id: stringType().optional(),
|
|
49093
49177
|
updated_by_id: stringType().optional(),
|
|
49094
49178
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
49095
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
49179
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
49096
49180
|
}).transform((v2) => {
|
|
49097
49181
|
return remap(v2, {
|
|
49098
49182
|
_id: "id",
|
|
@@ -49113,7 +49197,7 @@ var init_updatedatapoint = __esm(() => {
|
|
|
49113
49197
|
createdById: stringType().optional(),
|
|
49114
49198
|
updatedById: stringType().optional(),
|
|
49115
49199
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
49116
|
-
updated: dateType().default(() => new Date("2025-
|
|
49200
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
49117
49201
|
}).transform((v2) => {
|
|
49118
49202
|
return remap(v2, {
|
|
49119
49203
|
id: "_id",
|
|
@@ -49214,7 +49298,7 @@ var init_updatedataset = __esm(() => {
|
|
|
49214
49298
|
parent_id: stringType().optional(),
|
|
49215
49299
|
version: stringType().optional(),
|
|
49216
49300
|
created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
49217
|
-
updated: stringType().datetime({ offset: true }).default("2025-
|
|
49301
|
+
updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
|
|
49218
49302
|
}).transform((v2) => {
|
|
49219
49303
|
return remap(v2, {
|
|
49220
49304
|
_id: "id",
|
|
@@ -49237,7 +49321,7 @@ var init_updatedataset = __esm(() => {
|
|
|
49237
49321
|
parentId: stringType().optional(),
|
|
49238
49322
|
version: stringType().optional(),
|
|
49239
49323
|
created: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
49240
|
-
updated: dateType().default(() => new Date("2025-
|
|
49324
|
+
updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
|
|
49241
49325
|
}).transform((v2) => {
|
|
49242
49326
|
return remap(v2, {
|
|
49243
49327
|
id: "_id",
|
|
@@ -49255,6 +49339,120 @@ var init_updatedataset = __esm(() => {
|
|
|
49255
49339
|
})(UpdateDatasetResponseBody$ ||= {});
|
|
49256
49340
|
});
|
|
49257
49341
|
|
|
49342
|
+
// src/models/operations/updatedatasource.ts
|
|
49343
|
+
var UpdateDatasourceStatus, UpdateDatasourceRequestBody$inboundSchema, UpdateDatasourceRequestBody$outboundSchema, UpdateDatasourceRequestBody$, UpdateDatasourceRequest$inboundSchema, UpdateDatasourceRequest$outboundSchema, UpdateDatasourceRequest$, UpdateDatasourceStatus$inboundSchema, UpdateDatasourceStatus$outboundSchema, UpdateDatasourceStatus$, UpdateDatasourceResponseBody$inboundSchema, UpdateDatasourceResponseBody$outboundSchema, UpdateDatasourceResponseBody$;
|
|
49344
|
+
var init_updatedatasource = __esm(() => {
|
|
49345
|
+
init_lib();
|
|
49346
|
+
init_primitives();
|
|
49347
|
+
UpdateDatasourceStatus = {
|
|
49348
|
+
Pending: "pending",
|
|
49349
|
+
Processing: "processing",
|
|
49350
|
+
Completed: "completed",
|
|
49351
|
+
Failed: "failed",
|
|
49352
|
+
Queued: "queued"
|
|
49353
|
+
};
|
|
49354
|
+
UpdateDatasourceRequestBody$inboundSchema = objectType({
|
|
49355
|
+
display_name: stringType()
|
|
49356
|
+
}).transform((v2) => {
|
|
49357
|
+
return remap(v2, {
|
|
49358
|
+
display_name: "displayName"
|
|
49359
|
+
});
|
|
49360
|
+
});
|
|
49361
|
+
UpdateDatasourceRequestBody$outboundSchema = objectType({
|
|
49362
|
+
displayName: stringType()
|
|
49363
|
+
}).transform((v2) => {
|
|
49364
|
+
return remap(v2, {
|
|
49365
|
+
displayName: "display_name"
|
|
49366
|
+
});
|
|
49367
|
+
});
|
|
49368
|
+
((UpdateDatasourceRequestBody$) => {
|
|
49369
|
+
UpdateDatasourceRequestBody$.inboundSchema = UpdateDatasourceRequestBody$inboundSchema;
|
|
49370
|
+
UpdateDatasourceRequestBody$.outboundSchema = UpdateDatasourceRequestBody$outboundSchema;
|
|
49371
|
+
})(UpdateDatasourceRequestBody$ ||= {});
|
|
49372
|
+
UpdateDatasourceRequest$inboundSchema = objectType({
|
|
49373
|
+
knowledge_id: stringType(),
|
|
49374
|
+
datasource_id: stringType(),
|
|
49375
|
+
RequestBody: lazyType(() => UpdateDatasourceRequestBody$inboundSchema)
|
|
49376
|
+
}).transform((v2) => {
|
|
49377
|
+
return remap(v2, {
|
|
49378
|
+
knowledge_id: "knowledgeId",
|
|
49379
|
+
datasource_id: "datasourceId",
|
|
49380
|
+
RequestBody: "requestBody"
|
|
49381
|
+
});
|
|
49382
|
+
});
|
|
49383
|
+
UpdateDatasourceRequest$outboundSchema = objectType({
|
|
49384
|
+
knowledgeId: stringType(),
|
|
49385
|
+
datasourceId: stringType(),
|
|
49386
|
+
requestBody: lazyType(() => UpdateDatasourceRequestBody$outboundSchema)
|
|
49387
|
+
}).transform((v2) => {
|
|
49388
|
+
return remap(v2, {
|
|
49389
|
+
knowledgeId: "knowledge_id",
|
|
49390
|
+
datasourceId: "datasource_id",
|
|
49391
|
+
requestBody: "RequestBody"
|
|
49392
|
+
});
|
|
49393
|
+
});
|
|
49394
|
+
((UpdateDatasourceRequest$) => {
|
|
49395
|
+
UpdateDatasourceRequest$.inboundSchema = UpdateDatasourceRequest$inboundSchema;
|
|
49396
|
+
UpdateDatasourceRequest$.outboundSchema = UpdateDatasourceRequest$outboundSchema;
|
|
49397
|
+
})(UpdateDatasourceRequest$ ||= {});
|
|
49398
|
+
UpdateDatasourceStatus$inboundSchema = nativeEnumType(UpdateDatasourceStatus);
|
|
49399
|
+
UpdateDatasourceStatus$outboundSchema = UpdateDatasourceStatus$inboundSchema;
|
|
49400
|
+
((UpdateDatasourceStatus$) => {
|
|
49401
|
+
UpdateDatasourceStatus$.inboundSchema = UpdateDatasourceStatus$inboundSchema;
|
|
49402
|
+
UpdateDatasourceStatus$.outboundSchema = UpdateDatasourceStatus$outboundSchema;
|
|
49403
|
+
})(UpdateDatasourceStatus$ ||= {});
|
|
49404
|
+
UpdateDatasourceResponseBody$inboundSchema = objectType({
|
|
49405
|
+
_id: stringType().default("01JQRGTRHCJ0H0AWDXZTGNZCJE"),
|
|
49406
|
+
display_name: stringType(),
|
|
49407
|
+
description: stringType().optional(),
|
|
49408
|
+
status: UpdateDatasourceStatus$inboundSchema,
|
|
49409
|
+
file_id: nullableType(stringType()).optional(),
|
|
49410
|
+
created: stringType(),
|
|
49411
|
+
updated: stringType(),
|
|
49412
|
+
created_by_id: stringType().optional(),
|
|
49413
|
+
update_by_id: stringType().optional(),
|
|
49414
|
+
knowledge_id: stringType(),
|
|
49415
|
+
chunks_count: numberType()
|
|
49416
|
+
}).transform((v2) => {
|
|
49417
|
+
return remap(v2, {
|
|
49418
|
+
_id: "id",
|
|
49419
|
+
display_name: "displayName",
|
|
49420
|
+
file_id: "fileId",
|
|
49421
|
+
created_by_id: "createdById",
|
|
49422
|
+
update_by_id: "updateById",
|
|
49423
|
+
knowledge_id: "knowledgeId",
|
|
49424
|
+
chunks_count: "chunksCount"
|
|
49425
|
+
});
|
|
49426
|
+
});
|
|
49427
|
+
UpdateDatasourceResponseBody$outboundSchema = objectType({
|
|
49428
|
+
id: stringType().default("01JQRGTRHCJ0H0AWDXZTGNZCJE"),
|
|
49429
|
+
displayName: stringType(),
|
|
49430
|
+
description: stringType().optional(),
|
|
49431
|
+
status: UpdateDatasourceStatus$outboundSchema,
|
|
49432
|
+
fileId: nullableType(stringType()).optional(),
|
|
49433
|
+
created: stringType(),
|
|
49434
|
+
updated: stringType(),
|
|
49435
|
+
createdById: stringType().optional(),
|
|
49436
|
+
updateById: stringType().optional(),
|
|
49437
|
+
knowledgeId: stringType(),
|
|
49438
|
+
chunksCount: numberType()
|
|
49439
|
+
}).transform((v2) => {
|
|
49440
|
+
return remap(v2, {
|
|
49441
|
+
id: "_id",
|
|
49442
|
+
displayName: "display_name",
|
|
49443
|
+
fileId: "file_id",
|
|
49444
|
+
createdById: "created_by_id",
|
|
49445
|
+
updateById: "update_by_id",
|
|
49446
|
+
knowledgeId: "knowledge_id",
|
|
49447
|
+
chunksCount: "chunks_count"
|
|
49448
|
+
});
|
|
49449
|
+
});
|
|
49450
|
+
((UpdateDatasourceResponseBody$) => {
|
|
49451
|
+
UpdateDatasourceResponseBody$.inboundSchema = UpdateDatasourceResponseBody$inboundSchema;
|
|
49452
|
+
UpdateDatasourceResponseBody$.outboundSchema = UpdateDatasourceResponseBody$outboundSchema;
|
|
49453
|
+
})(UpdateDatasourceResponseBody$ ||= {});
|
|
49454
|
+
});
|
|
49455
|
+
|
|
49258
49456
|
// src/models/operations/updateknowledge.ts
|
|
49259
49457
|
var UpdateKnowledgeRetrievalType, UpdateKnowledgeKnowledgeRetrievalType, UpdateKnowledgeRetrievalType$inboundSchema, UpdateKnowledgeRetrievalType$outboundSchema, UpdateKnowledgeRetrievalType$, UpdateKnowledgeRerankConfig$inboundSchema, UpdateKnowledgeRerankConfig$outboundSchema, UpdateKnowledgeRerankConfig$, UpdateKnowledgeRetrievalSettings$inboundSchema, UpdateKnowledgeRetrievalSettings$outboundSchema, UpdateKnowledgeRetrievalSettings$, UpdateKnowledgeRequestBody$inboundSchema, UpdateKnowledgeRequestBody$outboundSchema, UpdateKnowledgeRequestBody$, UpdateKnowledgeRequest$inboundSchema, UpdateKnowledgeRequest$outboundSchema, UpdateKnowledgeRequest$, UpdateKnowledgeKnowledgeRetrievalType$inboundSchema, UpdateKnowledgeKnowledgeRetrievalType$outboundSchema, UpdateKnowledgeKnowledgeRetrievalType$, UpdateKnowledgeKnowledgeRerankConfig$inboundSchema, UpdateKnowledgeKnowledgeRerankConfig$outboundSchema, UpdateKnowledgeKnowledgeRerankConfig$, UpdateKnowledgeKnowledgeRetrievalSettings$inboundSchema, UpdateKnowledgeKnowledgeRetrievalSettings$outboundSchema, UpdateKnowledgeKnowledgeRetrievalSettings$, UpdateKnowledgeResponseBody$inboundSchema, UpdateKnowledgeResponseBody$outboundSchema, UpdateKnowledgeResponseBody$;
|
|
49260
49458
|
var init_updateknowledge = __esm(() => {
|
|
@@ -50642,6 +50840,7 @@ var init_operations = __esm(() => {
|
|
|
50642
50840
|
init_filelist();
|
|
50643
50841
|
init_fileupload();
|
|
50644
50842
|
init_getallprompts();
|
|
50843
|
+
init_getonechunk();
|
|
50645
50844
|
init_getoneknowledge();
|
|
50646
50845
|
init_getoneprompt();
|
|
50647
50846
|
init_getpromptversion();
|
|
@@ -50659,6 +50858,7 @@ var init_operations = __esm(() => {
|
|
|
50659
50858
|
init_updatechunk();
|
|
50660
50859
|
init_updatedatapoint();
|
|
50661
50860
|
init_updatedataset();
|
|
50861
|
+
init_updatedatasource();
|
|
50662
50862
|
init_updateknowledge();
|
|
50663
50863
|
init_updateprompt();
|
|
50664
50864
|
});
|
|
@@ -55344,11 +55544,119 @@ Retrieve a knowledge base with the settings.`,
|
|
|
55344
55544
|
};
|
|
55345
55545
|
});
|
|
55346
55546
|
|
|
55347
|
-
// src/funcs/
|
|
55348
|
-
function
|
|
55547
|
+
// src/funcs/knowledgeRetrieveChunk.ts
|
|
55548
|
+
function knowledgeRetrieveChunk(client, request, options) {
|
|
55349
55549
|
return new APIPromise($do34(client, request, options));
|
|
55350
55550
|
}
|
|
55351
55551
|
async function $do34(client, request, options) {
|
|
55552
|
+
const parsed = safeParse(request, (value) => GetOneChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55553
|
+
if (!parsed.ok) {
|
|
55554
|
+
return [parsed, { status: "invalid" }];
|
|
55555
|
+
}
|
|
55556
|
+
const payload = parsed.value;
|
|
55557
|
+
const body = null;
|
|
55558
|
+
const pathParams = {
|
|
55559
|
+
chunk_id: encodeSimple("chunk_id", payload.chunk_id, {
|
|
55560
|
+
explode: false,
|
|
55561
|
+
charEncoding: "percent"
|
|
55562
|
+
}),
|
|
55563
|
+
datasource_id: encodeSimple("datasource_id", payload.datasource_id, {
|
|
55564
|
+
explode: false,
|
|
55565
|
+
charEncoding: "percent"
|
|
55566
|
+
}),
|
|
55567
|
+
knowledge_id: encodeSimple("knowledge_id", payload.knowledge_id, {
|
|
55568
|
+
explode: false,
|
|
55569
|
+
charEncoding: "percent"
|
|
55570
|
+
})
|
|
55571
|
+
};
|
|
55572
|
+
const path = pathToFunc("/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/{chunk_id}")(pathParams);
|
|
55573
|
+
const headers = new Headers(compactMap({
|
|
55574
|
+
Accept: "application/json"
|
|
55575
|
+
}));
|
|
55576
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
55577
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
55578
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55579
|
+
const context = {
|
|
55580
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
55581
|
+
operationID: "GetOneChunk",
|
|
55582
|
+
oAuth2Scopes: [],
|
|
55583
|
+
resolvedSecurity: requestSecurity,
|
|
55584
|
+
securitySource: client._options.apiKey,
|
|
55585
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
55586
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
55587
|
+
};
|
|
55588
|
+
const requestRes = client._createRequest(context, {
|
|
55589
|
+
security: requestSecurity,
|
|
55590
|
+
method: "GET",
|
|
55591
|
+
baseURL: options?.serverURL,
|
|
55592
|
+
path,
|
|
55593
|
+
headers,
|
|
55594
|
+
body,
|
|
55595
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000
|
|
55596
|
+
}, options);
|
|
55597
|
+
if (!requestRes.ok) {
|
|
55598
|
+
return [requestRes, { status: "invalid" }];
|
|
55599
|
+
}
|
|
55600
|
+
const req = requestRes.value;
|
|
55601
|
+
const doResult = await client._do(req, {
|
|
55602
|
+
context,
|
|
55603
|
+
errorCodes: ["4XX", "5XX"],
|
|
55604
|
+
retryConfig: context.retryConfig,
|
|
55605
|
+
retryCodes: context.retryCodes
|
|
55606
|
+
});
|
|
55607
|
+
if (!doResult.ok) {
|
|
55608
|
+
return [doResult, { status: "request-error", request: req }];
|
|
55609
|
+
}
|
|
55610
|
+
const response = doResult.value;
|
|
55611
|
+
const [result] = await match(json(200, GetOneChunkResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
|
|
55612
|
+
if (!result.ok) {
|
|
55613
|
+
return [result, { status: "complete", request: req, response }];
|
|
55614
|
+
}
|
|
55615
|
+
return [result, { status: "complete", request: req, response }];
|
|
55616
|
+
}
|
|
55617
|
+
var init_knowledgeRetrieveChunk = __esm(() => {
|
|
55618
|
+
init_encodings();
|
|
55619
|
+
init_matchers();
|
|
55620
|
+
init_primitives();
|
|
55621
|
+
init_schemas();
|
|
55622
|
+
init_security();
|
|
55623
|
+
init_url();
|
|
55624
|
+
init_operations();
|
|
55625
|
+
init_async();
|
|
55626
|
+
});
|
|
55627
|
+
|
|
55628
|
+
// src/mcp-server/tools/knowledgeRetrieveChunk.ts
|
|
55629
|
+
var args34, tool$knowledgeRetrieveChunk;
|
|
55630
|
+
var init_knowledgeRetrieveChunk2 = __esm(() => {
|
|
55631
|
+
init_knowledgeRetrieveChunk();
|
|
55632
|
+
init_operations();
|
|
55633
|
+
init_tools();
|
|
55634
|
+
args34 = {
|
|
55635
|
+
request: GetOneChunkRequest$inboundSchema
|
|
55636
|
+
};
|
|
55637
|
+
tool$knowledgeRetrieveChunk = {
|
|
55638
|
+
name: "knowledge-retrieve-chunk",
|
|
55639
|
+
description: `Retrieve a chunk`,
|
|
55640
|
+
args: args34,
|
|
55641
|
+
tool: async (client, args35, ctx) => {
|
|
55642
|
+
const [result, apiCall] = await knowledgeRetrieveChunk(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55643
|
+
if (!result.ok) {
|
|
55644
|
+
return {
|
|
55645
|
+
content: [{ type: "text", text: result.error.message }],
|
|
55646
|
+
isError: true
|
|
55647
|
+
};
|
|
55648
|
+
}
|
|
55649
|
+
const value = result.value;
|
|
55650
|
+
return formatResult(value, apiCall);
|
|
55651
|
+
}
|
|
55652
|
+
};
|
|
55653
|
+
});
|
|
55654
|
+
|
|
55655
|
+
// src/funcs/knowledgeRetrieveDatasource.ts
|
|
55656
|
+
function knowledgeRetrieveDatasource(client, request, options) {
|
|
55657
|
+
return new APIPromise($do35(client, request, options));
|
|
55658
|
+
}
|
|
55659
|
+
async function $do35(client, request, options) {
|
|
55352
55660
|
const parsed = safeParse(request, (value) => RetrieveDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55353
55661
|
if (!parsed.ok) {
|
|
55354
55662
|
return [parsed, { status: "invalid" }];
|
|
@@ -55422,20 +55730,20 @@ var init_knowledgeRetrieveDatasource = __esm(() => {
|
|
|
55422
55730
|
});
|
|
55423
55731
|
|
|
55424
55732
|
// src/mcp-server/tools/knowledgeRetrieveDatasource.ts
|
|
55425
|
-
var
|
|
55733
|
+
var args35, tool$knowledgeRetrieveDatasource;
|
|
55426
55734
|
var init_knowledgeRetrieveDatasource2 = __esm(() => {
|
|
55427
55735
|
init_knowledgeRetrieveDatasource();
|
|
55428
55736
|
init_operations();
|
|
55429
55737
|
init_tools();
|
|
55430
|
-
|
|
55738
|
+
args35 = {
|
|
55431
55739
|
request: RetrieveDatasourceRequest$inboundSchema
|
|
55432
55740
|
};
|
|
55433
55741
|
tool$knowledgeRetrieveDatasource = {
|
|
55434
55742
|
name: "knowledge-retrieve-datasource",
|
|
55435
55743
|
description: `Retrieve a datasource`,
|
|
55436
|
-
args:
|
|
55437
|
-
tool: async (client,
|
|
55438
|
-
const [result, apiCall] = await knowledgeRetrieveDatasource(client,
|
|
55744
|
+
args: args35,
|
|
55745
|
+
tool: async (client, args36, ctx) => {
|
|
55746
|
+
const [result, apiCall] = await knowledgeRetrieveDatasource(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55439
55747
|
if (!result.ok) {
|
|
55440
55748
|
return {
|
|
55441
55749
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55450,9 +55758,9 @@ var init_knowledgeRetrieveDatasource2 = __esm(() => {
|
|
|
55450
55758
|
|
|
55451
55759
|
// src/funcs/knowledgeSearch.ts
|
|
55452
55760
|
function knowledgeSearch(client, request, options) {
|
|
55453
|
-
return new APIPromise($
|
|
55761
|
+
return new APIPromise($do36(client, request, options));
|
|
55454
55762
|
}
|
|
55455
|
-
async function $
|
|
55763
|
+
async function $do36(client, request, options) {
|
|
55456
55764
|
const parsed = safeParse(request, (value) => SearchKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55457
55765
|
if (!parsed.ok) {
|
|
55458
55766
|
return [parsed, { status: "invalid" }];
|
|
@@ -55523,20 +55831,20 @@ var init_knowledgeSearch = __esm(() => {
|
|
|
55523
55831
|
});
|
|
55524
55832
|
|
|
55525
55833
|
// src/mcp-server/tools/knowledgeSearch.ts
|
|
55526
|
-
var
|
|
55834
|
+
var args36, tool$knowledgeSearch;
|
|
55527
55835
|
var init_knowledgeSearch2 = __esm(() => {
|
|
55528
55836
|
init_knowledgeSearch();
|
|
55529
55837
|
init_operations();
|
|
55530
55838
|
init_tools();
|
|
55531
|
-
|
|
55839
|
+
args36 = {
|
|
55532
55840
|
request: SearchKnowledgeRequest$inboundSchema
|
|
55533
55841
|
};
|
|
55534
55842
|
tool$knowledgeSearch = {
|
|
55535
55843
|
name: "knowledge-search",
|
|
55536
55844
|
description: `Retrieves the documents used for retrieval`,
|
|
55537
|
-
args:
|
|
55538
|
-
tool: async (client,
|
|
55539
|
-
const [result, apiCall] = await knowledgeSearch(client,
|
|
55845
|
+
args: args36,
|
|
55846
|
+
tool: async (client, args37, ctx) => {
|
|
55847
|
+
const [result, apiCall] = await knowledgeSearch(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55540
55848
|
if (!result.ok) {
|
|
55541
55849
|
return {
|
|
55542
55850
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55551,9 +55859,9 @@ var init_knowledgeSearch2 = __esm(() => {
|
|
|
55551
55859
|
|
|
55552
55860
|
// src/funcs/knowledgeUpdate.ts
|
|
55553
55861
|
function knowledgeUpdate(client, request, options) {
|
|
55554
|
-
return new APIPromise($
|
|
55862
|
+
return new APIPromise($do37(client, request, options));
|
|
55555
55863
|
}
|
|
55556
|
-
async function $
|
|
55864
|
+
async function $do37(client, request, options) {
|
|
55557
55865
|
const parsed = safeParse(request, (value) => UpdateKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55558
55866
|
if (!parsed.ok) {
|
|
55559
55867
|
return [parsed, { status: "invalid" }];
|
|
@@ -55624,20 +55932,20 @@ var init_knowledgeUpdate = __esm(() => {
|
|
|
55624
55932
|
});
|
|
55625
55933
|
|
|
55626
55934
|
// src/mcp-server/tools/knowledgeUpdate.ts
|
|
55627
|
-
var
|
|
55935
|
+
var args37, tool$knowledgeUpdate;
|
|
55628
55936
|
var init_knowledgeUpdate2 = __esm(() => {
|
|
55629
55937
|
init_knowledgeUpdate();
|
|
55630
55938
|
init_operations();
|
|
55631
55939
|
init_tools();
|
|
55632
|
-
|
|
55940
|
+
args37 = {
|
|
55633
55941
|
request: UpdateKnowledgeRequest$inboundSchema
|
|
55634
55942
|
};
|
|
55635
55943
|
tool$knowledgeUpdate = {
|
|
55636
55944
|
name: "knowledge-update",
|
|
55637
55945
|
description: `Updates a knowledge`,
|
|
55638
|
-
args:
|
|
55639
|
-
tool: async (client,
|
|
55640
|
-
const [result, apiCall] = await knowledgeUpdate(client,
|
|
55946
|
+
args: args37,
|
|
55947
|
+
tool: async (client, args38, ctx) => {
|
|
55948
|
+
const [result, apiCall] = await knowledgeUpdate(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55641
55949
|
if (!result.ok) {
|
|
55642
55950
|
return {
|
|
55643
55951
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55652,9 +55960,9 @@ var init_knowledgeUpdate2 = __esm(() => {
|
|
|
55652
55960
|
|
|
55653
55961
|
// src/funcs/knowledgeUpdateChunk.ts
|
|
55654
55962
|
function knowledgeUpdateChunk(client, request, options) {
|
|
55655
|
-
return new APIPromise($
|
|
55963
|
+
return new APIPromise($do38(client, request, options));
|
|
55656
55964
|
}
|
|
55657
|
-
async function $
|
|
55965
|
+
async function $do38(client, request, options) {
|
|
55658
55966
|
const parsed = safeParse(request, (value) => UpdateChunkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55659
55967
|
if (!parsed.ok) {
|
|
55660
55968
|
return [parsed, { status: "invalid" }];
|
|
@@ -55733,20 +56041,125 @@ var init_knowledgeUpdateChunk = __esm(() => {
|
|
|
55733
56041
|
});
|
|
55734
56042
|
|
|
55735
56043
|
// src/mcp-server/tools/knowledgeUpdateChunk.ts
|
|
55736
|
-
var
|
|
56044
|
+
var args38, tool$knowledgeUpdateChunk;
|
|
55737
56045
|
var init_knowledgeUpdateChunk2 = __esm(() => {
|
|
55738
56046
|
init_knowledgeUpdateChunk();
|
|
55739
56047
|
init_operations();
|
|
55740
56048
|
init_tools();
|
|
55741
|
-
|
|
56049
|
+
args38 = {
|
|
55742
56050
|
request: UpdateChunkRequest$inboundSchema
|
|
55743
56051
|
};
|
|
55744
56052
|
tool$knowledgeUpdateChunk = {
|
|
55745
56053
|
name: "knowledge-update-chunk",
|
|
55746
56054
|
description: `Update a chunk`,
|
|
55747
|
-
args:
|
|
55748
|
-
tool: async (client,
|
|
55749
|
-
const [result, apiCall] = await knowledgeUpdateChunk(client,
|
|
56055
|
+
args: args38,
|
|
56056
|
+
tool: async (client, args39, ctx) => {
|
|
56057
|
+
const [result, apiCall] = await knowledgeUpdateChunk(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56058
|
+
if (!result.ok) {
|
|
56059
|
+
return {
|
|
56060
|
+
content: [{ type: "text", text: result.error.message }],
|
|
56061
|
+
isError: true
|
|
56062
|
+
};
|
|
56063
|
+
}
|
|
56064
|
+
const value = result.value;
|
|
56065
|
+
return formatResult(value, apiCall);
|
|
56066
|
+
}
|
|
56067
|
+
};
|
|
56068
|
+
});
|
|
56069
|
+
|
|
56070
|
+
// src/funcs/knowledgeUpdateDatasource.ts
|
|
56071
|
+
function knowledgeUpdateDatasource(client, request, options) {
|
|
56072
|
+
return new APIPromise($do39(client, request, options));
|
|
56073
|
+
}
|
|
56074
|
+
async function $do39(client, request, options) {
|
|
56075
|
+
const parsed = safeParse(request, (value) => UpdateDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56076
|
+
if (!parsed.ok) {
|
|
56077
|
+
return [parsed, { status: "invalid" }];
|
|
56078
|
+
}
|
|
56079
|
+
const payload = parsed.value;
|
|
56080
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
56081
|
+
const pathParams = {
|
|
56082
|
+
datasource_id: encodeSimple("datasource_id", payload.datasource_id, {
|
|
56083
|
+
explode: false,
|
|
56084
|
+
charEncoding: "percent"
|
|
56085
|
+
}),
|
|
56086
|
+
knowledge_id: encodeSimple("knowledge_id", payload.knowledge_id, {
|
|
56087
|
+
explode: false,
|
|
56088
|
+
charEncoding: "percent"
|
|
56089
|
+
})
|
|
56090
|
+
};
|
|
56091
|
+
const path = pathToFunc("/v2/knowledge/{knowledge_id}/datasources/{datasource_id}")(pathParams);
|
|
56092
|
+
const headers = new Headers(compactMap({
|
|
56093
|
+
"Content-Type": "application/json",
|
|
56094
|
+
Accept: "application/json"
|
|
56095
|
+
}));
|
|
56096
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
56097
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
56098
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
56099
|
+
const context = {
|
|
56100
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
56101
|
+
operationID: "UpdateDatasource",
|
|
56102
|
+
oAuth2Scopes: [],
|
|
56103
|
+
resolvedSecurity: requestSecurity,
|
|
56104
|
+
securitySource: client._options.apiKey,
|
|
56105
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
56106
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
56107
|
+
};
|
|
56108
|
+
const requestRes = client._createRequest(context, {
|
|
56109
|
+
security: requestSecurity,
|
|
56110
|
+
method: "PATCH",
|
|
56111
|
+
baseURL: options?.serverURL,
|
|
56112
|
+
path,
|
|
56113
|
+
headers,
|
|
56114
|
+
body,
|
|
56115
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000
|
|
56116
|
+
}, options);
|
|
56117
|
+
if (!requestRes.ok) {
|
|
56118
|
+
return [requestRes, { status: "invalid" }];
|
|
56119
|
+
}
|
|
56120
|
+
const req = requestRes.value;
|
|
56121
|
+
const doResult = await client._do(req, {
|
|
56122
|
+
context,
|
|
56123
|
+
errorCodes: ["4XX", "5XX"],
|
|
56124
|
+
retryConfig: context.retryConfig,
|
|
56125
|
+
retryCodes: context.retryCodes
|
|
56126
|
+
});
|
|
56127
|
+
if (!doResult.ok) {
|
|
56128
|
+
return [doResult, { status: "request-error", request: req }];
|
|
56129
|
+
}
|
|
56130
|
+
const response = doResult.value;
|
|
56131
|
+
const [result] = await match(json(200, UpdateDatasourceResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
|
|
56132
|
+
if (!result.ok) {
|
|
56133
|
+
return [result, { status: "complete", request: req, response }];
|
|
56134
|
+
}
|
|
56135
|
+
return [result, { status: "complete", request: req, response }];
|
|
56136
|
+
}
|
|
56137
|
+
var init_knowledgeUpdateDatasource = __esm(() => {
|
|
56138
|
+
init_encodings();
|
|
56139
|
+
init_matchers();
|
|
56140
|
+
init_primitives();
|
|
56141
|
+
init_schemas();
|
|
56142
|
+
init_security();
|
|
56143
|
+
init_url();
|
|
56144
|
+
init_operations();
|
|
56145
|
+
init_async();
|
|
56146
|
+
});
|
|
56147
|
+
|
|
56148
|
+
// src/mcp-server/tools/knowledgeUpdateDatasource.ts
|
|
56149
|
+
var args39, tool$knowledgeUpdateDatasource;
|
|
56150
|
+
var init_knowledgeUpdateDatasource2 = __esm(() => {
|
|
56151
|
+
init_knowledgeUpdateDatasource();
|
|
56152
|
+
init_operations();
|
|
56153
|
+
init_tools();
|
|
56154
|
+
args39 = {
|
|
56155
|
+
request: UpdateDatasourceRequest$inboundSchema
|
|
56156
|
+
};
|
|
56157
|
+
tool$knowledgeUpdateDatasource = {
|
|
56158
|
+
name: "knowledge-update-datasource",
|
|
56159
|
+
description: `Update a datasource`,
|
|
56160
|
+
args: args39,
|
|
56161
|
+
tool: async (client, args40, ctx) => {
|
|
56162
|
+
const [result, apiCall] = await knowledgeUpdateDatasource(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55750
56163
|
if (!result.ok) {
|
|
55751
56164
|
return {
|
|
55752
56165
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55761,9 +56174,9 @@ var init_knowledgeUpdateChunk2 = __esm(() => {
|
|
|
55761
56174
|
|
|
55762
56175
|
// src/funcs/promptsCreate.ts
|
|
55763
56176
|
function promptsCreate(client, request, options) {
|
|
55764
|
-
return new APIPromise($
|
|
56177
|
+
return new APIPromise($do40(client, request, options));
|
|
55765
56178
|
}
|
|
55766
|
-
async function $
|
|
56179
|
+
async function $do40(client, request, options) {
|
|
55767
56180
|
const parsed = safeParse(request, (value) => CreatePromptRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
55768
56181
|
if (!parsed.ok) {
|
|
55769
56182
|
return [parsed, { status: "invalid" }];
|
|
@@ -55828,20 +56241,20 @@ var init_promptsCreate = __esm(() => {
|
|
|
55828
56241
|
});
|
|
55829
56242
|
|
|
55830
56243
|
// src/mcp-server/tools/promptsCreate.ts
|
|
55831
|
-
var
|
|
56244
|
+
var args40, tool$promptsCreate;
|
|
55832
56245
|
var init_promptsCreate2 = __esm(() => {
|
|
55833
56246
|
init_promptsCreate();
|
|
55834
56247
|
init_operations();
|
|
55835
56248
|
init_tools();
|
|
55836
|
-
|
|
56249
|
+
args40 = {
|
|
55837
56250
|
request: CreatePromptRequestBody$inboundSchema.optional()
|
|
55838
56251
|
};
|
|
55839
56252
|
tool$promptsCreate = {
|
|
55840
56253
|
name: "prompts-create",
|
|
55841
56254
|
description: `Create a prompt`,
|
|
55842
|
-
args:
|
|
55843
|
-
tool: async (client,
|
|
55844
|
-
const [result, apiCall] = await promptsCreate(client,
|
|
56255
|
+
args: args40,
|
|
56256
|
+
tool: async (client, args41, ctx) => {
|
|
56257
|
+
const [result, apiCall] = await promptsCreate(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55845
56258
|
if (!result.ok) {
|
|
55846
56259
|
return {
|
|
55847
56260
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55856,9 +56269,9 @@ var init_promptsCreate2 = __esm(() => {
|
|
|
55856
56269
|
|
|
55857
56270
|
// src/funcs/promptsDelete.ts
|
|
55858
56271
|
function promptsDelete(client, request, options) {
|
|
55859
|
-
return new APIPromise($
|
|
56272
|
+
return new APIPromise($do41(client, request, options));
|
|
55860
56273
|
}
|
|
55861
|
-
async function $
|
|
56274
|
+
async function $do41(client, request, options) {
|
|
55862
56275
|
const parsed = safeParse(request, (value) => DeletePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55863
56276
|
if (!parsed.ok) {
|
|
55864
56277
|
return [parsed, { status: "invalid" }];
|
|
@@ -55929,20 +56342,20 @@ var init_promptsDelete = __esm(() => {
|
|
|
55929
56342
|
});
|
|
55930
56343
|
|
|
55931
56344
|
// src/mcp-server/tools/promptsDelete.ts
|
|
55932
|
-
var
|
|
56345
|
+
var args41, tool$promptsDelete;
|
|
55933
56346
|
var init_promptsDelete2 = __esm(() => {
|
|
55934
56347
|
init_promptsDelete();
|
|
55935
56348
|
init_operations();
|
|
55936
56349
|
init_tools();
|
|
55937
|
-
|
|
56350
|
+
args41 = {
|
|
55938
56351
|
request: DeletePromptRequest$inboundSchema
|
|
55939
56352
|
};
|
|
55940
56353
|
tool$promptsDelete = {
|
|
55941
56354
|
name: "prompts-delete",
|
|
55942
56355
|
description: `Delete a prompt`,
|
|
55943
|
-
args:
|
|
55944
|
-
tool: async (client,
|
|
55945
|
-
const [result, apiCall] = await promptsDelete(client,
|
|
56356
|
+
args: args41,
|
|
56357
|
+
tool: async (client, args42, ctx) => {
|
|
56358
|
+
const [result, apiCall] = await promptsDelete(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55946
56359
|
if (!result.ok) {
|
|
55947
56360
|
return {
|
|
55948
56361
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55956,9 +56369,9 @@ var init_promptsDelete2 = __esm(() => {
|
|
|
55956
56369
|
|
|
55957
56370
|
// src/funcs/promptsGetVersion.ts
|
|
55958
56371
|
function promptsGetVersion(client, request, options) {
|
|
55959
|
-
return new APIPromise($
|
|
56372
|
+
return new APIPromise($do42(client, request, options));
|
|
55960
56373
|
}
|
|
55961
|
-
async function $
|
|
56374
|
+
async function $do42(client, request, options) {
|
|
55962
56375
|
const parsed = safeParse(request, (value) => GetPromptVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55963
56376
|
if (!parsed.ok) {
|
|
55964
56377
|
return [parsed, { status: "invalid" }];
|
|
@@ -56036,12 +56449,12 @@ var init_promptsGetVersion = __esm(() => {
|
|
|
56036
56449
|
});
|
|
56037
56450
|
|
|
56038
56451
|
// src/mcp-server/tools/promptsGetVersion.ts
|
|
56039
|
-
var
|
|
56452
|
+
var args42, tool$promptsGetVersion;
|
|
56040
56453
|
var init_promptsGetVersion2 = __esm(() => {
|
|
56041
56454
|
init_promptsGetVersion();
|
|
56042
56455
|
init_operations();
|
|
56043
56456
|
init_tools();
|
|
56044
|
-
|
|
56457
|
+
args42 = {
|
|
56045
56458
|
request: GetPromptVersionRequest$inboundSchema
|
|
56046
56459
|
};
|
|
56047
56460
|
tool$promptsGetVersion = {
|
|
@@ -56049,9 +56462,9 @@ var init_promptsGetVersion2 = __esm(() => {
|
|
|
56049
56462
|
description: `Retrieve a prompt version
|
|
56050
56463
|
|
|
56051
56464
|
Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
56052
|
-
args:
|
|
56053
|
-
tool: async (client,
|
|
56054
|
-
const [result, apiCall] = await promptsGetVersion(client,
|
|
56465
|
+
args: args42,
|
|
56466
|
+
tool: async (client, args43, ctx) => {
|
|
56467
|
+
const [result, apiCall] = await promptsGetVersion(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56055
56468
|
if (!result.ok) {
|
|
56056
56469
|
return {
|
|
56057
56470
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56066,9 +56479,9 @@ Retrieves a specific version of a prompt by its ID and version ID.`,
|
|
|
56066
56479
|
|
|
56067
56480
|
// src/funcs/promptsList.ts
|
|
56068
56481
|
function promptsList(client, request, options) {
|
|
56069
|
-
return new APIPromise($
|
|
56482
|
+
return new APIPromise($do43(client, request, options));
|
|
56070
56483
|
}
|
|
56071
|
-
async function $
|
|
56484
|
+
async function $do43(client, request, options) {
|
|
56072
56485
|
const parsed = safeParse(request, (value) => GetAllPromptsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56073
56486
|
if (!parsed.ok) {
|
|
56074
56487
|
return [parsed, { status: "invalid" }];
|
|
@@ -56138,12 +56551,12 @@ var init_promptsList = __esm(() => {
|
|
|
56138
56551
|
});
|
|
56139
56552
|
|
|
56140
56553
|
// src/mcp-server/tools/promptsList.ts
|
|
56141
|
-
var
|
|
56554
|
+
var args43, tool$promptsList;
|
|
56142
56555
|
var init_promptsList2 = __esm(() => {
|
|
56143
56556
|
init_promptsList();
|
|
56144
56557
|
init_operations();
|
|
56145
56558
|
init_tools();
|
|
56146
|
-
|
|
56559
|
+
args43 = {
|
|
56147
56560
|
request: GetAllPromptsRequest$inboundSchema.optional()
|
|
56148
56561
|
};
|
|
56149
56562
|
tool$promptsList = {
|
|
@@ -56151,9 +56564,9 @@ var init_promptsList2 = __esm(() => {
|
|
|
56151
56564
|
description: `List all prompts
|
|
56152
56565
|
|
|
56153
56566
|
Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first`,
|
|
56154
|
-
args:
|
|
56155
|
-
tool: async (client,
|
|
56156
|
-
const [result, apiCall] = await promptsList(client,
|
|
56567
|
+
args: args43,
|
|
56568
|
+
tool: async (client, args44, ctx) => {
|
|
56569
|
+
const [result, apiCall] = await promptsList(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56157
56570
|
if (!result.ok) {
|
|
56158
56571
|
return {
|
|
56159
56572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56168,9 +56581,9 @@ Returns a list of your prompts. The prompts are returned sorted by creation date
|
|
|
56168
56581
|
|
|
56169
56582
|
// src/funcs/promptsListVersions.ts
|
|
56170
56583
|
function promptsListVersions(client, request, options) {
|
|
56171
|
-
return new APIPromise($
|
|
56584
|
+
return new APIPromise($do44(client, request, options));
|
|
56172
56585
|
}
|
|
56173
|
-
async function $
|
|
56586
|
+
async function $do44(client, request, options) {
|
|
56174
56587
|
const parsed = safeParse(request, (value) => ListPromptVersionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56175
56588
|
if (!parsed.ok) {
|
|
56176
56589
|
return [parsed, { status: "invalid" }];
|
|
@@ -56246,12 +56659,12 @@ var init_promptsListVersions = __esm(() => {
|
|
|
56246
56659
|
});
|
|
56247
56660
|
|
|
56248
56661
|
// src/mcp-server/tools/promptsListVersions.ts
|
|
56249
|
-
var
|
|
56662
|
+
var args44, tool$promptsListVersions;
|
|
56250
56663
|
var init_promptsListVersions2 = __esm(() => {
|
|
56251
56664
|
init_promptsListVersions();
|
|
56252
56665
|
init_operations();
|
|
56253
56666
|
init_tools();
|
|
56254
|
-
|
|
56667
|
+
args44 = {
|
|
56255
56668
|
request: ListPromptVersionsRequest$inboundSchema
|
|
56256
56669
|
};
|
|
56257
56670
|
tool$promptsListVersions = {
|
|
@@ -56259,9 +56672,9 @@ var init_promptsListVersions2 = __esm(() => {
|
|
|
56259
56672
|
description: `List all prompt versions
|
|
56260
56673
|
|
|
56261
56674
|
Returns a list of your prompt versions. The prompt versions are returned sorted by creation date, with the most recent prompt versions appearing first`,
|
|
56262
|
-
args:
|
|
56263
|
-
tool: async (client,
|
|
56264
|
-
const [result, apiCall] = await promptsListVersions(client,
|
|
56675
|
+
args: args44,
|
|
56676
|
+
tool: async (client, args45, ctx) => {
|
|
56677
|
+
const [result, apiCall] = await promptsListVersions(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56265
56678
|
if (!result.ok) {
|
|
56266
56679
|
return {
|
|
56267
56680
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56276,9 +56689,9 @@ Returns a list of your prompt versions. The prompt versions are returned sorted
|
|
|
56276
56689
|
|
|
56277
56690
|
// src/funcs/promptsRetrieve.ts
|
|
56278
56691
|
function promptsRetrieve(client, request, options) {
|
|
56279
|
-
return new APIPromise($
|
|
56692
|
+
return new APIPromise($do45(client, request, options));
|
|
56280
56693
|
}
|
|
56281
|
-
async function $
|
|
56694
|
+
async function $do45(client, request, options) {
|
|
56282
56695
|
const parsed = safeParse(request, (value) => GetOnePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56283
56696
|
if (!parsed.ok) {
|
|
56284
56697
|
return [parsed, { status: "invalid" }];
|
|
@@ -56348,12 +56761,12 @@ var init_promptsRetrieve = __esm(() => {
|
|
|
56348
56761
|
});
|
|
56349
56762
|
|
|
56350
56763
|
// src/mcp-server/tools/promptsRetrieve.ts
|
|
56351
|
-
var
|
|
56764
|
+
var args45, tool$promptsRetrieve;
|
|
56352
56765
|
var init_promptsRetrieve2 = __esm(() => {
|
|
56353
56766
|
init_promptsRetrieve();
|
|
56354
56767
|
init_operations();
|
|
56355
56768
|
init_tools();
|
|
56356
|
-
|
|
56769
|
+
args45 = {
|
|
56357
56770
|
request: GetOnePromptRequest$inboundSchema
|
|
56358
56771
|
};
|
|
56359
56772
|
tool$promptsRetrieve = {
|
|
@@ -56361,9 +56774,9 @@ var init_promptsRetrieve2 = __esm(() => {
|
|
|
56361
56774
|
description: `Retrieve a prompt
|
|
56362
56775
|
|
|
56363
56776
|
Retrieves a prompt object`,
|
|
56364
|
-
args:
|
|
56365
|
-
tool: async (client,
|
|
56366
|
-
const [result, apiCall] = await promptsRetrieve(client,
|
|
56777
|
+
args: args45,
|
|
56778
|
+
tool: async (client, args46, ctx) => {
|
|
56779
|
+
const [result, apiCall] = await promptsRetrieve(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56367
56780
|
if (!result.ok) {
|
|
56368
56781
|
return {
|
|
56369
56782
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56378,9 +56791,9 @@ Retrieves a prompt object`,
|
|
|
56378
56791
|
|
|
56379
56792
|
// src/funcs/promptsUpdate.ts
|
|
56380
56793
|
function promptsUpdate(client, request, options) {
|
|
56381
|
-
return new APIPromise($
|
|
56794
|
+
return new APIPromise($do46(client, request, options));
|
|
56382
56795
|
}
|
|
56383
|
-
async function $
|
|
56796
|
+
async function $do46(client, request, options) {
|
|
56384
56797
|
const parsed = safeParse(request, (value) => UpdatePromptRequest$outboundSchema.parse(value), "Input validation failed");
|
|
56385
56798
|
if (!parsed.ok) {
|
|
56386
56799
|
return [parsed, { status: "invalid" }];
|
|
@@ -56455,20 +56868,20 @@ var init_promptsUpdate = __esm(() => {
|
|
|
56455
56868
|
});
|
|
56456
56869
|
|
|
56457
56870
|
// src/mcp-server/tools/promptsUpdate.ts
|
|
56458
|
-
var
|
|
56871
|
+
var args46, tool$promptsUpdate;
|
|
56459
56872
|
var init_promptsUpdate2 = __esm(() => {
|
|
56460
56873
|
init_promptsUpdate();
|
|
56461
56874
|
init_operations();
|
|
56462
56875
|
init_tools();
|
|
56463
|
-
|
|
56876
|
+
args46 = {
|
|
56464
56877
|
request: UpdatePromptRequest$inboundSchema
|
|
56465
56878
|
};
|
|
56466
56879
|
tool$promptsUpdate = {
|
|
56467
56880
|
name: "prompts-update",
|
|
56468
56881
|
description: `Update a prompt`,
|
|
56469
|
-
args:
|
|
56470
|
-
tool: async (client,
|
|
56471
|
-
const [result, apiCall] = await promptsUpdate(client,
|
|
56882
|
+
args: args46,
|
|
56883
|
+
tool: async (client, args47, ctx) => {
|
|
56884
|
+
const [result, apiCall] = await promptsUpdate(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56472
56885
|
if (!result.ok) {
|
|
56473
56886
|
return {
|
|
56474
56887
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56483,9 +56896,9 @@ var init_promptsUpdate2 = __esm(() => {
|
|
|
56483
56896
|
|
|
56484
56897
|
// src/funcs/remoteconfigsRetrieve.ts
|
|
56485
56898
|
function remoteconfigsRetrieve(client, request, options) {
|
|
56486
|
-
return new APIPromise($
|
|
56899
|
+
return new APIPromise($do47(client, request, options));
|
|
56487
56900
|
}
|
|
56488
|
-
async function $
|
|
56901
|
+
async function $do47(client, request, options) {
|
|
56489
56902
|
const parsed = safeParse(request, (value) => RemoteConfigsGetConfigRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
56490
56903
|
if (!parsed.ok) {
|
|
56491
56904
|
return [parsed, { status: "invalid" }];
|
|
@@ -56550,20 +56963,20 @@ var init_remoteconfigsRetrieve = __esm(() => {
|
|
|
56550
56963
|
});
|
|
56551
56964
|
|
|
56552
56965
|
// src/mcp-server/tools/remoteconfigsRetrieve.ts
|
|
56553
|
-
var
|
|
56966
|
+
var args47, tool$remoteconfigsRetrieve;
|
|
56554
56967
|
var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
56555
56968
|
init_remoteconfigsRetrieve();
|
|
56556
56969
|
init_operations();
|
|
56557
56970
|
init_tools();
|
|
56558
|
-
|
|
56971
|
+
args47 = {
|
|
56559
56972
|
request: RemoteConfigsGetConfigRequestBody$inboundSchema.optional()
|
|
56560
56973
|
};
|
|
56561
56974
|
tool$remoteconfigsRetrieve = {
|
|
56562
56975
|
name: "remoteconfigs-retrieve",
|
|
56563
56976
|
description: `Retrieve a remote config`,
|
|
56564
|
-
args:
|
|
56565
|
-
tool: async (client,
|
|
56566
|
-
const [result, apiCall] = await remoteconfigsRetrieve(client,
|
|
56977
|
+
args: args47,
|
|
56978
|
+
tool: async (client, args48, ctx) => {
|
|
56979
|
+
const [result, apiCall] = await remoteconfigsRetrieve(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56567
56980
|
if (!result.ok) {
|
|
56568
56981
|
return {
|
|
56569
56982
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -56580,7 +56993,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
|
|
|
56580
56993
|
function createMCPServer(deps) {
|
|
56581
56994
|
const server = new McpServer({
|
|
56582
56995
|
name: "Orq",
|
|
56583
|
-
version: "3.3.0-rc.
|
|
56996
|
+
version: "3.3.0-rc.18"
|
|
56584
56997
|
});
|
|
56585
56998
|
const client = new OrqCore({
|
|
56586
56999
|
apiKey: deps.apiKey,
|
|
@@ -56636,10 +57049,12 @@ function createMCPServer(deps) {
|
|
|
56636
57049
|
tool(tool$knowledgeCreateDatasource);
|
|
56637
57050
|
tool(tool$knowledgeRetrieveDatasource);
|
|
56638
57051
|
tool(tool$knowledgeDeleteDatasource);
|
|
57052
|
+
tool(tool$knowledgeUpdateDatasource);
|
|
56639
57053
|
tool(tool$knowledgeCreateChunks);
|
|
56640
57054
|
tool(tool$knowledgeListChunks);
|
|
56641
57055
|
tool(tool$knowledgeUpdateChunk);
|
|
56642
57056
|
tool(tool$knowledgeDeleteChunk);
|
|
57057
|
+
tool(tool$knowledgeRetrieveChunk);
|
|
56643
57058
|
tool(tool$deploymentsMetricsCreate);
|
|
56644
57059
|
return server;
|
|
56645
57060
|
}
|
|
@@ -56682,10 +57097,12 @@ var init_server2 = __esm(() => {
|
|
|
56682
57097
|
init_knowledgeListChunks2();
|
|
56683
57098
|
init_knowledgeListDatasources2();
|
|
56684
57099
|
init_knowledgeRetrieve2();
|
|
57100
|
+
init_knowledgeRetrieveChunk2();
|
|
56685
57101
|
init_knowledgeRetrieveDatasource2();
|
|
56686
57102
|
init_knowledgeSearch2();
|
|
56687
57103
|
init_knowledgeUpdate2();
|
|
56688
57104
|
init_knowledgeUpdateChunk2();
|
|
57105
|
+
init_knowledgeUpdateDatasource2();
|
|
56689
57106
|
init_promptsCreate2();
|
|
56690
57107
|
init_promptsDelete2();
|
|
56691
57108
|
init_promptsGetVersion2();
|
|
@@ -57903,7 +58320,7 @@ var routes = rn({
|
|
|
57903
58320
|
var app = Ve(routes, {
|
|
57904
58321
|
name: "mcp",
|
|
57905
58322
|
versionInfo: {
|
|
57906
|
-
currentVersion: "3.3.0-rc.
|
|
58323
|
+
currentVersion: "3.3.0-rc.18"
|
|
57907
58324
|
}
|
|
57908
58325
|
});
|
|
57909
58326
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -57911,5 +58328,5 @@ export {
|
|
|
57911
58328
|
app
|
|
57912
58329
|
};
|
|
57913
58330
|
|
|
57914
|
-
//# debugId=
|
|
58331
|
+
//# debugId=7751D665A401FE3E64756E2164756E21
|
|
57915
58332
|
//# sourceMappingURL=mcp-server.js.map
|