@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
@@ -14,6 +14,7 @@ export declare namespace ListV2SourceItem {
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
  id: string;
@@ -49,6 +49,7 @@ exports.ListV2SourceItem = 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
  id: core.serialization.string(),
@@ -5,7 +5,6 @@ export declare const MemoriesConversationTurn: core.serialization.ObjectSchema<s
5
5
  export declare namespace MemoriesConversationTurn {
6
6
  interface Raw {
7
7
  content?: string | null;
8
- name?: string | null;
9
8
  role?: string | null;
10
9
  }
11
10
  }
@@ -38,6 +38,5 @@ exports.MemoriesConversationTurn = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.MemoriesConversationTurn = core.serialization.object({
40
40
  content: core.serialization.string().optional(),
41
- name: core.serialization.string().optional(),
42
41
  role: core.serialization.string().optional(),
43
42
  });
@@ -0,0 +1,10 @@
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 MemoriesForcefulRelations: core.serialization.ObjectSchema<serializers.MemoriesForcefulRelations.Raw, HydraDB.MemoriesForcefulRelations>;
5
+ export declare namespace MemoriesForcefulRelations {
6
+ interface Raw {
7
+ context_ids?: string[] | null;
8
+ properties?: Record<string, unknown> | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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.MemoriesForcefulRelations = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.MemoriesForcefulRelations = core.serialization.object({
40
+ contextIds: core.serialization.property("context_ids", core.serialization.list(core.serialization.string()).optional()),
41
+ properties: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
42
+ });
@@ -2,24 +2,24 @@ 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 { MemoriesConversationTurn } from "./MemoriesConversationTurn.js";
5
+ import { MemoriesForcefulRelations } from "./MemoriesForcefulRelations.js";
5
6
  import { MemoriesIngestItemContextCategory } from "./MemoriesIngestItemContextCategory.js";
6
7
  export declare const MemoriesIngestItem: core.serialization.ObjectSchema<serializers.MemoriesIngestItem.Raw, HydraDB.MemoriesIngestItem>;
7
8
  export declare namespace MemoriesIngestItem {
8
9
  interface Raw {
9
10
  acl?: string[] | null;
10
11
  attributes?: Record<string, unknown> | null;
11
- content?: string | null;
12
12
  context_category?: MemoriesIngestItemContextCategory.Raw | null;
13
13
  context_id?: string | null;
14
14
  conversation?: MemoriesConversationTurn.Raw[] | null;
15
15
  custom_attributes?: Record<string, unknown> | null;
16
- custom_instructions?: string | null;
17
16
  enrich?: boolean | null;
17
+ forceful_relations?: MemoriesForcefulRelations.Raw | null;
18
18
  happened_at?: string | null;
19
- is_markdown?: boolean | null;
20
- messages?: MemoriesConversationTurn.Raw[] | null;
19
+ instructions?: string | null;
21
20
  text?: string | null;
22
21
  title?: string | null;
22
+ upsert?: boolean | null;
23
23
  user_name?: string | null;
24
24
  }
25
25
  }
@@ -37,21 +37,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.MemoriesIngestItem = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const MemoriesConversationTurn_js_1 = require("./MemoriesConversationTurn.js");
40
+ const MemoriesForcefulRelations_js_1 = require("./MemoriesForcefulRelations.js");
40
41
  const MemoriesIngestItemContextCategory_js_1 = require("./MemoriesIngestItemContextCategory.js");
41
42
  exports.MemoriesIngestItem = core.serialization.object({
42
43
  acl: core.serialization.list(core.serialization.string()).optional(),
43
44
  attributes: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
44
- content: core.serialization.string().optional(),
45
45
  contextCategory: core.serialization.property("context_category", MemoriesIngestItemContextCategory_js_1.MemoriesIngestItemContextCategory.optional()),
46
46
  contextId: core.serialization.property("context_id", core.serialization.string().optional()),
47
47
  conversation: core.serialization.list(MemoriesConversationTurn_js_1.MemoriesConversationTurn).optional(),
48
48
  customAttributes: core.serialization.property("custom_attributes", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
49
- customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
50
49
  enrich: core.serialization.boolean().optional(),
50
+ forcefulRelations: core.serialization.property("forceful_relations", MemoriesForcefulRelations_js_1.MemoriesForcefulRelations.optional()),
51
51
  happenedAt: core.serialization.property("happened_at", core.serialization.string().optional()),
52
- isMarkdown: core.serialization.property("is_markdown", core.serialization.boolean().optional()),
53
- messages: core.serialization.list(MemoriesConversationTurn_js_1.MemoriesConversationTurn).optional(),
52
+ instructions: core.serialization.string().optional(),
54
53
  text: core.serialization.string().optional(),
55
54
  title: core.serialization.string().optional(),
55
+ upsert: core.serialization.boolean().optional(),
56
56
  userName: core.serialization.property("user_name", core.serialization.string().optional()),
57
57
  });
@@ -1,14 +1,19 @@
1
1
  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
+ import { IngestionGraphPayload } from "./IngestionGraphPayload.js";
4
5
  import { MemoriesIngestItem } from "./MemoriesIngestItem.js";
5
6
  export declare const MemoriesUnifiedIngestRequest: core.serialization.ObjectSchema<serializers.MemoriesUnifiedIngestRequest.Raw, HydraDB.MemoriesUnifiedIngestRequest>;
6
7
  export declare namespace MemoriesUnifiedIngestRequest {
7
8
  interface Raw {
8
9
  collection?: string | null;
9
- contexts?: MemoriesIngestItem.Raw[] | null;
10
+ context?: MemoriesIngestItem.Raw[] | null;
10
11
  database?: string | null;
11
- items?: MemoriesIngestItem.Raw[] | null;
12
+ enrich?: boolean | null;
13
+ graph_payload?: Record<string, IngestionGraphPayload.Raw> | null;
14
+ instructions?: string | null;
15
+ sub_tenant_id?: string | null;
16
+ tenant_id?: string | null;
12
17
  upsert?: boolean | null;
13
18
  }
14
19
  }
@@ -36,11 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.MemoriesUnifiedIngestRequest = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
+ const IngestionGraphPayload_js_1 = require("./IngestionGraphPayload.js");
39
40
  const MemoriesIngestItem_js_1 = require("./MemoriesIngestItem.js");
40
41
  exports.MemoriesUnifiedIngestRequest = core.serialization.object({
41
42
  collection: core.serialization.string().optional(),
42
- contexts: core.serialization.list(MemoriesIngestItem_js_1.MemoriesIngestItem).optional(),
43
+ context: core.serialization.list(MemoriesIngestItem_js_1.MemoriesIngestItem).optional(),
43
44
  database: core.serialization.string().optional(),
44
- items: core.serialization.list(MemoriesIngestItem_js_1.MemoriesIngestItem).optional(),
45
+ enrich: core.serialization.boolean().optional(),
46
+ graphPayload: core.serialization.property("graph_payload", core.serialization.record(core.serialization.string(), IngestionGraphPayload_js_1.IngestionGraphPayload).optional()),
47
+ instructions: core.serialization.string().optional(),
48
+ subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
49
+ tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
45
50
  upsert: core.serialization.boolean().optional(),
46
51
  });
@@ -0,0 +1,15 @@
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 SearchCodeSearchRepoResult: core.serialization.ObjectSchema<serializers.SearchCodeSearchRepoResult.Raw, HydraDB.SearchCodeSearchRepoResult>;
5
+ export declare namespace SearchCodeSearchRepoResult {
6
+ interface Raw {
7
+ answer?: string | null;
8
+ duration_ms?: number | null;
9
+ error?: string | null;
10
+ repo?: string | null;
11
+ status?: string | null;
12
+ truncated?: boolean | null;
13
+ unsigned?: boolean | null;
14
+ }
15
+ }
@@ -0,0 +1,47 @@
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.SearchCodeSearchRepoResult = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchCodeSearchRepoResult = core.serialization.object({
40
+ answer: core.serialization.string().optional(),
41
+ durationMs: core.serialization.property("duration_ms", core.serialization.number().optional()),
42
+ error: core.serialization.string().optional(),
43
+ repo: core.serialization.string().optional(),
44
+ status: core.serialization.string().optional(),
45
+ truncated: core.serialization.boolean().optional(),
46
+ unsigned: core.serialization.boolean().optional(),
47
+ });
@@ -0,0 +1,14 @@
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 { SearchCodeSearchRepoResult } from "./SearchCodeSearchRepoResult.js";
5
+ export declare const SearchCodeSearchResult: core.serialization.ObjectSchema<serializers.SearchCodeSearchResult.Raw, HydraDB.SearchCodeSearchResult>;
6
+ export declare namespace SearchCodeSearchResult {
7
+ interface Raw {
8
+ decided_by?: string | null;
9
+ duration_ms?: number | null;
10
+ reason?: string | null;
11
+ repos?: SearchCodeSearchRepoResult.Raw[] | null;
12
+ status?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.SearchCodeSearchResult = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const SearchCodeSearchRepoResult_js_1 = require("./SearchCodeSearchRepoResult.js");
40
+ exports.SearchCodeSearchResult = core.serialization.object({
41
+ decidedBy: core.serialization.property("decided_by", core.serialization.string().optional()),
42
+ durationMs: core.serialization.property("duration_ms", core.serialization.number().optional()),
43
+ reason: core.serialization.string().optional(),
44
+ repos: core.serialization.list(SearchCodeSearchRepoResult_js_1.SearchCodeSearchRepoResult).optional(),
45
+ status: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,18 @@
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 { SearchQueryChunkEnrichmentKind } from "./SearchQueryChunkEnrichmentKind.js";
5
+ import { SearchQueryChunkTemporal } from "./SearchQueryChunkTemporal.js";
6
+ export declare const SearchQueryChunk: core.serialization.ObjectSchema<serializers.SearchQueryChunk.Raw, HydraDB.SearchQueryChunk>;
7
+ export declare namespace SearchQueryChunk {
8
+ interface Raw {
9
+ chunk_id: string;
10
+ content: string;
11
+ context_id: string;
12
+ enrichment?: string | null;
13
+ enrichment_kind?: SearchQueryChunkEnrichmentKind.Raw | null;
14
+ received_at?: string | null;
15
+ score: number;
16
+ temporal?: SearchQueryChunkTemporal.Raw[] | null;
17
+ }
18
+ }
@@ -0,0 +1,50 @@
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.SearchQueryChunk = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const SearchQueryChunkEnrichmentKind_js_1 = require("./SearchQueryChunkEnrichmentKind.js");
40
+ const SearchQueryChunkTemporal_js_1 = require("./SearchQueryChunkTemporal.js");
41
+ exports.SearchQueryChunk = core.serialization.object({
42
+ chunkId: core.serialization.property("chunk_id", core.serialization.string()),
43
+ content: core.serialization.string(),
44
+ contextId: core.serialization.property("context_id", core.serialization.string()),
45
+ enrichment: core.serialization.string().optional(),
46
+ enrichmentKind: core.serialization.property("enrichment_kind", SearchQueryChunkEnrichmentKind_js_1.SearchQueryChunkEnrichmentKind.optional()),
47
+ receivedAt: core.serialization.property("received_at", core.serialization.string().optional()),
48
+ score: core.serialization.number(),
49
+ temporal: core.serialization.list(SearchQueryChunkTemporal_js_1.SearchQueryChunkTemporal).optional(),
50
+ });
@@ -0,0 +1,7 @@
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 SearchQueryChunkEnrichmentKind: core.serialization.Schema<serializers.SearchQueryChunkEnrichmentKind.Raw, HydraDB.SearchQueryChunkEnrichmentKind>;
5
+ export declare namespace SearchQueryChunkEnrichmentKind {
6
+ type Raw = "user_preference" | "business_knowledge" | "decision_trace";
7
+ }
@@ -0,0 +1,39 @@
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.SearchQueryChunkEnrichmentKind = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchQueryChunkEnrichmentKind = core.serialization.enum_(["user_preference", "business_knowledge", "decision_trace"]);
@@ -0,0 +1,11 @@
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 SearchQueryChunkTemporal: core.serialization.ObjectSchema<serializers.SearchQueryChunkTemporal.Raw, HydraDB.SearchQueryChunkTemporal>;
5
+ export declare namespace SearchQueryChunkTemporal {
6
+ interface Raw {
7
+ content: string;
8
+ end_date?: string | null;
9
+ start_date?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.SearchQueryChunkTemporal = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchQueryChunkTemporal = core.serialization.object({
40
+ content: core.serialization.string(),
41
+ endDate: core.serialization.property("end_date", core.serialization.string().nullable()),
42
+ startDate: core.serialization.property("start_date", core.serialization.string().nullable()),
43
+ });
@@ -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 { SearchQueryChunk } from "./SearchQueryChunk.js";
5
+ import { SearchRelationVia } from "./SearchRelationVia.js";
6
+ export declare const SearchQueryForcefulRelation: core.serialization.ObjectSchema<serializers.SearchQueryForcefulRelation.Raw, HydraDB.SearchQueryForcefulRelation>;
7
+ export declare namespace SearchQueryForcefulRelation {
8
+ interface Raw {
9
+ chunk: SearchQueryChunk.Raw;
10
+ via: SearchRelationVia.Raw;
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.SearchQueryForcefulRelation = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const SearchQueryChunk_js_1 = require("./SearchQueryChunk.js");
40
+ const SearchRelationVia_js_1 = require("./SearchRelationVia.js");
41
+ exports.SearchQueryForcefulRelation = core.serialization.object({
42
+ chunk: SearchQueryChunk_js_1.SearchQueryChunk,
43
+ via: SearchRelationVia_js_1.SearchRelationVia,
44
+ });
@@ -0,0 +1,14 @@
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 SearchQueryGraphEdge: core.serialization.ObjectSchema<serializers.SearchQueryGraphEdge.Raw, HydraDB.SearchQueryGraphEdge>;
5
+ export declare namespace SearchQueryGraphEdge {
6
+ interface Raw {
7
+ chunk_id: string;
8
+ context: string;
9
+ predicate: string;
10
+ relationship_id: string;
11
+ temporal_details?: string | null;
12
+ timestamp?: (number | null | undefined) | null;
13
+ }
14
+ }
@@ -0,0 +1,46 @@
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.SearchQueryGraphEdge = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchQueryGraphEdge = core.serialization.object({
40
+ chunkId: core.serialization.property("chunk_id", core.serialization.string()),
41
+ context: core.serialization.string(),
42
+ predicate: core.serialization.string(),
43
+ relationshipId: core.serialization.property("relationship_id", core.serialization.string()),
44
+ temporalDetails: core.serialization.property("temporal_details", core.serialization.string().optional()),
45
+ timestamp: core.serialization.number().optionalNullable(),
46
+ });
@@ -0,0 +1,10 @@
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 SearchQueryGraphEntity: core.serialization.ObjectSchema<serializers.SearchQueryGraphEntity.Raw, HydraDB.SearchQueryGraphEntity>;
5
+ export declare namespace SearchQueryGraphEntity {
6
+ interface Raw {
7
+ entity_id: string;
8
+ name: string;
9
+ }
10
+ }