@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
@@ -10,6 +10,9 @@ export declare namespace HandlerCatalogConnector {
10
10
  moveit_support?: boolean | null;
11
11
  provider?: string | null;
12
12
  rank?: number | null;
13
+ rbac_description?: string | null;
14
+ rbac_support?: boolean | null;
13
15
  supported?: boolean | null;
16
+ webhook_support?: boolean | null;
14
17
  }
15
18
  }
@@ -43,5 +43,8 @@ exports.HandlerCatalogConnector = core.serialization.object({
43
43
  moveitSupport: core.serialization.property("moveit_support", core.serialization.boolean().optional()),
44
44
  provider: core.serialization.string().optional(),
45
45
  rank: core.serialization.number().optional(),
46
+ rbacDescription: core.serialization.property("rbac_description", core.serialization.string().optional()),
47
+ rbacSupport: core.serialization.property("rbac_support", core.serialization.boolean().optional()),
46
48
  supported: core.serialization.boolean().optional(),
49
+ webhookSupport: core.serialization.property("webhook_support", core.serialization.boolean().optional()),
47
50
  });
@@ -4,10 +4,12 @@ import type * as serializers from "../index.js";
4
4
  export declare const HandlerConnectorApiView: core.serialization.ObjectSchema<serializers.HandlerConnectorApiView.Raw, HydraDB.HandlerConnectorApiView>;
5
5
  export declare namespace HandlerConnectorApiView {
6
6
  interface Raw {
7
+ acl_changes_cursor?: string | null;
7
8
  active_resource_count?: number | null;
8
9
  auth_type?: string | null;
9
10
  collection?: string | null;
10
11
  connector_id?: string | null;
12
+ custom_instructions?: string | null;
11
13
  database?: string | null;
12
14
  documents_dispatched?: number | null;
13
15
  first_data_dispatched_at?: string | null;
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerConnectorApiView = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.HandlerConnectorApiView = core.serialization.object({
40
+ aclChangesCursor: core.serialization.property("acl_changes_cursor", core.serialization.string().optional()),
40
41
  activeResourceCount: core.serialization.property("active_resource_count", core.serialization.number().optional()),
41
42
  authType: core.serialization.property("auth_type", core.serialization.string().optional()),
42
43
  collection: core.serialization.string().optional(),
43
44
  connectorId: core.serialization.property("connector_id", core.serialization.string().optional()),
45
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
44
46
  database: core.serialization.string().optional(),
45
47
  documentsDispatched: core.serialization.property("documents_dispatched", core.serialization.number().optional()),
46
48
  firstDataDispatchedAt: core.serialization.property("first_data_dispatched_at", core.serialization.string().optional()),
@@ -4,10 +4,12 @@ import type * as serializers from "../index.js";
4
4
  export declare const HandlerConnectorCreateResponse: core.serialization.ObjectSchema<serializers.HandlerConnectorCreateResponse.Raw, HydraDB.HandlerConnectorCreateResponse>;
5
5
  export declare namespace HandlerConnectorCreateResponse {
6
6
  interface Raw {
7
+ acl_changes_cursor?: string | null;
7
8
  active_resource_count?: number | null;
8
9
  auth_type?: string | null;
9
10
  collection?: string | null;
10
11
  connector_id?: string | null;
12
+ custom_instructions?: string | null;
11
13
  database?: string | null;
12
14
  documents_dispatched?: number | null;
13
15
  first_data_dispatched_at?: string | null;
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerConnectorCreateResponse = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.HandlerConnectorCreateResponse = core.serialization.object({
40
+ aclChangesCursor: core.serialization.property("acl_changes_cursor", core.serialization.string().optional()),
40
41
  activeResourceCount: core.serialization.property("active_resource_count", core.serialization.number().optional()),
41
42
  authType: core.serialization.property("auth_type", core.serialization.string().optional()),
42
43
  collection: core.serialization.string().optional(),
43
44
  connectorId: core.serialization.property("connector_id", core.serialization.string().optional()),
45
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
44
46
  database: core.serialization.string().optional(),
45
47
  documentsDispatched: core.serialization.property("documents_dispatched", core.serialization.number().optional()),
46
48
  firstDataDispatchedAt: core.serialization.property("first_data_dispatched_at", core.serialization.string().optional()),
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const HandlerConnectorResourceStatus: core.serialization.ObjectSchema<serializers.HandlerConnectorResourceStatus.Raw, HydraDB.HandlerConnectorResourceStatus>;
5
5
  export declare namespace HandlerConnectorResourceStatus {
6
6
  interface Raw {
7
+ action?: string | null;
7
8
  checked_at?: string | null;
8
9
  display_name?: string | null;
9
10
  http_status?: number | null;
@@ -12,5 +13,8 @@ export declare namespace HandlerConnectorResourceStatus {
12
13
  resource_id?: string | null;
13
14
  retryable?: boolean | null;
14
15
  status?: string | null;
16
+ sync_blocked?: boolean | null;
17
+ sync_blocked_at?: string | null;
18
+ sync_blocked_reason?: string | null;
15
19
  }
16
20
  }
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.HandlerConnectorResourceStatus = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  exports.HandlerConnectorResourceStatus = core.serialization.object({
40
+ action: core.serialization.string().optional(),
40
41
  checkedAt: core.serialization.property("checked_at", core.serialization.string().optional()),
41
42
  displayName: core.serialization.property("display_name", core.serialization.string().optional()),
42
43
  httpStatus: core.serialization.property("http_status", core.serialization.number().optional()),
@@ -45,4 +46,7 @@ exports.HandlerConnectorResourceStatus = core.serialization.object({
45
46
  resourceId: core.serialization.property("resource_id", core.serialization.string().optional()),
46
47
  retryable: core.serialization.boolean().optional(),
47
48
  status: core.serialization.string().optional(),
49
+ syncBlocked: core.serialization.property("sync_blocked", core.serialization.boolean().optional()),
50
+ syncBlockedAt: core.serialization.property("sync_blocked_at", core.serialization.string().optional()),
51
+ syncBlockedReason: core.serialization.property("sync_blocked_reason", core.serialization.string().optional()),
48
52
  });
@@ -6,6 +6,7 @@ export declare namespace HandlerConnectorUpdateResponse {
6
6
  interface Raw {
7
7
  connector_id?: string | null;
8
8
  credentials_updated?: boolean | null;
9
+ custom_instructions_updated?: boolean | null;
9
10
  max_sync_interval_seconds?: number | null;
10
11
  min_sync_interval_seconds?: number | null;
11
12
  next_sync_at?: string | null;
@@ -39,6 +39,7 @@ const core = __importStar(require("../../core/index.js"));
39
39
  exports.HandlerConnectorUpdateResponse = core.serialization.object({
40
40
  connectorId: core.serialization.property("connector_id", core.serialization.string().optional()),
41
41
  credentialsUpdated: core.serialization.property("credentials_updated", core.serialization.boolean().optional()),
42
+ customInstructionsUpdated: core.serialization.property("custom_instructions_updated", core.serialization.boolean().optional()),
42
43
  maxSyncIntervalSeconds: core.serialization.property("max_sync_interval_seconds", core.serialization.number().optional()),
43
44
  minSyncIntervalSeconds: core.serialization.property("min_sync_interval_seconds", core.serialization.number().optional()),
44
45
  nextSyncAt: core.serialization.property("next_sync_at", core.serialization.string().optional()),
@@ -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
+ import { GraphSourceSubgraphResponse } from "./GraphSourceSubgraphResponse.js";
5
+ import { HandlerApiError } from "./HandlerApiError.js";
6
+ import { HandlerResponseMeta } from "./HandlerResponseMeta.js";
7
+ export declare const HandlerEnvelopeGraphSourceSubgraphResponse: core.serialization.ObjectSchema<serializers.HandlerEnvelopeGraphSourceSubgraphResponse.Raw, HydraDB.HandlerEnvelopeGraphSourceSubgraphResponse>;
8
+ export declare namespace HandlerEnvelopeGraphSourceSubgraphResponse {
9
+ interface Raw {
10
+ data?: GraphSourceSubgraphResponse.Raw | null;
11
+ error?: HandlerApiError.Raw | null;
12
+ meta?: HandlerResponseMeta.Raw | null;
13
+ success?: 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.HandlerEnvelopeGraphSourceSubgraphResponse = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const GraphSourceSubgraphResponse_js_1 = require("./GraphSourceSubgraphResponse.js");
40
+ const HandlerApiError_js_1 = require("./HandlerApiError.js");
41
+ const HandlerResponseMeta_js_1 = require("./HandlerResponseMeta.js");
42
+ exports.HandlerEnvelopeGraphSourceSubgraphResponse = core.serialization.object({
43
+ data: GraphSourceSubgraphResponse_js_1.GraphSourceSubgraphResponse.optional(),
44
+ error: HandlerApiError_js_1.HandlerApiError.optional(),
45
+ meta: HandlerResponseMeta_js_1.HandlerResponseMeta.optional(),
46
+ success: core.serialization.boolean().optional(),
47
+ });
@@ -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
+ import { HandlerApiError } from "./HandlerApiError.js";
5
+ import { HandlerResponseMeta } from "./HandlerResponseMeta.js";
6
+ import { HandlerSupabaseWebhookAck } from "./HandlerSupabaseWebhookAck.js";
7
+ export declare const HandlerEnvelopeHandlerSupabaseWebhookAck: core.serialization.ObjectSchema<serializers.HandlerEnvelopeHandlerSupabaseWebhookAck.Raw, HydraDB.HandlerEnvelopeHandlerSupabaseWebhookAck>;
8
+ export declare namespace HandlerEnvelopeHandlerSupabaseWebhookAck {
9
+ interface Raw {
10
+ data?: HandlerSupabaseWebhookAck.Raw | null;
11
+ error?: HandlerApiError.Raw | null;
12
+ meta?: HandlerResponseMeta.Raw | null;
13
+ success?: 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.HandlerEnvelopeHandlerSupabaseWebhookAck = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const HandlerApiError_js_1 = require("./HandlerApiError.js");
40
+ const HandlerResponseMeta_js_1 = require("./HandlerResponseMeta.js");
41
+ const HandlerSupabaseWebhookAck_js_1 = require("./HandlerSupabaseWebhookAck.js");
42
+ exports.HandlerEnvelopeHandlerSupabaseWebhookAck = core.serialization.object({
43
+ data: HandlerSupabaseWebhookAck_js_1.HandlerSupabaseWebhookAck.optional(),
44
+ error: HandlerApiError_js_1.HandlerApiError.optional(),
45
+ meta: HandlerResponseMeta_js_1.HandlerResponseMeta.optional(),
46
+ success: core.serialization.boolean().optional(),
47
+ });
@@ -5,8 +5,10 @@ import { HandlerResourceMappingSyncMode } from "./HandlerResourceMappingSyncMode
5
5
  export declare const HandlerResourceMapping: core.serialization.ObjectSchema<serializers.HandlerResourceMapping.Raw, HydraDB.HandlerResourceMapping>;
6
6
  export declare namespace HandlerResourceMapping {
7
7
  interface Raw {
8
+ acl?: string[] | null;
8
9
  additional_metadata?: Record<string, unknown> | null;
9
10
  collection?: string | null;
11
+ custom_instructions?: string | null;
10
12
  database?: string | null;
11
13
  metadata?: Record<string, unknown> | null;
12
14
  name?: string | null;
@@ -38,8 +38,10 @@ exports.HandlerResourceMapping = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const HandlerResourceMappingSyncMode_js_1 = require("./HandlerResourceMappingSyncMode.js");
40
40
  exports.HandlerResourceMapping = core.serialization.object({
41
+ acl: core.serialization.list(core.serialization.string()).optional(),
41
42
  additionalMetadata: core.serialization.property("additional_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
42
43
  collection: core.serialization.string().optional(),
44
+ customInstructions: core.serialization.property("custom_instructions", core.serialization.string().optional()),
43
45
  database: core.serialization.string().optional(),
44
46
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
47
  name: core.serialization.string().optional(),
@@ -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 HandlerSupabaseWebhookAck: core.serialization.ObjectSchema<serializers.HandlerSupabaseWebhookAck.Raw, HydraDB.HandlerSupabaseWebhookAck>;
5
+ export declare namespace HandlerSupabaseWebhookAck {
6
+ interface Raw {
7
+ id?: string | null;
8
+ status?: string | null;
9
+ table?: 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.HandlerSupabaseWebhookAck = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.HandlerSupabaseWebhookAck = core.serialization.object({
40
+ id: core.serialization.string().optional(),
41
+ status: core.serialization.string().optional(),
42
+ table: core.serialization.string().optional(),
43
+ });
@@ -0,0 +1,20 @@
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 SearchSourceFact: core.serialization.ObjectSchema<serializers.SearchSourceFact.Raw, HydraDB.SearchSourceFact>;
5
+ export declare namespace SearchSourceFact {
6
+ interface Raw {
7
+ actor?: string | null;
8
+ actor_role?: string | null;
9
+ app_kind?: string | null;
10
+ chunk_id?: string | null;
11
+ connector?: string | null;
12
+ container?: string | null;
13
+ provider?: string | null;
14
+ relation?: string | null;
15
+ relationship_id?: string | null;
16
+ source_id?: string | null;
17
+ synced_at?: number | null;
18
+ thread_id?: string | null;
19
+ }
20
+ }
@@ -0,0 +1,52 @@
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.SearchSourceFact = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchSourceFact = core.serialization.object({
40
+ actor: core.serialization.string().optional(),
41
+ actorRole: core.serialization.property("actor_role", core.serialization.string().optional()),
42
+ appKind: core.serialization.property("app_kind", core.serialization.string().optional()),
43
+ chunkId: core.serialization.property("chunk_id", core.serialization.string().optional()),
44
+ connector: core.serialization.string().optional(),
45
+ container: core.serialization.string().optional(),
46
+ provider: core.serialization.string().optional(),
47
+ relation: core.serialization.string().optional(),
48
+ relationshipId: core.serialization.property("relationship_id", core.serialization.string().optional()),
49
+ sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
50
+ syncedAt: core.serialization.property("synced_at", core.serialization.number().optional()),
51
+ threadId: core.serialization.property("thread_id", core.serialization.string().optional()),
52
+ });
@@ -0,0 +1,17 @@
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 SearchSourceFilterInfo: core.serialization.ObjectSchema<serializers.SearchSourceFilterInfo.Raw, HydraDB.SearchSourceFilterInfo>;
5
+ export declare namespace SearchSourceFilterInfo {
6
+ interface Raw {
7
+ actor_scope?: string | null;
8
+ applied?: boolean | null;
9
+ container_scope?: string | null;
10
+ degraded?: boolean | null;
11
+ matched_facts?: number | null;
12
+ mode?: string | null;
13
+ provider?: string | null;
14
+ thread_scope?: boolean | null;
15
+ truncated?: boolean | null;
16
+ }
17
+ }
@@ -0,0 +1,49 @@
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.SearchSourceFilterInfo = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SearchSourceFilterInfo = core.serialization.object({
40
+ actorScope: core.serialization.property("actor_scope", core.serialization.string().optional()),
41
+ applied: core.serialization.boolean().optional(),
42
+ containerScope: core.serialization.property("container_scope", core.serialization.string().optional()),
43
+ degraded: core.serialization.boolean().optional(),
44
+ matchedFacts: core.serialization.property("matched_facts", core.serialization.number().optional()),
45
+ mode: core.serialization.string().optional(),
46
+ provider: core.serialization.string().optional(),
47
+ threadScope: core.serialization.property("thread_scope", core.serialization.boolean().optional()),
48
+ truncated: core.serialization.boolean().optional(),
49
+ });
@@ -2,6 +2,8 @@ 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 { SearchGraphContext } from "./SearchGraphContext.js";
5
+ import { SearchSourceFact } from "./SearchSourceFact.js";
6
+ import { SearchSourceFilterInfo } from "./SearchSourceFilterInfo.js";
5
7
  import { SearchSourceInfo } from "./SearchSourceInfo.js";
6
8
  import { SearchTemporalDuration } from "./SearchTemporalDuration.js";
7
9
  import { SearchTemporalFact } from "./SearchTemporalFact.js";
@@ -13,6 +15,8 @@ export declare namespace SearchV2RetrievalResult {
13
15
  additional_context?: Record<string, SearchV2Chunk.Raw> | null;
14
16
  chunks?: SearchV2Chunk.Raw[] | null;
15
17
  graph_context?: SearchGraphContext.Raw | null;
18
+ source_facts?: SearchSourceFact.Raw[] | null;
19
+ source_filter?: SearchSourceFilterInfo.Raw | null;
16
20
  sources?: SearchSourceInfo.Raw[] | null;
17
21
  temporal_duration?: SearchTemporalDuration.Raw | null;
18
22
  temporal_facts?: SearchTemporalFact.Raw[] | null;
@@ -37,6 +37,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.SearchV2RetrievalResult = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
39
  const SearchGraphContext_js_1 = require("./SearchGraphContext.js");
40
+ const SearchSourceFact_js_1 = require("./SearchSourceFact.js");
41
+ const SearchSourceFilterInfo_js_1 = require("./SearchSourceFilterInfo.js");
40
42
  const SearchSourceInfo_js_1 = require("./SearchSourceInfo.js");
41
43
  const SearchTemporalDuration_js_1 = require("./SearchTemporalDuration.js");
42
44
  const SearchTemporalFact_js_1 = require("./SearchTemporalFact.js");
@@ -46,6 +48,8 @@ exports.SearchV2RetrievalResult = core.serialization.object({
46
48
  additionalContext: core.serialization.property("additional_context", core.serialization.record(core.serialization.string(), SearchV2Chunk_js_1.SearchV2Chunk).optional()),
47
49
  chunks: core.serialization.list(SearchV2Chunk_js_1.SearchV2Chunk).optional(),
48
50
  graphContext: core.serialization.property("graph_context", SearchGraphContext_js_1.SearchGraphContext.optional()),
51
+ sourceFacts: core.serialization.property("source_facts", core.serialization.list(SearchSourceFact_js_1.SearchSourceFact).optional()),
52
+ sourceFilter: core.serialization.property("source_filter", SearchSourceFilterInfo_js_1.SearchSourceFilterInfo.optional()),
49
53
  sources: core.serialization.list(SearchSourceInfo_js_1.SearchSourceInfo).optional(),
50
54
  temporalDuration: core.serialization.property("temporal_duration", SearchTemporalDuration_js_1.SearchTemporalDuration.optional()),
51
55
  temporalFacts: core.serialization.property("temporal_facts", core.serialization.list(SearchTemporalFact_js_1.SearchTemporalFact).optional()),
@@ -15,6 +15,8 @@ export * from "./GithubComHydradbHydradbApplicationInternalServiceMetadataEditRe
15
15
  export * from "./GraphEntity.js";
16
16
  export * from "./GraphGraphRelationsResponse.js";
17
17
  export * from "./GraphRelationEvidence.js";
18
+ export * from "./GraphSourceSubgraphResponse.js";
19
+ export * from "./GraphSubgraphSource.js";
18
20
  export * from "./GraphTripletWithEvidence.js";
19
21
  export * from "./HandlerApiError.js";
20
22
  export * from "./HandlerCatalogConnector.js";
@@ -39,6 +41,8 @@ export * from "./HandlerEnvelopeFeedbackSubmitResponse.js";
39
41
  export * from "./HandlerEnvelopeFetchV2SourceFetchResponse.js";
40
42
  export * from "./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js";
41
43
  export * from "./HandlerEnvelopeGraphGraphRelationsResponse.js";
44
+ export * from "./HandlerEnvelopeGraphSourceSubgraphResponse.js";
45
+ export * from "./HandlerEnvelopeHandlerSupabaseWebhookAck.js";
42
46
  export * from "./HandlerEnvelopeIngestionV2BatchProcessingStatus.js";
43
47
  export * from "./HandlerEnvelopeIngestionV2IngestResponse.js";
44
48
  export * from "./HandlerEnvelopeListV2ListResponse.js";
@@ -69,6 +73,7 @@ export * from "./HandlerResourceDeleteResponse.js";
69
73
  export * from "./HandlerResourceMapping.js";
70
74
  export * from "./HandlerResourceMappingSyncMode.js";
71
75
  export * from "./HandlerResponseMeta.js";
76
+ export * from "./HandlerSupabaseWebhookAck.js";
72
77
  export * from "./HandlerTableConfigEntry.js";
73
78
  export * from "./IngestionSourceStatus.js";
74
79
  export * from "./IngestionV2BatchProcessingStatus.js";
@@ -88,6 +93,8 @@ export * from "./SearchQueryRequestCollections.js";
88
93
  export * from "./SearchQueryRequestSubTenantIds.js";
89
94
  export * from "./SearchRecallMode.js";
90
95
  export * from "./SearchScoredPathResponse.js";
96
+ export * from "./SearchSourceFact.js";
97
+ export * from "./SearchSourceFilterInfo.js";
91
98
  export * from "./SearchSourceInfo.js";
92
99
  export * from "./SearchSourceType.js";
93
100
  export * from "./SearchTemporalDuration.js";
@@ -31,6 +31,8 @@ __exportStar(require("./GithubComHydradbHydradbApplicationInternalServiceMetadat
31
31
  __exportStar(require("./GraphEntity.js"), exports);
32
32
  __exportStar(require("./GraphGraphRelationsResponse.js"), exports);
33
33
  __exportStar(require("./GraphRelationEvidence.js"), exports);
34
+ __exportStar(require("./GraphSourceSubgraphResponse.js"), exports);
35
+ __exportStar(require("./GraphSubgraphSource.js"), exports);
34
36
  __exportStar(require("./GraphTripletWithEvidence.js"), exports);
35
37
  __exportStar(require("./HandlerApiError.js"), exports);
36
38
  __exportStar(require("./HandlerCatalogConnector.js"), exports);
@@ -55,6 +57,8 @@ __exportStar(require("./HandlerEnvelopeFeedbackSubmitResponse.js"), exports);
55
57
  __exportStar(require("./HandlerEnvelopeFetchV2SourceFetchResponse.js"), exports);
56
58
  __exportStar(require("./HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js"), exports);
57
59
  __exportStar(require("./HandlerEnvelopeGraphGraphRelationsResponse.js"), exports);
60
+ __exportStar(require("./HandlerEnvelopeGraphSourceSubgraphResponse.js"), exports);
61
+ __exportStar(require("./HandlerEnvelopeHandlerSupabaseWebhookAck.js"), exports);
58
62
  __exportStar(require("./HandlerEnvelopeIngestionV2BatchProcessingStatus.js"), exports);
59
63
  __exportStar(require("./HandlerEnvelopeIngestionV2IngestResponse.js"), exports);
60
64
  __exportStar(require("./HandlerEnvelopeListV2ListResponse.js"), exports);
@@ -85,6 +89,7 @@ __exportStar(require("./HandlerResourceDeleteResponse.js"), exports);
85
89
  __exportStar(require("./HandlerResourceMapping.js"), exports);
86
90
  __exportStar(require("./HandlerResourceMappingSyncMode.js"), exports);
87
91
  __exportStar(require("./HandlerResponseMeta.js"), exports);
92
+ __exportStar(require("./HandlerSupabaseWebhookAck.js"), exports);
88
93
  __exportStar(require("./HandlerTableConfigEntry.js"), exports);
89
94
  __exportStar(require("./IngestionSourceStatus.js"), exports);
90
95
  __exportStar(require("./IngestionV2BatchProcessingStatus.js"), exports);
@@ -104,6 +109,8 @@ __exportStar(require("./SearchQueryRequestCollections.js"), exports);
104
109
  __exportStar(require("./SearchQueryRequestSubTenantIds.js"), exports);
105
110
  __exportStar(require("./SearchRecallMode.js"), exports);
106
111
  __exportStar(require("./SearchScoredPathResponse.js"), exports);
112
+ __exportStar(require("./SearchSourceFact.js"), exports);
113
+ __exportStar(require("./SearchSourceFilterInfo.js"), exports);
107
114
  __exportStar(require("./SearchSourceInfo.js"), exports);
108
115
  __exportStar(require("./SearchSourceType.js"), exports);
109
116
  __exportStar(require("./SearchTemporalDuration.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydradb/sdk",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
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",