@hydradb/sdk 2.1.3 → 2.1.4

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 (124) hide show
  1. package/dist/api/client/requests/SearchQueryRequest.d.ts +12 -0
  2. package/dist/api/resources/connectors/client/Client.d.ts +22 -1
  3. package/dist/api/resources/connectors/client/Client.js +82 -1
  4. package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +6 -0
  5. package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +6 -0
  6. package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +12 -0
  7. package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.d.ts +17 -0
  8. package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js +3 -0
  9. package/dist/api/resources/connectors/client/requests/index.d.ts +1 -0
  10. package/dist/api/resources/context/client/Client.d.ts +19 -0
  11. package/dist/api/resources/context/client/Client.js +93 -2
  12. package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +14 -0
  13. package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +1 -1
  14. package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
  15. package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
  16. package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +2 -0
  17. package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
  18. package/dist/api/resources/context/client/requests/SubgraphContextRequest.js +3 -0
  19. package/dist/api/resources/context/client/requests/index.d.ts +1 -0
  20. package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +5 -0
  21. package/dist/api/resources/context/types/SubgraphContextRequestType.js +8 -0
  22. package/dist/api/resources/context/types/index.d.ts +1 -0
  23. package/dist/api/resources/context/types/index.js +1 -0
  24. package/dist/api/resources/webhooks/client/Client.d.ts +19 -0
  25. package/dist/api/resources/webhooks/client/Client.js +80 -0
  26. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
  27. package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js +3 -0
  28. package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
  29. package/dist/api/types/ConnectorsResource.d.ts +43 -0
  30. package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +30 -0
  31. package/dist/api/types/GraphEntity.d.ts +12 -0
  32. package/dist/api/types/GraphGraphRelationsResponse.d.ts +23 -0
  33. package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
  34. package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
  35. package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
  36. package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
  37. package/dist/api/types/GraphSubgraphSource.js +3 -0
  38. package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
  39. package/dist/api/types/HandlerCatalogConnector.d.ts +15 -0
  40. package/dist/api/types/HandlerConnectorApiView.d.ts +15 -0
  41. package/dist/api/types/HandlerConnectorCreateResponse.d.ts +15 -0
  42. package/dist/api/types/HandlerConnectorResourceStatus.d.ts +16 -0
  43. package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +5 -0
  44. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +9 -0
  45. package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
  46. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
  47. package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
  48. package/dist/api/types/HandlerResourceMapping.d.ts +14 -0
  49. package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
  50. package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
  51. package/dist/api/types/SearchSourceFact.d.ts +18 -0
  52. package/dist/api/types/SearchSourceFact.js +3 -0
  53. package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
  54. package/dist/api/types/SearchSourceFilterInfo.js +3 -0
  55. package/dist/api/types/SearchV2RetrievalResult.d.ts +6 -0
  56. package/dist/api/types/index.d.ts +7 -0
  57. package/dist/api/types/index.js +7 -0
  58. package/dist/serialization/client/requests/SearchQueryRequest.d.ts +1 -0
  59. package/dist/serialization/client/requests/SearchQueryRequest.js +1 -0
  60. package/dist/serialization/resources/connectors/client/index.d.ts +1 -0
  61. package/dist/serialization/resources/connectors/client/index.js +2 -1
  62. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -0
  63. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -0
  64. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +1 -0
  65. package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +1 -0
  66. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
  67. package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -0
  68. package/dist/serialization/resources/connectors/client/updateResourceAcl.d.ts +10 -0
  69. package/dist/serialization/resources/connectors/client/updateResourceAcl.js +40 -0
  70. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
  71. package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
  72. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
  73. package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -0
  74. package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
  75. package/dist/serialization/resources/context/types/SubgraphContextRequestType.js +39 -0
  76. package/dist/serialization/resources/context/types/index.d.ts +1 -0
  77. package/dist/serialization/resources/context/types/index.js +1 -0
  78. package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
  79. package/dist/serialization/resources/webhooks/client/index.js +24 -0
  80. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
  81. package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.js +39 -0
  82. package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
  83. package/dist/serialization/types/ConnectorsResource.js +6 -0
  84. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +5 -0
  85. package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
  86. package/dist/serialization/types/GraphEntity.d.ts +1 -0
  87. package/dist/serialization/types/GraphEntity.js +1 -0
  88. package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
  89. package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
  90. package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
  91. package/dist/serialization/types/GraphRelationEvidence.js +1 -0
  92. package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
  93. package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
  94. package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
  95. package/dist/serialization/types/GraphSubgraphSource.js +50 -0
  96. package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
  97. package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
  98. package/dist/serialization/types/HandlerCatalogConnector.d.ts +3 -0
  99. package/dist/serialization/types/HandlerCatalogConnector.js +3 -0
  100. package/dist/serialization/types/HandlerConnectorApiView.d.ts +2 -0
  101. package/dist/serialization/types/HandlerConnectorApiView.js +2 -0
  102. package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +2 -0
  103. package/dist/serialization/types/HandlerConnectorCreateResponse.js +2 -0
  104. package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +4 -0
  105. package/dist/serialization/types/HandlerConnectorResourceStatus.js +4 -0
  106. package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +1 -0
  107. package/dist/serialization/types/HandlerConnectorUpdateResponse.js +1 -0
  108. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
  109. package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
  110. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
  111. package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -0
  112. package/dist/serialization/types/HandlerResourceMapping.d.ts +2 -0
  113. package/dist/serialization/types/HandlerResourceMapping.js +2 -0
  114. package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
  115. package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
  116. package/dist/serialization/types/SearchSourceFact.d.ts +20 -0
  117. package/dist/serialization/types/SearchSourceFact.js +52 -0
  118. package/dist/serialization/types/SearchSourceFilterInfo.d.ts +17 -0
  119. package/dist/serialization/types/SearchSourceFilterInfo.js +49 -0
  120. package/dist/serialization/types/SearchV2RetrievalResult.d.ts +4 -0
  121. package/dist/serialization/types/SearchV2RetrievalResult.js +4 -0
  122. package/dist/serialization/types/index.d.ts +7 -0
  123. package/dist/serialization/types/index.js +7 -0
  124. package/package.json +1 -1
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly = void 0;
39
+ exports.updateResourceAcl = exports.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly = void 0;
40
40
  __exportStar(require("./requests/index.js"), exports);
41
41
  exports.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly = __importStar(require("./rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.js"));
42
+ exports.updateResourceAcl = __importStar(require("./updateResourceAcl.js"));
@@ -7,6 +7,7 @@ export declare namespace HandlerConnectorCreateReq {
7
7
  auth_type?: string | null;
8
8
  collection?: string | null;
9
9
  credentials?: Record<string, unknown> | null;
10
+ custom_instructions?: string | null;
10
11
  database?: string | null;
11
12
  name?: string | null;
12
13
  provider: string;
@@ -40,6 +40,7 @@ exports.HandlerConnectorCreateReq = core.serialization.object({
40
40
  authType: core.serialization.property("auth_type", core.serialization.string().optional()),
41
41
  collection: core.serialization.string().optional(),
42
42
  credentials: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
43
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
43
44
  database: core.serialization.string().optional(),
44
45
  name: core.serialization.string().optional(),
45
46
  provider: core.serialization.string(),
@@ -5,6 +5,7 @@ export declare const HandlerConnectorUpdateReq: core.serialization.Schema<serial
5
5
  export declare namespace HandlerConnectorUpdateReq {
6
6
  interface Raw {
7
7
  credentials?: Record<string, unknown> | null;
8
+ custom_instructions?: string | null;
8
9
  sync_interval_seconds?: number | null;
9
10
  }
10
11
  }
@@ -38,5 +38,6 @@ exports.HandlerConnectorUpdateReq = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  exports.HandlerConnectorUpdateReq = core.serialization.object({
40
40
  credentials: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
41
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
41
42
  syncIntervalSeconds: core.serialization.property("sync_interval_seconds", core.serialization.number().optional()),
42
43
  });
@@ -4,8 +4,10 @@ import type * as serializers from "../../../../index.js";
4
4
  export declare const HandlerResourceCreateReq: core.serialization.Schema<serializers.HandlerResourceCreateReq.Raw, Omit<HydraDB.HandlerResourceCreateReq, "id">>;
5
5
  export declare namespace HandlerResourceCreateReq {
6
6
  interface Raw {
7
+ acl?: string[] | null;
7
8
  additional_metadata?: Record<string, unknown> | null;
8
9
  collection_override?: string | null;
10
+ custom_instructions?: string | null;
9
11
  database_override?: string | null;
10
12
  display_name?: string | null;
11
13
  filters?: Record<string, unknown> | null;
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerResourceCreateReq = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  exports.HandlerResourceCreateReq = core.serialization.object({
40
+ acl: core.serialization.list(core.serialization.string()).optional(),
40
41
  additionalMetadata: core.serialization.property("additional_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
41
42
  collectionOverride: core.serialization.property("collection_override", core.serialization.string().optional()),
43
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
42
44
  databaseOverride: core.serialization.property("database_override", core.serialization.string().optional()),
43
45
  displayName: core.serialization.property("display_name", core.serialization.string().optional()),
44
46
  filters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
@@ -0,0 +1,10 @@
1
+ import * as core from "../../../../core/index.js";
2
+ import type * as serializers from "../../../index.js";
3
+ export declare const Request: core.serialization.Schema<serializers.connectors.updateResourceAcl.Request.Raw, Record<string, unknown>>;
4
+ export declare namespace Request {
5
+ type Raw = Record<string, unknown>;
6
+ }
7
+ export declare const Response: core.serialization.Schema<serializers.connectors.updateResourceAcl.Response.Raw, Record<string, unknown>>;
8
+ export declare namespace Response {
9
+ type Raw = Record<string, unknown>;
10
+ }
@@ -0,0 +1,40 @@
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.Response = exports.Request = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
40
+ exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -4,6 +4,7 @@ import type * as serializers from "../../../../index.js";
4
4
  export declare const HandlerContextMetadataUpdateRequest: core.serialization.Schema<serializers.HandlerContextMetadataUpdateRequest.Raw, Omit<HydraDB.HandlerContextMetadataUpdateRequest, "id">>;
5
5
  export declare namespace HandlerContextMetadataUpdateRequest {
6
6
  interface Raw {
7
+ acl?: string[] | null;
7
8
  additional_metadata?: Record<string, unknown> | null;
8
9
  collection?: string | null;
9
10
  database?: string | null;
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerContextMetadataUpdateRequest = void 0;
38
38
  const core = __importStar(require("../../../../../core/index.js"));
39
39
  exports.HandlerContextMetadataUpdateRequest = core.serialization.object({
40
+ acl: core.serialization.list(core.serialization.string()).optional(),
40
41
  additionalMetadata: core.serialization.property("additional_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
41
42
  collection: core.serialization.string().optional(),
42
43
  database: core.serialization.string().optional(),
@@ -6,6 +6,7 @@ import { ListV2ListContentRequestType } from "../../types/ListV2ListContentReque
6
6
  export declare const ListV2ListContentRequest: core.serialization.Schema<serializers.ListV2ListContentRequest.Raw, HydraDB.ListV2ListContentRequest>;
7
7
  export declare namespace ListV2ListContentRequest {
8
8
  interface Raw {
9
+ acl?: string[] | null;
9
10
  collection?: string | null;
10
11
  database?: string | null;
11
12
  filters?: ListContentFilter.Raw | null;
@@ -39,6 +39,7 @@ const core = __importStar(require("../../../../../core/index.js"));
39
39
  const ListContentFilter_js_1 = require("../../../../types/ListContentFilter.js");
40
40
  const ListV2ListContentRequestType_js_1 = require("../../types/ListV2ListContentRequestType.js");
41
41
  exports.ListV2ListContentRequest = core.serialization.object({
42
+ acl: core.serialization.list(core.serialization.string()).optional(),
42
43
  collection: core.serialization.string().optional(),
43
44
  database: core.serialization.string().optional(),
44
45
  filters: ListContentFilter_js_1.ListContentFilter.optional(),
@@ -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 SubgraphContextRequestType: core.serialization.Schema<serializers.SubgraphContextRequestType.Raw, HydraDB.SubgraphContextRequestType>;
5
+ export declare namespace SubgraphContextRequestType {
6
+ type Raw = "knowledge" | "memory";
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.SubgraphContextRequestType = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.SubgraphContextRequestType = core.serialization.enum_(["knowledge", "memory"]);
@@ -3,3 +3,4 @@ export * from "./IngestContextRequestType.js";
3
3
  export * from "./ListV2ListContentRequestType.js";
4
4
  export * from "./RelationsContextRequestType.js";
5
5
  export * from "./SourcesV2SourceDeleteRequestType.js";
6
+ export * from "./SubgraphContextRequestType.js";
@@ -19,3 +19,4 @@ __exportStar(require("./IngestContextRequestType.js"), exports);
19
19
  __exportStar(require("./ListV2ListContentRequestType.js"), exports);
20
20
  __exportStar(require("./RelationsContextRequestType.js"), exports);
21
21
  __exportStar(require("./SourcesV2SourceDeleteRequestType.js"), exports);
22
+ __exportStar(require("./SubgraphContextRequestType.js"), exports);
@@ -1 +1,2 @@
1
1
  export * from "./requests/index.js";
2
+ export * as supabaseRowChangeWebhook from "./supabaseRowChangeWebhook.js";
@@ -10,8 +10,32 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
13
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
20
  };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
16
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.supabaseRowChangeWebhook = void 0;
17
40
  __exportStar(require("./requests/index.js"), exports);
41
+ exports.supabaseRowChangeWebhook = __importStar(require("./supabaseRowChangeWebhook.js"));
@@ -0,0 +1,6 @@
1
+ import * as core from "../../../../core/index.js";
2
+ import type * as serializers from "../../../index.js";
3
+ export declare const Request: core.serialization.Schema<serializers.webhooks.supabaseRowChangeWebhook.Request.Raw, Record<string, unknown>>;
4
+ export declare namespace Request {
5
+ type Raw = Record<string, unknown>;
6
+ }
@@ -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.Request = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.Request = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -4,6 +4,8 @@ import type * as serializers from "../index.js";
4
4
  export declare const ConnectorsResource: core.serialization.ObjectSchema<serializers.ConnectorsResource.Raw, HydraDB.ConnectorsResource>;
5
5
  export declare namespace ConnectorsResource {
6
6
  interface Raw {
7
+ acl?: string[] | null;
8
+ acl_fingerprint?: string | null;
7
9
  additional_metadata?: Record<string, unknown> | null;
8
10
  backfill_chunk_interval_seconds?: number | null;
9
11
  backfill_next_chunk_at?: string | null;
@@ -11,6 +13,7 @@ export declare namespace ConnectorsResource {
11
13
  backfill_status?: string | null;
12
14
  collection_override?: string | null;
13
15
  connector_id?: string | null;
16
+ custom_instructions?: string | null;
14
17
  database_override?: string | null;
15
18
  display_name?: string | null;
16
19
  filters?: Record<string, unknown> | null;
@@ -21,6 +24,9 @@ export declare namespace ConnectorsResource {
21
24
  resource_type?: string | null;
22
25
  status?: string | null;
23
26
  sub_tenant_id_override?: string | null;
27
+ sync_blocked?: boolean | null;
28
+ sync_blocked_at?: string | null;
29
+ sync_blocked_reason?: string | null;
24
30
  tenant_id_override?: string | null;
25
31
  }
26
32
  }
@@ -37,6 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.ConnectorsResource = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.ConnectorsResource = core.serialization.object({
40
+ acl: core.serialization.list(core.serialization.string()).optional(),
41
+ aclFingerprint: core.serialization.property("acl_fingerprint", core.serialization.string().optional()),
40
42
  additionalMetadata: core.serialization.property("additional_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
41
43
  backfillChunkIntervalSeconds: core.serialization.property("backfill_chunk_interval_seconds", core.serialization.number().optional()),
42
44
  backfillNextChunkAt: core.serialization.property("backfill_next_chunk_at", core.serialization.string().optional()),
@@ -44,6 +46,7 @@ exports.ConnectorsResource = core.serialization.object({
44
46
  backfillStatus: core.serialization.property("backfill_status", core.serialization.string().optional()),
45
47
  collectionOverride: core.serialization.property("collection_override", core.serialization.string().optional()),
46
48
  connectorId: core.serialization.property("connector_id", core.serialization.string().optional()),
49
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
47
50
  databaseOverride: core.serialization.property("database_override", core.serialization.string().optional()),
48
51
  displayName: core.serialization.property("display_name", core.serialization.string().optional()),
49
52
  filters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
@@ -54,5 +57,8 @@ exports.ConnectorsResource = core.serialization.object({
54
57
  resourceType: core.serialization.property("resource_type", core.serialization.string().optional()),
55
58
  status: core.serialization.string().optional(),
56
59
  subTenantIdOverride: core.serialization.property("sub_tenant_id_override", core.serialization.string().optional()),
60
+ syncBlocked: core.serialization.property("sync_blocked", core.serialization.boolean().optional()),
61
+ syncBlockedAt: core.serialization.property("sync_blocked_at", core.serialization.string().optional()),
62
+ syncBlockedReason: core.serialization.property("sync_blocked_reason", core.serialization.string().optional()),
57
63
  tenantIdOverride: core.serialization.property("tenant_id_override", core.serialization.string().optional()),
58
64
  });
@@ -4,6 +4,8 @@ import type * as serializers from "../index.js";
4
4
  export declare const GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult: core.serialization.ObjectSchema<serializers.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.Raw, HydraDB.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult>;
5
5
  export declare namespace GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult {
6
6
  interface Raw {
7
+ acl_drift_recorded?: boolean | null;
8
+ acl_updated?: boolean | null;
7
9
  additional_metadata_keys?: string[] | null;
8
10
  chunk_rows_matched?: number | null;
9
11
  chunk_rows_modified?: number | null;
@@ -14,11 +16,14 @@ export declare namespace GithubComHydradbHydradbApplicationInternalServiceMetada
14
16
  milvus_rows_synced?: number | null;
15
17
  milvus_sync_required?: boolean | null;
16
18
  milvus_synced?: boolean | null;
19
+ partial_commit?: string | null;
17
20
  sub_tenant_id?: string | null;
18
21
  tenant_id?: string | null;
19
22
  tenant_metadata_keys?: string[] | null;
20
23
  updated?: boolean | null;
24
+ vector_acl_synced?: boolean | null;
21
25
  vector_rows_synced?: number | null;
26
+ vector_sync_error?: string | null;
22
27
  vector_sync_required?: boolean | null;
23
28
  vector_synced?: boolean | null;
24
29
  }
@@ -37,6 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult = core.serialization.object({
40
+ aclDriftRecorded: core.serialization.property("acl_drift_recorded", core.serialization.boolean().optional()),
41
+ aclUpdated: core.serialization.property("acl_updated", core.serialization.boolean().optional()),
40
42
  additionalMetadataKeys: core.serialization.property("additional_metadata_keys", core.serialization.list(core.serialization.string()).optional()),
41
43
  chunkRowsMatched: core.serialization.property("chunk_rows_matched", core.serialization.number().optional()),
42
44
  chunkRowsModified: core.serialization.property("chunk_rows_modified", core.serialization.number().optional()),
@@ -47,11 +49,14 @@ exports.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult = co
47
49
  milvusRowsSynced: core.serialization.property("milvus_rows_synced", core.serialization.number().optional()),
48
50
  milvusSyncRequired: core.serialization.property("milvus_sync_required", core.serialization.boolean().optional()),
49
51
  milvusSynced: core.serialization.property("milvus_synced", core.serialization.boolean().optional()),
52
+ partialCommit: core.serialization.property("partial_commit", core.serialization.string().optional()),
50
53
  subTenantId: core.serialization.property("sub_tenant_id", core.serialization.string().optional()),
51
54
  tenantId: core.serialization.property("tenant_id", core.serialization.string().optional()),
52
55
  tenantMetadataKeys: core.serialization.property("tenant_metadata_keys", core.serialization.list(core.serialization.string()).optional()),
53
56
  updated: core.serialization.boolean().optional(),
57
+ vectorAclSynced: core.serialization.property("vector_acl_synced", core.serialization.boolean().optional()),
54
58
  vectorRowsSynced: core.serialization.property("vector_rows_synced", core.serialization.number().optional()),
59
+ vectorSyncError: core.serialization.property("vector_sync_error", core.serialization.string().optional()),
55
60
  vectorSyncRequired: core.serialization.property("vector_sync_required", core.serialization.boolean().optional()),
56
61
  vectorSynced: core.serialization.property("vector_synced", core.serialization.boolean().optional()),
57
62
  });
@@ -5,6 +5,7 @@ export declare const GraphEntity: core.serialization.ObjectSchema<serializers.Gr
5
5
  export declare namespace GraphEntity {
6
6
  interface Raw {
7
7
  entity_id?: string | null;
8
+ hydration?: string | null;
8
9
  identifier?: string | null;
9
10
  name?: string | null;
10
11
  namespace?: string | null;
@@ -38,6 +38,7 @@ exports.GraphEntity = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.GraphEntity = core.serialization.object({
40
40
  entityId: core.serialization.property("entity_id", core.serialization.string().optional()),
41
+ hydration: core.serialization.string().optional(),
41
42
  identifier: core.serialization.string().optional(),
42
43
  name: core.serialization.string().optional(),
43
44
  namespace: core.serialization.string().optional(),
@@ -5,6 +5,8 @@ import { GraphTripletWithEvidence } from "./GraphTripletWithEvidence.js";
5
5
  export declare const GraphGraphRelationsResponse: core.serialization.ObjectSchema<serializers.GraphGraphRelationsResponse.Raw, HydraDB.GraphGraphRelationsResponse>;
6
6
  export declare namespace GraphGraphRelationsResponse {
7
7
  interface Raw {
8
+ auxiliary_relations?: GraphTripletWithEvidence.Raw[] | null;
9
+ auxiliary_truncated?: boolean | null;
8
10
  is_truncated?: boolean | null;
9
11
  message?: string | null;
10
12
  next_cursor?: number | null;
@@ -38,6 +38,8 @@ exports.GraphGraphRelationsResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const GraphTripletWithEvidence_js_1 = require("./GraphTripletWithEvidence.js");
40
40
  exports.GraphGraphRelationsResponse = core.serialization.object({
41
+ auxiliaryRelations: core.serialization.property("auxiliary_relations", core.serialization.list(GraphTripletWithEvidence_js_1.GraphTripletWithEvidence).optional()),
42
+ auxiliaryTruncated: core.serialization.property("auxiliary_truncated", core.serialization.boolean().optional()),
41
43
  isTruncated: core.serialization.property("is_truncated", core.serialization.boolean().optional()),
42
44
  message: core.serialization.string().optional(),
43
45
  nextCursor: core.serialization.property("next_cursor", core.serialization.number().optional()),
@@ -11,6 +11,7 @@ export declare namespace GraphRelationEvidence {
11
11
  raw_predicate?: string | null;
12
12
  relationship_id?: string | null;
13
13
  source_entity_id?: string | null;
14
+ synthesized?: boolean | null;
14
15
  target_entity_id?: string | null;
15
16
  temporal_details?: string | null;
16
17
  timestamp?: string | null;
@@ -44,6 +44,7 @@ exports.GraphRelationEvidence = core.serialization.object({
44
44
  rawPredicate: core.serialization.property("raw_predicate", core.serialization.string().optional()),
45
45
  relationshipId: core.serialization.property("relationship_id", core.serialization.string().optional()),
46
46
  sourceEntityId: core.serialization.property("source_entity_id", core.serialization.string().optional()),
47
+ synthesized: core.serialization.boolean().optional(),
47
48
  targetEntityId: core.serialization.property("target_entity_id", core.serialization.string().optional()),
48
49
  temporalDetails: core.serialization.property("temporal_details", core.serialization.string().optional()),
49
50
  timestamp: core.serialization.string().optional(),
@@ -0,0 +1,19 @@
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 { GraphSubgraphSource } from "./GraphSubgraphSource.js";
5
+ import { GraphTripletWithEvidence } from "./GraphTripletWithEvidence.js";
6
+ export declare const GraphSourceSubgraphResponse: core.serialization.ObjectSchema<serializers.GraphSourceSubgraphResponse.Raw, HydraDB.GraphSourceSubgraphResponse>;
7
+ export declare namespace GraphSourceSubgraphResponse {
8
+ interface Raw {
9
+ auxiliary_relations?: GraphTripletWithEvidence.Raw[] | null;
10
+ auxiliary_truncated?: boolean | null;
11
+ is_truncated?: boolean | null;
12
+ max_depth_reached?: number | null;
13
+ message?: string | null;
14
+ relations?: GraphTripletWithEvidence.Raw[] | null;
15
+ seed_source_id?: string | null;
16
+ sources?: GraphSubgraphSource.Raw[] | null;
17
+ success?: boolean | null;
18
+ }
19
+ }
@@ -0,0 +1,51 @@
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.GraphSourceSubgraphResponse = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GraphSubgraphSource_js_1 = require("./GraphSubgraphSource.js");
40
+ const GraphTripletWithEvidence_js_1 = require("./GraphTripletWithEvidence.js");
41
+ exports.GraphSourceSubgraphResponse = core.serialization.object({
42
+ auxiliaryRelations: core.serialization.property("auxiliary_relations", core.serialization.list(GraphTripletWithEvidence_js_1.GraphTripletWithEvidence).optional()),
43
+ auxiliaryTruncated: core.serialization.property("auxiliary_truncated", core.serialization.boolean().optional()),
44
+ isTruncated: core.serialization.property("is_truncated", core.serialization.boolean().optional()),
45
+ maxDepthReached: core.serialization.property("max_depth_reached", core.serialization.number().optional()),
46
+ message: core.serialization.string().optional(),
47
+ relations: core.serialization.list(GraphTripletWithEvidence_js_1.GraphTripletWithEvidence).optional(),
48
+ seedSourceId: core.serialization.property("seed_source_id", core.serialization.string().optional()),
49
+ sources: core.serialization.list(GraphSubgraphSource_js_1.GraphSubgraphSource).optional(),
50
+ success: core.serialization.boolean().optional(),
51
+ });
@@ -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
+ export declare const GraphSubgraphSource: core.serialization.ObjectSchema<serializers.GraphSubgraphSource.Raw, HydraDB.GraphSubgraphSource>;
5
+ export declare namespace GraphSubgraphSource {
6
+ interface Raw {
7
+ app_external_id?: string | null;
8
+ app_kind?: string | null;
9
+ app_provider?: string | null;
10
+ depth?: number | null;
11
+ discovered_relation?: string | null;
12
+ discovered_via?: string | null;
13
+ hydration?: string | null;
14
+ source_id?: string | null;
15
+ thread_id?: string | null;
16
+ title?: string | 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.GraphSubgraphSource = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.GraphSubgraphSource = core.serialization.object({
40
+ appExternalId: core.serialization.property("app_external_id", core.serialization.string().optional()),
41
+ appKind: core.serialization.property("app_kind", core.serialization.string().optional()),
42
+ appProvider: core.serialization.property("app_provider", core.serialization.string().optional()),
43
+ depth: core.serialization.number().optional(),
44
+ discoveredRelation: core.serialization.property("discovered_relation", core.serialization.string().optional()),
45
+ discoveredVia: core.serialization.property("discovered_via", core.serialization.string().optional()),
46
+ hydration: core.serialization.string().optional(),
47
+ sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
48
+ threadId: core.serialization.property("thread_id", core.serialization.string().optional()),
49
+ title: core.serialization.string().optional(),
50
+ });
@@ -10,5 +10,6 @@ export declare namespace GraphTripletWithEvidence {
10
10
  relations?: GraphRelationEvidence.Raw[] | null;
11
11
  source?: GraphEntity.Raw | null;
12
12
  target?: GraphEntity.Raw | null;
13
+ truncated?: boolean | null;
13
14
  }
14
15
  }
@@ -43,4 +43,5 @@ exports.GraphTripletWithEvidence = core.serialization.object({
43
43
  relations: core.serialization.list(GraphRelationEvidence_js_1.GraphRelationEvidence).optional(),
44
44
  source: GraphEntity_js_1.GraphEntity.optional(),
45
45
  target: GraphEntity_js_1.GraphEntity.optional(),
46
+ truncated: core.serialization.boolean().optional(),
46
47
  });