@orq-ai/node 3.3.0-rc.16 → 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.
Files changed (99) hide show
  1. package/README.md +4 -0
  2. package/bin/mcp-server.js +555 -130
  3. package/bin/mcp-server.js.map +31 -25
  4. package/docs/sdks/datasets/README.md +6 -0
  5. package/docs/sdks/knowledge/README.md +166 -0
  6. package/docs/sdks/prompts/README.md +6 -0
  7. package/funcs/knowledgeRetrieveChunk.d.ts +13 -0
  8. package/funcs/knowledgeRetrieveChunk.d.ts.map +1 -0
  9. package/funcs/knowledgeRetrieveChunk.js +122 -0
  10. package/funcs/knowledgeRetrieveChunk.js.map +1 -0
  11. package/funcs/knowledgeUpdateDatasource.d.ts +13 -0
  12. package/funcs/knowledgeUpdateDatasource.d.ts.map +1 -0
  13. package/funcs/knowledgeUpdateDatasource.js +119 -0
  14. package/funcs/knowledgeUpdateDatasource.js.map +1 -0
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/server.d.ts.map +1 -1
  20. package/mcp-server/server.js +5 -1
  21. package/mcp-server/server.js.map +1 -1
  22. package/mcp-server/tools/knowledgeRetrieveChunk.d.ts +8 -0
  23. package/mcp-server/tools/knowledgeRetrieveChunk.d.ts.map +1 -0
  24. package/mcp-server/tools/knowledgeRetrieveChunk.js +62 -0
  25. package/mcp-server/tools/knowledgeRetrieveChunk.js.map +1 -0
  26. package/mcp-server/tools/knowledgeUpdateDatasource.d.ts +8 -0
  27. package/mcp-server/tools/knowledgeUpdateDatasource.d.ts.map +1 -0
  28. package/mcp-server/tools/knowledgeUpdateDatasource.js +62 -0
  29. package/mcp-server/tools/knowledgeUpdateDatasource.js.map +1 -0
  30. package/models/operations/bulkcreatedatapoints.js +2 -2
  31. package/models/operations/createchunk.js +2 -2
  32. package/models/operations/createcontact.js +2 -2
  33. package/models/operations/createdataset.js +2 -2
  34. package/models/operations/createdatasetitem.js +2 -2
  35. package/models/operations/createdatasource.js +2 -2
  36. package/models/operations/fileget.js +2 -2
  37. package/models/operations/filelist.js +2 -2
  38. package/models/operations/fileupload.js +2 -2
  39. package/models/operations/getonechunk.d.ts +158 -0
  40. package/models/operations/getonechunk.d.ts.map +1 -0
  41. package/models/operations/getonechunk.js +166 -0
  42. package/models/operations/getonechunk.js.map +1 -0
  43. package/models/operations/index.d.ts +2 -0
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +2 -0
  46. package/models/operations/index.js.map +1 -1
  47. package/models/operations/listdatasetdatapoints.js +2 -2
  48. package/models/operations/listdatasets.js +2 -2
  49. package/models/operations/listdatasources.js +2 -2
  50. package/models/operations/retrievedatapoint.js +2 -2
  51. package/models/operations/retrievedataset.js +2 -2
  52. package/models/operations/retrievedatasource.js +2 -2
  53. package/models/operations/updatedatapoint.js +2 -2
  54. package/models/operations/updatedataset.d.ts +15 -2
  55. package/models/operations/updatedataset.d.ts.map +1 -1
  56. package/models/operations/updatedataset.js +10 -4
  57. package/models/operations/updatedataset.js.map +1 -1
  58. package/models/operations/updatedatasource.d.ts +177 -0
  59. package/models/operations/updatedatasource.d.ts.map +1 -0
  60. package/models/operations/updatedatasource.js +210 -0
  61. package/models/operations/updatedatasource.js.map +1 -0
  62. package/models/operations/updateprompt.d.ts +5 -0
  63. package/models/operations/updateprompt.d.ts.map +1 -1
  64. package/models/operations/updateprompt.js +2 -0
  65. package/models/operations/updateprompt.js.map +1 -1
  66. package/package.json +1 -1
  67. package/sdk/knowledge.d.ts +8 -0
  68. package/sdk/knowledge.d.ts.map +1 -1
  69. package/sdk/knowledge.js +14 -0
  70. package/sdk/knowledge.js.map +1 -1
  71. package/src/funcs/knowledgeRetrieveChunk.ts +167 -0
  72. package/src/funcs/knowledgeUpdateDatasource.ts +164 -0
  73. package/src/lib/config.ts +3 -3
  74. package/src/mcp-server/mcp-server.ts +1 -1
  75. package/src/mcp-server/server.ts +5 -1
  76. package/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  77. package/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  78. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  79. package/src/models/operations/createchunk.ts +2 -2
  80. package/src/models/operations/createcontact.ts +2 -2
  81. package/src/models/operations/createdataset.ts +2 -2
  82. package/src/models/operations/createdatasetitem.ts +2 -2
  83. package/src/models/operations/createdatasource.ts +2 -2
  84. package/src/models/operations/fileget.ts +2 -2
  85. package/src/models/operations/filelist.ts +2 -2
  86. package/src/models/operations/fileupload.ts +2 -2
  87. package/src/models/operations/getonechunk.ts +265 -0
  88. package/src/models/operations/index.ts +2 -0
  89. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  90. package/src/models/operations/listdatasets.ts +2 -2
  91. package/src/models/operations/listdatasources.ts +2 -2
  92. package/src/models/operations/retrievedatapoint.ts +2 -2
  93. package/src/models/operations/retrievedataset.ts +2 -2
  94. package/src/models/operations/retrievedatasource.ts +2 -2
  95. package/src/models/operations/updatedatapoint.ts +2 -2
  96. package/src/models/operations/updatedataset.ts +25 -6
  97. package/src/models/operations/updatedatasource.ts +345 -0
  98. package/src/models/operations/updateprompt.ts +7 -0
  99. 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.16",
34235
- genVersion: "2.563.0",
34236
- userAgent: "speakeasy-sdk/typescript 3.3.0-rc.16 2.563.0 2.0 @orq-ai/node"
34234
+ sdkVersion: "3.3.0-rc.18",
34235
+ genVersion: "2.563.1",
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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("chunk_01JQNQ1F7B1335YYCFKP6RCYAF"),
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("chunk_01JQNQ1F7B1335YYCFKP6RCYAF"),
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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("01JQNQ1F7A1AVCYMKC0B8ZNB25"),
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("01JQNQ1F7A1AVCYMKC0B8ZNB25"),
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-03-31T09:03:04.682Z").transform((v2) => new Date(v2))
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-03-31T09:03:04.682Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:04.682Z").transform((v2) => new Date(v2))
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-03-31T09:03:04.682Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:04.682Z").transform((v2) => new Date(v2))
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-03-31T09:03:04.682Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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("01JQNQ1F78DJZNEY65VZ14X5JT"),
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("01JQNQ1F78DJZNEY65VZ14X5JT"),
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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("01JQNQ1F7902J5G1235AJ2Y6QN"),
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("01JQNQ1F7902J5G1235AJ2Y6QN"),
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-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
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-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
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",
@@ -49136,17 +49220,23 @@ var init_updatedataset = __esm(() => {
49136
49220
  init_lib();
49137
49221
  init_primitives();
49138
49222
  UpdateDatasetRequestBody$inboundSchema = objectType({
49139
- display_name: stringType()
49223
+ display_name: stringType().optional(),
49224
+ project_id: stringType().optional(),
49225
+ path: stringType().optional()
49140
49226
  }).transform((v2) => {
49141
49227
  return remap(v2, {
49142
- display_name: "displayName"
49228
+ display_name: "displayName",
49229
+ project_id: "projectId"
49143
49230
  });
49144
49231
  });
49145
49232
  UpdateDatasetRequestBody$outboundSchema = objectType({
49146
- displayName: stringType()
49233
+ displayName: stringType().optional(),
49234
+ projectId: stringType().optional(),
49235
+ path: stringType().optional()
49147
49236
  }).transform((v2) => {
49148
49237
  return remap(v2, {
49149
- displayName: "display_name"
49238
+ displayName: "display_name",
49239
+ projectId: "project_id"
49150
49240
  });
49151
49241
  });
49152
49242
  ((UpdateDatasetRequestBody$) => {
@@ -49208,7 +49298,7 @@ var init_updatedataset = __esm(() => {
49208
49298
  parent_id: stringType().optional(),
49209
49299
  version: stringType().optional(),
49210
49300
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
49211
- updated: stringType().datetime({ offset: true }).default("2025-03-31T09:03:03.105Z").transform((v2) => new Date(v2))
49301
+ updated: stringType().datetime({ offset: true }).default("2025-04-01T11:12:15.108Z").transform((v2) => new Date(v2))
49212
49302
  }).transform((v2) => {
49213
49303
  return remap(v2, {
49214
49304
  _id: "id",
@@ -49231,7 +49321,7 @@ var init_updatedataset = __esm(() => {
49231
49321
  parentId: stringType().optional(),
49232
49322
  version: stringType().optional(),
49233
49323
  created: dateType().transform((v2) => v2.toISOString()).optional(),
49234
- updated: dateType().default(() => new Date("2025-03-31T09:03:03.105Z")).transform((v2) => v2.toISOString())
49324
+ updated: dateType().default(() => new Date("2025-04-01T11:12:15.108Z")).transform((v2) => v2.toISOString())
49235
49325
  }).transform((v2) => {
49236
49326
  return remap(v2, {
49237
49327
  id: "_id",
@@ -49249,6 +49339,120 @@ var init_updatedataset = __esm(() => {
49249
49339
  })(UpdateDatasetResponseBody$ ||= {});
49250
49340
  });
49251
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
+
49252
49456
  // src/models/operations/updateknowledge.ts
49253
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$;
49254
49458
  var init_updateknowledge = __esm(() => {
@@ -50094,7 +50298,8 @@ var init_updateprompt = __esm(() => {
50094
50298
  display_name: stringType().optional(),
50095
50299
  description: nullableType(stringType()).optional(),
50096
50300
  prompt_config: lazyType(() => UpdatePromptPromptConfig$inboundSchema).optional(),
50097
- metadata: lazyType(() => UpdatePromptMetadata$inboundSchema).optional()
50301
+ metadata: lazyType(() => UpdatePromptMetadata$inboundSchema).optional(),
50302
+ path: stringType().optional()
50098
50303
  }).transform((v2) => {
50099
50304
  return remap(v2, {
50100
50305
  domain_id: "domainId",
@@ -50114,7 +50319,8 @@ var init_updateprompt = __esm(() => {
50114
50319
  displayName: stringType().optional(),
50115
50320
  description: nullableType(stringType()).optional(),
50116
50321
  promptConfig: lazyType(() => UpdatePromptPromptConfig$outboundSchema).optional(),
50117
- metadata: lazyType(() => UpdatePromptMetadata$outboundSchema).optional()
50322
+ metadata: lazyType(() => UpdatePromptMetadata$outboundSchema).optional(),
50323
+ path: stringType().optional()
50118
50324
  }).transform((v2) => {
50119
50325
  return remap(v2, {
50120
50326
  domainId: "domain_id",
@@ -50634,6 +50840,7 @@ var init_operations = __esm(() => {
50634
50840
  init_filelist();
50635
50841
  init_fileupload();
50636
50842
  init_getallprompts();
50843
+ init_getonechunk();
50637
50844
  init_getoneknowledge();
50638
50845
  init_getoneprompt();
50639
50846
  init_getpromptversion();
@@ -50651,6 +50858,7 @@ var init_operations = __esm(() => {
50651
50858
  init_updatechunk();
50652
50859
  init_updatedatapoint();
50653
50860
  init_updatedataset();
50861
+ init_updatedatasource();
50654
50862
  init_updateknowledge();
50655
50863
  init_updateprompt();
50656
50864
  });
@@ -55336,11 +55544,119 @@ Retrieve a knowledge base with the settings.`,
55336
55544
  };
55337
55545
  });
55338
55546
 
55339
- // src/funcs/knowledgeRetrieveDatasource.ts
55340
- function knowledgeRetrieveDatasource(client, request, options) {
55547
+ // src/funcs/knowledgeRetrieveChunk.ts
55548
+ function knowledgeRetrieveChunk(client, request, options) {
55341
55549
  return new APIPromise($do34(client, request, options));
55342
55550
  }
55343
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) {
55344
55660
  const parsed = safeParse(request, (value) => RetrieveDatasourceRequest$outboundSchema.parse(value), "Input validation failed");
55345
55661
  if (!parsed.ok) {
55346
55662
  return [parsed, { status: "invalid" }];
@@ -55414,20 +55730,20 @@ var init_knowledgeRetrieveDatasource = __esm(() => {
55414
55730
  });
55415
55731
 
55416
55732
  // src/mcp-server/tools/knowledgeRetrieveDatasource.ts
55417
- var args34, tool$knowledgeRetrieveDatasource;
55733
+ var args35, tool$knowledgeRetrieveDatasource;
55418
55734
  var init_knowledgeRetrieveDatasource2 = __esm(() => {
55419
55735
  init_knowledgeRetrieveDatasource();
55420
55736
  init_operations();
55421
55737
  init_tools();
55422
- args34 = {
55738
+ args35 = {
55423
55739
  request: RetrieveDatasourceRequest$inboundSchema
55424
55740
  };
55425
55741
  tool$knowledgeRetrieveDatasource = {
55426
55742
  name: "knowledge-retrieve-datasource",
55427
55743
  description: `Retrieve a datasource`,
55428
- args: args34,
55429
- tool: async (client, args35, ctx) => {
55430
- const [result, apiCall] = await knowledgeRetrieveDatasource(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55744
+ args: args35,
55745
+ tool: async (client, args36, ctx) => {
55746
+ const [result, apiCall] = await knowledgeRetrieveDatasource(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55431
55747
  if (!result.ok) {
55432
55748
  return {
55433
55749
  content: [{ type: "text", text: result.error.message }],
@@ -55442,9 +55758,9 @@ var init_knowledgeRetrieveDatasource2 = __esm(() => {
55442
55758
 
55443
55759
  // src/funcs/knowledgeSearch.ts
55444
55760
  function knowledgeSearch(client, request, options) {
55445
- return new APIPromise($do35(client, request, options));
55761
+ return new APIPromise($do36(client, request, options));
55446
55762
  }
55447
- async function $do35(client, request, options) {
55763
+ async function $do36(client, request, options) {
55448
55764
  const parsed = safeParse(request, (value) => SearchKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
55449
55765
  if (!parsed.ok) {
55450
55766
  return [parsed, { status: "invalid" }];
@@ -55515,20 +55831,20 @@ var init_knowledgeSearch = __esm(() => {
55515
55831
  });
55516
55832
 
55517
55833
  // src/mcp-server/tools/knowledgeSearch.ts
55518
- var args35, tool$knowledgeSearch;
55834
+ var args36, tool$knowledgeSearch;
55519
55835
  var init_knowledgeSearch2 = __esm(() => {
55520
55836
  init_knowledgeSearch();
55521
55837
  init_operations();
55522
55838
  init_tools();
55523
- args35 = {
55839
+ args36 = {
55524
55840
  request: SearchKnowledgeRequest$inboundSchema
55525
55841
  };
55526
55842
  tool$knowledgeSearch = {
55527
55843
  name: "knowledge-search",
55528
55844
  description: `Retrieves the documents used for retrieval`,
55529
- args: args35,
55530
- tool: async (client, args36, ctx) => {
55531
- const [result, apiCall] = await knowledgeSearch(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55845
+ args: args36,
55846
+ tool: async (client, args37, ctx) => {
55847
+ const [result, apiCall] = await knowledgeSearch(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55532
55848
  if (!result.ok) {
55533
55849
  return {
55534
55850
  content: [{ type: "text", text: result.error.message }],
@@ -55543,9 +55859,9 @@ var init_knowledgeSearch2 = __esm(() => {
55543
55859
 
55544
55860
  // src/funcs/knowledgeUpdate.ts
55545
55861
  function knowledgeUpdate(client, request, options) {
55546
- return new APIPromise($do36(client, request, options));
55862
+ return new APIPromise($do37(client, request, options));
55547
55863
  }
55548
- async function $do36(client, request, options) {
55864
+ async function $do37(client, request, options) {
55549
55865
  const parsed = safeParse(request, (value) => UpdateKnowledgeRequest$outboundSchema.parse(value), "Input validation failed");
55550
55866
  if (!parsed.ok) {
55551
55867
  return [parsed, { status: "invalid" }];
@@ -55616,20 +55932,20 @@ var init_knowledgeUpdate = __esm(() => {
55616
55932
  });
55617
55933
 
55618
55934
  // src/mcp-server/tools/knowledgeUpdate.ts
55619
- var args36, tool$knowledgeUpdate;
55935
+ var args37, tool$knowledgeUpdate;
55620
55936
  var init_knowledgeUpdate2 = __esm(() => {
55621
55937
  init_knowledgeUpdate();
55622
55938
  init_operations();
55623
55939
  init_tools();
55624
- args36 = {
55940
+ args37 = {
55625
55941
  request: UpdateKnowledgeRequest$inboundSchema
55626
55942
  };
55627
55943
  tool$knowledgeUpdate = {
55628
55944
  name: "knowledge-update",
55629
55945
  description: `Updates a knowledge`,
55630
- args: args36,
55631
- tool: async (client, args37, ctx) => {
55632
- const [result, apiCall] = await knowledgeUpdate(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55946
+ args: args37,
55947
+ tool: async (client, args38, ctx) => {
55948
+ const [result, apiCall] = await knowledgeUpdate(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55633
55949
  if (!result.ok) {
55634
55950
  return {
55635
55951
  content: [{ type: "text", text: result.error.message }],
@@ -55644,9 +55960,9 @@ var init_knowledgeUpdate2 = __esm(() => {
55644
55960
 
55645
55961
  // src/funcs/knowledgeUpdateChunk.ts
55646
55962
  function knowledgeUpdateChunk(client, request, options) {
55647
- return new APIPromise($do37(client, request, options));
55963
+ return new APIPromise($do38(client, request, options));
55648
55964
  }
55649
- async function $do37(client, request, options) {
55965
+ async function $do38(client, request, options) {
55650
55966
  const parsed = safeParse(request, (value) => UpdateChunkRequest$outboundSchema.parse(value), "Input validation failed");
55651
55967
  if (!parsed.ok) {
55652
55968
  return [parsed, { status: "invalid" }];
@@ -55725,20 +56041,125 @@ var init_knowledgeUpdateChunk = __esm(() => {
55725
56041
  });
55726
56042
 
55727
56043
  // src/mcp-server/tools/knowledgeUpdateChunk.ts
55728
- var args37, tool$knowledgeUpdateChunk;
56044
+ var args38, tool$knowledgeUpdateChunk;
55729
56045
  var init_knowledgeUpdateChunk2 = __esm(() => {
55730
56046
  init_knowledgeUpdateChunk();
55731
56047
  init_operations();
55732
56048
  init_tools();
55733
- args37 = {
56049
+ args38 = {
55734
56050
  request: UpdateChunkRequest$inboundSchema
55735
56051
  };
55736
56052
  tool$knowledgeUpdateChunk = {
55737
56053
  name: "knowledge-update-chunk",
55738
56054
  description: `Update a chunk`,
55739
- args: args37,
55740
- tool: async (client, args38, ctx) => {
55741
- const [result, apiCall] = await knowledgeUpdateChunk(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
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();
55742
56163
  if (!result.ok) {
55743
56164
  return {
55744
56165
  content: [{ type: "text", text: result.error.message }],
@@ -55753,9 +56174,9 @@ var init_knowledgeUpdateChunk2 = __esm(() => {
55753
56174
 
55754
56175
  // src/funcs/promptsCreate.ts
55755
56176
  function promptsCreate(client, request, options) {
55756
- return new APIPromise($do38(client, request, options));
56177
+ return new APIPromise($do40(client, request, options));
55757
56178
  }
55758
- async function $do38(client, request, options) {
56179
+ async function $do40(client, request, options) {
55759
56180
  const parsed = safeParse(request, (value) => CreatePromptRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
55760
56181
  if (!parsed.ok) {
55761
56182
  return [parsed, { status: "invalid" }];
@@ -55820,20 +56241,20 @@ var init_promptsCreate = __esm(() => {
55820
56241
  });
55821
56242
 
55822
56243
  // src/mcp-server/tools/promptsCreate.ts
55823
- var args38, tool$promptsCreate;
56244
+ var args40, tool$promptsCreate;
55824
56245
  var init_promptsCreate2 = __esm(() => {
55825
56246
  init_promptsCreate();
55826
56247
  init_operations();
55827
56248
  init_tools();
55828
- args38 = {
56249
+ args40 = {
55829
56250
  request: CreatePromptRequestBody$inboundSchema.optional()
55830
56251
  };
55831
56252
  tool$promptsCreate = {
55832
56253
  name: "prompts-create",
55833
56254
  description: `Create a prompt`,
55834
- args: args38,
55835
- tool: async (client, args39, ctx) => {
55836
- const [result, apiCall] = await promptsCreate(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56255
+ args: args40,
56256
+ tool: async (client, args41, ctx) => {
56257
+ const [result, apiCall] = await promptsCreate(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55837
56258
  if (!result.ok) {
55838
56259
  return {
55839
56260
  content: [{ type: "text", text: result.error.message }],
@@ -55848,9 +56269,9 @@ var init_promptsCreate2 = __esm(() => {
55848
56269
 
55849
56270
  // src/funcs/promptsDelete.ts
55850
56271
  function promptsDelete(client, request, options) {
55851
- return new APIPromise($do39(client, request, options));
56272
+ return new APIPromise($do41(client, request, options));
55852
56273
  }
55853
- async function $do39(client, request, options) {
56274
+ async function $do41(client, request, options) {
55854
56275
  const parsed = safeParse(request, (value) => DeletePromptRequest$outboundSchema.parse(value), "Input validation failed");
55855
56276
  if (!parsed.ok) {
55856
56277
  return [parsed, { status: "invalid" }];
@@ -55921,20 +56342,20 @@ var init_promptsDelete = __esm(() => {
55921
56342
  });
55922
56343
 
55923
56344
  // src/mcp-server/tools/promptsDelete.ts
55924
- var args39, tool$promptsDelete;
56345
+ var args41, tool$promptsDelete;
55925
56346
  var init_promptsDelete2 = __esm(() => {
55926
56347
  init_promptsDelete();
55927
56348
  init_operations();
55928
56349
  init_tools();
55929
- args39 = {
56350
+ args41 = {
55930
56351
  request: DeletePromptRequest$inboundSchema
55931
56352
  };
55932
56353
  tool$promptsDelete = {
55933
56354
  name: "prompts-delete",
55934
56355
  description: `Delete a prompt`,
55935
- args: args39,
55936
- tool: async (client, args40, ctx) => {
55937
- const [result, apiCall] = await promptsDelete(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56356
+ args: args41,
56357
+ tool: async (client, args42, ctx) => {
56358
+ const [result, apiCall] = await promptsDelete(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55938
56359
  if (!result.ok) {
55939
56360
  return {
55940
56361
  content: [{ type: "text", text: result.error.message }],
@@ -55948,9 +56369,9 @@ var init_promptsDelete2 = __esm(() => {
55948
56369
 
55949
56370
  // src/funcs/promptsGetVersion.ts
55950
56371
  function promptsGetVersion(client, request, options) {
55951
- return new APIPromise($do40(client, request, options));
56372
+ return new APIPromise($do42(client, request, options));
55952
56373
  }
55953
- async function $do40(client, request, options) {
56374
+ async function $do42(client, request, options) {
55954
56375
  const parsed = safeParse(request, (value) => GetPromptVersionRequest$outboundSchema.parse(value), "Input validation failed");
55955
56376
  if (!parsed.ok) {
55956
56377
  return [parsed, { status: "invalid" }];
@@ -56028,12 +56449,12 @@ var init_promptsGetVersion = __esm(() => {
56028
56449
  });
56029
56450
 
56030
56451
  // src/mcp-server/tools/promptsGetVersion.ts
56031
- var args40, tool$promptsGetVersion;
56452
+ var args42, tool$promptsGetVersion;
56032
56453
  var init_promptsGetVersion2 = __esm(() => {
56033
56454
  init_promptsGetVersion();
56034
56455
  init_operations();
56035
56456
  init_tools();
56036
- args40 = {
56457
+ args42 = {
56037
56458
  request: GetPromptVersionRequest$inboundSchema
56038
56459
  };
56039
56460
  tool$promptsGetVersion = {
@@ -56041,9 +56462,9 @@ var init_promptsGetVersion2 = __esm(() => {
56041
56462
  description: `Retrieve a prompt version
56042
56463
 
56043
56464
  Retrieves a specific version of a prompt by its ID and version ID.`,
56044
- args: args40,
56045
- tool: async (client, args41, ctx) => {
56046
- const [result, apiCall] = await promptsGetVersion(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56465
+ args: args42,
56466
+ tool: async (client, args43, ctx) => {
56467
+ const [result, apiCall] = await promptsGetVersion(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56047
56468
  if (!result.ok) {
56048
56469
  return {
56049
56470
  content: [{ type: "text", text: result.error.message }],
@@ -56058,9 +56479,9 @@ Retrieves a specific version of a prompt by its ID and version ID.`,
56058
56479
 
56059
56480
  // src/funcs/promptsList.ts
56060
56481
  function promptsList(client, request, options) {
56061
- return new APIPromise($do41(client, request, options));
56482
+ return new APIPromise($do43(client, request, options));
56062
56483
  }
56063
- async function $do41(client, request, options) {
56484
+ async function $do43(client, request, options) {
56064
56485
  const parsed = safeParse(request, (value) => GetAllPromptsRequest$outboundSchema.optional().parse(value), "Input validation failed");
56065
56486
  if (!parsed.ok) {
56066
56487
  return [parsed, { status: "invalid" }];
@@ -56130,12 +56551,12 @@ var init_promptsList = __esm(() => {
56130
56551
  });
56131
56552
 
56132
56553
  // src/mcp-server/tools/promptsList.ts
56133
- var args41, tool$promptsList;
56554
+ var args43, tool$promptsList;
56134
56555
  var init_promptsList2 = __esm(() => {
56135
56556
  init_promptsList();
56136
56557
  init_operations();
56137
56558
  init_tools();
56138
- args41 = {
56559
+ args43 = {
56139
56560
  request: GetAllPromptsRequest$inboundSchema.optional()
56140
56561
  };
56141
56562
  tool$promptsList = {
@@ -56143,9 +56564,9 @@ var init_promptsList2 = __esm(() => {
56143
56564
  description: `List all prompts
56144
56565
 
56145
56566
  Returns a list of your prompts. The prompts are returned sorted by creation date, with the most recent prompts appearing first`,
56146
- args: args41,
56147
- tool: async (client, args42, ctx) => {
56148
- const [result, apiCall] = await promptsList(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56567
+ args: args43,
56568
+ tool: async (client, args44, ctx) => {
56569
+ const [result, apiCall] = await promptsList(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56149
56570
  if (!result.ok) {
56150
56571
  return {
56151
56572
  content: [{ type: "text", text: result.error.message }],
@@ -56160,9 +56581,9 @@ Returns a list of your prompts. The prompts are returned sorted by creation date
56160
56581
 
56161
56582
  // src/funcs/promptsListVersions.ts
56162
56583
  function promptsListVersions(client, request, options) {
56163
- return new APIPromise($do42(client, request, options));
56584
+ return new APIPromise($do44(client, request, options));
56164
56585
  }
56165
- async function $do42(client, request, options) {
56586
+ async function $do44(client, request, options) {
56166
56587
  const parsed = safeParse(request, (value) => ListPromptVersionsRequest$outboundSchema.parse(value), "Input validation failed");
56167
56588
  if (!parsed.ok) {
56168
56589
  return [parsed, { status: "invalid" }];
@@ -56238,12 +56659,12 @@ var init_promptsListVersions = __esm(() => {
56238
56659
  });
56239
56660
 
56240
56661
  // src/mcp-server/tools/promptsListVersions.ts
56241
- var args42, tool$promptsListVersions;
56662
+ var args44, tool$promptsListVersions;
56242
56663
  var init_promptsListVersions2 = __esm(() => {
56243
56664
  init_promptsListVersions();
56244
56665
  init_operations();
56245
56666
  init_tools();
56246
- args42 = {
56667
+ args44 = {
56247
56668
  request: ListPromptVersionsRequest$inboundSchema
56248
56669
  };
56249
56670
  tool$promptsListVersions = {
@@ -56251,9 +56672,9 @@ var init_promptsListVersions2 = __esm(() => {
56251
56672
  description: `List all prompt versions
56252
56673
 
56253
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`,
56254
- args: args42,
56255
- tool: async (client, args43, ctx) => {
56256
- const [result, apiCall] = await promptsListVersions(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56675
+ args: args44,
56676
+ tool: async (client, args45, ctx) => {
56677
+ const [result, apiCall] = await promptsListVersions(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56257
56678
  if (!result.ok) {
56258
56679
  return {
56259
56680
  content: [{ type: "text", text: result.error.message }],
@@ -56268,9 +56689,9 @@ Returns a list of your prompt versions. The prompt versions are returned sorted
56268
56689
 
56269
56690
  // src/funcs/promptsRetrieve.ts
56270
56691
  function promptsRetrieve(client, request, options) {
56271
- return new APIPromise($do43(client, request, options));
56692
+ return new APIPromise($do45(client, request, options));
56272
56693
  }
56273
- async function $do43(client, request, options) {
56694
+ async function $do45(client, request, options) {
56274
56695
  const parsed = safeParse(request, (value) => GetOnePromptRequest$outboundSchema.parse(value), "Input validation failed");
56275
56696
  if (!parsed.ok) {
56276
56697
  return [parsed, { status: "invalid" }];
@@ -56340,12 +56761,12 @@ var init_promptsRetrieve = __esm(() => {
56340
56761
  });
56341
56762
 
56342
56763
  // src/mcp-server/tools/promptsRetrieve.ts
56343
- var args43, tool$promptsRetrieve;
56764
+ var args45, tool$promptsRetrieve;
56344
56765
  var init_promptsRetrieve2 = __esm(() => {
56345
56766
  init_promptsRetrieve();
56346
56767
  init_operations();
56347
56768
  init_tools();
56348
- args43 = {
56769
+ args45 = {
56349
56770
  request: GetOnePromptRequest$inboundSchema
56350
56771
  };
56351
56772
  tool$promptsRetrieve = {
@@ -56353,9 +56774,9 @@ var init_promptsRetrieve2 = __esm(() => {
56353
56774
  description: `Retrieve a prompt
56354
56775
 
56355
56776
  Retrieves a prompt object`,
56356
- args: args43,
56357
- tool: async (client, args44, ctx) => {
56358
- const [result, apiCall] = await promptsRetrieve(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56777
+ args: args45,
56778
+ tool: async (client, args46, ctx) => {
56779
+ const [result, apiCall] = await promptsRetrieve(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56359
56780
  if (!result.ok) {
56360
56781
  return {
56361
56782
  content: [{ type: "text", text: result.error.message }],
@@ -56370,9 +56791,9 @@ Retrieves a prompt object`,
56370
56791
 
56371
56792
  // src/funcs/promptsUpdate.ts
56372
56793
  function promptsUpdate(client, request, options) {
56373
- return new APIPromise($do44(client, request, options));
56794
+ return new APIPromise($do46(client, request, options));
56374
56795
  }
56375
- async function $do44(client, request, options) {
56796
+ async function $do46(client, request, options) {
56376
56797
  const parsed = safeParse(request, (value) => UpdatePromptRequest$outboundSchema.parse(value), "Input validation failed");
56377
56798
  if (!parsed.ok) {
56378
56799
  return [parsed, { status: "invalid" }];
@@ -56447,20 +56868,20 @@ var init_promptsUpdate = __esm(() => {
56447
56868
  });
56448
56869
 
56449
56870
  // src/mcp-server/tools/promptsUpdate.ts
56450
- var args44, tool$promptsUpdate;
56871
+ var args46, tool$promptsUpdate;
56451
56872
  var init_promptsUpdate2 = __esm(() => {
56452
56873
  init_promptsUpdate();
56453
56874
  init_operations();
56454
56875
  init_tools();
56455
- args44 = {
56876
+ args46 = {
56456
56877
  request: UpdatePromptRequest$inboundSchema
56457
56878
  };
56458
56879
  tool$promptsUpdate = {
56459
56880
  name: "prompts-update",
56460
56881
  description: `Update a prompt`,
56461
- args: args44,
56462
- tool: async (client, args45, ctx) => {
56463
- const [result, apiCall] = await promptsUpdate(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56882
+ args: args46,
56883
+ tool: async (client, args47, ctx) => {
56884
+ const [result, apiCall] = await promptsUpdate(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56464
56885
  if (!result.ok) {
56465
56886
  return {
56466
56887
  content: [{ type: "text", text: result.error.message }],
@@ -56475,9 +56896,9 @@ var init_promptsUpdate2 = __esm(() => {
56475
56896
 
56476
56897
  // src/funcs/remoteconfigsRetrieve.ts
56477
56898
  function remoteconfigsRetrieve(client, request, options) {
56478
- return new APIPromise($do45(client, request, options));
56899
+ return new APIPromise($do47(client, request, options));
56479
56900
  }
56480
- async function $do45(client, request, options) {
56901
+ async function $do47(client, request, options) {
56481
56902
  const parsed = safeParse(request, (value) => RemoteConfigsGetConfigRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
56482
56903
  if (!parsed.ok) {
56483
56904
  return [parsed, { status: "invalid" }];
@@ -56542,20 +56963,20 @@ var init_remoteconfigsRetrieve = __esm(() => {
56542
56963
  });
56543
56964
 
56544
56965
  // src/mcp-server/tools/remoteconfigsRetrieve.ts
56545
- var args45, tool$remoteconfigsRetrieve;
56966
+ var args47, tool$remoteconfigsRetrieve;
56546
56967
  var init_remoteconfigsRetrieve2 = __esm(() => {
56547
56968
  init_remoteconfigsRetrieve();
56548
56969
  init_operations();
56549
56970
  init_tools();
56550
- args45 = {
56971
+ args47 = {
56551
56972
  request: RemoteConfigsGetConfigRequestBody$inboundSchema.optional()
56552
56973
  };
56553
56974
  tool$remoteconfigsRetrieve = {
56554
56975
  name: "remoteconfigs-retrieve",
56555
56976
  description: `Retrieve a remote config`,
56556
- args: args45,
56557
- tool: async (client, args46, ctx) => {
56558
- const [result, apiCall] = await remoteconfigsRetrieve(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56977
+ args: args47,
56978
+ tool: async (client, args48, ctx) => {
56979
+ const [result, apiCall] = await remoteconfigsRetrieve(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56559
56980
  if (!result.ok) {
56560
56981
  return {
56561
56982
  content: [{ type: "text", text: result.error.message }],
@@ -56572,7 +56993,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
56572
56993
  function createMCPServer(deps) {
56573
56994
  const server = new McpServer({
56574
56995
  name: "Orq",
56575
- version: "3.3.0-rc.16"
56996
+ version: "3.3.0-rc.18"
56576
56997
  });
56577
56998
  const client = new OrqCore({
56578
56999
  apiKey: deps.apiKey,
@@ -56628,10 +57049,12 @@ function createMCPServer(deps) {
56628
57049
  tool(tool$knowledgeCreateDatasource);
56629
57050
  tool(tool$knowledgeRetrieveDatasource);
56630
57051
  tool(tool$knowledgeDeleteDatasource);
57052
+ tool(tool$knowledgeUpdateDatasource);
56631
57053
  tool(tool$knowledgeCreateChunks);
56632
57054
  tool(tool$knowledgeListChunks);
56633
57055
  tool(tool$knowledgeUpdateChunk);
56634
57056
  tool(tool$knowledgeDeleteChunk);
57057
+ tool(tool$knowledgeRetrieveChunk);
56635
57058
  tool(tool$deploymentsMetricsCreate);
56636
57059
  return server;
56637
57060
  }
@@ -56674,10 +57097,12 @@ var init_server2 = __esm(() => {
56674
57097
  init_knowledgeListChunks2();
56675
57098
  init_knowledgeListDatasources2();
56676
57099
  init_knowledgeRetrieve2();
57100
+ init_knowledgeRetrieveChunk2();
56677
57101
  init_knowledgeRetrieveDatasource2();
56678
57102
  init_knowledgeSearch2();
56679
57103
  init_knowledgeUpdate2();
56680
57104
  init_knowledgeUpdateChunk2();
57105
+ init_knowledgeUpdateDatasource2();
56681
57106
  init_promptsCreate2();
56682
57107
  init_promptsDelete2();
56683
57108
  init_promptsGetVersion2();
@@ -57895,7 +58320,7 @@ var routes = rn({
57895
58320
  var app = Ve(routes, {
57896
58321
  name: "mcp",
57897
58322
  versionInfo: {
57898
- currentVersion: "3.3.0-rc.16"
58323
+ currentVersion: "3.3.0-rc.18"
57899
58324
  }
57900
58325
  });
57901
58326
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -57903,5 +58328,5 @@ export {
57903
58328
  app
57904
58329
  };
57905
58330
 
57906
- //# debugId=E3DC8CCE8EC14AAD64756E2164756E21
58331
+ //# debugId=7751D665A401FE3E64756E2164756E21
57907
58332
  //# sourceMappingURL=mcp-server.js.map