@hydradb/sdk 2.1.2 → 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.
- package/dist/Client.d.ts +5 -2
- package/dist/Client.js +9 -11
- package/dist/api/client/requests/SearchQueryRequest.d.ts +32 -0
- package/dist/api/errors/ConflictError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/resources/connectors/client/Client.d.ts +68 -14
- package/dist/api/resources/connectors/client/Client.js +239 -94
- package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +8 -0
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +7 -7
- package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +20 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +14 -2
- package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.d.ts +17 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +3 -0
- package/dist/api/resources/context/client/Client.d.ts +38 -2
- package/dist/api/resources/context/client/Client.js +125 -13
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +18 -4
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +10 -0
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -0
- package/dist/api/resources/context/client/requests/SubgraphContextRequest.d.ts +31 -0
- package/dist/api/resources/context/client/requests/index.d.ts +1 -0
- package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +5 -0
- package/dist/api/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.js +8 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.d.ts +5 -0
- package/dist/api/resources/context/types/SubgraphContextRequestType.js +8 -0
- package/dist/api/resources/context/types/index.d.ts +2 -0
- package/dist/api/resources/context/types/index.js +2 -0
- package/dist/api/resources/databases/client/Client.d.ts +17 -0
- package/dist/api/resources/databases/client/Client.js +75 -58
- package/dist/api/resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/Client.d.ts +32 -0
- package/dist/api/resources/feedback/client/Client.js +129 -0
- package/dist/api/resources/feedback/client/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/index.js +2 -0
- package/dist/api/resources/feedback/exports.d.ts +2 -0
- package/dist/api/resources/feedback/exports.js +21 -0
- package/dist/api/resources/feedback/index.d.ts +1 -0
- package/dist/api/resources/feedback/index.js +17 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +46 -1
- package/dist/api/resources/webhooks/client/Client.js +207 -1
- package/dist/api/resources/webhooks/client/requests/PostWebhooksSupabaseRequest.d.ts +14 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +8 -0
- package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +3 -1
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -0
- package/dist/api/types/ConnectorsResource.d.ts +43 -0
- package/dist/api/types/FeedbackGroundTruth.d.ts +12 -0
- package/dist/api/types/FeedbackGroundTruth.js +3 -0
- package/dist/api/types/FeedbackRating.d.ts +6 -0
- package/dist/api/types/FeedbackRating.js +9 -0
- package/dist/api/types/FeedbackSource.d.ts +5 -0
- package/dist/api/types/FeedbackSource.js +8 -0
- package/dist/api/types/FeedbackSubmitRequest.d.ts +2 -0
- package/dist/api/types/FeedbackSubmitRequest.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestFeedback.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestFeedback.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruth.d.ts +4 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruth.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +2 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +3 -0
- package/dist/api/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +3 -0
- package/dist/api/types/FeedbackSubmitResponse.d.ts +12 -0
- package/dist/api/types/FeedbackSubmitResponse.js +3 -0
- package/dist/api/types/FetchV2SourceFetchResponse.d.ts +7 -1
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +36 -2
- package/dist/api/types/GraphEntity.d.ts +12 -0
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +30 -1
- package/dist/api/types/GraphRelationEvidence.d.ts +8 -0
- package/dist/api/types/GraphSourceSubgraphResponse.d.ts +40 -0
- package/dist/api/types/GraphSourceSubgraphResponse.js +3 -0
- package/dist/api/types/GraphSubgraphSource.d.ts +28 -0
- package/dist/api/types/GraphSubgraphSource.js +3 -0
- package/dist/api/types/GraphTripletWithEvidence.d.ts +7 -0
- package/dist/api/types/HandlerCatalogConnector.d.ts +26 -0
- package/dist/api/types/HandlerCatalogConnector.js +3 -0
- package/dist/api/types/HandlerConfigureResponse.d.ts +24 -0
- package/dist/api/types/HandlerConfigureResponse.js +3 -0
- package/dist/api/types/HandlerConfigureResponseMeta.d.ts +4 -0
- package/dist/api/types/HandlerConfigureResponseMeta.js +3 -0
- package/dist/api/types/HandlerConnectorApiView.d.ts +139 -0
- package/dist/api/types/HandlerConnectorApiView.js +3 -0
- package/dist/api/types/HandlerConnectorCatalogResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorCatalogResponse.js +3 -0
- package/dist/api/types/HandlerConnectorCreateResponse.d.ts +143 -0
- package/dist/api/types/HandlerConnectorCreateResponse.js +3 -0
- package/dist/api/types/HandlerConnectorDeleteResponse.d.ts +6 -0
- package/dist/api/types/HandlerConnectorDeleteResponse.js +3 -0
- package/dist/api/types/HandlerConnectorListResponse.d.ts +11 -0
- package/dist/api/types/HandlerConnectorListResponse.js +3 -0
- package/dist/api/types/HandlerConnectorResourceStatus.d.ts +37 -0
- package/dist/api/types/HandlerConnectorResourceStatus.js +3 -0
- package/dist/api/types/HandlerConnectorResourcesResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorResourcesResponse.js +3 -0
- package/dist/api/types/HandlerConnectorStatusError.d.ts +19 -0
- package/dist/api/types/HandlerConnectorStatusError.js +3 -0
- package/dist/api/types/HandlerConnectorStatusResponse.d.ts +37 -0
- package/dist/api/types/HandlerConnectorStatusResponse.js +3 -0
- package/dist/api/types/HandlerConnectorSyncResponse.d.ts +4 -0
- package/dist/api/types/HandlerConnectorSyncResponse.js +3 -0
- package/dist/api/types/HandlerConnectorUpdateResponse.d.ts +22 -0
- package/dist/api/types/HandlerConnectorUpdateResponse.js +3 -0
- package/dist/api/types/HandlerCredentialsUpdateResponse.d.ts +6 -0
- package/dist/api/types/HandlerCredentialsUpdateResponse.js +3 -0
- package/dist/api/types/HandlerDiscoverResponseBody.d.ts +9 -0
- package/dist/api/types/HandlerDiscoverResponseBody.js +3 -0
- package/dist/api/types/HandlerDiscoveredResourceDto.d.ts +9 -0
- package/dist/api/types/HandlerDiscoveredResourceDto.js +3 -0
- package/dist/api/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +2 -2
- package/dist/api/types/HandlerEnvelopeFeedbackSubmitResponse.js +3 -0
- package/dist/api/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts → HandlerEnvelopeGraphSourceSubgraphResponse.d.ts} +2 -2
- package/dist/api/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +3 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2IngestResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeListV2ListResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeListV2ListResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +3 -0
- package/dist/api/types/HandlerErrorDetail.d.ts +8 -1
- package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +10 -0
- package/dist/api/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +3 -0
- package/dist/api/types/HandlerProviderListResponse.d.ts +4 -0
- package/dist/api/types/HandlerProviderListResponse.js +3 -0
- package/dist/api/types/HandlerResourceDeleteResponse.d.ts +8 -0
- package/dist/api/types/HandlerResourceDeleteResponse.js +3 -0
- package/dist/api/types/HandlerResourceMapping.d.ts +25 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.d.ts +7 -0
- package/dist/api/types/HandlerSupabaseWebhookAck.js +3 -0
- package/dist/api/types/HandlerTableConfigEntry.d.ts +5 -0
- package/dist/api/types/HandlerTableConfigEntry.js +3 -0
- package/dist/api/types/IngestionSourceStatus.d.ts +4 -0
- package/dist/api/types/IngestionSourceStatus.js +4 -0
- package/dist/api/types/IngestionV2IngestResponse.d.ts +21 -0
- package/dist/api/types/IngestionV2IngestResponse.js +3 -0
- package/dist/api/types/IngestionV2IngestResultItem.d.ts +30 -0
- package/dist/api/types/IngestionV2IngestResultItem.js +3 -0
- package/dist/api/types/IngestionV2ProcessingStatus.d.ts +9 -1
- package/dist/api/types/ListContentFilter.d.ts +8 -2
- package/dist/api/types/ListV2ListResponse.d.ts +23 -0
- package/dist/api/types/ListV2ListResponse.js +3 -0
- package/dist/api/types/ListV2MemoryItem.d.ts +66 -0
- package/dist/api/types/ListV2MemoryItem.js +3 -0
- package/dist/api/types/ListV2SourceItem.d.ts +70 -0
- package/dist/api/types/ListV2SourceItem.js +3 -0
- package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
- package/dist/api/types/SearchSourceFact.d.ts +18 -0
- package/dist/api/types/SearchSourceFact.js +3 -0
- package/dist/api/types/SearchSourceFilterInfo.d.ts +15 -0
- package/dist/api/types/SearchSourceFilterInfo.js +3 -0
- package/dist/api/types/SearchSourceInfo.d.ts +3 -1
- package/dist/api/types/SearchTemporalDuration.d.ts +24 -0
- package/dist/api/types/SearchTemporalDuration.js +3 -0
- package/dist/api/types/SearchTemporalFact.d.ts +25 -0
- package/dist/api/types/SearchTemporalFact.js +3 -0
- package/dist/api/types/SearchTemporalFilterInfo.d.ts +27 -0
- package/dist/api/types/SearchTemporalFilterInfo.js +3 -0
- package/dist/api/types/SearchTemporalIntentOverride.d.ts +14 -0
- package/dist/api/types/SearchTemporalIntentOverride.js +3 -0
- package/dist/api/types/SearchV2Chunk.d.ts +3 -1
- package/dist/api/types/SearchV2RetrievalResult.d.ts +13 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
- package/dist/api/types/TenantsInfraV2.d.ts +2 -2
- package/dist/api/types/TenantsTenantMetadataSchemaResponse.d.ts +7 -0
- package/dist/api/types/TenantsTenantMetadataSchemaResponse.js +3 -0
- package/dist/api/types/WebhooksDeliveryItem.d.ts +6 -0
- package/dist/api/types/WebhooksSigningSecretResponse.d.ts +8 -0
- package/dist/api/types/WebhooksSigningSecretResponse.js +3 -0
- package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +2 -0
- package/dist/api/types/index.d.ts +55 -7
- package/dist/api/types/index.js +55 -7
- package/dist/helpers/buildString.js +140 -16
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +6 -1
- package/dist/helpers/verifyWebhook.d.ts +31 -0
- package/dist/helpers/verifyWebhook.js +56 -0
- package/dist/serialization/client/index.d.ts +0 -2
- package/dist/serialization/client/index.js +0 -25
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +5 -0
- package/dist/serialization/client/requests/SearchQueryRequest.js +5 -0
- package/dist/serialization/resources/connectors/client/index.d.ts +2 -9
- package/dist/serialization/resources/connectors/client/index.js +6 -13
- package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.js +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +1 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +11 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +43 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.js +2 -0
- package/dist/serialization/resources/connectors/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/connectors/client/requests/index.js +3 -1
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/{deleteResource.js → rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.js} +2 -2
- package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.d.ts → updateResourceAcl.d.ts} +2 -2
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.js +1 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +2 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +2 -0
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +1 -1
- package/dist/serialization/resources/context/types/DeleteContextRequestXHydraDbDeleteStatus.d.ts +7 -0
- package/dist/serialization/resources/{connectors/client/delete.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
- package/dist/serialization/resources/context/types/SubgraphContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/{connectors/client/configure.js → context/types/SubgraphContextRequestType.js} +2 -2
- package/dist/serialization/resources/context/types/index.d.ts +2 -0
- package/dist/serialization/resources/context/types/index.js +2 -0
- package/dist/serialization/resources/webhooks/client/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/index.js +24 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.d.ts +9 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksSigningSecretRequest.js +41 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.js +1 -0
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/index.js +3 -1
- package/dist/serialization/resources/webhooks/client/supabaseRowChangeWebhook.d.ts +6 -0
- package/dist/serialization/resources/{connectors/client/discover.js → webhooks/client/supabaseRowChangeWebhook.js} +2 -2
- package/dist/serialization/types/ConnectorsResource.d.ts +6 -0
- package/dist/serialization/types/ConnectorsResource.js +6 -0
- package/dist/serialization/types/FeedbackGroundTruth.d.ts +10 -0
- package/dist/serialization/types/FeedbackGroundTruth.js +42 -0
- package/dist/serialization/types/FeedbackRating.d.ts +7 -0
- package/dist/serialization/{client/catalog.js → types/FeedbackRating.js} +2 -2
- package/dist/serialization/types/FeedbackSource.d.ts +7 -0
- package/dist/serialization/{client/listProviders.js → types/FeedbackSource.js} +2 -2
- package/dist/serialization/types/FeedbackSubmitRequest.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequest.js +41 -0
- package/dist/serialization/types/FeedbackSubmitRequestFeedback.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestFeedback.js +41 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.d.ts +10 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruth.js +42 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruth.js +44 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthAnswer.d.ts +9 -0
- package/dist/serialization/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestGroundTruthGroundTruthAnswer.js} +3 -4
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.d.ts +9 -0
- package/dist/serialization/types/FeedbackSubmitRequestGroundTruthGroundTruthSourceIds.js +41 -0
- package/dist/serialization/types/FeedbackSubmitResponse.d.ts +13 -0
- package/dist/serialization/types/FeedbackSubmitResponse.js +45 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +7 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +7 -0
- package/dist/serialization/types/GraphEntity.d.ts +1 -0
- package/dist/serialization/types/GraphEntity.js +1 -0
- package/dist/serialization/types/GraphGraphRelationsResponse.d.ts +2 -0
- package/dist/serialization/types/GraphGraphRelationsResponse.js +2 -0
- package/dist/serialization/types/GraphRelationEvidence.d.ts +1 -0
- package/dist/serialization/types/GraphRelationEvidence.js +1 -0
- package/dist/serialization/types/GraphSourceSubgraphResponse.d.ts +19 -0
- package/dist/serialization/types/GraphSourceSubgraphResponse.js +51 -0
- package/dist/serialization/types/GraphSubgraphSource.d.ts +18 -0
- package/dist/serialization/types/GraphSubgraphSource.js +50 -0
- package/dist/serialization/types/GraphTripletWithEvidence.d.ts +1 -0
- package/dist/serialization/types/GraphTripletWithEvidence.js +1 -0
- package/dist/serialization/types/HandlerCatalogConnector.d.ts +18 -0
- package/dist/serialization/types/HandlerCatalogConnector.js +50 -0
- package/dist/serialization/types/HandlerConfigureResponse.d.ts +16 -0
- package/dist/serialization/types/HandlerConfigureResponse.js +48 -0
- package/dist/serialization/types/HandlerConfigureResponseMeta.d.ts +10 -0
- package/dist/serialization/types/HandlerConfigureResponseMeta.js +42 -0
- package/dist/serialization/types/{ConnectorsConnector.d.ts → HandlerConnectorApiView.d.ts} +16 -7
- package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +16 -7
- package/dist/serialization/types/HandlerConnectorCatalogResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorCatalogResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.d.ts +41 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +73 -0
- package/dist/serialization/types/HandlerConnectorDeleteResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorDeleteResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorListResponse.d.ts +11 -0
- package/dist/serialization/types/HandlerConnectorListResponse.js +43 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.d.ts +20 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +52 -0
- package/dist/serialization/types/HandlerConnectorResourcesResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorResourcesResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorStatusError.d.ts +12 -0
- package/dist/serialization/types/HandlerConnectorStatusError.js +44 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.d.ts +20 -0
- package/dist/serialization/types/HandlerConnectorStatusResponse.js +52 -0
- package/dist/serialization/types/HandlerConnectorSyncResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerConnectorSyncResponse.js +42 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.js +47 -0
- package/dist/serialization/types/HandlerCredentialsUpdateResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerCredentialsUpdateResponse.js +42 -0
- package/dist/serialization/types/HandlerDiscoverResponseBody.d.ts +13 -0
- package/dist/serialization/types/HandlerDiscoverResponseBody.js +45 -0
- package/dist/serialization/types/HandlerDiscoveredResourceDto.d.ts +12 -0
- package/dist/serialization/types/HandlerDiscoveredResourceDto.js +44 -0
- package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.d.ts → HandlerEnvelopeFeedbackSubmitResponse.d.ts} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeListV2SourceListResponse.js → HandlerEnvelopeFeedbackSubmitResponse.js} +4 -4
- package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeGraphSourceSubgraphResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeHandlerSupabaseWebhookAck.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeIngestionV2IngestResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeListV2ListResponse.d.ts +15 -0
- package/dist/serialization/types/{HandlerEnvelopeIngestionV2SourceUploadResponse.js → HandlerEnvelopeListV2ListResponse.js} +4 -4
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeTenantsTenantMetadataSchemaResponse.js +47 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.d.ts +15 -0
- package/dist/serialization/types/HandlerEnvelopeWebhooksSigningSecretResponse.js +47 -0
- package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.d.ts +17 -0
- package/dist/serialization/types/HandlerErrorEnvelopeSourcesMemoryDeleteResponse.js +49 -0
- package/dist/serialization/types/HandlerProviderListResponse.d.ts +10 -0
- package/dist/serialization/types/HandlerProviderListResponse.js +42 -0
- package/dist/serialization/types/HandlerResourceDeleteResponse.d.ts +11 -0
- package/dist/serialization/types/HandlerResourceDeleteResponse.js +43 -0
- package/dist/serialization/types/HandlerResourceMapping.d.ts +4 -0
- package/dist/serialization/types/HandlerResourceMapping.js +4 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.js +39 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.d.ts +11 -0
- package/dist/serialization/types/HandlerSupabaseWebhookAck.js +43 -0
- package/dist/serialization/types/HandlerTableConfigEntry.d.ts +11 -0
- package/dist/serialization/types/HandlerTableConfigEntry.js +43 -0
- package/dist/serialization/types/IngestionV2IngestResponse.d.ts +14 -0
- package/dist/serialization/types/{IngestionV2SourceUploadResponse.js → IngestionV2IngestResponse.js} +4 -4
- package/dist/serialization/types/{IngestionV2SourceUploadResultItem.d.ts → IngestionV2IngestResultItem.d.ts} +4 -2
- package/dist/serialization/types/{IngestionV2SourceUploadResultItem.js → IngestionV2IngestResultItem.js} +4 -2
- package/dist/serialization/types/ListV2ListResponse.d.ts +17 -0
- package/dist/serialization/types/{ListSourceListResponse.js → ListV2ListResponse.js} +6 -5
- package/dist/serialization/types/ListV2MemoryItem.d.ts +29 -0
- package/dist/serialization/types/ListV2MemoryItem.js +63 -0
- package/dist/serialization/types/ListV2SourceItem.d.ts +29 -0
- package/dist/serialization/types/ListV2SourceItem.js +63 -0
- package/dist/serialization/types/SearchSourceFact.d.ts +20 -0
- package/dist/serialization/types/SearchSourceFact.js +52 -0
- package/dist/serialization/types/SearchSourceFilterInfo.d.ts +17 -0
- package/dist/serialization/types/SearchSourceFilterInfo.js +49 -0
- package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
- package/dist/serialization/types/SearchSourceInfo.js +1 -0
- package/dist/serialization/types/SearchTemporalDuration.d.ts +16 -0
- package/dist/serialization/types/SearchTemporalDuration.js +48 -0
- package/dist/serialization/types/SearchTemporalFact.d.ts +20 -0
- package/dist/serialization/types/SearchTemporalFact.js +52 -0
- package/dist/serialization/types/SearchTemporalFilterInfo.d.ts +16 -0
- package/dist/serialization/types/SearchTemporalFilterInfo.js +48 -0
- package/dist/serialization/types/SearchTemporalIntentOverride.d.ts +14 -0
- package/dist/serialization/types/SearchTemporalIntentOverride.js +46 -0
- package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
- package/dist/serialization/types/SearchV2Chunk.js +1 -0
- package/dist/serialization/types/SearchV2RetrievalResult.d.ts +10 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +10 -0
- package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
- package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.d.ts +12 -0
- package/dist/serialization/types/TenantsTenantMetadataSchemaResponse.js +44 -0
- package/dist/serialization/types/WebhooksDeliveryItem.d.ts +1 -0
- package/dist/serialization/types/WebhooksDeliveryItem.js +1 -0
- package/dist/serialization/types/WebhooksSigningSecretResponse.d.ts +11 -0
- package/dist/serialization/types/WebhooksSigningSecretResponse.js +43 -0
- package/dist/serialization/types/WebhooksWebhookRegisterResponse.d.ts +1 -0
- package/dist/serialization/types/WebhooksWebhookRegisterResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +55 -7
- package/dist/serialization/types/index.js +55 -7
- package/package.json +1 -1
- package/dist/api/types/ConnectorsConnector.d.ts +0 -58
- package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +0 -13
- package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +0 -17
- package/dist/api/types/ListSourceListResponse.d.ts +0 -12
- package/dist/api/types/ListV2SourceListResponse.d.ts +0 -4
- package/dist/serialization/client/catalog.d.ts +0 -6
- package/dist/serialization/client/listProviders.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/configure.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/delete.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/deleteResource.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discover.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discoverPreview.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/discoverPreview.js +0 -39
- package/dist/serialization/resources/connectors/client/list.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/list.js +0 -39
- package/dist/serialization/resources/connectors/client/listResources.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/listResources.js +0 -39
- package/dist/serialization/resources/connectors/client/sync.d.ts +0 -6
- package/dist/serialization/resources/connectors/client/sync.js +0 -39
- package/dist/serialization/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +0 -15
- package/dist/serialization/types/IngestionV2SourceUploadResponse.d.ts +0 -14
- package/dist/serialization/types/ListSourceListResponse.d.ts +0 -14
- package/dist/serialization/types/ListV2SourceListResponse.d.ts +0 -10
- /package/dist/api/{types/ConnectorsConnector.js → resources/connectors/client/requests/HandlerConnectorUpdateReq.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeIngestionV2SourceUploadResponse.js → resources/connectors/client/requests/StatusConnectorsRequest.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeListV2SourceListResponse.js → resources/connectors/client/requests/UpdateResourceAclConnectorsRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/context/client/requests/SubgraphContextRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResultItem.js → resources/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
- /package/dist/api/{types/ListSourceListResponse.js → resources/webhooks/client/requests/PostWebhooksSupabaseRequest.js} +0 -0
- /package/dist/api/{types/ListV2SourceListResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
- /package/dist/serialization/resources/connectors/client/{rotateAConnectorsStoredOAuthRefreshToken.js → updateResourceAcl.js} +0 -0
|
@@ -100,7 +100,7 @@ class ConnectorsClient {
|
|
|
100
100
|
});
|
|
101
101
|
if (_response.ok) {
|
|
102
102
|
return {
|
|
103
|
-
data: serializers.
|
|
103
|
+
data: serializers.HandlerDiscoverResponseBody.parseOrThrow(_response.body, {
|
|
104
104
|
unrecognizedObjectKeys: "passthrough",
|
|
105
105
|
allowUnrecognizedUnionMembers: true,
|
|
106
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -180,7 +180,7 @@ class ConnectorsClient {
|
|
|
180
180
|
});
|
|
181
181
|
if (_response.ok) {
|
|
182
182
|
return {
|
|
183
|
-
data: serializers.
|
|
183
|
+
data: serializers.HandlerConnectorListResponse.parseOrThrow(_response.body, {
|
|
184
184
|
unrecognizedObjectKeys: "passthrough",
|
|
185
185
|
allowUnrecognizedUnionMembers: true,
|
|
186
186
|
allowUnrecognizedEnumValues: true,
|
|
@@ -193,13 +193,7 @@ class ConnectorsClient {
|
|
|
193
193
|
if (_response.error.reason === "status-code") {
|
|
194
194
|
switch (_response.error.statusCode) {
|
|
195
195
|
case 500:
|
|
196
|
-
throw new HydraDB.InternalServerError(
|
|
197
|
-
unrecognizedObjectKeys: "passthrough",
|
|
198
|
-
allowUnrecognizedUnionMembers: true,
|
|
199
|
-
allowUnrecognizedEnumValues: true,
|
|
200
|
-
skipValidation: true,
|
|
201
|
-
breadcrumbsPrefix: ["response"],
|
|
202
|
-
}), _response.rawResponse);
|
|
196
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
203
197
|
default:
|
|
204
198
|
throw new errors.HydraDBError({
|
|
205
199
|
statusCode: _response.error.statusCode,
|
|
@@ -252,7 +246,7 @@ class ConnectorsClient {
|
|
|
252
246
|
});
|
|
253
247
|
if (_response.ok) {
|
|
254
248
|
return {
|
|
255
|
-
data: serializers.
|
|
249
|
+
data: serializers.HandlerConnectorCreateResponse.parseOrThrow(_response.body, {
|
|
256
250
|
unrecognizedObjectKeys: "passthrough",
|
|
257
251
|
allowUnrecognizedUnionMembers: true,
|
|
258
252
|
allowUnrecognizedEnumValues: true,
|
|
@@ -273,13 +267,7 @@ class ConnectorsClient {
|
|
|
273
267
|
breadcrumbsPrefix: ["response"],
|
|
274
268
|
}), _response.rawResponse);
|
|
275
269
|
case 500:
|
|
276
|
-
throw new HydraDB.InternalServerError(
|
|
277
|
-
unrecognizedObjectKeys: "passthrough",
|
|
278
|
-
allowUnrecognizedUnionMembers: true,
|
|
279
|
-
allowUnrecognizedEnumValues: true,
|
|
280
|
-
skipValidation: true,
|
|
281
|
-
breadcrumbsPrefix: ["response"],
|
|
282
|
-
}), _response.rawResponse);
|
|
270
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
283
271
|
case 503:
|
|
284
272
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
285
273
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -334,7 +322,7 @@ class ConnectorsClient {
|
|
|
334
322
|
});
|
|
335
323
|
if (_response.ok) {
|
|
336
324
|
return {
|
|
337
|
-
data: serializers.
|
|
325
|
+
data: serializers.HandlerConnectorApiView.parseOrThrow(_response.body, {
|
|
338
326
|
unrecognizedObjectKeys: "passthrough",
|
|
339
327
|
allowUnrecognizedUnionMembers: true,
|
|
340
328
|
allowUnrecognizedEnumValues: true,
|
|
@@ -349,13 +337,7 @@ class ConnectorsClient {
|
|
|
349
337
|
case 404:
|
|
350
338
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
351
339
|
case 500:
|
|
352
|
-
throw new HydraDB.InternalServerError(
|
|
353
|
-
unrecognizedObjectKeys: "passthrough",
|
|
354
|
-
allowUnrecognizedUnionMembers: true,
|
|
355
|
-
allowUnrecognizedEnumValues: true,
|
|
356
|
-
skipValidation: true,
|
|
357
|
-
breadcrumbsPrefix: ["response"],
|
|
358
|
-
}), _response.rawResponse);
|
|
340
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
359
341
|
default:
|
|
360
342
|
throw new errors.HydraDBError({
|
|
361
343
|
statusCode: _response.error.statusCode,
|
|
@@ -402,7 +384,7 @@ class ConnectorsClient {
|
|
|
402
384
|
});
|
|
403
385
|
if (_response.ok) {
|
|
404
386
|
return {
|
|
405
|
-
data: serializers.
|
|
387
|
+
data: serializers.HandlerConnectorDeleteResponse.parseOrThrow(_response.body, {
|
|
406
388
|
unrecognizedObjectKeys: "passthrough",
|
|
407
389
|
allowUnrecognizedUnionMembers: true,
|
|
408
390
|
allowUnrecognizedEnumValues: true,
|
|
@@ -417,13 +399,84 @@ class ConnectorsClient {
|
|
|
417
399
|
case 404:
|
|
418
400
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
419
401
|
case 500:
|
|
420
|
-
throw new HydraDB.InternalServerError(
|
|
402
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
403
|
+
default:
|
|
404
|
+
throw new errors.HydraDBError({
|
|
405
|
+
statusCode: _response.error.statusCode,
|
|
406
|
+
body: _response.error.body,
|
|
407
|
+
rawResponse: _response.rawResponse,
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/connectors/{id}");
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Update a connector's mutable settings. `sync_interval_seconds` sets the cadence at which the scheduler starts incremental syncs: the allowed range is provider-aware and returned in the response; values outside it are rejected rather than clamped; 0 resets to the provider default; changing it re-anchors the next sync so a shorter cadence takes effect immediately. `credentials` reconnects the connector in place: send the provider's full credential set (what create accepts); supplied keys replace their stored values, other stored keys survive, the bundle is re-validated against the provider's credential schema, and a pending needs-reauth flag is cleared — the connector keeps its id, resources, and sync cursors. `custom_instructions` replaces the free-text steering applied when this connector's documents are ingested (an explicit empty string clears it); the change applies from the next sync cycle and does not re-process already-ingested documents. When several fields are supplied together they are validated up front and applied atomically: an invalid value rejects the whole request with nothing changed.
|
|
415
|
+
*
|
|
416
|
+
* @param {HydraDB.HandlerConnectorUpdateReq} request
|
|
417
|
+
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
418
|
+
*
|
|
419
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
420
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
421
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* await client.connectors.update({
|
|
425
|
+
* id: "HydraDoc1234"
|
|
426
|
+
* })
|
|
427
|
+
*/
|
|
428
|
+
update(request, requestOptions) {
|
|
429
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
430
|
+
}
|
|
431
|
+
async __update(request, requestOptions) {
|
|
432
|
+
const { id, ..._body } = request;
|
|
433
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
434
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
435
|
+
const _response = await core.fetcher({
|
|
436
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
437
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
438
|
+
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}`),
|
|
439
|
+
method: "PATCH",
|
|
440
|
+
headers: _headers,
|
|
441
|
+
contentType: "application/json",
|
|
442
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
443
|
+
requestType: "json",
|
|
444
|
+
body: serializers.HandlerConnectorUpdateReq.jsonOrThrow(_body, {
|
|
445
|
+
unrecognizedObjectKeys: "strip",
|
|
446
|
+
omitUndefined: true,
|
|
447
|
+
}),
|
|
448
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
449
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
450
|
+
abortSignal: requestOptions?.abortSignal,
|
|
451
|
+
fetchFn: this._options?.fetch,
|
|
452
|
+
logging: this._options.logging,
|
|
453
|
+
});
|
|
454
|
+
if (_response.ok) {
|
|
455
|
+
return {
|
|
456
|
+
data: serializers.HandlerConnectorUpdateResponse.parseOrThrow(_response.body, {
|
|
457
|
+
unrecognizedObjectKeys: "passthrough",
|
|
458
|
+
allowUnrecognizedUnionMembers: true,
|
|
459
|
+
allowUnrecognizedEnumValues: true,
|
|
460
|
+
skipValidation: true,
|
|
461
|
+
breadcrumbsPrefix: ["response"],
|
|
462
|
+
}),
|
|
463
|
+
rawResponse: _response.rawResponse,
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
if (_response.error.reason === "status-code") {
|
|
467
|
+
switch (_response.error.statusCode) {
|
|
468
|
+
case 400:
|
|
469
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
421
470
|
unrecognizedObjectKeys: "passthrough",
|
|
422
471
|
allowUnrecognizedUnionMembers: true,
|
|
423
472
|
allowUnrecognizedEnumValues: true,
|
|
424
473
|
skipValidation: true,
|
|
425
474
|
breadcrumbsPrefix: ["response"],
|
|
426
475
|
}), _response.rawResponse);
|
|
476
|
+
case 404:
|
|
477
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
478
|
+
case 500:
|
|
479
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
427
480
|
default:
|
|
428
481
|
throw new errors.HydraDBError({
|
|
429
482
|
statusCode: _response.error.statusCode,
|
|
@@ -432,7 +485,7 @@ class ConnectorsClient {
|
|
|
432
485
|
});
|
|
433
486
|
}
|
|
434
487
|
}
|
|
435
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
488
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/connectors/{id}");
|
|
436
489
|
}
|
|
437
490
|
/**
|
|
438
491
|
* Save the selected resources for a connector and trigger initial sync/backfill.
|
|
@@ -492,7 +545,7 @@ class ConnectorsClient {
|
|
|
492
545
|
});
|
|
493
546
|
if (_response.ok) {
|
|
494
547
|
return {
|
|
495
|
-
data: serializers.
|
|
548
|
+
data: serializers.HandlerConfigureResponse.parseOrThrow(_response.body, {
|
|
496
549
|
unrecognizedObjectKeys: "passthrough",
|
|
497
550
|
allowUnrecognizedUnionMembers: true,
|
|
498
551
|
allowUnrecognizedEnumValues: true,
|
|
@@ -515,13 +568,7 @@ class ConnectorsClient {
|
|
|
515
568
|
case 404:
|
|
516
569
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
517
570
|
case 500:
|
|
518
|
-
throw new HydraDB.InternalServerError(
|
|
519
|
-
unrecognizedObjectKeys: "passthrough",
|
|
520
|
-
allowUnrecognizedUnionMembers: true,
|
|
521
|
-
allowUnrecognizedEnumValues: true,
|
|
522
|
-
skipValidation: true,
|
|
523
|
-
breadcrumbsPrefix: ["response"],
|
|
524
|
-
}), _response.rawResponse);
|
|
571
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
525
572
|
default:
|
|
526
573
|
throw new errors.HydraDBError({
|
|
527
574
|
statusCode: _response.error.statusCode,
|
|
@@ -533,7 +580,7 @@ class ConnectorsClient {
|
|
|
533
580
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/connectors/{id}/configure");
|
|
534
581
|
}
|
|
535
582
|
/**
|
|
536
|
-
* Internal
|
|
583
|
+
* Internal endpoint. It is not callable with a customer API key and always returns 403 for external callers. Persists a rotated refresh_token for OAuth-bundle connectors: providers that rotate the refresh token on each exchange invalidate the previously stored one, so the new token must be written back or the next sync fails with invalid_grant. Only refresh_token is merged onto the current stored credential bundle and re-encrypted under the connector's identity context; credentials are never returned. It has no automated caller and is disabled by default: until an operator enables it, every call returns 500.
|
|
537
584
|
*
|
|
538
585
|
* @param {HydraDB.PatchConnectorsIdCredentialsRequest} request
|
|
539
586
|
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -545,17 +592,17 @@ class ConnectorsClient {
|
|
|
545
592
|
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
546
593
|
*
|
|
547
594
|
* @example
|
|
548
|
-
* await client.connectors.
|
|
595
|
+
* await client.connectors.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly({
|
|
549
596
|
* id: "HydraDoc1234",
|
|
550
597
|
* body: {
|
|
551
598
|
* "key": "value"
|
|
552
599
|
* }
|
|
553
600
|
* })
|
|
554
601
|
*/
|
|
555
|
-
|
|
556
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
602
|
+
rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions) {
|
|
603
|
+
return core.HttpResponsePromise.fromPromise(this.__rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions));
|
|
557
604
|
}
|
|
558
|
-
async
|
|
605
|
+
async __rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions) {
|
|
559
606
|
const { id, body: _body } = request;
|
|
560
607
|
const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
561
608
|
const _response = await core.fetcher({
|
|
@@ -567,10 +614,7 @@ class ConnectorsClient {
|
|
|
567
614
|
contentType: "application/json",
|
|
568
615
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
569
616
|
requestType: "json",
|
|
570
|
-
body: serializers.connectors.
|
|
571
|
-
unrecognizedObjectKeys: "strip",
|
|
572
|
-
omitUndefined: true,
|
|
573
|
-
}),
|
|
617
|
+
body: serializers.connectors.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", omitUndefined: true }),
|
|
574
618
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
575
619
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
576
620
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -579,7 +623,7 @@ class ConnectorsClient {
|
|
|
579
623
|
});
|
|
580
624
|
if (_response.ok) {
|
|
581
625
|
return {
|
|
582
|
-
data: serializers.
|
|
626
|
+
data: serializers.HandlerCredentialsUpdateResponse.parseOrThrow(_response.body, {
|
|
583
627
|
unrecognizedObjectKeys: "passthrough",
|
|
584
628
|
allowUnrecognizedUnionMembers: true,
|
|
585
629
|
allowUnrecognizedEnumValues: true,
|
|
@@ -610,13 +654,7 @@ class ConnectorsClient {
|
|
|
610
654
|
case 404:
|
|
611
655
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
612
656
|
case 500:
|
|
613
|
-
throw new HydraDB.InternalServerError(
|
|
614
|
-
unrecognizedObjectKeys: "passthrough",
|
|
615
|
-
allowUnrecognizedUnionMembers: true,
|
|
616
|
-
allowUnrecognizedEnumValues: true,
|
|
617
|
-
skipValidation: true,
|
|
618
|
-
breadcrumbsPrefix: ["response"],
|
|
619
|
-
}), _response.rawResponse);
|
|
657
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
620
658
|
case 503:
|
|
621
659
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
622
660
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -681,7 +719,7 @@ class ConnectorsClient {
|
|
|
681
719
|
});
|
|
682
720
|
if (_response.ok) {
|
|
683
721
|
return {
|
|
684
|
-
data: serializers.
|
|
722
|
+
data: serializers.HandlerDiscoverResponseBody.parseOrThrow(_response.body, {
|
|
685
723
|
unrecognizedObjectKeys: "passthrough",
|
|
686
724
|
allowUnrecognizedUnionMembers: true,
|
|
687
725
|
allowUnrecognizedEnumValues: true,
|
|
@@ -704,13 +742,7 @@ class ConnectorsClient {
|
|
|
704
742
|
case 404:
|
|
705
743
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
706
744
|
case 500:
|
|
707
|
-
throw new HydraDB.InternalServerError(
|
|
708
|
-
unrecognizedObjectKeys: "passthrough",
|
|
709
|
-
allowUnrecognizedUnionMembers: true,
|
|
710
|
-
allowUnrecognizedEnumValues: true,
|
|
711
|
-
skipValidation: true,
|
|
712
|
-
breadcrumbsPrefix: ["response"],
|
|
713
|
-
}), _response.rawResponse);
|
|
745
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
714
746
|
case 502:
|
|
715
747
|
throw new HydraDB.BadGatewayError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
716
748
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -765,7 +797,7 @@ class ConnectorsClient {
|
|
|
765
797
|
});
|
|
766
798
|
if (_response.ok) {
|
|
767
799
|
return {
|
|
768
|
-
data: serializers.
|
|
800
|
+
data: serializers.HandlerConnectorResourcesResponse.parseOrThrow(_response.body, {
|
|
769
801
|
unrecognizedObjectKeys: "passthrough",
|
|
770
802
|
allowUnrecognizedUnionMembers: true,
|
|
771
803
|
allowUnrecognizedEnumValues: true,
|
|
@@ -780,13 +812,7 @@ class ConnectorsClient {
|
|
|
780
812
|
case 404:
|
|
781
813
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
782
814
|
case 500:
|
|
783
|
-
throw new HydraDB.InternalServerError(
|
|
784
|
-
unrecognizedObjectKeys: "passthrough",
|
|
785
|
-
allowUnrecognizedUnionMembers: true,
|
|
786
|
-
allowUnrecognizedEnumValues: true,
|
|
787
|
-
skipValidation: true,
|
|
788
|
-
breadcrumbsPrefix: ["response"],
|
|
789
|
-
}), _response.rawResponse);
|
|
815
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
790
816
|
default:
|
|
791
817
|
throw new errors.HydraDBError({
|
|
792
818
|
statusCode: _response.error.statusCode,
|
|
@@ -864,13 +890,7 @@ class ConnectorsClient {
|
|
|
864
890
|
case 404:
|
|
865
891
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
866
892
|
case 500:
|
|
867
|
-
throw new HydraDB.InternalServerError(
|
|
868
|
-
unrecognizedObjectKeys: "passthrough",
|
|
869
|
-
allowUnrecognizedUnionMembers: true,
|
|
870
|
-
allowUnrecognizedEnumValues: true,
|
|
871
|
-
skipValidation: true,
|
|
872
|
-
breadcrumbsPrefix: ["response"],
|
|
873
|
-
}), _response.rawResponse);
|
|
893
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
874
894
|
default:
|
|
875
895
|
throw new errors.HydraDBError({
|
|
876
896
|
statusCode: _response.error.statusCode,
|
|
@@ -919,7 +939,7 @@ class ConnectorsClient {
|
|
|
919
939
|
});
|
|
920
940
|
if (_response.ok) {
|
|
921
941
|
return {
|
|
922
|
-
data: serializers.
|
|
942
|
+
data: serializers.HandlerResourceDeleteResponse.parseOrThrow(_response.body, {
|
|
923
943
|
unrecognizedObjectKeys: "passthrough",
|
|
924
944
|
allowUnrecognizedUnionMembers: true,
|
|
925
945
|
allowUnrecognizedEnumValues: true,
|
|
@@ -942,13 +962,88 @@ class ConnectorsClient {
|
|
|
942
962
|
case 404:
|
|
943
963
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
944
964
|
case 500:
|
|
945
|
-
throw new HydraDB.InternalServerError(
|
|
965
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
966
|
+
default:
|
|
967
|
+
throw new errors.HydraDBError({
|
|
968
|
+
statusCode: _response.error.statusCode,
|
|
969
|
+
body: _response.error.body,
|
|
970
|
+
rawResponse: _response.rawResponse,
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/connectors/{id}/resources/{resource_id}");
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Updates per-resource settings. `acl` sets the customer-declared ACL for one connector resource (PRO-1684): the rule is normalized (emails prefixed, __public__ dominates, explicit-empty becomes __private__), persisted on the resource, and applied to enforcement immediately via the resource's ACL row, every already-indexed document of the resource is governed by it on the next query, with no re-sync. For providers with provider-derived ACL capture enabled, the provider's own ACL takes precedence again at the next sync; the rule is the standing fallback. `custom_instructions` sets the resource-level ingestion-instructions override (max 4000 characters): when set it replaces the connector-level custom_instructions for documents synced from this resource, an explicit empty string clears the override back to inheriting the connector's value, and changes apply from the next sync cycle. At least one field must be supplied; omitted fields are left unchanged.
|
|
978
|
+
*
|
|
979
|
+
* @param {HydraDB.UpdateResourceAclConnectorsRequest} request
|
|
980
|
+
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
981
|
+
*
|
|
982
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
983
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
984
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* await client.connectors.updateResourceAcl({
|
|
988
|
+
* id: "HydraDoc1234",
|
|
989
|
+
* resourceId: "C0123456789",
|
|
990
|
+
* body: {
|
|
991
|
+
* "key": "value"
|
|
992
|
+
* }
|
|
993
|
+
* })
|
|
994
|
+
*/
|
|
995
|
+
updateResourceAcl(request, requestOptions) {
|
|
996
|
+
return core.HttpResponsePromise.fromPromise(this.__updateResourceAcl(request, requestOptions));
|
|
997
|
+
}
|
|
998
|
+
async __updateResourceAcl(request, requestOptions) {
|
|
999
|
+
const { id, resourceId, body: _body } = request;
|
|
1000
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1001
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
1002
|
+
const _response = await core.fetcher({
|
|
1003
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1004
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1005
|
+
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}/resources/${core.url.encodePathParam(resourceId)}`),
|
|
1006
|
+
method: "PATCH",
|
|
1007
|
+
headers: _headers,
|
|
1008
|
+
contentType: "application/json",
|
|
1009
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1010
|
+
requestType: "json",
|
|
1011
|
+
body: serializers.connectors.updateResourceAcl.Request.jsonOrThrow(_body, {
|
|
1012
|
+
unrecognizedObjectKeys: "strip",
|
|
1013
|
+
omitUndefined: true,
|
|
1014
|
+
}),
|
|
1015
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1016
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1017
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1018
|
+
fetchFn: this._options?.fetch,
|
|
1019
|
+
logging: this._options.logging,
|
|
1020
|
+
});
|
|
1021
|
+
if (_response.ok) {
|
|
1022
|
+
return {
|
|
1023
|
+
data: serializers.connectors.updateResourceAcl.Response.parseOrThrow(_response.body, {
|
|
1024
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1025
|
+
allowUnrecognizedUnionMembers: true,
|
|
1026
|
+
allowUnrecognizedEnumValues: true,
|
|
1027
|
+
skipValidation: true,
|
|
1028
|
+
breadcrumbsPrefix: ["response"],
|
|
1029
|
+
}),
|
|
1030
|
+
rawResponse: _response.rawResponse,
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
if (_response.error.reason === "status-code") {
|
|
1034
|
+
switch (_response.error.statusCode) {
|
|
1035
|
+
case 400:
|
|
1036
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
946
1037
|
unrecognizedObjectKeys: "passthrough",
|
|
947
1038
|
allowUnrecognizedUnionMembers: true,
|
|
948
1039
|
allowUnrecognizedEnumValues: true,
|
|
949
1040
|
skipValidation: true,
|
|
950
1041
|
breadcrumbsPrefix: ["response"],
|
|
951
1042
|
}), _response.rawResponse);
|
|
1043
|
+
case 404:
|
|
1044
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1045
|
+
case 500:
|
|
1046
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
952
1047
|
default:
|
|
953
1048
|
throw new errors.HydraDBError({
|
|
954
1049
|
statusCode: _response.error.statusCode,
|
|
@@ -957,7 +1052,69 @@ class ConnectorsClient {
|
|
|
957
1052
|
});
|
|
958
1053
|
}
|
|
959
1054
|
}
|
|
960
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
1055
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/connectors/{id}/resources/{resource_id}");
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* Report whether a connector is working, in one call: a rollup status (healthy, degraded, failed, checking) plus per-resource detail. `degraded` means the connector is syncing but at least one configured resource is failing — the state that is otherwise invisible, because a connector whose resources partly fail still reports an idle sync status and no error.
|
|
1059
|
+
*
|
|
1060
|
+
* @param {HydraDB.StatusConnectorsRequest} request
|
|
1061
|
+
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1062
|
+
*
|
|
1063
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
1064
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* await client.connectors.status({
|
|
1068
|
+
* id: "HydraDoc1234"
|
|
1069
|
+
* })
|
|
1070
|
+
*/
|
|
1071
|
+
status(request, requestOptions) {
|
|
1072
|
+
return core.HttpResponsePromise.fromPromise(this.__status(request, requestOptions));
|
|
1073
|
+
}
|
|
1074
|
+
async __status(request, requestOptions) {
|
|
1075
|
+
const { id } = request;
|
|
1076
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1077
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
1078
|
+
const _response = await core.fetcher({
|
|
1079
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1080
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1081
|
+
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}/status`),
|
|
1082
|
+
method: "GET",
|
|
1083
|
+
headers: _headers,
|
|
1084
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1085
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1086
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1087
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1088
|
+
fetchFn: this._options?.fetch,
|
|
1089
|
+
logging: this._options.logging,
|
|
1090
|
+
});
|
|
1091
|
+
if (_response.ok) {
|
|
1092
|
+
return {
|
|
1093
|
+
data: serializers.HandlerConnectorStatusResponse.parseOrThrow(_response.body, {
|
|
1094
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1095
|
+
allowUnrecognizedUnionMembers: true,
|
|
1096
|
+
allowUnrecognizedEnumValues: true,
|
|
1097
|
+
skipValidation: true,
|
|
1098
|
+
breadcrumbsPrefix: ["response"],
|
|
1099
|
+
}),
|
|
1100
|
+
rawResponse: _response.rawResponse,
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
if (_response.error.reason === "status-code") {
|
|
1104
|
+
switch (_response.error.statusCode) {
|
|
1105
|
+
case 404:
|
|
1106
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1107
|
+
case 500:
|
|
1108
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1109
|
+
default:
|
|
1110
|
+
throw new errors.HydraDBError({
|
|
1111
|
+
statusCode: _response.error.statusCode,
|
|
1112
|
+
body: _response.error.body,
|
|
1113
|
+
rawResponse: _response.rawResponse,
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/connectors/{id}/status");
|
|
961
1118
|
}
|
|
962
1119
|
/**
|
|
963
1120
|
* Start a manual sync workflow for a connector.
|
|
@@ -997,7 +1154,7 @@ class ConnectorsClient {
|
|
|
997
1154
|
});
|
|
998
1155
|
if (_response.ok) {
|
|
999
1156
|
return {
|
|
1000
|
-
data: serializers.
|
|
1157
|
+
data: serializers.HandlerConnectorSyncResponse.parseOrThrow(_response.body, {
|
|
1001
1158
|
unrecognizedObjectKeys: "passthrough",
|
|
1002
1159
|
allowUnrecognizedUnionMembers: true,
|
|
1003
1160
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1012,21 +1169,9 @@ class ConnectorsClient {
|
|
|
1012
1169
|
case 404:
|
|
1013
1170
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1014
1171
|
case 409:
|
|
1015
|
-
throw new HydraDB.ConflictError(
|
|
1016
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1017
|
-
allowUnrecognizedUnionMembers: true,
|
|
1018
|
-
allowUnrecognizedEnumValues: true,
|
|
1019
|
-
skipValidation: true,
|
|
1020
|
-
breadcrumbsPrefix: ["response"],
|
|
1021
|
-
}), _response.rawResponse);
|
|
1172
|
+
throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
|
|
1022
1173
|
case 500:
|
|
1023
|
-
throw new HydraDB.InternalServerError(
|
|
1024
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1025
|
-
allowUnrecognizedUnionMembers: true,
|
|
1026
|
-
allowUnrecognizedEnumValues: true,
|
|
1027
|
-
skipValidation: true,
|
|
1028
|
-
breadcrumbsPrefix: ["response"],
|
|
1029
|
-
}), _response.rawResponse);
|
|
1174
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1030
1175
|
case 503:
|
|
1031
1176
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
1032
1177
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -29,4 +29,12 @@ export interface HandlerConfigureReq {
|
|
|
29
29
|
lookbackDays?: number;
|
|
30
30
|
/** Resources to activate for this connector. Each item corresponds to one entry from the Discover endpoint. */
|
|
31
31
|
resources: HydraDB.HandlerResourceMapping[];
|
|
32
|
+
/**
|
|
33
|
+
* TableConfigs carries per-table replication settings for MOVEIT
|
|
34
|
+
* connectors whose tap reads a `table_configs` credential input (bigquery).
|
|
35
|
+
* Configure merges them into the stored credential bundle before the first
|
|
36
|
+
* sync, so the mode chosen at selection time governs every sync from the
|
|
37
|
+
* start. Optional; rejected for non-MOVEIT engines.
|
|
38
|
+
*/
|
|
39
|
+
tableConfigs?: HydraDB.HandlerTableConfigEntry[];
|
|
32
40
|
}
|
|
@@ -11,6 +11,12 @@ export interface HandlerConnectorCreateReq {
|
|
|
11
11
|
collection?: string;
|
|
12
12
|
/** Provider-specific credentials (typically `{"api_token": "..."}` or `{"access_token": "..."}`). */
|
|
13
13
|
credentials?: Record<string, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* CustomInstructions optionally steers how this connector's synced
|
|
16
|
+
* documents are ingested and indexed. Max 4000 characters; editable later
|
|
17
|
+
* via PATCH.
|
|
18
|
+
*/
|
|
19
|
+
customInstructions?: string;
|
|
14
20
|
/**
|
|
15
21
|
* Database/Collection are the canonical v2 names; TenantID/SubTenantID are
|
|
16
22
|
* their deprecated aliases, reconciled by the TenantAliases middleware before
|
|
@@ -20,21 +26,15 @@ export interface HandlerConnectorCreateReq {
|
|
|
20
26
|
* here would force the generated SDK to demand the deprecated field.
|
|
21
27
|
*/
|
|
22
28
|
database?: string;
|
|
23
|
-
/** Internal deployment context for this connector. */
|
|
24
|
-
deploymentId?: string;
|
|
25
29
|
/** Human-readable label for this connector. */
|
|
26
30
|
name?: string;
|
|
27
|
-
/** Subscription plan this connector runs under. */
|
|
28
|
-
plan?: string;
|
|
29
31
|
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
30
32
|
provider: string;
|
|
31
33
|
/** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
|
|
32
34
|
providerAccountScope?: string;
|
|
33
35
|
/** deprecated: use collection */
|
|
34
36
|
subTenantId?: string;
|
|
35
|
-
/**
|
|
36
|
-
syncEngine?: string;
|
|
37
|
-
/** How frequently the scheduler triggers incremental syncs, in seconds. */
|
|
37
|
+
/** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
|
|
38
38
|
syncIntervalSeconds?: number;
|
|
39
39
|
/** deprecated: use database */
|
|
40
40
|
tenantId?: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "HydraDoc1234"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface HandlerConnectorUpdateReq {
|
|
8
|
+
/** Connector ID */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Provider-specific credentials (typically `{"api_token": "..."}` or `{"access_token": "..."}`). */
|
|
11
|
+
credentials?: Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* CustomInstructions replaces the guidance applied when this connector's
|
|
14
|
+
* documents are ingested. Omitted leaves it unchanged; an explicit empty
|
|
15
|
+
* string clears it. Max 4000 characters; applies from the next sync cycle.
|
|
16
|
+
*/
|
|
17
|
+
customInstructions?: string;
|
|
18
|
+
/** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
|
|
19
|
+
syncIntervalSeconds?: number;
|
|
20
|
+
}
|
|
@@ -8,15 +8,27 @@
|
|
|
8
8
|
export interface HandlerResourceCreateReq {
|
|
9
9
|
/** Connector ID */
|
|
10
10
|
id: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* ACL restricts every object synced from this resource to the listed
|
|
13
|
+
* principals (see resourceMapping.ACL). Omitted means unrestricted.
|
|
14
|
+
*/
|
|
15
|
+
acl?: string[];
|
|
16
|
+
/** Key-value pairs merged into document metadata on every synced object from this resource. Capped at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */
|
|
12
17
|
additionalMetadata?: Record<string, unknown>;
|
|
13
18
|
collectionOverride?: string;
|
|
19
|
+
/**
|
|
20
|
+
* CustomInstructions optionally steers how documents synced from this
|
|
21
|
+
* resource are ingested and indexed. When set it replaces the
|
|
22
|
+
* connector-level custom_instructions for this resource; empty inherits
|
|
23
|
+
* the connector's value. Max 4000 characters.
|
|
24
|
+
*/
|
|
25
|
+
customInstructions?: string;
|
|
14
26
|
databaseOverride?: string;
|
|
15
27
|
/** Human-readable name for this resource. */
|
|
16
28
|
displayName?: string;
|
|
17
29
|
/** Provider-specific filters applied during sync (e.g. `{"lookback_days": 30}`). */
|
|
18
30
|
filters?: Record<string, unknown>;
|
|
19
|
-
/** Key-value pairs merged into tenant metadata on every synced object from this resource. */
|
|
31
|
+
/** Key-value pairs merged into tenant metadata on every synced object from this resource. Capped at 16 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */
|
|
20
32
|
metadata?: Record<string, unknown>;
|
|
21
33
|
/** Additional provider-supplied metadata for this resource. */
|
|
22
34
|
providerMetadata?: Record<string, unknown>;
|