@hydradb/sdk 2.1.5 → 2.1.6

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 (170) hide show
  1. package/dist/Client.d.ts +1 -1
  2. package/dist/Client.js +1 -1
  3. package/dist/api/client/requests/SearchQueryRequest.d.ts +10 -2
  4. package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +7 -0
  5. package/dist/api/resources/context/client/Client.d.ts +2 -2
  6. package/dist/api/resources/context/client/Client.js +10 -4
  7. package/dist/api/resources/context/client/requests/ChunksContextRequest.d.ts +1 -1
  8. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +4 -2
  9. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -3
  10. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +1 -1
  11. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -2
  12. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +1 -1
  13. package/dist/api/resources/context/types/ChunksContextRequestType.d.ts +0 -1
  14. package/dist/api/resources/context/types/ChunksContextRequestType.js +0 -1
  15. package/dist/api/resources/context/types/IngestContextRequestType.d.ts +0 -1
  16. package/dist/api/resources/context/types/IngestContextRequestType.js +0 -1
  17. package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +2 -4
  18. package/dist/api/resources/context/types/ListV2ListContentRequestType.js +2 -4
  19. package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +0 -1
  20. package/dist/api/resources/context/types/RelationsContextRequestType.js +0 -1
  21. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +2 -3
  22. package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +2 -3
  23. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +0 -1
  24. package/dist/api/resources/context/types/SubgraphContextRequestType.js +0 -1
  25. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +5 -7
  26. package/dist/api/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +5 -7
  27. package/dist/api/types/GraphRelationEvidence.d.ts +7 -0
  28. package/dist/api/types/HandlerConnectorLimitView.d.ts +15 -0
  29. package/dist/api/types/HandlerConnectorLimitView.js +3 -0
  30. package/dist/api/types/HandlerConnectorListResponse.d.ts +1 -0
  31. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +2 -1
  32. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResultData.d.ts +5 -0
  33. package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResultData.js +3 -0
  34. package/dist/api/types/IngestionGraphEntity.d.ts +8 -0
  35. package/dist/api/types/IngestionGraphEntity.js +3 -0
  36. package/dist/api/types/IngestionGraphPayload.d.ts +5 -0
  37. package/dist/api/types/IngestionGraphPayload.js +3 -0
  38. package/dist/api/types/IngestionGraphRelation.d.ts +9 -0
  39. package/dist/api/types/IngestionGraphRelation.js +3 -0
  40. package/dist/api/types/ListV2MemoryItem.d.ts +8 -0
  41. package/dist/api/types/ListV2SourceItem.d.ts +8 -0
  42. package/dist/api/types/MemoriesConversationTurn.d.ts +0 -2
  43. package/dist/api/types/MemoriesForcefulRelations.d.ts +11 -0
  44. package/dist/api/types/MemoriesForcefulRelations.js +3 -0
  45. package/dist/api/types/MemoriesIngestItem.d.ts +16 -16
  46. package/dist/api/types/MemoriesUnifiedIngestRequest.d.ts +16 -4
  47. package/dist/api/types/SearchCodeSearchRepoResult.d.ts +11 -0
  48. package/dist/api/types/SearchCodeSearchRepoResult.js +3 -0
  49. package/dist/api/types/SearchCodeSearchResult.d.ts +24 -0
  50. package/dist/api/types/SearchCodeSearchResult.js +3 -0
  51. package/dist/api/types/SearchGraphPlane.d.ts +3 -3
  52. package/dist/api/types/SearchQueryChunk.d.ts +19 -0
  53. package/dist/api/types/SearchQueryChunk.js +3 -0
  54. package/dist/api/types/SearchQueryChunkEnrichmentKind.d.ts +7 -0
  55. package/dist/api/types/SearchQueryChunkEnrichmentKind.js +10 -0
  56. package/dist/api/types/SearchQueryChunkTemporal.d.ts +8 -0
  57. package/dist/api/types/SearchQueryChunkTemporal.js +3 -0
  58. package/dist/api/types/SearchQueryForcefulRelation.d.ts +6 -0
  59. package/dist/api/types/SearchQueryForcefulRelation.js +3 -0
  60. package/dist/api/types/SearchQueryGraphEdge.d.ts +13 -0
  61. package/dist/api/types/SearchQueryGraphEdge.js +3 -0
  62. package/dist/api/types/SearchQueryGraphEntity.d.ts +4 -0
  63. package/dist/api/types/SearchQueryGraphEntity.js +3 -0
  64. package/dist/api/types/SearchQueryGraphPath.d.ts +9 -0
  65. package/dist/api/types/SearchQueryGraphPath.js +3 -0
  66. package/dist/api/types/SearchQueryGraphPathOrigin.d.ts +6 -0
  67. package/dist/api/types/SearchQueryGraphPathOrigin.js +9 -0
  68. package/dist/api/types/SearchQueryGraphTriplet.d.ts +6 -0
  69. package/dist/api/types/SearchQueryGraphTriplet.js +3 -0
  70. package/dist/api/types/SearchQueryResult.d.ts +14 -0
  71. package/dist/api/types/SearchQueryResult.js +3 -0
  72. package/dist/api/types/SearchResolvedReference.d.ts +4 -0
  73. package/dist/api/types/SearchResolvedReference.js +3 -0
  74. package/dist/api/types/SearchSourceType.d.ts +0 -1
  75. package/dist/api/types/SearchSourceType.js +0 -1
  76. package/dist/api/types/SearchV2RetrievalResult.d.ts +20 -0
  77. package/dist/api/types/TenantsDatabaseDetail.d.ts +2 -2
  78. package/dist/api/types/TenantsDatabaseDetailType.d.ts +2 -3
  79. package/dist/api/types/TenantsDatabaseDetailType.js +2 -3
  80. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +2 -2
  81. package/dist/api/types/TenantsInfraStatusResponseV2Type.d.ts +2 -3
  82. package/dist/api/types/TenantsInfraStatusResponseV2Type.js +2 -3
  83. package/dist/api/types/TenantsTenantIdsResponse.d.ts +1 -5
  84. package/dist/api/types/index.d.ts +19 -0
  85. package/dist/api/types/index.js +19 -0
  86. package/dist/helpers/buildString.d.ts +9 -3
  87. package/dist/helpers/buildString.js +28 -3
  88. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +2 -0
  89. package/dist/serialization/client/requests/SearchQueryRequest.js +2 -0
  90. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +1 -0
  91. package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +1 -0
  92. package/dist/serialization/resources/context/types/ChunksContextRequestType.d.ts +1 -1
  93. package/dist/serialization/resources/context/types/ChunksContextRequestType.js +1 -1
  94. package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +1 -1
  95. package/dist/serialization/resources/context/types/IngestContextRequestType.js +1 -1
  96. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +1 -1
  97. package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +1 -1
  98. package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +1 -1
  99. package/dist/serialization/resources/context/types/RelationsContextRequestType.js +1 -1
  100. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +1 -1
  101. package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +1 -1
  102. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +1 -1
  103. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +1 -1
  104. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.d.ts +1 -1
  105. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.js +1 -1
  106. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  107. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  108. package/dist/serialization/types/HandlerConnectorLimitView.d.ts +12 -0
  109. package/dist/serialization/types/HandlerConnectorLimitView.js +44 -0
  110. package/dist/serialization/types/HandlerConnectorListResponse.d.ts +2 -0
  111. package/dist/serialization/types/HandlerConnectorListResponse.js +2 -0
  112. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +2 -2
  113. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResult.js +2 -2
  114. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResultData.d.ts +9 -0
  115. package/dist/serialization/types/HandlerEnvelopeSearchV2RetrievalResultData.js +41 -0
  116. package/dist/serialization/types/IngestionGraphEntity.d.ts +12 -0
  117. package/dist/serialization/types/IngestionGraphEntity.js +44 -0
  118. package/dist/serialization/types/IngestionGraphPayload.d.ts +12 -0
  119. package/dist/serialization/types/IngestionGraphPayload.js +44 -0
  120. package/dist/serialization/types/IngestionGraphRelation.d.ts +13 -0
  121. package/dist/serialization/types/IngestionGraphRelation.js +45 -0
  122. package/dist/serialization/types/ListV2MemoryItem.d.ts +1 -0
  123. package/dist/serialization/types/ListV2MemoryItem.js +1 -0
  124. package/dist/serialization/types/ListV2SourceItem.d.ts +1 -0
  125. package/dist/serialization/types/ListV2SourceItem.js +1 -0
  126. package/dist/serialization/types/MemoriesConversationTurn.d.ts +0 -1
  127. package/dist/serialization/types/MemoriesConversationTurn.js +0 -1
  128. package/dist/serialization/types/MemoriesForcefulRelations.d.ts +10 -0
  129. package/dist/serialization/types/MemoriesForcefulRelations.js +42 -0
  130. package/dist/serialization/types/MemoriesIngestItem.d.ts +4 -4
  131. package/dist/serialization/types/MemoriesIngestItem.js +4 -4
  132. package/dist/serialization/types/MemoriesUnifiedIngestRequest.d.ts +7 -2
  133. package/dist/serialization/types/MemoriesUnifiedIngestRequest.js +7 -2
  134. package/dist/serialization/types/SearchCodeSearchRepoResult.d.ts +15 -0
  135. package/dist/serialization/types/SearchCodeSearchRepoResult.js +47 -0
  136. package/dist/serialization/types/SearchCodeSearchResult.d.ts +14 -0
  137. package/dist/serialization/types/SearchCodeSearchResult.js +46 -0
  138. package/dist/serialization/types/SearchQueryChunk.d.ts +18 -0
  139. package/dist/serialization/types/SearchQueryChunk.js +50 -0
  140. package/dist/serialization/types/SearchQueryChunkEnrichmentKind.d.ts +7 -0
  141. package/dist/serialization/types/SearchQueryChunkEnrichmentKind.js +39 -0
  142. package/dist/serialization/types/SearchQueryChunkTemporal.d.ts +11 -0
  143. package/dist/serialization/types/SearchQueryChunkTemporal.js +43 -0
  144. package/dist/serialization/types/SearchQueryForcefulRelation.d.ts +12 -0
  145. package/dist/serialization/types/SearchQueryForcefulRelation.js +44 -0
  146. package/dist/serialization/types/SearchQueryGraphEdge.d.ts +14 -0
  147. package/dist/serialization/types/SearchQueryGraphEdge.js +46 -0
  148. package/dist/serialization/types/SearchQueryGraphEntity.d.ts +10 -0
  149. package/dist/serialization/types/SearchQueryGraphEntity.js +42 -0
  150. package/dist/serialization/types/SearchQueryGraphPath.d.ts +13 -0
  151. package/dist/serialization/types/SearchQueryGraphPath.js +45 -0
  152. package/dist/serialization/types/SearchQueryGraphPathOrigin.d.ts +7 -0
  153. package/dist/serialization/types/SearchQueryGraphPathOrigin.js +39 -0
  154. package/dist/serialization/types/SearchQueryGraphTriplet.d.ts +13 -0
  155. package/dist/serialization/types/SearchQueryGraphTriplet.js +45 -0
  156. package/dist/serialization/types/SearchQueryResult.d.ts +15 -0
  157. package/dist/serialization/types/SearchQueryResult.js +47 -0
  158. package/dist/serialization/types/SearchResolvedReference.d.ts +10 -0
  159. package/dist/serialization/types/SearchResolvedReference.js +42 -0
  160. package/dist/serialization/types/SearchSourceType.d.ts +1 -1
  161. package/dist/serialization/types/SearchSourceType.js +1 -1
  162. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +6 -0
  163. package/dist/serialization/types/SearchV2RetrievalResult.js +6 -0
  164. package/dist/serialization/types/TenantsDatabaseDetailType.d.ts +1 -1
  165. package/dist/serialization/types/TenantsDatabaseDetailType.js +1 -1
  166. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.d.ts +1 -1
  167. package/dist/serialization/types/TenantsInfraStatusResponseV2Type.js +1 -1
  168. package/dist/serialization/types/index.d.ts +19 -0
  169. package/dist/serialization/types/index.js +19 -0
  170. package/package.json +1 -1
@@ -1,15 +1,21 @@
1
1
  /**
2
2
  * Format a v2 query result into a plain string for LLM context injection.
3
3
  *
4
- * Accepts either:
4
+ * The canonical string rendering lives on the APPLICATION LAYER: every /query
5
+ * response body carries `llm_prompt`, the whole result rendered as a Markdown
6
+ * document by the server (the same code on every surface). When this helper
7
+ * finds it, it returns the server's string verbatim. The client-side
8
+ * formatting below is only the legacy fallback for responses from servers
9
+ * that predate `llm_prompt`.
10
+ *
11
+ * Accepts:
5
12
  * - The full v2 envelope (`{ success, data, error, meta }`) — auto-unwraps `.data`
6
13
  * - A bare retrieval result (with `chunks` / `graphContext`)
7
14
  *
8
15
  * @example
9
16
  * ```typescript
10
17
  * const response = await client.query({ query: "...", tenantId: "..." });
11
- * console.log(buildString(response)); // works on the envelope
12
- * console.log(buildString(response.data!)); // also works on just the data
18
+ * console.log(buildString(response)); // the server-rendered llm_prompt, verbatim
13
19
  * ```
14
20
  */
15
21
  export declare function buildString(result: any): string;
@@ -288,15 +288,21 @@ function formatChunksWithGraph(chunks, graphContext, label) {
288
288
  /**
289
289
  * Format a v2 query result into a plain string for LLM context injection.
290
290
  *
291
- * Accepts either:
291
+ * The canonical string rendering lives on the APPLICATION LAYER: every /query
292
+ * response body carries `llm_prompt`, the whole result rendered as a Markdown
293
+ * document by the server (the same code on every surface). When this helper
294
+ * finds it, it returns the server's string verbatim. The client-side
295
+ * formatting below is only the legacy fallback for responses from servers
296
+ * that predate `llm_prompt`.
297
+ *
298
+ * Accepts:
292
299
  * - The full v2 envelope (`{ success, data, error, meta }`) — auto-unwraps `.data`
293
300
  * - A bare retrieval result (with `chunks` / `graphContext`)
294
301
  *
295
302
  * @example
296
303
  * ```typescript
297
304
  * const response = await client.query({ query: "...", tenantId: "..." });
298
- * console.log(buildString(response)); // works on the envelope
299
- * console.log(buildString(response.data!)); // also works on just the data
305
+ * console.log(buildString(response)); // the server-rendered llm_prompt, verbatim
300
306
  * ```
301
307
  */
302
308
  function buildString(result) {
@@ -304,8 +310,27 @@ function buildString(result) {
304
310
  return "No relevant context found.";
305
311
  // Auto-unwrap the v2 envelope if user passes the full response
306
312
  const data = "data" in result && !("chunks" in result) ? result.data : result;
313
+ // The server-rendered prompt is the source of truth — return it untouched.
314
+ // Both spellings: the serde layer exposes llmPrompt, raw JSON llm_prompt.
315
+ const prompt = data?.llmPrompt ?? data?.llm_prompt;
316
+ if (typeof prompt === "string" && prompt !== "")
317
+ return prompt;
307
318
  if (!data)
308
319
  return "No relevant context found.";
320
+ // A unified database returns the string already built, server-side
321
+ // (`llm_prompt`): numbered results with their relevance, forceful
322
+ // relations, related facts citing the results they came from, temporal
323
+ // facts and sources. Return it verbatim rather than re-rendering a body
324
+ // whose shape this function does not describe. Both spellings are read:
325
+ // the serde layer camel-cases the field when the generated type names it,
326
+ // and leaves it as sent when it arrives as an unrecognised key.
327
+ //
328
+ // Nothing else changes: a split database has no llm_prompt, so it falls
329
+ // through to the rendering below exactly as before.
330
+ const serverBuilt = data.llmPrompt ?? data.llm_prompt;
331
+ if (typeof serverBuilt === "string" && serverBuilt.trim()) {
332
+ return serverBuilt;
333
+ }
309
334
  const sections = [];
310
335
  const chunksStr = formatChunksWithGraph(data.chunks, data.graphContext, "CONTEXT");
311
336
  if (chunksStr)
@@ -16,9 +16,11 @@ export declare namespace SearchQueryRequest {
16
16
  additional_context?: string | null;
17
17
  alpha?: unknown | null;
18
18
  attributes?: Record<string, unknown> | null;
19
+ code_search?: boolean | null;
19
20
  collection?: string | null;
20
21
  collections?: SearchQueryRequestCollections.Raw | null;
21
22
  database?: string | null;
23
+ follow_forceful_relations?: boolean | null;
22
24
  graph_context?: boolean | null;
23
25
  graph_vector_prune?: boolean | null;
24
26
  graph_vector_prune_spacy_entities?: boolean | null;
@@ -49,9 +49,11 @@ exports.SearchQueryRequest = core.serialization.object({
49
49
  additionalContext: core.serialization.property("additional_context", core.serialization.string().optional()),
50
50
  alpha: core.serialization.unknown().optional(),
51
51
  attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
52
+ codeSearch: core.serialization.property("code_search", core.serialization.boolean().optional()),
52
53
  collection: core.serialization.string().optional(),
53
54
  collections: SearchQueryRequestCollections_js_1.SearchQueryRequestCollections.optional(),
54
55
  database: core.serialization.string().optional(),
56
+ followForcefulRelations: core.serialization.property("follow_forceful_relations", core.serialization.boolean().optional()),
55
57
  graphContext: core.serialization.property("graph_context", core.serialization.boolean().optional()),
56
58
  graphVectorPrune: core.serialization.property("graph_vector_prune", core.serialization.boolean().optional()),
57
59
  graphVectorPruneSpacyEntities: core.serialization.property("graph_vector_prune_spacy_entities", core.serialization.boolean().optional()),
@@ -7,6 +7,7 @@ export declare const HandlerConfigureReq: core.serialization.Schema<serializers.
7
7
  export declare namespace HandlerConfigureReq {
8
8
  interface Raw {
9
9
  backfill_chunk_interval_seconds?: number | null;
10
+ full_visibility_roles?: string[] | null;
10
11
  lookback_days?: number | null;
11
12
  resources: HandlerResourceMapping.Raw[];
12
13
  table_configs?: HandlerTableConfigEntry.Raw[] | null;
@@ -40,6 +40,7 @@ const HandlerResourceMapping_js_1 = require("../../../../types/HandlerResourceMa
40
40
  const HandlerTableConfigEntry_js_1 = require("../../../../types/HandlerTableConfigEntry.js");
41
41
  exports.HandlerConfigureReq = core.serialization.object({
42
42
  backfillChunkIntervalSeconds: core.serialization.property("backfill_chunk_interval_seconds", core.serialization.number().optional()),
43
+ fullVisibilityRoles: core.serialization.property("full_visibility_roles", core.serialization.list(core.serialization.string()).optional()),
43
44
  lookbackDays: core.serialization.property("lookback_days", core.serialization.number().optional()),
44
45
  resources: core.serialization.list(HandlerResourceMapping_js_1.HandlerResourceMapping),
45
46
  tableConfigs: core.serialization.property("table_configs", core.serialization.list(HandlerTableConfigEntry_js_1.HandlerTableConfigEntry).optional()),
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const ChunksContextRequestType: core.serialization.Schema<serializers.ChunksContextRequestType.Raw, HydraDB.ChunksContextRequestType>;
5
5
  export declare namespace ChunksContextRequestType {
6
- type Raw = "knowledge" | "memory" | "unified" | "all";
6
+ type Raw = "knowledge" | "memory" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ChunksContextRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.ChunksContextRequestType = core.serialization.enum_(["knowledge", "memory", "unified", "all"]);
39
+ exports.ChunksContextRequestType = core.serialization.enum_(["knowledge", "memory", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const IngestContextRequestType: core.serialization.Schema<serializers.IngestContextRequestType.Raw, HydraDB.IngestContextRequestType>;
5
5
  export declare namespace IngestContextRequestType {
6
- type Raw = "knowledge" | "memory" | "unified";
6
+ type Raw = "knowledge" | "memory";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.IngestContextRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.IngestContextRequestType = core.serialization.enum_(["knowledge", "memory", "unified"]);
39
+ exports.IngestContextRequestType = core.serialization.enum_(["knowledge", "memory"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const ListV2ListContentRequestType: core.serialization.Schema<serializers.ListV2ListContentRequestType.Raw, HydraDB.ListV2ListContentRequestType>;
5
5
  export declare namespace ListV2ListContentRequestType {
6
- type Raw = "knowledge" | "memory" | "unified" | "all";
6
+ type Raw = "knowledge" | "memory" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ListV2ListContentRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.ListV2ListContentRequestType = core.serialization.enum_(["knowledge", "memory", "unified", "all"]);
39
+ exports.ListV2ListContentRequestType = core.serialization.enum_(["knowledge", "memory", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const RelationsContextRequestType: core.serialization.Schema<serializers.RelationsContextRequestType.Raw, HydraDB.RelationsContextRequestType>;
5
5
  export declare namespace RelationsContextRequestType {
6
- type Raw = "knowledge" | "memory" | "unified" | "all";
6
+ type Raw = "knowledge" | "memory" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.RelationsContextRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.RelationsContextRequestType = core.serialization.enum_(["knowledge", "memory", "unified", "all"]);
39
+ exports.RelationsContextRequestType = core.serialization.enum_(["knowledge", "memory", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const SourcesV2SourceDeleteRequestType: core.serialization.Schema<serializers.SourcesV2SourceDeleteRequestType.Raw, HydraDB.SourcesV2SourceDeleteRequestType>;
5
5
  export declare namespace SourcesV2SourceDeleteRequestType {
6
- type Raw = "knowledge" | "memory" | "unified" | "all";
6
+ type Raw = "knowledge" | "memory" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SourcesV2SourceDeleteRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.SourcesV2SourceDeleteRequestType = core.serialization.enum_(["knowledge", "memory", "unified", "all"]);
39
+ exports.SourcesV2SourceDeleteRequestType = core.serialization.enum_(["knowledge", "memory", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  export declare const SubgraphContextRequestType: core.serialization.Schema<serializers.SubgraphContextRequestType.Raw, HydraDB.SubgraphContextRequestType>;
5
5
  export declare namespace SubgraphContextRequestType {
6
- type Raw = "knowledge" | "memory" | "unified" | "all";
6
+ type Raw = "knowledge" | "memory" | "all";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SubgraphContextRequestType = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
- exports.SubgraphContextRequestType = core.serialization.enum_(["knowledge", "memory", "unified", "all"]);
39
+ exports.SubgraphContextRequestType = core.serialization.enum_(["knowledge", "memory", "all"]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout: core.serialization.Schema<serializers.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout.Raw, HydraDB.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout>;
5
5
  export declare namespace GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout {
6
- type Raw = "split" | "unified";
6
+ type Raw = "split";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = core.serialization.enum_(["split", "unified"]);
39
+ exports.GithubComHydradbHydradbApplicationInternalPlatformStoragelayoutLayout = core.serialization.enum_(["split"]);
@@ -8,6 +8,7 @@ export declare namespace GraphRelationEvidence {
8
8
  chunk_id?: string | null;
9
9
  confidence?: number | null;
10
10
  context?: string | null;
11
+ properties?: Record<string, unknown> | null;
11
12
  raw_predicate?: string | null;
12
13
  relationship_id?: string | null;
13
14
  source_entity_id?: string | null;
@@ -41,6 +41,7 @@ exports.GraphRelationEvidence = core.serialization.object({
41
41
  chunkId: core.serialization.property("chunk_id", core.serialization.string().optional()),
42
42
  confidence: core.serialization.number().optional(),
43
43
  context: core.serialization.string().optional(),
44
+ properties: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
44
45
  rawPredicate: core.serialization.property("raw_predicate", core.serialization.string().optional()),
45
46
  relationshipId: core.serialization.property("relationship_id", core.serialization.string().optional()),
46
47
  sourceEntityId: core.serialization.property("source_entity_id", core.serialization.string().optional()),
@@ -0,0 +1,12 @@
1
+ import type * as HydraDB from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const HandlerConnectorLimitView: core.serialization.ObjectSchema<serializers.HandlerConnectorLimitView.Raw, HydraDB.HandlerConnectorLimitView>;
5
+ export declare namespace HandlerConnectorLimitView {
6
+ interface Raw {
7
+ count?: number | null;
8
+ limit?: number | null;
9
+ message?: string | null;
10
+ plan?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.HandlerConnectorLimitView = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.HandlerConnectorLimitView = core.serialization.object({
40
+ count: core.serialization.number().optional(),
41
+ limit: core.serialization.number().optional(),
42
+ message: core.serialization.string().optional(),
43
+ plan: core.serialization.string().optional(),
44
+ });
@@ -2,10 +2,12 @@ import type * as HydraDB from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { HandlerConnectorApiView } from "./HandlerConnectorApiView.js";
5
+ import { HandlerConnectorLimitView } from "./HandlerConnectorLimitView.js";
5
6
  import { HandlerPlanCapView } from "./HandlerPlanCapView.js";
6
7
  export declare const HandlerConnectorListResponse: core.serialization.ObjectSchema<serializers.HandlerConnectorListResponse.Raw, HydraDB.HandlerConnectorListResponse>;
7
8
  export declare namespace HandlerConnectorListResponse {
8
9
  interface Raw {
10
+ connector_limit?: HandlerConnectorLimitView.Raw | null;
9
11
  connectors?: HandlerConnectorApiView.Raw[] | null;
10
12
  health?: Record<string, string> | null;
11
13
  plan_cap?: HandlerPlanCapView.Raw | null;
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerConnectorListResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const HandlerConnectorApiView_js_1 = require("./HandlerConnectorApiView.js");
40
+ const HandlerConnectorLimitView_js_1 = require("./HandlerConnectorLimitView.js");
40
41
  const HandlerPlanCapView_js_1 = require("./HandlerPlanCapView.js");
41
42
  exports.HandlerConnectorListResponse = core.serialization.object({
43
+ connectorLimit: core.serialization.property("connector_limit", HandlerConnectorLimitView_js_1.HandlerConnectorLimitView.optional()),
42
44
  connectors: core.serialization.list(HandlerConnectorApiView_js_1.HandlerConnectorApiView).optional(),
43
45
  health: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
44
46
  planCap: core.serialization.property("plan_cap", HandlerPlanCapView_js_1.HandlerPlanCapView.optional()),
@@ -2,12 +2,12 @@ import type * as HydraDB from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { HandlerApiError } from "./HandlerApiError.js";
5
+ import { HandlerEnvelopeSearchV2RetrievalResultData } from "./HandlerEnvelopeSearchV2RetrievalResultData.js";
5
6
  import { HandlerResponseMeta } from "./HandlerResponseMeta.js";
6
- import { SearchV2RetrievalResult } from "./SearchV2RetrievalResult.js";
7
7
  export declare const HandlerEnvelopeSearchV2RetrievalResult: core.serialization.ObjectSchema<serializers.HandlerEnvelopeSearchV2RetrievalResult.Raw, HydraDB.HandlerEnvelopeSearchV2RetrievalResult>;
8
8
  export declare namespace HandlerEnvelopeSearchV2RetrievalResult {
9
9
  interface Raw {
10
- data?: SearchV2RetrievalResult.Raw | null;
10
+ data?: HandlerEnvelopeSearchV2RetrievalResultData.Raw | null;
11
11
  error?: HandlerApiError.Raw | null;
12
12
  meta?: HandlerResponseMeta.Raw | null;
13
13
  success?: boolean | null;
@@ -37,10 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerEnvelopeSearchV2RetrievalResult = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const HandlerApiError_js_1 = require("./HandlerApiError.js");
40
+ const HandlerEnvelopeSearchV2RetrievalResultData_js_1 = require("./HandlerEnvelopeSearchV2RetrievalResultData.js");
40
41
  const HandlerResponseMeta_js_1 = require("./HandlerResponseMeta.js");
41
- const SearchV2RetrievalResult_js_1 = require("./SearchV2RetrievalResult.js");
42
42
  exports.HandlerEnvelopeSearchV2RetrievalResult = core.serialization.object({
43
- data: SearchV2RetrievalResult_js_1.SearchV2RetrievalResult.optional(),
43
+ data: HandlerEnvelopeSearchV2RetrievalResultData_js_1.HandlerEnvelopeSearchV2RetrievalResultData.optional(),
44
44
  error: HandlerApiError_js_1.HandlerApiError.optional(),
45
45
  meta: HandlerResponseMeta_js_1.HandlerResponseMeta.optional(),
46
46
  success: core.serialization.boolean().optional(),
@@ -0,0 +1,9 @@
1
+ import type * as HydraDB from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { SearchQueryResult } from "./SearchQueryResult.js";
5
+ import { SearchV2RetrievalResult } from "./SearchV2RetrievalResult.js";
6
+ export declare const HandlerEnvelopeSearchV2RetrievalResultData: core.serialization.Schema<serializers.HandlerEnvelopeSearchV2RetrievalResultData.Raw, HydraDB.HandlerEnvelopeSearchV2RetrievalResultData>;
7
+ export declare namespace HandlerEnvelopeSearchV2RetrievalResultData {
8
+ type Raw = SearchV2RetrievalResult.Raw | SearchQueryResult.Raw;
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.HandlerEnvelopeSearchV2RetrievalResultData = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const SearchQueryResult_js_1 = require("./SearchQueryResult.js");
40
+ const SearchV2RetrievalResult_js_1 = require("./SearchV2RetrievalResult.js");
41
+ exports.HandlerEnvelopeSearchV2RetrievalResultData = core.serialization.undiscriminatedUnion([SearchV2RetrievalResult_js_1.SearchV2RetrievalResult, SearchQueryResult_js_1.SearchQueryResult]);
@@ -0,0 +1,12 @@
1
+ import type * as HydraDB from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const IngestionGraphEntity: core.serialization.ObjectSchema<serializers.IngestionGraphEntity.Raw, HydraDB.IngestionGraphEntity>;
5
+ export declare namespace IngestionGraphEntity {
6
+ interface Raw {
7
+ identifier?: string | null;
8
+ name?: string | null;
9
+ namespace?: string | null;
10
+ type?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.IngestionGraphEntity = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.IngestionGraphEntity = core.serialization.object({
40
+ identifier: core.serialization.string().optional(),
41
+ name: core.serialization.string().optional(),
42
+ namespace: core.serialization.string().optional(),
43
+ type: core.serialization.string().optional(),
44
+ });
@@ -0,0 +1,12 @@
1
+ import type * as HydraDB from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { IngestionGraphEntity } from "./IngestionGraphEntity.js";
5
+ import { IngestionGraphRelation } from "./IngestionGraphRelation.js";
6
+ export declare const IngestionGraphPayload: core.serialization.ObjectSchema<serializers.IngestionGraphPayload.Raw, HydraDB.IngestionGraphPayload>;
7
+ export declare namespace IngestionGraphPayload {
8
+ interface Raw {
9
+ entities?: Record<string, IngestionGraphEntity.Raw> | null;
10
+ relations?: IngestionGraphRelation.Raw[] | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.IngestionGraphPayload = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const IngestionGraphEntity_js_1 = require("./IngestionGraphEntity.js");
40
+ const IngestionGraphRelation_js_1 = require("./IngestionGraphRelation.js");
41
+ exports.IngestionGraphPayload = core.serialization.object({
42
+ entities: core.serialization.record(core.serialization.string(), IngestionGraphEntity_js_1.IngestionGraphEntity).optional(),
43
+ relations: core.serialization.list(IngestionGraphRelation_js_1.IngestionGraphRelation).optional(),
44
+ });
@@ -0,0 +1,13 @@
1
+ import type * as HydraDB from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const IngestionGraphRelation: core.serialization.ObjectSchema<serializers.IngestionGraphRelation.Raw, HydraDB.IngestionGraphRelation>;
5
+ export declare namespace IngestionGraphRelation {
6
+ interface Raw {
7
+ context?: string | null;
8
+ predicate?: string | null;
9
+ source?: string | null;
10
+ target?: string | null;
11
+ temporal_details?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.IngestionGraphRelation = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.IngestionGraphRelation = core.serialization.object({
40
+ context: core.serialization.string().optional(),
41
+ predicate: core.serialization.string().optional(),
42
+ source: core.serialization.string().optional(),
43
+ target: core.serialization.string().optional(),
44
+ temporalDetails: core.serialization.property("temporal_details", core.serialization.string().optional()),
45
+ });
@@ -14,6 +14,7 @@ export declare namespace ListV2MemoryItem {
14
14
  collection: string;
15
15
  comments?: Record<string, unknown>[] | null;
16
16
  comments_truncated?: boolean | null;
17
+ context_category?: string | null;
17
18
  database: string;
18
19
  description?: string | null;
19
20
  memory_id: string;
@@ -49,6 +49,7 @@ exports.ListV2MemoryItem = core.serialization.object({
49
49
  .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
50
50
  .optional(),
51
51
  commentsTruncated: core.serialization.property("comments_truncated", core.serialization.boolean().optional()),
52
+ contextCategory: core.serialization.property("context_category", core.serialization.string().optional()),
52
53
  database: core.serialization.string(),
53
54
  description: core.serialization.string().optional(),
54
55
  memoryId: core.serialization.property("memory_id", core.serialization.string()),