@elqnt/kg 2.0.7 → 2.1.0

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 (53) hide show
  1. package/dist/api/index.d.mts +109 -0
  2. package/dist/api/index.d.ts +109 -0
  3. package/dist/api/index.js +62 -0
  4. package/dist/api/index.js.map +1 -0
  5. package/dist/api/index.mjs +62 -0
  6. package/dist/chunk-55R4PZ5A.mjs +210 -0
  7. package/dist/chunk-55R4PZ5A.mjs.map +1 -0
  8. package/dist/{chunk-2OYIMLE4.js → chunk-67SUELDR.js} +4 -2
  9. package/dist/chunk-67SUELDR.js.map +1 -0
  10. package/dist/chunk-BQZLJ5LD.mjs +577 -0
  11. package/dist/chunk-BQZLJ5LD.mjs.map +1 -0
  12. package/dist/chunk-JSMI4PFC.js +210 -0
  13. package/dist/chunk-JSMI4PFC.js.map +1 -0
  14. package/dist/chunk-KATHAUDG.js +577 -0
  15. package/dist/chunk-KATHAUDG.js.map +1 -0
  16. package/dist/chunk-NJNBEGDB.mjs +2 -0
  17. package/dist/chunk-NJNBEGDB.mjs.map +1 -0
  18. package/dist/{chunk-IXLQ6ZMR.mjs → chunk-RDIQ7HTM.mjs} +3 -1
  19. package/dist/{chunk-IXLQ6ZMR.mjs.map → chunk-RDIQ7HTM.mjs.map} +1 -1
  20. package/dist/{chunk-WEMVDZJ3.js → chunk-UCKE66GB.js} +4 -2
  21. package/dist/chunk-UCKE66GB.js.map +1 -0
  22. package/dist/{chunk-EF7YJ7LL.mjs → chunk-VUSVP6OI.mjs} +3 -1
  23. package/dist/{chunk-EF7YJ7LL.mjs.map → chunk-VUSVP6OI.mjs.map} +1 -1
  24. package/dist/chunk-W4XVBGE7.js +2 -0
  25. package/dist/chunk-W4XVBGE7.js.map +1 -0
  26. package/dist/hooks/index.d.mts +89 -0
  27. package/dist/hooks/index.d.ts +89 -0
  28. package/dist/hooks/index.js +16 -0
  29. package/dist/hooks/index.js.map +1 -0
  30. package/dist/hooks/index.mjs +16 -0
  31. package/dist/hooks/index.mjs.map +1 -0
  32. package/dist/index.d.mts +3 -0
  33. package/dist/index.d.ts +3 -0
  34. package/dist/index.js +73 -4
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +73 -4
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/models/index.js +5 -4
  39. package/dist/models/index.js.map +1 -1
  40. package/dist/models/index.mjs +4 -3
  41. package/dist/models/kg-designer.js +4 -3
  42. package/dist/models/kg-designer.js.map +1 -1
  43. package/dist/models/kg-designer.mjs +2 -1
  44. package/dist/models/kg.js +4 -3
  45. package/dist/models/kg.js.map +1 -1
  46. package/dist/models/kg.mjs +2 -1
  47. package/package.json +23 -11
  48. package/dist/chunk-2OYIMLE4.js.map +0 -1
  49. package/dist/chunk-J3XZF6JO.mjs +0 -1
  50. package/dist/chunk-RDWVE6B2.js +0 -1
  51. package/dist/chunk-RDWVE6B2.js.map +0 -1
  52. package/dist/chunk-WEMVDZJ3.js.map +0 -1
  53. /package/dist/{chunk-J3XZF6JO.mjs.map → api/index.mjs.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../models/kg-designer.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: designer-models.go\n\n/**\n * GraphNodeDefinition represents a node type in the knowledge graph\n */\nexport interface GraphNodeDefinition {\n label: string;\n description: string;\n schema: { [key: string]: any};\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * GraphEdgeDefinition represents an edge type in the knowledge graph\n */\nexport interface GraphEdgeDefinition {\n label: string;\n description: string;\n fromNode: string;\n toNode: string;\n schema: { [key: string]: any};\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * Request/Response types\n */\nexport interface GraphNodeRequest {\n node: GraphNodeDefinition;\n}\nexport interface GraphNodeResponse {\n node?: GraphNodeDefinition;\n nodes?: GraphNodeDefinition[];\n success: boolean;\n error?: string;\n}\nexport interface GraphEdgeRequest {\n edge: GraphEdgeDefinition;\n}\nexport interface GraphEdgeResponse {\n edge?: GraphEdgeDefinition;\n edges?: GraphEdgeDefinition[];\n success: boolean;\n error?: string;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * KG Graph management subjects (multi-graph support)\n */\nexport const KGGraphCreate = \"kg.graph.create\";\nexport const KGGraphUpdate = \"kg.graph.update.*\";\nexport const KGGraphDelete = \"kg.graph.delete.*\";\nexport const KGGraphGet = \"kg.graph.get.*\";\nexport const KGGraphList = \"kg.graph.list\";\n/**\n * KG Designer Node subjects\n */\nexport const KGDesignerNodeCreate = \"kg.designer.node.create\";\nexport const KGDesignerNodeUpdate = \"kg.designer.node.update.*\";\nexport const KGDesignerNodeDelete = \"kg.designer.node.delete.*\";\nexport const KGDesignerNodeGet = \"kg.designer.node.get.*\";\nexport const KGDesignerNodeList = \"kg.designer.node.list\";\n/**\n * KG Designer Edge subjects\n */\nexport const KGDesignerEdgeCreate = \"kg.designer.edge.create\";\nexport const KGDesignerEdgeUpdate = \"kg.designer.edge.update.*\";\nexport const KGDesignerEdgeDelete = \"kg.designer.edge.delete.*\";\nexport const KGDesignerEdgeGet = \"kg.designer.edge.get.*\";\nexport const KGDesignerEdgeList = \"kg.designer.edge.list\";\n/**\n * KG Database subjects\n */\nexport const KGDBCreate = \"kg.db.create\";\n/**\n * KG Document subjects\n */\nexport const KGDocumentDelete = \"kg_ingest.document.delete\";\n/**\n * KG Sync Job subjects\n */\nexport const KGSyncJobUpdate = \"kg.sync.job.update\";\nexport const KGSyncJobList = \"kg.sync.job.list\";\n/**\n * KG Optimization subjects\n */\nexport const KGGraphOptimize = \"kg.graph.optimize\";\n/**\n * Synchronous ingest subjects (bypass JetStream for direct ClickHouse insertion)\n * Use kg.sync.* pattern to avoid overlap with kg.ingest.> JetStream stream\n */\nexport const KGIngestNodeSync = \"kg.sync.node\";\nexport const KGIngestBatchSync = \"kg.sync.batch\";\n"],"mappings":";AAuDO,IAAM,gBAAgB;AACtB,IAAM,gBAAgB;AACtB,IAAM,gBAAgB;AACtB,IAAM,aAAa;AACnB,IAAM,cAAc;AAIpB,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,oBAAoB;AAC1B,IAAM,qBAAqB;AAI3B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,oBAAoB;AAC1B,IAAM,qBAAqB;AAI3B,IAAM,aAAa;AAInB,IAAM,mBAAmB;AAIzB,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AAItB,IAAM,kBAAkB;AAKxB,IAAM,mBAAmB;AACzB,IAAM,oBAAoB;","names":[]}
1
+ {"version":3,"sources":["../models/kg-designer.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\n\n//////////\n// source: designer-models.go\n\n/**\n * GraphNodeDefinition represents a node type in the knowledge graph\n */\nexport interface GraphNodeDefinition {\n label: string;\n description: string;\n schema: { [key: string]: any};\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * GraphEdgeDefinition represents an edge type in the knowledge graph\n */\nexport interface GraphEdgeDefinition {\n label: string;\n description: string;\n fromNode: string;\n toNode: string;\n schema: { [key: string]: any};\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * Request/Response types\n */\nexport interface GraphNodeRequest {\n node: GraphNodeDefinition;\n}\nexport interface GraphNodeResponse {\n node?: GraphNodeDefinition;\n nodes?: GraphNodeDefinition[];\n success: boolean;\n error?: string;\n}\nexport interface GraphEdgeRequest {\n edge: GraphEdgeDefinition;\n}\nexport interface GraphEdgeResponse {\n edge?: GraphEdgeDefinition;\n edges?: GraphEdgeDefinition[];\n success: boolean;\n error?: string;\n}\n\n//////////\n// source: subjects.go\n\n/**\n * KG Graph management subjects (multi-graph support)\n */\nexport const KGGraphCreate = \"kg.graph.create\";\nexport const KGGraphUpdate = \"kg.graph.update.*\";\nexport const KGGraphDelete = \"kg.graph.delete.*\";\nexport const KGGraphGet = \"kg.graph.get.*\";\nexport const KGGraphList = \"kg.graph.list\";\n/**\n * KG Designer Node subjects\n */\nexport const KGDesignerNodeCreate = \"kg.designer.node.create\";\nexport const KGDesignerNodeUpdate = \"kg.designer.node.update.*\";\nexport const KGDesignerNodeDelete = \"kg.designer.node.delete.*\";\nexport const KGDesignerNodeGet = \"kg.designer.node.get.*\";\nexport const KGDesignerNodeList = \"kg.designer.node.list\";\n/**\n * KG Designer Edge subjects\n */\nexport const KGDesignerEdgeCreate = \"kg.designer.edge.create\";\nexport const KGDesignerEdgeUpdate = \"kg.designer.edge.update.*\";\nexport const KGDesignerEdgeDelete = \"kg.designer.edge.delete.*\";\nexport const KGDesignerEdgeGet = \"kg.designer.edge.get.*\";\nexport const KGDesignerEdgeList = \"kg.designer.edge.list\";\n/**\n * KG Database subjects\n */\nexport const KGDBCreate = \"kg.db.create\";\n/**\n * KG Document subjects\n */\nexport const KGDocumentDelete = \"kg_ingest.document.delete\";\n/**\n * KG Sync Job subjects\n */\nexport const KGSyncJobUpdate = \"kg.sync.job.update\";\nexport const KGSyncJobList = \"kg.sync.job.list\";\n/**\n * KG Optimization subjects\n */\nexport const KGGraphOptimize = \"kg.graph.optimize\";\n/**\n * Synchronous ingest subjects (bypass JetStream for direct ClickHouse insertion)\n * Use kg.sync.* pattern to avoid overlap with kg.ingest.> JetStream stream\n */\nexport const KGIngestNodeSync = \"kg.sync.node\";\nexport const KGIngestBatchSync = \"kg.sync.batch\";\n"],"mappings":";;;AAuDO,IAAM,gBAAgB;AACtB,IAAM,gBAAgB;AACtB,IAAM,gBAAgB;AACtB,IAAM,aAAa;AACnB,IAAM,cAAc;AAIpB,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,oBAAoB;AAC1B,IAAM,qBAAqB;AAI3B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,uBAAuB;AAC7B,IAAM,oBAAoB;AAC1B,IAAM,qBAAqB;AAI3B,IAAM,aAAa;AAInB,IAAM,mBAAmB;AAIzB,IAAM,kBAAkB;AACxB,IAAM,gBAAgB;AAItB,IAAM,kBAAkB;AAKxB,IAAM,mBAAmB;AACzB,IAAM,oBAAoB;","names":[]}
@@ -1,4 +1,6 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// models/kg.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+ // models/kg.ts
2
4
  var DuplicatePolicyCreateIf = "createIfNotExist";
3
5
  var DuplicatePolicyIgnore = "ignore";
4
6
  var DuplicatePolicyReplace = "replace";
@@ -36,4 +38,4 @@ var KGRelationshipDirectionOutgoing = "outgoing";
36
38
 
37
39
 
38
40
  exports.DuplicatePolicyCreateIf = DuplicatePolicyCreateIf; exports.DuplicatePolicyIgnore = DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = DuplicatePolicyReplace; exports.DuplicatePolicyFail = DuplicatePolicyFail; exports.DuplicatePolicyCreate = DuplicatePolicyCreate; exports.KGFieldQueryOperatorEqual = KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorNotEqual = KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorGreater = KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorLess = KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorGreaterOrEqual = KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorLessOrEqual = KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorSimilar = KGFieldQueryOperatorSimilar; exports.KGFieldQueryOperatorIn = KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorArrayContains = KGFieldQueryOperatorArrayContains; exports.KGRelationshipDirectionIncoming = KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = KGRelationshipDirectionOutgoing;
39
- //# sourceMappingURL=chunk-WEMVDZJ3.js.map
41
+ //# sourceMappingURL=chunk-UCKE66GB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/chunk-UCKE66GB.js","../models/kg.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACA;ACiGO,IAAM,wBAAA,EAA2C,kBAAA;AACjD,IAAM,sBAAA,EAAyC,QAAA;AAC/C,IAAM,uBAAA,EAA0C,SAAA;AAChD,IAAM,oBAAA,EAAuC,MAAA;AAC7C,IAAM,sBAAA,EAAyC,QAAA;AAiC/C,IAAM,0BAAA,EAAkD,IAAA;AACxD,IAAM,6BAAA,EAAqD,KAAA;AAC3D,IAAM,4BAAA,EAAoD,IAAA;AAC1D,IAAM,yBAAA,EAAiD,IAAA;AACvD,IAAM,mCAAA,EAA2D,KAAA;AACjE,IAAM,gCAAA,EAAwD,KAAA;AAC9D,IAAM,yBAAA,EAAiD,MAAA;AACvD,IAAM,4BAAA,EAAoD,SAAA;AAK1D,IAAM,uBAAA,EAA+C,IAAA;AACrD,IAAM,kCAAA,EAA0D,eAAA;AAEhE,IAAM,gCAAA,EAA2D,UAAA;AACjE,IAAM,gCAAA,EAA2D,UAAA;ADpIxE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,klCAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/chunk-UCKE66GB.js","sourcesContent":[null,"// Code generated by tygo. DO NOT EDIT.\nimport { ResponseMetadata } from \"@elqnt/types\";\n\n//////////\n// source: kg-models.go\n\n/**\n * Graph represents a knowledge graph within an organization\n */\nexport interface Graph {\n id: string;\n name: string;\n description: string;\n isDefault: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * CreateGraphRequest is the request to create a new graph\n */\nexport interface CreateGraphRequest {\n id?: string; // Optional: if provided, use as graph ID (must be valid UUID)\n name: string;\n description: string;\n}\n/**\n * CreateGraphResult is the response for creating a graph\n */\nexport interface CreateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * GetGraphResult is the response for getting a single graph\n */\nexport interface GetGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * ListGraphsResult is the response for listing graphs\n */\nexport interface ListGraphsResult {\n graphs?: Graph[];\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * UpdateGraphResult is the response for updating a graph\n */\nexport interface UpdateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * DeleteGraphResult is the response for deleting a graph\n */\nexport interface DeleteGraphResult {\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\nexport interface KGNode {\n id: string;\n label: string;\n fields: { [key: string]: any};\n relationships?: KGEdge[];\n score?: number /* float64 */;\n}\nexport interface KGEdge {\n id: string;\n label: string;\n fields: { [key: string]: any};\n from: string;\n to: string;\n}\n/**\n * KGNodeIngestRequest represents a request to ingest a node into the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGNodeIngestRequest {\n label: string;\n keyField?: string;\n reverseEdgeLabel?: string;\n fields: { [key: string]: any};\n edges?: KGEdgeIngestRequest[];\n duplicatePolicy?: DuplicatePolicy;\n generateEmbeddings?: boolean;\n embeddingsSource?: string;\n embeddingsFields?: string[];\n}\nexport type DuplicatePolicy = string;\nexport const DuplicatePolicyCreateIf: DuplicatePolicy = \"createIfNotExist\";\nexport const DuplicatePolicyIgnore: DuplicatePolicy = \"ignore\";\nexport const DuplicatePolicyReplace: DuplicatePolicy = \"replace\";\nexport const DuplicatePolicyFail: DuplicatePolicy = \"fail\";\nexport const DuplicatePolicyCreate: DuplicatePolicy = \"create\";\nexport interface KGEdgeIngestRequest {\n label: string;\n fields: { [key: string]: any};\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n createReciprocal: boolean;\n reciprocalLabel: string;\n allowEmbeddingsSearch?: boolean;\n}\n/**\n * KGQuery represents a query to the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGQuery {\n label: string;\n fields: KGFieldQuery[];\n limit: number /* int */;\n depth: number /* int */;\n sortBy: string;\n sortOrder: string;\n edges?: KGEdgeQuery[];\n embeddingsSource?: string;\n skipEmbedding?: boolean;\n summaryOnly?: boolean; // Filter out heavy fields (text, embeddings, etc.) for UI performance\n}\nexport interface KGFieldQuery {\n name: string;\n value: any;\n operator: KGFieldQueryOperator;\n}\nexport type KGFieldQueryOperator = string;\nexport const KGFieldQueryOperatorEqual: KGFieldQueryOperator = \"eq\";\nexport const KGFieldQueryOperatorNotEqual: KGFieldQueryOperator = \"neq\";\nexport const KGFieldQueryOperatorGreater: KGFieldQueryOperator = \"gt\";\nexport const KGFieldQueryOperatorLess: KGFieldQueryOperator = \"lt\";\nexport const KGFieldQueryOperatorGreaterOrEqual: KGFieldQueryOperator = \"gte\";\nexport const KGFieldQueryOperatorLessOrEqual: KGFieldQueryOperator = \"lte\";\nexport const KGFieldQueryOperatorLike: KGFieldQueryOperator = \"like\";\nexport const KGFieldQueryOperatorSimilar: KGFieldQueryOperator = \"similar\";\n/**\n * KGFieldQueryOperatorGreaterOrEqual KGFieldQueryOperator = \"gte\"\n * KGFieldQueryOperatorLessOrEqual KGFieldQueryOperator = \"lte\"\n */\nexport const KGFieldQueryOperatorIn: KGFieldQueryOperator = \"in\";\nexport const KGFieldQueryOperatorArrayContains: KGFieldQueryOperator = \"arrayContains\";\nexport type KGRelationshipDirection = string;\nexport const KGRelationshipDirectionIncoming: KGRelationshipDirection = \"incoming\";\nexport const KGRelationshipDirectionOutgoing: KGRelationshipDirection = \"outgoing\";\nexport interface KGEdgeQuery {\n label: string;\n direction: 'incoming' | 'outgoing';\n fields?: { [key: string]: any};\n /**\n * FromLabel string `json:\"fromLabel\"`\n * FromFieldKey string `json:\"fromFieldKey\"`\n * FromValue interface{} `json:\"fromValue\"`\n */\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n}\nexport interface KGQueryResult {\n nodes: KGNode[];\n edges: KGEdge[];\n}\nexport interface KGLabelInfo {\n label: string;\n count: number /* uint64 */;\n}\nexport interface KGPropertyInfo {\n property: string;\n count: number /* uint64 */;\n}\nexport interface KGPLabelSchema {\n label: string;\n keys: string[];\n}\nexport interface KGArticle {\n id: string;\n title: string;\n content: string;\n lang?: string;\n docUrl?: string;\n paragraphs?: string;\n}\nexport interface KGPropertyFilter {\n property: string;\n value: string;\n}\nexport interface KGPropertyFilterRequest {\n label: string;\n filters: KGPropertyFilter[];\n}\nexport interface DeleteDocumentRequest {\n documentId: string;\n}\nexport interface DeleteDocumentResponse {\n success: boolean;\n deletedNodes: { [key: string]: number /* int */};\n totalDeleted: number /* int */;\n error?: string;\n}\n/**\n * KGSyncJob represents a sync job record in the database\n */\nexport interface KGSyncJob {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n updatedAt?: string;\n}\n/**\n * KGSyncJobUpdateRequest is used to insert or update a sync job\n */\nexport interface KGSyncJobUpdateRequest {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n}\nexport interface KGSyncJobUpdateResponse {\n jobId: string;\n metadata: ResponseMetadata;\n}\nexport interface KGSyncJobListResponse {\n jobs: KGSyncJob[];\n metadata: ResponseMetadata;\n}\n/**\n * KGSyncJobListRequest is used to list sync jobs with filters\n */\nexport interface KGSyncJobListRequest {\n limit?: number /* int */;\n offset?: number /* int */;\n startFrom?: string;\n endTo?: string;\n}\n/**\n * KGSyncIngestResponse is the response for synchronous single node ingestion\n */\nexport interface KGSyncIngestResponse {\n success: boolean;\n nodeId?: string;\n error?: string;\n metadata: ResponseMetadata;\n}\n/**\n * KGBatchSyncIngestResponse is the response for synchronous batch node ingestion\n */\nexport interface KGBatchSyncIngestResponse {\n success: boolean;\n ingestedCount: number /* int */;\n nodeIds?: string[];\n errors?: string[];\n metadata: ResponseMetadata;\n}\n"]}
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // models/kg.ts
2
4
  var DuplicatePolicyCreateIf = "createIfNotExist";
3
5
  var DuplicatePolicyIgnore = "ignore";
@@ -36,4 +38,4 @@ export {
36
38
  KGRelationshipDirectionIncoming,
37
39
  KGRelationshipDirectionOutgoing
38
40
  };
39
- //# sourceMappingURL=chunk-EF7YJ7LL.mjs.map
41
+ //# sourceMappingURL=chunk-VUSVP6OI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../models/kg.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { ResponseMetadata } from \"@elqnt/types\";\n\n//////////\n// source: kg-models.go\n\n/**\n * Graph represents a knowledge graph within an organization\n */\nexport interface Graph {\n id: string;\n name: string;\n description: string;\n isDefault: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * CreateGraphRequest is the request to create a new graph\n */\nexport interface CreateGraphRequest {\n id?: string; // Optional: if provided, use as graph ID (must be valid UUID)\n name: string;\n description: string;\n}\n/**\n * CreateGraphResult is the response for creating a graph\n */\nexport interface CreateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * GetGraphResult is the response for getting a single graph\n */\nexport interface GetGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * ListGraphsResult is the response for listing graphs\n */\nexport interface ListGraphsResult {\n graphs?: Graph[];\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * UpdateGraphResult is the response for updating a graph\n */\nexport interface UpdateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * DeleteGraphResult is the response for deleting a graph\n */\nexport interface DeleteGraphResult {\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\nexport interface KGNode {\n id: string;\n label: string;\n fields: { [key: string]: any};\n relationships?: KGEdge[];\n score?: number /* float64 */;\n}\nexport interface KGEdge {\n id: string;\n label: string;\n fields: { [key: string]: any};\n from: string;\n to: string;\n}\n/**\n * KGNodeIngestRequest represents a request to ingest a node into the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGNodeIngestRequest {\n label: string;\n keyField?: string;\n reverseEdgeLabel?: string;\n fields: { [key: string]: any};\n edges?: KGEdgeIngestRequest[];\n duplicatePolicy?: DuplicatePolicy;\n generateEmbeddings?: boolean;\n embeddingsSource?: string;\n embeddingsFields?: string[];\n}\nexport type DuplicatePolicy = string;\nexport const DuplicatePolicyCreateIf: DuplicatePolicy = \"createIfNotExist\";\nexport const DuplicatePolicyIgnore: DuplicatePolicy = \"ignore\";\nexport const DuplicatePolicyReplace: DuplicatePolicy = \"replace\";\nexport const DuplicatePolicyFail: DuplicatePolicy = \"fail\";\nexport const DuplicatePolicyCreate: DuplicatePolicy = \"create\";\nexport interface KGEdgeIngestRequest {\n label: string;\n fields: { [key: string]: any};\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n createReciprocal: boolean;\n reciprocalLabel: string;\n allowEmbeddingsSearch?: boolean;\n}\n/**\n * KGQuery represents a query to the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGQuery {\n label: string;\n fields: KGFieldQuery[];\n limit: number /* int */;\n depth: number /* int */;\n sortBy: string;\n sortOrder: string;\n edges?: KGEdgeQuery[];\n embeddingsSource?: string;\n skipEmbedding?: boolean;\n summaryOnly?: boolean; // Filter out heavy fields (text, embeddings, etc.) for UI performance\n}\nexport interface KGFieldQuery {\n name: string;\n value: any;\n operator: KGFieldQueryOperator;\n}\nexport type KGFieldQueryOperator = string;\nexport const KGFieldQueryOperatorEqual: KGFieldQueryOperator = \"eq\";\nexport const KGFieldQueryOperatorNotEqual: KGFieldQueryOperator = \"neq\";\nexport const KGFieldQueryOperatorGreater: KGFieldQueryOperator = \"gt\";\nexport const KGFieldQueryOperatorLess: KGFieldQueryOperator = \"lt\";\nexport const KGFieldQueryOperatorGreaterOrEqual: KGFieldQueryOperator = \"gte\";\nexport const KGFieldQueryOperatorLessOrEqual: KGFieldQueryOperator = \"lte\";\nexport const KGFieldQueryOperatorLike: KGFieldQueryOperator = \"like\";\nexport const KGFieldQueryOperatorSimilar: KGFieldQueryOperator = \"similar\";\n/**\n * KGFieldQueryOperatorGreaterOrEqual KGFieldQueryOperator = \"gte\"\n * KGFieldQueryOperatorLessOrEqual KGFieldQueryOperator = \"lte\"\n */\nexport const KGFieldQueryOperatorIn: KGFieldQueryOperator = \"in\";\nexport const KGFieldQueryOperatorArrayContains: KGFieldQueryOperator = \"arrayContains\";\nexport type KGRelationshipDirection = string;\nexport const KGRelationshipDirectionIncoming: KGRelationshipDirection = \"incoming\";\nexport const KGRelationshipDirectionOutgoing: KGRelationshipDirection = \"outgoing\";\nexport interface KGEdgeQuery {\n label: string;\n direction: 'incoming' | 'outgoing';\n fields?: { [key: string]: any};\n /**\n * FromLabel string `json:\"fromLabel\"`\n * FromFieldKey string `json:\"fromFieldKey\"`\n * FromValue interface{} `json:\"fromValue\"`\n */\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n}\nexport interface KGQueryResult {\n nodes: KGNode[];\n edges: KGEdge[];\n}\nexport interface KGLabelInfo {\n label: string;\n count: number /* uint64 */;\n}\nexport interface KGPropertyInfo {\n property: string;\n count: number /* uint64 */;\n}\nexport interface KGPLabelSchema {\n label: string;\n keys: string[];\n}\nexport interface KGArticle {\n id: string;\n title: string;\n content: string;\n lang?: string;\n docUrl?: string;\n paragraphs?: string;\n}\nexport interface KGPropertyFilter {\n property: string;\n value: string;\n}\nexport interface KGPropertyFilterRequest {\n label: string;\n filters: KGPropertyFilter[];\n}\nexport interface DeleteDocumentRequest {\n documentId: string;\n}\nexport interface DeleteDocumentResponse {\n success: boolean;\n deletedNodes: { [key: string]: number /* int */};\n totalDeleted: number /* int */;\n error?: string;\n}\n/**\n * KGSyncJob represents a sync job record in the database\n */\nexport interface KGSyncJob {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n updatedAt?: string;\n}\n/**\n * KGSyncJobUpdateRequest is used to insert or update a sync job\n */\nexport interface KGSyncJobUpdateRequest {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n}\nexport interface KGSyncJobUpdateResponse {\n jobId: string;\n metadata: ResponseMetadata;\n}\nexport interface KGSyncJobListResponse {\n jobs: KGSyncJob[];\n metadata: ResponseMetadata;\n}\n/**\n * KGSyncJobListRequest is used to list sync jobs with filters\n */\nexport interface KGSyncJobListRequest {\n limit?: number /* int */;\n offset?: number /* int */;\n startFrom?: string;\n endTo?: string;\n}\n/**\n * KGSyncIngestResponse is the response for synchronous single node ingestion\n */\nexport interface KGSyncIngestResponse {\n success: boolean;\n nodeId?: string;\n error?: string;\n metadata: ResponseMetadata;\n}\n/**\n * KGBatchSyncIngestResponse is the response for synchronous batch node ingestion\n */\nexport interface KGBatchSyncIngestResponse {\n success: boolean;\n ingestedCount: number /* int */;\n nodeIds?: string[];\n errors?: string[];\n metadata: ResponseMetadata;\n}\n"],"mappings":";AAmGO,IAAM,0BAA2C;AACjD,IAAM,wBAAyC;AAC/C,IAAM,yBAA0C;AAChD,IAAM,sBAAuC;AAC7C,IAAM,wBAAyC;AAiC/C,IAAM,4BAAkD;AACxD,IAAM,+BAAqD;AAC3D,IAAM,8BAAoD;AAC1D,IAAM,2BAAiD;AACvD,IAAM,qCAA2D;AACjE,IAAM,kCAAwD;AAC9D,IAAM,2BAAiD;AACvD,IAAM,8BAAoD;AAK1D,IAAM,yBAA+C;AACrD,IAAM,oCAA0D;AAEhE,IAAM,kCAA2D;AACjE,IAAM,kCAA2D;","names":[]}
1
+ {"version":3,"sources":["../models/kg.ts"],"sourcesContent":["// Code generated by tygo. DO NOT EDIT.\nimport { ResponseMetadata } from \"@elqnt/types\";\n\n//////////\n// source: kg-models.go\n\n/**\n * Graph represents a knowledge graph within an organization\n */\nexport interface Graph {\n id: string;\n name: string;\n description: string;\n isDefault: boolean;\n createdAt: string /* RFC3339 */;\n updatedAt: string /* RFC3339 */;\n}\n/**\n * CreateGraphRequest is the request to create a new graph\n */\nexport interface CreateGraphRequest {\n id?: string; // Optional: if provided, use as graph ID (must be valid UUID)\n name: string;\n description: string;\n}\n/**\n * CreateGraphResult is the response for creating a graph\n */\nexport interface CreateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * GetGraphResult is the response for getting a single graph\n */\nexport interface GetGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * ListGraphsResult is the response for listing graphs\n */\nexport interface ListGraphsResult {\n graphs?: Graph[];\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * UpdateGraphResult is the response for updating a graph\n */\nexport interface UpdateGraphResult {\n graph?: Graph;\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\n/**\n * DeleteGraphResult is the response for deleting a graph\n */\nexport interface DeleteGraphResult {\n success: boolean;\n error?: string;\n metadata?: ResponseMetadata;\n}\nexport interface KGNode {\n id: string;\n label: string;\n fields: { [key: string]: any};\n relationships?: KGEdge[];\n score?: number /* float64 */;\n}\nexport interface KGEdge {\n id: string;\n label: string;\n fields: { [key: string]: any};\n from: string;\n to: string;\n}\n/**\n * KGNodeIngestRequest represents a request to ingest a node into the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGNodeIngestRequest {\n label: string;\n keyField?: string;\n reverseEdgeLabel?: string;\n fields: { [key: string]: any};\n edges?: KGEdgeIngestRequest[];\n duplicatePolicy?: DuplicatePolicy;\n generateEmbeddings?: boolean;\n embeddingsSource?: string;\n embeddingsFields?: string[];\n}\nexport type DuplicatePolicy = string;\nexport const DuplicatePolicyCreateIf: DuplicatePolicy = \"createIfNotExist\";\nexport const DuplicatePolicyIgnore: DuplicatePolicy = \"ignore\";\nexport const DuplicatePolicyReplace: DuplicatePolicy = \"replace\";\nexport const DuplicatePolicyFail: DuplicatePolicy = \"fail\";\nexport const DuplicatePolicyCreate: DuplicatePolicy = \"create\";\nexport interface KGEdgeIngestRequest {\n label: string;\n fields: { [key: string]: any};\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n createReciprocal: boolean;\n reciprocalLabel: string;\n allowEmbeddingsSearch?: boolean;\n}\n/**\n * KGQuery represents a query to the knowledge graph.\n * Note: graphId should be passed via NATS header, not in the body.\n */\nexport interface KGQuery {\n label: string;\n fields: KGFieldQuery[];\n limit: number /* int */;\n depth: number /* int */;\n sortBy: string;\n sortOrder: string;\n edges?: KGEdgeQuery[];\n embeddingsSource?: string;\n skipEmbedding?: boolean;\n summaryOnly?: boolean; // Filter out heavy fields (text, embeddings, etc.) for UI performance\n}\nexport interface KGFieldQuery {\n name: string;\n value: any;\n operator: KGFieldQueryOperator;\n}\nexport type KGFieldQueryOperator = string;\nexport const KGFieldQueryOperatorEqual: KGFieldQueryOperator = \"eq\";\nexport const KGFieldQueryOperatorNotEqual: KGFieldQueryOperator = \"neq\";\nexport const KGFieldQueryOperatorGreater: KGFieldQueryOperator = \"gt\";\nexport const KGFieldQueryOperatorLess: KGFieldQueryOperator = \"lt\";\nexport const KGFieldQueryOperatorGreaterOrEqual: KGFieldQueryOperator = \"gte\";\nexport const KGFieldQueryOperatorLessOrEqual: KGFieldQueryOperator = \"lte\";\nexport const KGFieldQueryOperatorLike: KGFieldQueryOperator = \"like\";\nexport const KGFieldQueryOperatorSimilar: KGFieldQueryOperator = \"similar\";\n/**\n * KGFieldQueryOperatorGreaterOrEqual KGFieldQueryOperator = \"gte\"\n * KGFieldQueryOperatorLessOrEqual KGFieldQueryOperator = \"lte\"\n */\nexport const KGFieldQueryOperatorIn: KGFieldQueryOperator = \"in\";\nexport const KGFieldQueryOperatorArrayContains: KGFieldQueryOperator = \"arrayContains\";\nexport type KGRelationshipDirection = string;\nexport const KGRelationshipDirectionIncoming: KGRelationshipDirection = \"incoming\";\nexport const KGRelationshipDirectionOutgoing: KGRelationshipDirection = \"outgoing\";\nexport interface KGEdgeQuery {\n label: string;\n direction: 'incoming' | 'outgoing';\n fields?: { [key: string]: any};\n /**\n * FromLabel string `json:\"fromLabel\"`\n * FromFieldKey string `json:\"fromFieldKey\"`\n * FromValue interface{} `json:\"fromValue\"`\n */\n toLabel: string;\n toFieldKey: string;\n toFieldValue: any;\n}\nexport interface KGQueryResult {\n nodes: KGNode[];\n edges: KGEdge[];\n}\nexport interface KGLabelInfo {\n label: string;\n count: number /* uint64 */;\n}\nexport interface KGPropertyInfo {\n property: string;\n count: number /* uint64 */;\n}\nexport interface KGPLabelSchema {\n label: string;\n keys: string[];\n}\nexport interface KGArticle {\n id: string;\n title: string;\n content: string;\n lang?: string;\n docUrl?: string;\n paragraphs?: string;\n}\nexport interface KGPropertyFilter {\n property: string;\n value: string;\n}\nexport interface KGPropertyFilterRequest {\n label: string;\n filters: KGPropertyFilter[];\n}\nexport interface DeleteDocumentRequest {\n documentId: string;\n}\nexport interface DeleteDocumentResponse {\n success: boolean;\n deletedNodes: { [key: string]: number /* int */};\n totalDeleted: number /* int */;\n error?: string;\n}\n/**\n * KGSyncJob represents a sync job record in the database\n */\nexport interface KGSyncJob {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n updatedAt?: string;\n}\n/**\n * KGSyncJobUpdateRequest is used to insert or update a sync job\n */\nexport interface KGSyncJobUpdateRequest {\n id: string;\n title: string;\n stats: { [key: string]: any};\n startTime: string;\n endTime: string;\n}\nexport interface KGSyncJobUpdateResponse {\n jobId: string;\n metadata: ResponseMetadata;\n}\nexport interface KGSyncJobListResponse {\n jobs: KGSyncJob[];\n metadata: ResponseMetadata;\n}\n/**\n * KGSyncJobListRequest is used to list sync jobs with filters\n */\nexport interface KGSyncJobListRequest {\n limit?: number /* int */;\n offset?: number /* int */;\n startFrom?: string;\n endTo?: string;\n}\n/**\n * KGSyncIngestResponse is the response for synchronous single node ingestion\n */\nexport interface KGSyncIngestResponse {\n success: boolean;\n nodeId?: string;\n error?: string;\n metadata: ResponseMetadata;\n}\n/**\n * KGBatchSyncIngestResponse is the response for synchronous batch node ingestion\n */\nexport interface KGBatchSyncIngestResponse {\n success: boolean;\n ingestedCount: number /* int */;\n nodeIds?: string[];\n errors?: string[];\n metadata: ResponseMetadata;\n}\n"],"mappings":";;;AAmGO,IAAM,0BAA2C;AACjD,IAAM,wBAAyC;AAC/C,IAAM,yBAA0C;AAChD,IAAM,sBAAuC;AAC7C,IAAM,wBAAyC;AAiC/C,IAAM,4BAAkD;AACxD,IAAM,+BAAqD;AAC3D,IAAM,8BAAoD;AAC1D,IAAM,2BAAiD;AACvD,IAAM,qCAA2D;AACjE,IAAM,kCAAwD;AAC9D,IAAM,2BAAiD;AACvD,IAAM,8BAAoD;AAK1D,IAAM,yBAA+C;AACrD,IAAM,oCAA0D;AAEhE,IAAM,kCAA2D;AACjE,IAAM,kCAA2D;","names":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";
2
+ //# sourceMappingURL=chunk-W4XVBGE7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/chunk-W4XVBGE7.js"],"names":[],"mappings":"AAAA,yBAAY","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/chunk-W4XVBGE7.js"}
@@ -0,0 +1,89 @@
1
+ import { ApiClientOptions } from '@elqnt/api-client';
2
+ import { Graph, CreateGraphRequest, KGQuery, KGQueryResult, KGLabelInfo, KGNode, KGNodeIngestRequest } from '../models/kg.mjs';
3
+ import { GraphNodeDefinition, GraphEdgeDefinition } from '../models/kg-designer.mjs';
4
+ import { CrawlJob } from '../api/index.mjs';
5
+ import '@elqnt/types';
6
+
7
+ type UseKGOptions = ApiClientOptions & {
8
+ graphId?: string;
9
+ };
10
+ /**
11
+ * Hook for knowledge graph CRUD operations
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const { loading, error, listGraphs, createGraph } = useGraphs({
16
+ * baseUrl: apiGatewayUrl,
17
+ * orgId: selectedOrgId,
18
+ * });
19
+ *
20
+ * const graphs = await listGraphs();
21
+ * ```
22
+ */
23
+ declare function useGraphs(options: ApiClientOptions): {
24
+ loading: boolean;
25
+ error: string | null;
26
+ listGraphs: () => Promise<Graph[]>;
27
+ getGraph: (graphId: string) => Promise<Graph | null>;
28
+ createGraph: (graph: CreateGraphRequest) => Promise<Graph | null>;
29
+ updateGraph: (graphId: string, updates: Partial<Graph>) => Promise<Graph | null>;
30
+ deleteGraph: (graphId: string) => Promise<boolean>;
31
+ };
32
+ /**
33
+ * Hook for querying knowledge graph nodes
34
+ */
35
+ declare function useKGQuery(options: UseKGOptions): {
36
+ loading: boolean;
37
+ error: string | null;
38
+ query: (queryParams: KGQuery) => Promise<KGQueryResult | null>;
39
+ getLabels: () => Promise<KGLabelInfo[]>;
40
+ getNode: (nodeId: string) => Promise<KGNode | null>;
41
+ ingestNode: (node: KGNodeIngestRequest) => Promise<string | null>;
42
+ updateNode: (nodeId: string, updates: Partial<KGNode>) => Promise<boolean>;
43
+ };
44
+ /**
45
+ * Hook for KG designer operations (node and edge definitions)
46
+ */
47
+ declare function useKGDesigner(options: UseKGOptions): {
48
+ loading: boolean;
49
+ error: string | null;
50
+ listNodes: () => Promise<GraphNodeDefinition[]>;
51
+ getNode: (label: string) => Promise<GraphNodeDefinition | null>;
52
+ createNode: (node: Omit<GraphNodeDefinition, "createdAt" | "updatedAt">) => Promise<GraphNodeDefinition | null>;
53
+ updateNode: (label: string, updates: Partial<GraphNodeDefinition>) => Promise<GraphNodeDefinition | null>;
54
+ deleteNode: (label: string) => Promise<boolean>;
55
+ listEdges: () => Promise<GraphEdgeDefinition[]>;
56
+ createEdge: (edge: Omit<GraphEdgeDefinition, "createdAt" | "updatedAt">) => Promise<GraphEdgeDefinition | null>;
57
+ updateEdge: (label: string, updates: Partial<GraphEdgeDefinition>) => Promise<GraphEdgeDefinition | null>;
58
+ deleteEdge: (label: string) => Promise<boolean>;
59
+ };
60
+ /**
61
+ * Hook for web crawl job operations
62
+ */
63
+ declare function useCrawlJobs(options: UseKGOptions): {
64
+ loading: boolean;
65
+ error: string | null;
66
+ listJobs: (params?: {
67
+ limit?: number;
68
+ offset?: number;
69
+ status?: string;
70
+ }) => Promise<{
71
+ jobs: CrawlJob[];
72
+ total: number;
73
+ }>;
74
+ startJob: (params: {
75
+ baseUrl: string;
76
+ depth: number;
77
+ maxPages: number;
78
+ }) => Promise<string | null>;
79
+ getJobStatus: (jobId: string) => Promise<CrawlJob | null>;
80
+ cancelJob: (jobId: string) => Promise<boolean>;
81
+ getCrawledPages: (jobId: string) => Promise<Array<{
82
+ url: string;
83
+ title: string;
84
+ status: string;
85
+ processedAt: string;
86
+ }>>;
87
+ };
88
+
89
+ export { type UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery };
@@ -0,0 +1,89 @@
1
+ import { ApiClientOptions } from '@elqnt/api-client';
2
+ import { Graph, CreateGraphRequest, KGQuery, KGQueryResult, KGLabelInfo, KGNode, KGNodeIngestRequest } from '../models/kg.js';
3
+ import { GraphNodeDefinition, GraphEdgeDefinition } from '../models/kg-designer.js';
4
+ import { CrawlJob } from '../api/index.js';
5
+ import '@elqnt/types';
6
+
7
+ type UseKGOptions = ApiClientOptions & {
8
+ graphId?: string;
9
+ };
10
+ /**
11
+ * Hook for knowledge graph CRUD operations
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * const { loading, error, listGraphs, createGraph } = useGraphs({
16
+ * baseUrl: apiGatewayUrl,
17
+ * orgId: selectedOrgId,
18
+ * });
19
+ *
20
+ * const graphs = await listGraphs();
21
+ * ```
22
+ */
23
+ declare function useGraphs(options: ApiClientOptions): {
24
+ loading: boolean;
25
+ error: string | null;
26
+ listGraphs: () => Promise<Graph[]>;
27
+ getGraph: (graphId: string) => Promise<Graph | null>;
28
+ createGraph: (graph: CreateGraphRequest) => Promise<Graph | null>;
29
+ updateGraph: (graphId: string, updates: Partial<Graph>) => Promise<Graph | null>;
30
+ deleteGraph: (graphId: string) => Promise<boolean>;
31
+ };
32
+ /**
33
+ * Hook for querying knowledge graph nodes
34
+ */
35
+ declare function useKGQuery(options: UseKGOptions): {
36
+ loading: boolean;
37
+ error: string | null;
38
+ query: (queryParams: KGQuery) => Promise<KGQueryResult | null>;
39
+ getLabels: () => Promise<KGLabelInfo[]>;
40
+ getNode: (nodeId: string) => Promise<KGNode | null>;
41
+ ingestNode: (node: KGNodeIngestRequest) => Promise<string | null>;
42
+ updateNode: (nodeId: string, updates: Partial<KGNode>) => Promise<boolean>;
43
+ };
44
+ /**
45
+ * Hook for KG designer operations (node and edge definitions)
46
+ */
47
+ declare function useKGDesigner(options: UseKGOptions): {
48
+ loading: boolean;
49
+ error: string | null;
50
+ listNodes: () => Promise<GraphNodeDefinition[]>;
51
+ getNode: (label: string) => Promise<GraphNodeDefinition | null>;
52
+ createNode: (node: Omit<GraphNodeDefinition, "createdAt" | "updatedAt">) => Promise<GraphNodeDefinition | null>;
53
+ updateNode: (label: string, updates: Partial<GraphNodeDefinition>) => Promise<GraphNodeDefinition | null>;
54
+ deleteNode: (label: string) => Promise<boolean>;
55
+ listEdges: () => Promise<GraphEdgeDefinition[]>;
56
+ createEdge: (edge: Omit<GraphEdgeDefinition, "createdAt" | "updatedAt">) => Promise<GraphEdgeDefinition | null>;
57
+ updateEdge: (label: string, updates: Partial<GraphEdgeDefinition>) => Promise<GraphEdgeDefinition | null>;
58
+ deleteEdge: (label: string) => Promise<boolean>;
59
+ };
60
+ /**
61
+ * Hook for web crawl job operations
62
+ */
63
+ declare function useCrawlJobs(options: UseKGOptions): {
64
+ loading: boolean;
65
+ error: string | null;
66
+ listJobs: (params?: {
67
+ limit?: number;
68
+ offset?: number;
69
+ status?: string;
70
+ }) => Promise<{
71
+ jobs: CrawlJob[];
72
+ total: number;
73
+ }>;
74
+ startJob: (params: {
75
+ baseUrl: string;
76
+ depth: number;
77
+ maxPages: number;
78
+ }) => Promise<string | null>;
79
+ getJobStatus: (jobId: string) => Promise<CrawlJob | null>;
80
+ cancelJob: (jobId: string) => Promise<boolean>;
81
+ getCrawledPages: (jobId: string) => Promise<Array<{
82
+ url: string;
83
+ title: string;
84
+ status: string;
85
+ processedAt: string;
86
+ }>>;
87
+ };
88
+
89
+ export { type UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery };
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+ "use client";
3
+
4
+
5
+
6
+
7
+
8
+ var _chunkKATHAUDGjs = require('../chunk-KATHAUDG.js');
9
+ require('../chunk-JSMI4PFC.js');
10
+
11
+
12
+
13
+
14
+
15
+ exports.useCrawlJobs = _chunkKATHAUDGjs.useCrawlJobs; exports.useGraphs = _chunkKATHAUDGjs.useGraphs; exports.useKGDesigner = _chunkKATHAUDGjs.useKGDesigner; exports.useKGQuery = _chunkKATHAUDGjs.useKGQuery;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,+MAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/hooks/index.js"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ useCrawlJobs,
5
+ useGraphs,
6
+ useKGDesigner,
7
+ useKGQuery
8
+ } from "../chunk-BQZLJ5LD.mjs";
9
+ import "../chunk-55R4PZ5A.mjs";
10
+ export {
11
+ useCrawlJobs,
12
+ useGraphs,
13
+ useKGDesigner,
14
+ useKGQuery
15
+ };
16
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.mts CHANGED
@@ -1,6 +1,9 @@
1
1
  export { CreateGraphRequest, CreateGraphResult, DeleteDocumentRequest, DeleteDocumentResponse, DeleteGraphResult, DuplicatePolicy, DuplicatePolicyCreate, DuplicatePolicyCreateIf, DuplicatePolicyFail, DuplicatePolicyIgnore, DuplicatePolicyReplace, GetGraphResult, Graph, KGArticle, KGBatchSyncIngestResponse, KGEdge, KGEdgeIngestRequest, KGEdgeQuery, KGFieldQuery, KGFieldQueryOperator, KGFieldQueryOperatorArrayContains, KGFieldQueryOperatorEqual, KGFieldQueryOperatorGreater, KGFieldQueryOperatorGreaterOrEqual, KGFieldQueryOperatorIn, KGFieldQueryOperatorLess, KGFieldQueryOperatorLessOrEqual, KGFieldQueryOperatorLike, KGFieldQueryOperatorNotEqual, KGFieldQueryOperatorSimilar, KGLabelInfo, KGNode, KGNodeIngestRequest, KGPLabelSchema, KGPropertyFilter, KGPropertyFilterRequest, KGPropertyInfo, KGQuery, KGQueryResult, KGRelationshipDirection, KGRelationshipDirectionIncoming, KGRelationshipDirectionOutgoing, KGSyncIngestResponse, KGSyncJob, KGSyncJobListRequest, KGSyncJobListResponse, KGSyncJobUpdateRequest, KGSyncJobUpdateResponse, ListGraphsResult, UpdateGraphResult } from './models/kg.mjs';
2
2
  export { GraphEdgeDefinition, GraphEdgeRequest, GraphEdgeResponse, GraphNodeDefinition, GraphNodeRequest, GraphNodeResponse, KGDBCreate, KGDesignerEdgeCreate, KGDesignerEdgeDelete, KGDesignerEdgeGet, KGDesignerEdgeList, KGDesignerEdgeUpdate, KGDesignerNodeCreate, KGDesignerNodeDelete, KGDesignerNodeGet, KGDesignerNodeList, KGDesignerNodeUpdate, KGDocumentDelete, KGGraphCreate, KGGraphDelete, KGGraphGet, KGGraphList, KGGraphOptimize, KGGraphUpdate, KGIngestBatchSync, KGIngestNodeSync, KGSyncJobList, KGSyncJobUpdate } from './models/kg-designer.mjs';
3
+ export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.mjs';
4
+ export { UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery } from './hooks/index.mjs';
3
5
  import '@elqnt/types';
6
+ import '@elqnt/api-client';
4
7
 
5
8
  declare const Test = "hi";
6
9
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export { CreateGraphRequest, CreateGraphResult, DeleteDocumentRequest, DeleteDocumentResponse, DeleteGraphResult, DuplicatePolicy, DuplicatePolicyCreate, DuplicatePolicyCreateIf, DuplicatePolicyFail, DuplicatePolicyIgnore, DuplicatePolicyReplace, GetGraphResult, Graph, KGArticle, KGBatchSyncIngestResponse, KGEdge, KGEdgeIngestRequest, KGEdgeQuery, KGFieldQuery, KGFieldQueryOperator, KGFieldQueryOperatorArrayContains, KGFieldQueryOperatorEqual, KGFieldQueryOperatorGreater, KGFieldQueryOperatorGreaterOrEqual, KGFieldQueryOperatorIn, KGFieldQueryOperatorLess, KGFieldQueryOperatorLessOrEqual, KGFieldQueryOperatorLike, KGFieldQueryOperatorNotEqual, KGFieldQueryOperatorSimilar, KGLabelInfo, KGNode, KGNodeIngestRequest, KGPLabelSchema, KGPropertyFilter, KGPropertyFilterRequest, KGPropertyInfo, KGQuery, KGQueryResult, KGRelationshipDirection, KGRelationshipDirectionIncoming, KGRelationshipDirectionOutgoing, KGSyncIngestResponse, KGSyncJob, KGSyncJobListRequest, KGSyncJobListResponse, KGSyncJobUpdateRequest, KGSyncJobUpdateResponse, ListGraphsResult, UpdateGraphResult } from './models/kg.js';
2
2
  export { GraphEdgeDefinition, GraphEdgeRequest, GraphEdgeResponse, GraphNodeDefinition, GraphNodeRequest, GraphNodeResponse, KGDBCreate, KGDesignerEdgeCreate, KGDesignerEdgeDelete, KGDesignerEdgeGet, KGDesignerEdgeList, KGDesignerEdgeUpdate, KGDesignerNodeCreate, KGDesignerNodeDelete, KGDesignerNodeGet, KGDesignerNodeList, KGDesignerNodeUpdate, KGDocumentDelete, KGGraphCreate, KGGraphDelete, KGGraphGet, KGGraphList, KGGraphOptimize, KGGraphUpdate, KGIngestBatchSync, KGIngestNodeSync, KGSyncJobList, KGSyncJobUpdate } from './models/kg-designer.js';
3
+ export { CrawlJob, CrawlJobStartResponse, CrawlJobStatusResponse, CrawlJobsListResponse, CrawledPagesResponse, KGApiOptions, cancelCrawlJobApi, createDesignerEdgeApi, createDesignerNodeApi, createGraphApi, deleteDesignerEdgeApi, deleteDesignerNodeApi, deleteGraphApi, deleteKGDocumentApi, getCrawlJobStatusApi, getCrawledPagesApi, getDesignerNodeApi, getGraphApi, getGraphLabelsApi, getKGNodeApi, getNodeConnectionStatsApi, ingestDocumentApi, ingestKGNodeApi, listCrawlJobsApi, listDesignerEdgesApi, listDesignerNodesApi, listGraphsApi, optimizeGraphApi, queryGraphApi, startCrawlJobApi, updateDesignerEdgeApi, updateDesignerNodeApi, updateGraphApi, updateKGNodeApi } from './api/index.js';
4
+ export { UseKGOptions, useCrawlJobs, useGraphs, useKGDesigner, useKGQuery } from './hooks/index.js';
3
5
  import '@elqnt/types';
6
+ import '@elqnt/api-client';
4
7
 
5
8
  declare const Test = "hi";
6
9
 
package/dist/index.js CHANGED
@@ -1,9 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-RDWVE6B2.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
4
 
5
5
 
6
6
 
7
+ var _chunkKATHAUDGjs = require('./chunk-KATHAUDG.js');
7
8
 
8
9
 
9
10
 
@@ -22,7 +23,6 @@
22
23
 
23
24
 
24
25
 
25
- var _chunk2OYIMLE4js = require('./chunk-2OYIMLE4.js');
26
26
 
27
27
 
28
28
 
@@ -34,6 +34,8 @@ var _chunk2OYIMLE4js = require('./chunk-2OYIMLE4.js');
34
34
 
35
35
 
36
36
 
37
+ var _chunkJSMI4PFCjs = require('./chunk-JSMI4PFC.js');
38
+ require('./chunk-W4XVBGE7.js');
37
39
 
38
40
 
39
41
 
@@ -41,7 +43,42 @@ var _chunk2OYIMLE4js = require('./chunk-2OYIMLE4.js');
41
43
 
42
44
 
43
45
 
44
- var _chunkWEMVDZJ3js = require('./chunk-WEMVDZJ3.js');
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+ var _chunk67SUELDRjs = require('./chunk-67SUELDR.js');
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ var _chunkUCKE66GBjs = require('./chunk-UCKE66GB.js');
45
82
 
46
83
  // consts.ts
47
84
  var Test = "hi";
@@ -86,5 +123,37 @@ var Test = "hi";
86
123
 
87
124
 
88
125
 
89
- exports.DuplicatePolicyCreate = _chunkWEMVDZJ3js.DuplicatePolicyCreate; exports.DuplicatePolicyCreateIf = _chunkWEMVDZJ3js.DuplicatePolicyCreateIf; exports.DuplicatePolicyFail = _chunkWEMVDZJ3js.DuplicatePolicyFail; exports.DuplicatePolicyIgnore = _chunkWEMVDZJ3js.DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = _chunkWEMVDZJ3js.DuplicatePolicyReplace; exports.KGDBCreate = _chunk2OYIMLE4js.KGDBCreate; exports.KGDesignerEdgeCreate = _chunk2OYIMLE4js.KGDesignerEdgeCreate; exports.KGDesignerEdgeDelete = _chunk2OYIMLE4js.KGDesignerEdgeDelete; exports.KGDesignerEdgeGet = _chunk2OYIMLE4js.KGDesignerEdgeGet; exports.KGDesignerEdgeList = _chunk2OYIMLE4js.KGDesignerEdgeList; exports.KGDesignerEdgeUpdate = _chunk2OYIMLE4js.KGDesignerEdgeUpdate; exports.KGDesignerNodeCreate = _chunk2OYIMLE4js.KGDesignerNodeCreate; exports.KGDesignerNodeDelete = _chunk2OYIMLE4js.KGDesignerNodeDelete; exports.KGDesignerNodeGet = _chunk2OYIMLE4js.KGDesignerNodeGet; exports.KGDesignerNodeList = _chunk2OYIMLE4js.KGDesignerNodeList; exports.KGDesignerNodeUpdate = _chunk2OYIMLE4js.KGDesignerNodeUpdate; exports.KGDocumentDelete = _chunk2OYIMLE4js.KGDocumentDelete; exports.KGFieldQueryOperatorArrayContains = _chunkWEMVDZJ3js.KGFieldQueryOperatorArrayContains; exports.KGFieldQueryOperatorEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorGreater = _chunkWEMVDZJ3js.KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorGreaterOrEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorIn = _chunkWEMVDZJ3js.KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorLess = _chunkWEMVDZJ3js.KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorLessOrEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = _chunkWEMVDZJ3js.KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorNotEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorSimilar = _chunkWEMVDZJ3js.KGFieldQueryOperatorSimilar; exports.KGGraphCreate = _chunk2OYIMLE4js.KGGraphCreate; exports.KGGraphDelete = _chunk2OYIMLE4js.KGGraphDelete; exports.KGGraphGet = _chunk2OYIMLE4js.KGGraphGet; exports.KGGraphList = _chunk2OYIMLE4js.KGGraphList; exports.KGGraphOptimize = _chunk2OYIMLE4js.KGGraphOptimize; exports.KGGraphUpdate = _chunk2OYIMLE4js.KGGraphUpdate; exports.KGIngestBatchSync = _chunk2OYIMLE4js.KGIngestBatchSync; exports.KGIngestNodeSync = _chunk2OYIMLE4js.KGIngestNodeSync; exports.KGRelationshipDirectionIncoming = _chunkWEMVDZJ3js.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkWEMVDZJ3js.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk2OYIMLE4js.KGSyncJobList; exports.KGSyncJobUpdate = _chunk2OYIMLE4js.KGSyncJobUpdate; exports.Test = Test;
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ exports.DuplicatePolicyCreate = _chunkUCKE66GBjs.DuplicatePolicyCreate; exports.DuplicatePolicyCreateIf = _chunkUCKE66GBjs.DuplicatePolicyCreateIf; exports.DuplicatePolicyFail = _chunkUCKE66GBjs.DuplicatePolicyFail; exports.DuplicatePolicyIgnore = _chunkUCKE66GBjs.DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = _chunkUCKE66GBjs.DuplicatePolicyReplace; exports.KGDBCreate = _chunk67SUELDRjs.KGDBCreate; exports.KGDesignerEdgeCreate = _chunk67SUELDRjs.KGDesignerEdgeCreate; exports.KGDesignerEdgeDelete = _chunk67SUELDRjs.KGDesignerEdgeDelete; exports.KGDesignerEdgeGet = _chunk67SUELDRjs.KGDesignerEdgeGet; exports.KGDesignerEdgeList = _chunk67SUELDRjs.KGDesignerEdgeList; exports.KGDesignerEdgeUpdate = _chunk67SUELDRjs.KGDesignerEdgeUpdate; exports.KGDesignerNodeCreate = _chunk67SUELDRjs.KGDesignerNodeCreate; exports.KGDesignerNodeDelete = _chunk67SUELDRjs.KGDesignerNodeDelete; exports.KGDesignerNodeGet = _chunk67SUELDRjs.KGDesignerNodeGet; exports.KGDesignerNodeList = _chunk67SUELDRjs.KGDesignerNodeList; exports.KGDesignerNodeUpdate = _chunk67SUELDRjs.KGDesignerNodeUpdate; exports.KGDocumentDelete = _chunk67SUELDRjs.KGDocumentDelete; exports.KGFieldQueryOperatorArrayContains = _chunkUCKE66GBjs.KGFieldQueryOperatorArrayContains; exports.KGFieldQueryOperatorEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorGreater = _chunkUCKE66GBjs.KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorGreaterOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorIn = _chunkUCKE66GBjs.KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorLess = _chunkUCKE66GBjs.KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorLessOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = _chunkUCKE66GBjs.KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorNotEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorSimilar = _chunkUCKE66GBjs.KGFieldQueryOperatorSimilar; exports.KGGraphCreate = _chunk67SUELDRjs.KGGraphCreate; exports.KGGraphDelete = _chunk67SUELDRjs.KGGraphDelete; exports.KGGraphGet = _chunk67SUELDRjs.KGGraphGet; exports.KGGraphList = _chunk67SUELDRjs.KGGraphList; exports.KGGraphOptimize = _chunk67SUELDRjs.KGGraphOptimize; exports.KGGraphUpdate = _chunk67SUELDRjs.KGGraphUpdate; exports.KGIngestBatchSync = _chunk67SUELDRjs.KGIngestBatchSync; exports.KGIngestNodeSync = _chunk67SUELDRjs.KGIngestNodeSync; exports.KGRelationshipDirectionIncoming = _chunkUCKE66GBjs.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkUCKE66GBjs.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk67SUELDRjs.KGSyncJobList; exports.KGSyncJobUpdate = _chunk67SUELDRjs.KGSyncJobUpdate; exports.Test = Test; exports.cancelCrawlJobApi = _chunkJSMI4PFCjs.cancelCrawlJobApi; exports.createDesignerEdgeApi = _chunkJSMI4PFCjs.createDesignerEdgeApi; exports.createDesignerNodeApi = _chunkJSMI4PFCjs.createDesignerNodeApi; exports.createGraphApi = _chunkJSMI4PFCjs.createGraphApi; exports.deleteDesignerEdgeApi = _chunkJSMI4PFCjs.deleteDesignerEdgeApi; exports.deleteDesignerNodeApi = _chunkJSMI4PFCjs.deleteDesignerNodeApi; exports.deleteGraphApi = _chunkJSMI4PFCjs.deleteGraphApi; exports.deleteKGDocumentApi = _chunkJSMI4PFCjs.deleteKGDocumentApi; exports.getCrawlJobStatusApi = _chunkJSMI4PFCjs.getCrawlJobStatusApi; exports.getCrawledPagesApi = _chunkJSMI4PFCjs.getCrawledPagesApi; exports.getDesignerNodeApi = _chunkJSMI4PFCjs.getDesignerNodeApi; exports.getGraphApi = _chunkJSMI4PFCjs.getGraphApi; exports.getGraphLabelsApi = _chunkJSMI4PFCjs.getGraphLabelsApi; exports.getKGNodeApi = _chunkJSMI4PFCjs.getKGNodeApi; exports.getNodeConnectionStatsApi = _chunkJSMI4PFCjs.getNodeConnectionStatsApi; exports.ingestDocumentApi = _chunkJSMI4PFCjs.ingestDocumentApi; exports.ingestKGNodeApi = _chunkJSMI4PFCjs.ingestKGNodeApi; exports.listCrawlJobsApi = _chunkJSMI4PFCjs.listCrawlJobsApi; exports.listDesignerEdgesApi = _chunkJSMI4PFCjs.listDesignerEdgesApi; exports.listDesignerNodesApi = _chunkJSMI4PFCjs.listDesignerNodesApi; exports.listGraphsApi = _chunkJSMI4PFCjs.listGraphsApi; exports.optimizeGraphApi = _chunkJSMI4PFCjs.optimizeGraphApi; exports.queryGraphApi = _chunkJSMI4PFCjs.queryGraphApi; exports.startCrawlJobApi = _chunkJSMI4PFCjs.startCrawlJobApi; exports.updateDesignerEdgeApi = _chunkJSMI4PFCjs.updateDesignerEdgeApi; exports.updateDesignerNodeApi = _chunkJSMI4PFCjs.updateDesignerNodeApi; exports.updateGraphApi = _chunkJSMI4PFCjs.updateGraphApi; exports.updateKGNodeApi = _chunkJSMI4PFCjs.updateKGNodeApi; exports.useCrawlJobs = _chunkKATHAUDGjs.useCrawlJobs; exports.useGraphs = _chunkKATHAUDGjs.useGraphs; exports.useKGDesigner = _chunkKATHAUDGjs.useKGDesigner; exports.useKGQuery = _chunkKATHAUDGjs.useKGQuery;
90
159
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","../consts.ts"],"names":[],"mappings":"AAAA,wGAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;AC7CO,IAAM,KAAA,EAAO,IAAA;AD+CpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4tFAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","sourcesContent":[null,"export const Test = \"hi\";"]}
1
+ {"version":3,"sources":["/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","../consts.ts"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACA;AClFO,IAAM,KAAA,EAAO,IAAA;ADoFpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gsJAAC","file":"/home/runner/work/eloquent-packages/eloquent-packages/packages/kg/dist/index.js","sourcesContent":[null,"export const Test = \"hi\";"]}
package/dist/index.mjs CHANGED
@@ -1,4 +1,41 @@
1
- import "./chunk-J3XZF6JO.mjs";
1
+ "use client";
2
+ import {
3
+ useCrawlJobs,
4
+ useGraphs,
5
+ useKGDesigner,
6
+ useKGQuery
7
+ } from "./chunk-BQZLJ5LD.mjs";
8
+ import {
9
+ cancelCrawlJobApi,
10
+ createDesignerEdgeApi,
11
+ createDesignerNodeApi,
12
+ createGraphApi,
13
+ deleteDesignerEdgeApi,
14
+ deleteDesignerNodeApi,
15
+ deleteGraphApi,
16
+ deleteKGDocumentApi,
17
+ getCrawlJobStatusApi,
18
+ getCrawledPagesApi,
19
+ getDesignerNodeApi,
20
+ getGraphApi,
21
+ getGraphLabelsApi,
22
+ getKGNodeApi,
23
+ getNodeConnectionStatsApi,
24
+ ingestDocumentApi,
25
+ ingestKGNodeApi,
26
+ listCrawlJobsApi,
27
+ listDesignerEdgesApi,
28
+ listDesignerNodesApi,
29
+ listGraphsApi,
30
+ optimizeGraphApi,
31
+ queryGraphApi,
32
+ startCrawlJobApi,
33
+ updateDesignerEdgeApi,
34
+ updateDesignerNodeApi,
35
+ updateGraphApi,
36
+ updateKGNodeApi
37
+ } from "./chunk-55R4PZ5A.mjs";
38
+ import "./chunk-NJNBEGDB.mjs";
2
39
  import {
3
40
  KGDBCreate,
4
41
  KGDesignerEdgeCreate,
@@ -22,7 +59,7 @@ import {
22
59
  KGIngestNodeSync,
23
60
  KGSyncJobList,
24
61
  KGSyncJobUpdate
25
- } from "./chunk-IXLQ6ZMR.mjs";
62
+ } from "./chunk-RDIQ7HTM.mjs";
26
63
  import {
27
64
  DuplicatePolicyCreate,
28
65
  DuplicatePolicyCreateIf,
@@ -41,7 +78,7 @@ import {
41
78
  KGFieldQueryOperatorSimilar,
42
79
  KGRelationshipDirectionIncoming,
43
80
  KGRelationshipDirectionOutgoing
44
- } from "./chunk-EF7YJ7LL.mjs";
81
+ } from "./chunk-VUSVP6OI.mjs";
45
82
 
46
83
  // consts.ts
47
84
  var Test = "hi";
@@ -85,6 +122,38 @@ export {
85
122
  KGRelationshipDirectionOutgoing,
86
123
  KGSyncJobList,
87
124
  KGSyncJobUpdate,
88
- Test
125
+ Test,
126
+ cancelCrawlJobApi,
127
+ createDesignerEdgeApi,
128
+ createDesignerNodeApi,
129
+ createGraphApi,
130
+ deleteDesignerEdgeApi,
131
+ deleteDesignerNodeApi,
132
+ deleteGraphApi,
133
+ deleteKGDocumentApi,
134
+ getCrawlJobStatusApi,
135
+ getCrawledPagesApi,
136
+ getDesignerNodeApi,
137
+ getGraphApi,
138
+ getGraphLabelsApi,
139
+ getKGNodeApi,
140
+ getNodeConnectionStatsApi,
141
+ ingestDocumentApi,
142
+ ingestKGNodeApi,
143
+ listCrawlJobsApi,
144
+ listDesignerEdgesApi,
145
+ listDesignerNodesApi,
146
+ listGraphsApi,
147
+ optimizeGraphApi,
148
+ queryGraphApi,
149
+ startCrawlJobApi,
150
+ updateDesignerEdgeApi,
151
+ updateDesignerNodeApi,
152
+ updateGraphApi,
153
+ updateKGNodeApi,
154
+ useCrawlJobs,
155
+ useGraphs,
156
+ useKGDesigner,
157
+ useKGQuery
89
158
  };
90
159
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../consts.ts"],"sourcesContent":["export const Test = \"hi\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,OAAO;","names":[]}
1
+ {"version":3,"sources":["../consts.ts"],"sourcesContent":["export const Test = \"hi\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,OAAO;","names":[]}
@@ -1,4 +1,5 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-RDWVE6B2.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+ require('../chunk-W4XVBGE7.js');
2
3
 
3
4
 
4
5
 
@@ -22,7 +23,7 @@
22
23
 
23
24
 
24
25
 
25
- var _chunk2OYIMLE4js = require('../chunk-2OYIMLE4.js');
26
+ var _chunk67SUELDRjs = require('../chunk-67SUELDR.js');
26
27
 
27
28
 
28
29
 
@@ -41,7 +42,7 @@ var _chunk2OYIMLE4js = require('../chunk-2OYIMLE4.js');
41
42
 
42
43
 
43
44
 
44
- var _chunkWEMVDZJ3js = require('../chunk-WEMVDZJ3.js');
45
+ var _chunkUCKE66GBjs = require('../chunk-UCKE66GB.js');
45
46
 
46
47
 
47
48
 
@@ -82,5 +83,5 @@ var _chunkWEMVDZJ3js = require('../chunk-WEMVDZJ3.js');
82
83
 
83
84
 
84
85
 
85
- exports.DuplicatePolicyCreate = _chunkWEMVDZJ3js.DuplicatePolicyCreate; exports.DuplicatePolicyCreateIf = _chunkWEMVDZJ3js.DuplicatePolicyCreateIf; exports.DuplicatePolicyFail = _chunkWEMVDZJ3js.DuplicatePolicyFail; exports.DuplicatePolicyIgnore = _chunkWEMVDZJ3js.DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = _chunkWEMVDZJ3js.DuplicatePolicyReplace; exports.KGDBCreate = _chunk2OYIMLE4js.KGDBCreate; exports.KGDesignerEdgeCreate = _chunk2OYIMLE4js.KGDesignerEdgeCreate; exports.KGDesignerEdgeDelete = _chunk2OYIMLE4js.KGDesignerEdgeDelete; exports.KGDesignerEdgeGet = _chunk2OYIMLE4js.KGDesignerEdgeGet; exports.KGDesignerEdgeList = _chunk2OYIMLE4js.KGDesignerEdgeList; exports.KGDesignerEdgeUpdate = _chunk2OYIMLE4js.KGDesignerEdgeUpdate; exports.KGDesignerNodeCreate = _chunk2OYIMLE4js.KGDesignerNodeCreate; exports.KGDesignerNodeDelete = _chunk2OYIMLE4js.KGDesignerNodeDelete; exports.KGDesignerNodeGet = _chunk2OYIMLE4js.KGDesignerNodeGet; exports.KGDesignerNodeList = _chunk2OYIMLE4js.KGDesignerNodeList; exports.KGDesignerNodeUpdate = _chunk2OYIMLE4js.KGDesignerNodeUpdate; exports.KGDocumentDelete = _chunk2OYIMLE4js.KGDocumentDelete; exports.KGFieldQueryOperatorArrayContains = _chunkWEMVDZJ3js.KGFieldQueryOperatorArrayContains; exports.KGFieldQueryOperatorEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorGreater = _chunkWEMVDZJ3js.KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorGreaterOrEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorIn = _chunkWEMVDZJ3js.KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorLess = _chunkWEMVDZJ3js.KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorLessOrEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = _chunkWEMVDZJ3js.KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorNotEqual = _chunkWEMVDZJ3js.KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorSimilar = _chunkWEMVDZJ3js.KGFieldQueryOperatorSimilar; exports.KGGraphCreate = _chunk2OYIMLE4js.KGGraphCreate; exports.KGGraphDelete = _chunk2OYIMLE4js.KGGraphDelete; exports.KGGraphGet = _chunk2OYIMLE4js.KGGraphGet; exports.KGGraphList = _chunk2OYIMLE4js.KGGraphList; exports.KGGraphOptimize = _chunk2OYIMLE4js.KGGraphOptimize; exports.KGGraphUpdate = _chunk2OYIMLE4js.KGGraphUpdate; exports.KGIngestBatchSync = _chunk2OYIMLE4js.KGIngestBatchSync; exports.KGIngestNodeSync = _chunk2OYIMLE4js.KGIngestNodeSync; exports.KGRelationshipDirectionIncoming = _chunkWEMVDZJ3js.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkWEMVDZJ3js.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk2OYIMLE4js.KGSyncJobList; exports.KGSyncJobUpdate = _chunk2OYIMLE4js.KGSyncJobUpdate;
86
+ exports.DuplicatePolicyCreate = _chunkUCKE66GBjs.DuplicatePolicyCreate; exports.DuplicatePolicyCreateIf = _chunkUCKE66GBjs.DuplicatePolicyCreateIf; exports.DuplicatePolicyFail = _chunkUCKE66GBjs.DuplicatePolicyFail; exports.DuplicatePolicyIgnore = _chunkUCKE66GBjs.DuplicatePolicyIgnore; exports.DuplicatePolicyReplace = _chunkUCKE66GBjs.DuplicatePolicyReplace; exports.KGDBCreate = _chunk67SUELDRjs.KGDBCreate; exports.KGDesignerEdgeCreate = _chunk67SUELDRjs.KGDesignerEdgeCreate; exports.KGDesignerEdgeDelete = _chunk67SUELDRjs.KGDesignerEdgeDelete; exports.KGDesignerEdgeGet = _chunk67SUELDRjs.KGDesignerEdgeGet; exports.KGDesignerEdgeList = _chunk67SUELDRjs.KGDesignerEdgeList; exports.KGDesignerEdgeUpdate = _chunk67SUELDRjs.KGDesignerEdgeUpdate; exports.KGDesignerNodeCreate = _chunk67SUELDRjs.KGDesignerNodeCreate; exports.KGDesignerNodeDelete = _chunk67SUELDRjs.KGDesignerNodeDelete; exports.KGDesignerNodeGet = _chunk67SUELDRjs.KGDesignerNodeGet; exports.KGDesignerNodeList = _chunk67SUELDRjs.KGDesignerNodeList; exports.KGDesignerNodeUpdate = _chunk67SUELDRjs.KGDesignerNodeUpdate; exports.KGDocumentDelete = _chunk67SUELDRjs.KGDocumentDelete; exports.KGFieldQueryOperatorArrayContains = _chunkUCKE66GBjs.KGFieldQueryOperatorArrayContains; exports.KGFieldQueryOperatorEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorEqual; exports.KGFieldQueryOperatorGreater = _chunkUCKE66GBjs.KGFieldQueryOperatorGreater; exports.KGFieldQueryOperatorGreaterOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorGreaterOrEqual; exports.KGFieldQueryOperatorIn = _chunkUCKE66GBjs.KGFieldQueryOperatorIn; exports.KGFieldQueryOperatorLess = _chunkUCKE66GBjs.KGFieldQueryOperatorLess; exports.KGFieldQueryOperatorLessOrEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorLessOrEqual; exports.KGFieldQueryOperatorLike = _chunkUCKE66GBjs.KGFieldQueryOperatorLike; exports.KGFieldQueryOperatorNotEqual = _chunkUCKE66GBjs.KGFieldQueryOperatorNotEqual; exports.KGFieldQueryOperatorSimilar = _chunkUCKE66GBjs.KGFieldQueryOperatorSimilar; exports.KGGraphCreate = _chunk67SUELDRjs.KGGraphCreate; exports.KGGraphDelete = _chunk67SUELDRjs.KGGraphDelete; exports.KGGraphGet = _chunk67SUELDRjs.KGGraphGet; exports.KGGraphList = _chunk67SUELDRjs.KGGraphList; exports.KGGraphOptimize = _chunk67SUELDRjs.KGGraphOptimize; exports.KGGraphUpdate = _chunk67SUELDRjs.KGGraphUpdate; exports.KGIngestBatchSync = _chunk67SUELDRjs.KGIngestBatchSync; exports.KGIngestNodeSync = _chunk67SUELDRjs.KGIngestNodeSync; exports.KGRelationshipDirectionIncoming = _chunkUCKE66GBjs.KGRelationshipDirectionIncoming; exports.KGRelationshipDirectionOutgoing = _chunkUCKE66GBjs.KGRelationshipDirectionOutgoing; exports.KGSyncJobList = _chunk67SUELDRjs.KGSyncJobList; exports.KGSyncJobUpdate = _chunk67SUELDRjs.KGSyncJobUpdate;
86
87
  //# sourceMappingURL=index.js.map