@hydradb/sdk 2.0.1 → 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 (191) hide show
  1. package/README.md +494 -554
  2. package/dist/Client.d.ts +4 -7
  3. package/dist/Client.js +6 -10
  4. package/dist/api/client/requests/SearchQueryRequest.d.ts +26 -15
  5. package/dist/api/errors/index.d.ts +0 -1
  6. package/dist/api/errors/index.js +0 -1
  7. package/dist/api/resources/context/client/Client.d.ts +18 -1
  8. package/dist/api/resources/context/client/Client.js +90 -1
  9. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +15 -0
  10. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +9 -0
  11. package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +9 -0
  12. package/dist/api/resources/context/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/databases/client/Client.d.ts +109 -0
  14. package/dist/api/resources/{tenants → databases}/client/Client.js +61 -61
  15. package/dist/api/resources/databases/client/requests/CollectionsDatabasesRequest.d.ts +10 -0
  16. package/dist/api/resources/databases/client/requests/DeleteDatabasesRequest.d.ts +10 -0
  17. package/dist/api/resources/databases/client/requests/StatsDatabasesRequest.d.ts +10 -0
  18. package/dist/api/resources/databases/client/requests/StatusDatabasesRequest.d.ts +10 -0
  19. package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +7 -0
  20. package/dist/api/resources/databases/client/requests/index.d.ts +5 -0
  21. package/dist/api/resources/databases/exports.d.ts +2 -0
  22. package/dist/api/resources/{tenants → databases}/exports.js +2 -2
  23. package/dist/api/resources/index.d.ts +2 -4
  24. package/dist/api/resources/index.js +3 -5
  25. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +13 -0
  26. package/dist/api/types/HandlerDeprecationNotice.d.ts +7 -0
  27. package/dist/api/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
  28. package/dist/api/types/{HandlerEnvelopeEmbeddingsDeleteResult.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +2 -2
  29. package/dist/api/types/HandlerErrorDetail.d.ts +3 -0
  30. package/dist/api/types/HandlerResponseMeta.d.ts +14 -0
  31. package/dist/api/types/ListContentFilter.d.ts +8 -2
  32. package/dist/api/types/SearchGraphContext.d.ts +5 -0
  33. package/dist/api/types/SearchMetadataFilters.d.ts +4 -0
  34. package/dist/api/types/SearchQueryRequestCollections.d.ts +4 -0
  35. package/dist/api/types/SearchQueryRequestSubTenantIds.d.ts +4 -0
  36. package/dist/api/types/SearchRecallMode.d.ts +1 -0
  37. package/dist/api/types/SearchRecallMode.js +1 -0
  38. package/dist/api/types/SearchSourceInfo.d.ts +1 -0
  39. package/dist/api/types/SearchV2Chunk.d.ts +1 -0
  40. package/dist/api/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +2 -1
  41. package/dist/api/types/TenantsFailedTenant.d.ts +1 -0
  42. package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +1 -0
  43. package/dist/api/types/TenantsSubTenantIdsResponse.d.ts +1 -0
  44. package/dist/api/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
  45. package/dist/api/types/TenantsTenantDeleteResponse.d.ts +1 -0
  46. package/dist/api/types/TenantsTenantIdsResponse.d.ts +2 -0
  47. package/dist/api/types/TenantsTenantStatsResponse.d.ts +1 -0
  48. package/dist/api/types/index.d.ts +8 -10
  49. package/dist/api/types/index.js +8 -10
  50. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +9 -3
  51. package/dist/serialization/client/requests/SearchQueryRequest.js +9 -3
  52. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +13 -0
  53. package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +6 -6
  54. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
  55. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
  56. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
  57. package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.js +2 -0
  58. package/dist/serialization/resources/context/client/requests/index.d.ts +1 -0
  59. package/dist/serialization/resources/context/client/requests/index.js +3 -1
  60. package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +1 -0
  61. package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +1 -0
  62. package/dist/serialization/resources/index.d.ts +2 -4
  63. package/dist/serialization/resources/index.js +3 -5
  64. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +19 -0
  65. package/dist/serialization/types/{EmbeddingsRawEmbeddingDocument.js → GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +11 -6
  66. package/dist/serialization/types/HandlerDeprecationNotice.d.ts +13 -0
  67. package/dist/serialization/types/HandlerDeprecationNotice.js +45 -0
  68. package/dist/serialization/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +15 -0
  69. package/dist/serialization/types/{HandlerEnvelopeEmbeddingsInsertResult.js → HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +4 -4
  70. package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +4 -4
  71. package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +4 -4
  72. package/dist/serialization/types/HandlerErrorDetail.d.ts +3 -0
  73. package/dist/serialization/types/HandlerErrorDetail.js +3 -0
  74. package/dist/serialization/types/HandlerResponseMeta.d.ts +7 -0
  75. package/dist/serialization/types/HandlerResponseMeta.js +7 -0
  76. package/dist/serialization/types/ListContentFilter.d.ts +2 -2
  77. package/dist/serialization/types/ListContentFilter.js +2 -2
  78. package/dist/serialization/types/SearchMetadataFilters.d.ts +7 -0
  79. package/dist/serialization/types/{EmbeddingsRawEmbeddingVector.js → SearchMetadataFilters.js} +2 -5
  80. package/dist/serialization/types/SearchQueryRequestCollections.d.ts +7 -0
  81. package/dist/serialization/types/{EmbeddingsDeleteResult.js → SearchQueryRequestCollections.js} +5 -6
  82. package/dist/serialization/types/SearchQueryRequestSubTenantIds.d.ts +7 -0
  83. package/dist/serialization/types/{EmbeddingsInsertResult.js → SearchQueryRequestSubTenantIds.js} +5 -7
  84. package/dist/serialization/types/SearchRecallMode.d.ts +1 -1
  85. package/dist/serialization/types/SearchRecallMode.js +1 -1
  86. package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
  87. package/dist/serialization/types/SearchSourceInfo.js +1 -0
  88. package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
  89. package/dist/serialization/types/SearchV2Chunk.js +1 -0
  90. package/dist/serialization/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +3 -2
  91. package/dist/serialization/types/{SourcesSourceDeleteResponse.js → SourcesMemoryDeleteResponse.js} +3 -2
  92. package/dist/serialization/types/TenantsFailedTenant.d.ts +1 -0
  93. package/dist/serialization/types/TenantsFailedTenant.js +1 -0
  94. package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +1 -0
  95. package/dist/serialization/types/TenantsInfraStatusResponseV2.js +1 -0
  96. package/dist/serialization/types/TenantsSubTenantIdsResponse.d.ts +1 -0
  97. package/dist/serialization/types/TenantsSubTenantIdsResponse.js +1 -0
  98. package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
  99. package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.js +1 -0
  100. package/dist/serialization/types/TenantsTenantDeleteResponse.d.ts +1 -0
  101. package/dist/serialization/types/TenantsTenantDeleteResponse.js +1 -0
  102. package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
  103. package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
  104. package/dist/serialization/types/TenantsTenantStatsResponse.d.ts +1 -0
  105. package/dist/serialization/types/TenantsTenantStatsResponse.js +1 -0
  106. package/dist/serialization/types/index.d.ts +8 -10
  107. package/dist/serialization/types/index.js +8 -10
  108. package/package.json +1 -1
  109. package/dist/api/errors/TooManyRequestsError.d.ts +0 -6
  110. package/dist/api/errors/TooManyRequestsError.js +0 -54
  111. package/dist/api/resources/embeddings/client/Client.d.ts +0 -80
  112. package/dist/api/resources/embeddings/client/Client.js +0 -351
  113. package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +0 -18
  114. package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -15
  115. package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -14
  116. package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -16
  117. package/dist/api/resources/embeddings/client/requests/index.d.ts +0 -4
  118. package/dist/api/resources/embeddings/exports.d.ts +0 -2
  119. package/dist/api/resources/embeddings/exports.js +0 -21
  120. package/dist/api/resources/tenants/client/Client.d.ts +0 -109
  121. package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +0 -10
  122. package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +0 -10
  123. package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +0 -10
  124. package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +0 -10
  125. package/dist/api/resources/tenants/client/requests/index.d.ts +0 -5
  126. package/dist/api/resources/tenants/client/requests/index.js +0 -2
  127. package/dist/api/resources/tenants/exports.d.ts +0 -2
  128. package/dist/api/types/EmbeddingsDeleteResult.d.ts +0 -5
  129. package/dist/api/types/EmbeddingsInsertResult.d.ts +0 -6
  130. package/dist/api/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -8
  131. package/dist/api/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -8
  132. package/dist/api/types/EmbeddingsRawEmbeddingVector.d.ts +0 -5
  133. package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -7
  134. package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -3
  135. package/dist/api/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -3
  136. package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -7
  137. package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.js +0 -3
  138. package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +0 -7
  139. package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.js +0 -3
  140. package/dist/api/types/SourcesSourceDeleteResponse.js +0 -3
  141. package/dist/serialization/resources/embeddings/client/index.d.ts +0 -1
  142. package/dist/serialization/resources/embeddings/client/index.js +0 -17
  143. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -14
  144. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js +0 -46
  145. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -13
  146. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -14
  147. package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js +0 -46
  148. package/dist/serialization/resources/embeddings/client/requests/index.d.ts +0 -3
  149. package/dist/serialization/resources/embeddings/client/requests/index.js +0 -9
  150. package/dist/serialization/resources/embeddings/index.d.ts +0 -1
  151. package/dist/serialization/resources/embeddings/index.js +0 -17
  152. package/dist/serialization/resources/tenants/client/index.d.ts +0 -1
  153. package/dist/serialization/resources/tenants/client/index.js +0 -17
  154. package/dist/serialization/resources/tenants/index.d.ts +0 -1
  155. package/dist/serialization/resources/tenants/index.js +0 -17
  156. package/dist/serialization/types/EmbeddingsDeleteResult.d.ts +0 -11
  157. package/dist/serialization/types/EmbeddingsInsertResult.d.ts +0 -12
  158. package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -14
  159. package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -14
  160. package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.js +0 -46
  161. package/dist/serialization/types/EmbeddingsRawEmbeddingVector.d.ts +0 -10
  162. package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -15
  163. package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -47
  164. package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +0 -15
  165. package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -47
  166. package/dist/serialization/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -15
  167. /package/dist/api/resources/{embeddings/client/requests/DeleteEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +0 -0
  168. /package/dist/api/resources/{embeddings → databases}/client/index.d.ts +0 -0
  169. /package/dist/api/resources/{embeddings → databases}/client/index.js +0 -0
  170. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js → databases/client/requests/CollectionsDatabasesRequest.js} +0 -0
  171. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → databases/client/requests/DeleteDatabasesRequest.js} +0 -0
  172. /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js → databases/client/requests/StatsDatabasesRequest.js} +0 -0
  173. /package/dist/api/resources/{tenants/client/requests/DeleteTenantsRequest.js → databases/client/requests/StatusDatabasesRequest.js} +0 -0
  174. /package/dist/api/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +0 -0
  175. /package/dist/api/resources/{embeddings → databases}/client/requests/index.js +0 -0
  176. /package/dist/api/resources/{embeddings → databases}/index.d.ts +0 -0
  177. /package/dist/api/resources/{embeddings → databases}/index.js +0 -0
  178. /package/dist/api/{resources/tenants/client/requests/StatsTenantsRequest.js → types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
  179. /package/dist/api/{resources/tenants/client/requests/StatusTenantsRequest.js → types/HandlerDeprecationNotice.js} +0 -0
  180. /package/dist/api/{resources/tenants/client/requests/SubTenantsTenantsRequest.js → types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +0 -0
  181. /package/dist/api/types/{EmbeddingsDeleteResult.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +0 -0
  182. /package/dist/api/types/{EmbeddingsInsertResult.js → SearchMetadataFilters.js} +0 -0
  183. /package/dist/api/types/{EmbeddingsRawEmbeddingDocument.js → SearchQueryRequestCollections.js} +0 -0
  184. /package/dist/api/types/{EmbeddingsRawEmbeddingSearchResult.js → SearchQueryRequestSubTenantIds.js} +0 -0
  185. /package/dist/api/types/{EmbeddingsRawEmbeddingVector.js → SourcesMemoryDeleteResponse.js} +0 -0
  186. /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.d.ts +0 -0
  187. /package/dist/{api/resources/tenants → serialization/resources/databases}/client/index.js +0 -0
  188. /package/dist/serialization/resources/{tenants → databases}/client/requests/index.d.ts +0 -0
  189. /package/dist/serialization/resources/{tenants → databases}/client/requests/index.js +0 -0
  190. /package/dist/{api/resources/tenants → serialization/resources/databases}/index.d.ts +0 -0
  191. /package/dist/{api/resources/tenants → serialization/resources/databases}/index.js +0 -0
@@ -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 SearchQueryRequestCollections: core.serialization.Schema<serializers.SearchQueryRequestCollections.Raw, HydraDB.SearchQueryRequestCollections>;
5
+ export declare namespace SearchQueryRequestCollections {
6
+ type Raw = string[] | Record<string, number>;
7
+ }
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.EmbeddingsDeleteResult = void 0;
37
+ exports.SearchQueryRequestCollections = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.EmbeddingsDeleteResult = core.serialization.object({
40
- deleteCount: core.serialization.property("delete_count", core.serialization.number().optional()),
41
- error: core.serialization.string().optional(),
42
- success: core.serialization.boolean().optional(),
43
- });
39
+ exports.SearchQueryRequestCollections = core.serialization.undiscriminatedUnion([
40
+ core.serialization.list(core.serialization.string()),
41
+ core.serialization.record(core.serialization.string(), core.serialization.number()),
42
+ ]);
@@ -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 SearchQueryRequestSubTenantIds: core.serialization.Schema<serializers.SearchQueryRequestSubTenantIds.Raw, HydraDB.SearchQueryRequestSubTenantIds>;
5
+ export declare namespace SearchQueryRequestSubTenantIds {
6
+ type Raw = string[] | Record<string, number>;
7
+ }
@@ -34,11 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.EmbeddingsInsertResult = void 0;
37
+ exports.SearchQueryRequestSubTenantIds = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.EmbeddingsInsertResult = core.serialization.object({
40
- error: core.serialization.string().optional(),
41
- ids: core.serialization.list(core.serialization.string()).optional(),
42
- insertCount: core.serialization.property("insert_count", core.serialization.number().optional()),
43
- success: core.serialization.boolean().optional(),
44
- });
39
+ exports.SearchQueryRequestSubTenantIds = core.serialization.undiscriminatedUnion([
40
+ core.serialization.list(core.serialization.string()),
41
+ core.serialization.record(core.serialization.string(), core.serialization.number()),
42
+ ]);
@@ -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 SearchRecallMode: core.serialization.Schema<serializers.SearchRecallMode.Raw, HydraDB.SearchRecallMode>;
5
5
  export declare namespace SearchRecallMode {
6
- type Raw = "fast" | "thinking";
6
+ type Raw = "fast" | "thinking" | "auto";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SearchRecallMode = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- exports.SearchRecallMode = core.serialization.enum_(["fast", "thinking"]);
39
+ exports.SearchRecallMode = core.serialization.enum_(["fast", "thinking", "auto"]);
@@ -11,6 +11,7 @@ export declare namespace SearchSourceInfo {
11
11
  description?: string | null;
12
12
  id?: string | null;
13
13
  metadata?: Record<string, unknown> | null;
14
+ sub_tenant_id?: string | null;
14
15
  timestamp?: string | null;
15
16
  title?: string | null;
16
17
  type?: string | null;
@@ -44,6 +44,7 @@ exports.SearchSourceInfo = core.serialization.object({
44
44
  description: core.serialization.string().optional(),
45
45
  id: core.serialization.string().optional(),
46
46
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
+ subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
47
48
  timestamp: core.serialization.string().optional(),
48
49
  title: core.serialization.string().optional(),
49
50
  type: core.serialization.string().optional(),
@@ -16,5 +16,6 @@ export declare namespace SearchV2Chunk {
16
16
  source_title?: string | null;
17
17
  source_type?: string | null;
18
18
  source_upload_time?: string | null;
19
+ sub_tenant_id?: string | null;
19
20
  }
20
21
  }
@@ -49,4 +49,5 @@ exports.SearchV2Chunk = core.serialization.object({
49
49
  sourceTitle: core.serialization.property("source_title", core.serialization.string().optional()),
50
50
  sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
51
51
  sourceUploadTime: core.serialization.property("source_upload_time", core.serialization.string().optional()),
52
+ subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
52
53
  });
@@ -2,12 +2,13 @@ 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 { SourcesSourceDeleteResultItem } from "./SourcesSourceDeleteResultItem.js";
5
- export declare const SourcesSourceDeleteResponse: core.serialization.ObjectSchema<serializers.SourcesSourceDeleteResponse.Raw, HydraDB.SourcesSourceDeleteResponse>;
6
- export declare namespace SourcesSourceDeleteResponse {
5
+ export declare const SourcesMemoryDeleteResponse: core.serialization.ObjectSchema<serializers.SourcesMemoryDeleteResponse.Raw, HydraDB.SourcesMemoryDeleteResponse>;
6
+ export declare namespace SourcesMemoryDeleteResponse {
7
7
  interface Raw {
8
8
  deleted_count?: number | null;
9
9
  message?: string | null;
10
10
  results?: SourcesSourceDeleteResultItem.Raw[] | null;
11
11
  success?: boolean | null;
12
+ user_memory_deleted?: number | null;
12
13
  }
13
14
  }
@@ -34,12 +34,13 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.SourcesSourceDeleteResponse = void 0;
37
+ exports.SourcesMemoryDeleteResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const SourcesSourceDeleteResultItem_js_1 = require("./SourcesSourceDeleteResultItem.js");
40
- exports.SourcesSourceDeleteResponse = core.serialization.object({
40
+ exports.SourcesMemoryDeleteResponse = core.serialization.object({
41
41
  deletedCount: core.serialization.property("deleted_count", core.serialization.number().optional()),
42
42
  message: core.serialization.string().optional(),
43
43
  results: core.serialization.list(SourcesSourceDeleteResultItem_js_1.SourcesSourceDeleteResultItem).optional(),
44
44
  success: core.serialization.boolean().optional(),
45
+ userMemoryDeleted: core.serialization.property("user_memory_deleted", core.serialization.number().optional()),
45
46
  });
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const TenantsFailedTenant: core.serialization.ObjectSchema<serializers.TenantsFailedTenant.Raw, HydraDB.TenantsFailedTenant>;
5
5
  export declare namespace TenantsFailedTenant {
6
6
  interface Raw {
7
+ database?: string | null;
7
8
  error?: string | null;
8
9
  tenant_id?: string | null;
9
10
  }
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TenantsFailedTenant = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.TenantsFailedTenant = core.serialization.object({
40
+ database: core.serialization.string().optional(),
40
41
  error: core.serialization.string().optional(),
41
42
  tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
42
43
  });
@@ -5,6 +5,7 @@ import { TenantsInfraV2 } from "./TenantsInfraV2.js";
5
5
  export declare const TenantsInfraStatusResponseV2: core.serialization.ObjectSchema<serializers.TenantsInfraStatusResponseV2.Raw, HydraDB.TenantsInfraStatusResponseV2>;
6
6
  export declare namespace TenantsInfraStatusResponseV2 {
7
7
  interface Raw {
8
+ database?: string | null;
8
9
  infra?: TenantsInfraV2.Raw | null;
9
10
  message?: string | null;
10
11
  org_id?: string | null;
@@ -38,6 +38,7 @@ exports.TenantsInfraStatusResponseV2 = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const TenantsInfraV2_js_1 = require("./TenantsInfraV2.js");
40
40
  exports.TenantsInfraStatusResponseV2 = core.serialization.object({
41
+ database: core.serialization.string().optional(),
41
42
  infra: TenantsInfraV2_js_1.TenantsInfraV2.optional(),
42
43
  message: core.serialization.string().optional(),
43
44
  orgId: core.serialization.property("org_id", core.serialization.string().optional()),
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const TenantsSubTenantIdsResponse: core.serialization.ObjectSchema<serializers.TenantsSubTenantIdsResponse.Raw, HydraDB.TenantsSubTenantIdsResponse>;
5
5
  export declare namespace TenantsSubTenantIdsResponse {
6
6
  interface Raw {
7
+ collections?: string[] | null;
7
8
  message?: string | null;
8
9
  sub_tenant_ids?: string[] | null;
9
10
  }
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TenantsSubTenantIdsResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.TenantsSubTenantIdsResponse = core.serialization.object({
40
+ collections: core.serialization.list(core.serialization.string()).optional(),
40
41
  message: core.serialization.string().optional(),
41
42
  subTenantIds: core.serialization.property("sub_tenant_ids", core.serialization.list(core.serialization.string()).optional()),
42
43
  });
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const TenantsTenantCreateAcceptedResponse: core.serialization.ObjectSchema<serializers.TenantsTenantCreateAcceptedResponse.Raw, HydraDB.TenantsTenantCreateAcceptedResponse>;
5
5
  export declare namespace TenantsTenantCreateAcceptedResponse {
6
6
  interface Raw {
7
+ database?: string | null;
7
8
  message?: string | null;
8
9
  status?: string | null;
9
10
  tenant_id?: string | null;
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TenantsTenantCreateAcceptedResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.TenantsTenantCreateAcceptedResponse = core.serialization.object({
40
+ database: core.serialization.string().optional(),
40
41
  message: core.serialization.string().optional(),
41
42
  status: core.serialization.string().optional(),
42
43
  tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const TenantsTenantDeleteResponse: core.serialization.ObjectSchema<serializers.TenantsTenantDeleteResponse.Raw, HydraDB.TenantsTenantDeleteResponse>;
5
5
  export declare namespace TenantsTenantDeleteResponse {
6
6
  interface Raw {
7
+ database?: string | null;
7
8
  message?: string | null;
8
9
  status?: string | null;
9
10
  tenant_id?: string | null;
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.TenantsTenantDeleteResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.TenantsTenantDeleteResponse = core.serialization.object({
40
+ database: core.serialization.string().optional(),
40
41
  message: core.serialization.string().optional(),
41
42
  status: core.serialization.string().optional(),
42
43
  tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
@@ -5,6 +5,8 @@ import { TenantsFailedTenant } from "./TenantsFailedTenant.js";
5
5
  export declare const TenantsTenantIdsResponse: core.serialization.ObjectSchema<serializers.TenantsTenantIdsResponse.Raw, HydraDB.TenantsTenantIdsResponse>;
6
6
  export declare namespace TenantsTenantIdsResponse {
7
7
  interface Raw {
8
+ databases?: string[] | null;
9
+ failed_databases?: TenantsFailedTenant.Raw[] | null;
8
10
  failed_tenant_ids?: TenantsFailedTenant.Raw[] | null;
9
11
  message?: string | null;
10
12
  tenant_ids?: string[] | null;
@@ -38,6 +38,8 @@ exports.TenantsTenantIdsResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const TenantsFailedTenant_js_1 = require("./TenantsFailedTenant.js");
40
40
  exports.TenantsTenantIdsResponse = core.serialization.object({
41
+ databases: core.serialization.list(core.serialization.string()).optional(),
42
+ failedDatabases: core.serialization.property("failed_databases", core.serialization.list(TenantsFailedTenant_js_1.TenantsFailedTenant).optional()),
41
43
  failedTenantIds: core.serialization.property("failed_tenant_ids", core.serialization.list(TenantsFailedTenant_js_1.TenantsFailedTenant).optional()),
42
44
  message: core.serialization.string().optional(),
43
45
  tenantIds: core.serialization.property("tenant_ids", core.serialization.list(core.serialization.string()).optional()),
@@ -5,6 +5,7 @@ import { TenantsCollectionStats } from "./TenantsCollectionStats.js";
5
5
  export declare const TenantsTenantStatsResponse: core.serialization.ObjectSchema<serializers.TenantsTenantStatsResponse.Raw, HydraDB.TenantsTenantStatsResponse>;
6
6
  export declare namespace TenantsTenantStatsResponse {
7
7
  interface Raw {
8
+ database?: string | null;
8
9
  knowledge_collection?: TenantsCollectionStats.Raw | null;
9
10
  memory_collection?: TenantsCollectionStats.Raw | null;
10
11
  message?: string | null;
@@ -38,6 +38,7 @@ exports.TenantsTenantStatsResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const TenantsCollectionStats_js_1 = require("./TenantsCollectionStats.js");
40
40
  exports.TenantsTenantStatsResponse = core.serialization.object({
41
+ database: core.serialization.string().optional(),
41
42
  knowledgeCollection: core.serialization.property("knowledge_collection", TenantsCollectionStats_js_1.TenantsCollectionStats.optional()),
42
43
  memoryCollection: core.serialization.property("memory_collection", TenantsCollectionStats_js_1.TenantsCollectionStats.optional()),
43
44
  message: core.serialization.string().optional(),
@@ -1,25 +1,20 @@
1
1
  export * from "./DashboardPaginationMeta.js";
2
- export * from "./EmbeddingsDeleteResult.js";
3
- export * from "./EmbeddingsInsertResult.js";
4
- export * from "./EmbeddingsRawEmbeddingDocument.js";
5
- export * from "./EmbeddingsRawEmbeddingSearchResult.js";
6
- export * from "./EmbeddingsRawEmbeddingVector.js";
7
2
  export * from "./FetchV2SourceFetchResponse.js";
3
+ export * from "./GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js";
8
4
  export * from "./GraphEntity.js";
9
5
  export * from "./GraphGraphRelationsResponse.js";
10
6
  export * from "./GraphRelationEvidence.js";
11
7
  export * from "./GraphTripletWithEvidence.js";
12
8
  export * from "./HandlerApiError.js";
13
- export * from "./HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js";
14
- export * from "./HandlerEnvelopeEmbeddingsDeleteResult.js";
15
- export * from "./HandlerEnvelopeEmbeddingsInsertResult.js";
9
+ export * from "./HandlerDeprecationNotice.js";
16
10
  export * from "./HandlerEnvelopeFetchV2SourceFetchResponse.js";
11
+ export * from "./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js";
17
12
  export * from "./HandlerEnvelopeGraphGraphRelationsResponse.js";
18
13
  export * from "./HandlerEnvelopeIngestionV2BatchProcessingStatus.js";
19
14
  export * from "./HandlerEnvelopeIngestionV2SourceUploadResponse.js";
20
15
  export * from "./HandlerEnvelopeListV2SourceListResponse.js";
21
16
  export * from "./HandlerEnvelopeSearchV2RetrievalResult.js";
22
- export * from "./HandlerEnvelopeSourcesSourceDeleteResponse.js";
17
+ export * from "./HandlerEnvelopeSourcesMemoryDeleteResponse.js";
23
18
  export * from "./HandlerEnvelopeTenantsInfraStatusResponseV2.js";
24
19
  export * from "./HandlerEnvelopeTenantsSubTenantIdsResponse.js";
25
20
  export * from "./HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js";
@@ -45,16 +40,19 @@ export * from "./ListContentFilter.js";
45
40
  export * from "./ListSourceListResponse.js";
46
41
  export * from "./ListV2SourceListResponse.js";
47
42
  export * from "./SearchGraphContext.js";
43
+ export * from "./SearchMetadataFilters.js";
48
44
  export * from "./SearchOperator.js";
49
45
  export * from "./SearchPathTriplet.js";
50
46
  export * from "./SearchQueryBy.js";
47
+ export * from "./SearchQueryRequestCollections.js";
48
+ export * from "./SearchQueryRequestSubTenantIds.js";
51
49
  export * from "./SearchRecallMode.js";
52
50
  export * from "./SearchScoredPathResponse.js";
53
51
  export * from "./SearchSourceInfo.js";
54
52
  export * from "./SearchSourceType.js";
55
53
  export * from "./SearchV2Chunk.js";
56
54
  export * from "./SearchV2RetrievalResult.js";
57
- export * from "./SourcesSourceDeleteResponse.js";
55
+ export * from "./SourcesMemoryDeleteResponse.js";
58
56
  export * from "./SourcesSourceDeleteResultItem.js";
59
57
  export * from "./TenantsCollectionStats.js";
60
58
  export * from "./TenantsCustomPropertyDefinition.js";
@@ -15,27 +15,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./DashboardPaginationMeta.js"), exports);
18
- __exportStar(require("./EmbeddingsDeleteResult.js"), exports);
19
- __exportStar(require("./EmbeddingsInsertResult.js"), exports);
20
- __exportStar(require("./EmbeddingsRawEmbeddingDocument.js"), exports);
21
- __exportStar(require("./EmbeddingsRawEmbeddingSearchResult.js"), exports);
22
- __exportStar(require("./EmbeddingsRawEmbeddingVector.js"), exports);
23
18
  __exportStar(require("./FetchV2SourceFetchResponse.js"), exports);
19
+ __exportStar(require("./GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js"), exports);
24
20
  __exportStar(require("./GraphEntity.js"), exports);
25
21
  __exportStar(require("./GraphGraphRelationsResponse.js"), exports);
26
22
  __exportStar(require("./GraphRelationEvidence.js"), exports);
27
23
  __exportStar(require("./GraphTripletWithEvidence.js"), exports);
28
24
  __exportStar(require("./HandlerApiError.js"), exports);
29
- __exportStar(require("./HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js"), exports);
30
- __exportStar(require("./HandlerEnvelopeEmbeddingsDeleteResult.js"), exports);
31
- __exportStar(require("./HandlerEnvelopeEmbeddingsInsertResult.js"), exports);
25
+ __exportStar(require("./HandlerDeprecationNotice.js"), exports);
32
26
  __exportStar(require("./HandlerEnvelopeFetchV2SourceFetchResponse.js"), exports);
27
+ __exportStar(require("./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js"), exports);
33
28
  __exportStar(require("./HandlerEnvelopeGraphGraphRelationsResponse.js"), exports);
34
29
  __exportStar(require("./HandlerEnvelopeIngestionV2BatchProcessingStatus.js"), exports);
35
30
  __exportStar(require("./HandlerEnvelopeIngestionV2SourceUploadResponse.js"), exports);
36
31
  __exportStar(require("./HandlerEnvelopeListV2SourceListResponse.js"), exports);
37
32
  __exportStar(require("./HandlerEnvelopeSearchV2RetrievalResult.js"), exports);
38
- __exportStar(require("./HandlerEnvelopeSourcesSourceDeleteResponse.js"), exports);
33
+ __exportStar(require("./HandlerEnvelopeSourcesMemoryDeleteResponse.js"), exports);
39
34
  __exportStar(require("./HandlerEnvelopeTenantsInfraStatusResponseV2.js"), exports);
40
35
  __exportStar(require("./HandlerEnvelopeTenantsSubTenantIdsResponse.js"), exports);
41
36
  __exportStar(require("./HandlerEnvelopeTenantsTenantCreateAcceptedResponse.js"), exports);
@@ -61,16 +56,19 @@ __exportStar(require("./ListContentFilter.js"), exports);
61
56
  __exportStar(require("./ListSourceListResponse.js"), exports);
62
57
  __exportStar(require("./ListV2SourceListResponse.js"), exports);
63
58
  __exportStar(require("./SearchGraphContext.js"), exports);
59
+ __exportStar(require("./SearchMetadataFilters.js"), exports);
64
60
  __exportStar(require("./SearchOperator.js"), exports);
65
61
  __exportStar(require("./SearchPathTriplet.js"), exports);
66
62
  __exportStar(require("./SearchQueryBy.js"), exports);
63
+ __exportStar(require("./SearchQueryRequestCollections.js"), exports);
64
+ __exportStar(require("./SearchQueryRequestSubTenantIds.js"), exports);
67
65
  __exportStar(require("./SearchRecallMode.js"), exports);
68
66
  __exportStar(require("./SearchScoredPathResponse.js"), exports);
69
67
  __exportStar(require("./SearchSourceInfo.js"), exports);
70
68
  __exportStar(require("./SearchSourceType.js"), exports);
71
69
  __exportStar(require("./SearchV2Chunk.js"), exports);
72
70
  __exportStar(require("./SearchV2RetrievalResult.js"), exports);
73
- __exportStar(require("./SourcesSourceDeleteResponse.js"), exports);
71
+ __exportStar(require("./SourcesMemoryDeleteResponse.js"), exports);
74
72
  __exportStar(require("./SourcesSourceDeleteResultItem.js"), exports);
75
73
  __exportStar(require("./TenantsCollectionStats.js"), exports);
76
74
  __exportStar(require("./TenantsCustomPropertyDefinition.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydradb/sdk",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "The official TypeScript SDK for the Hydra DB platform.",
5
5
  "author": "Nishkarsh Shrivastava <nishkarsh@hydradb.com>",
6
6
  "main": "./dist/index.js",
@@ -1,6 +0,0 @@
1
- import type * as core from "../../core/index.js";
2
- import * as errors from "../../errors/index.js";
3
- import type * as HydraDB from "../index.js";
4
- export declare class TooManyRequestsError extends errors.HydraDBError {
5
- constructor(body: HydraDB.HandlerErrorResponse, rawResponse?: core.RawResponse);
6
- }
@@ -1,54 +0,0 @@
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.TooManyRequestsError = void 0;
38
- const errors = __importStar(require("../../errors/index.js"));
39
- class TooManyRequestsError extends errors.HydraDBError {
40
- constructor(body, rawResponse) {
41
- super({
42
- message: "TooManyRequestsError",
43
- statusCode: 429,
44
- body: body,
45
- rawResponse: rawResponse,
46
- });
47
- Object.setPrototypeOf(this, new.target.prototype);
48
- if (Error.captureStackTrace) {
49
- Error.captureStackTrace(this, this.constructor);
50
- }
51
- this.name = this.constructor.name;
52
- }
53
- }
54
- exports.TooManyRequestsError = TooManyRequestsError;
@@ -1,80 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
- import * as core from "../../../../core/index.js";
4
- import * as HydraDB from "../../../index.js";
5
- export declare namespace EmbeddingsClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class EmbeddingsClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<EmbeddingsClient.Options>;
12
- constructor(options: EmbeddingsClient.Options);
13
- /**
14
- * Delete raw embeddings by source ID or chunk IDs.
15
- *
16
- * @param {HydraDB.DeleteEmbeddingsRequest} request
17
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
18
- *
19
- * @throws {@link HydraDB.BadRequestError}
20
- *
21
- * @example
22
- * await client.embeddings.delete({
23
- * tenantId: "tenant_1234",
24
- * subTenantId: "sub_tenant_4567",
25
- * sourceId: "HydraDoc1234"
26
- * })
27
- */
28
- delete(request: HydraDB.DeleteEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsDeleteResult>;
29
- private __delete;
30
- /**
31
- * Fetch raw embeddings by source ID or chunk IDs.
32
- *
33
- * @param {HydraDB.EmbeddingsFilterRawEmbeddingsRequest} request
34
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
35
- *
36
- * @throws {@link HydraDB.BadRequestError}
37
- *
38
- * @example
39
- * await client.embeddings.filter({
40
- * subTenantId: "sub_tenant_4567",
41
- * tenantId: "tenant_1234"
42
- * })
43
- */
44
- filter(request: HydraDB.EmbeddingsFilterRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
45
- private __filter;
46
- /**
47
- * Bring-your-own-embeddings: insert raw embedding vectors directly.
48
- *
49
- * @param {HydraDB.EmbeddingsInsertRawEmbeddingsRequest} request
50
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
51
- *
52
- * @throws {@link HydraDB.BadRequestError}
53
- * @throws {@link HydraDB.TooManyRequestsError}
54
- *
55
- * @example
56
- * await client.embeddings.insert({
57
- * embeddings: [{}],
58
- * tenantId: "tenant_1234"
59
- * })
60
- */
61
- insert(request: HydraDB.EmbeddingsInsertRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeEmbeddingsInsertResult>;
62
- private __insert;
63
- /**
64
- * Vector similarity search over raw embeddings.
65
- *
66
- * @param {HydraDB.EmbeddingsSearchRawEmbeddingsRequest} request
67
- * @param {EmbeddingsClient.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @throws {@link HydraDB.BadRequestError}
70
- *
71
- * @example
72
- * await client.embeddings.search({
73
- * queryEmbedding: [1.1],
74
- * subTenantId: "sub_tenant_4567",
75
- * tenantId: "tenant_1234"
76
- * })
77
- */
78
- search(request: HydraDB.EmbeddingsSearchRawEmbeddingsRequest, requestOptions?: EmbeddingsClient.RequestOptions): core.HttpResponsePromise<HydraDB.HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult>;
79
- private __search;
80
- }