@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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface GraphSourceSubgraphResponse {
|
|
3
|
+
/**
|
|
4
|
+
* AuxiliaryRelations carries the structural graph around the member
|
|
5
|
+
* sources: Entity->Source presence, Source->Comment/Attachment and
|
|
6
|
+
* Actor->Source/Comment links. Same item shape as Relations, matching
|
|
7
|
+
* GraphRelationsResponse so the dashboard renderer works unchanged.
|
|
8
|
+
*/
|
|
9
|
+
auxiliaryRelations?: HydraDB.GraphTripletWithEvidence[];
|
|
10
|
+
/**
|
|
11
|
+
* AuxiliaryTruncated reports that a fetch ceiling clipped the auxiliary
|
|
12
|
+
* graph, same contract as GraphRelationsResponse.AuxiliaryTruncated.
|
|
13
|
+
*/
|
|
14
|
+
auxiliaryTruncated?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* IsTruncated reports that the traversal stopped before exhausting the
|
|
17
|
+
* connected component: the source budget or an edge/expansion fetch cap
|
|
18
|
+
* was hit, or the depth limit left an unexpanded frontier.
|
|
19
|
+
*/
|
|
20
|
+
isTruncated?: boolean;
|
|
21
|
+
/** MaxDepthReached is the deepest BFS level that admitted a member. */
|
|
22
|
+
maxDepthReached?: number;
|
|
23
|
+
/** Human-readable result message. */
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Relations holds the Source->Source triplets: every RELATES_TO edge whose
|
|
27
|
+
* endpoints are both members, plus synthesized same_thread / child_of
|
|
28
|
+
* provenance edges for members reached through a node property rather than
|
|
29
|
+
* a stored edge (those carry Synthesized on their evidence).
|
|
30
|
+
*/
|
|
31
|
+
relations?: HydraDB.GraphTripletWithEvidence[];
|
|
32
|
+
seedSourceId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Sources is every member of the subgraph in BFS discovery order, seed
|
|
35
|
+
* first.
|
|
36
|
+
*/
|
|
37
|
+
sources?: HydraDB.GraphSubgraphSource[];
|
|
38
|
+
/** Whether the request succeeded. */
|
|
39
|
+
success?: boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface GraphSubgraphSource {
|
|
2
|
+
/** Provider-assigned identifier for this source (e.g. Slack channel ID). */
|
|
3
|
+
appExternalId?: string;
|
|
4
|
+
/** App integration category, populated for connector-synced sources. */
|
|
5
|
+
appKind?: string;
|
|
6
|
+
/** Provider name for app-sourced items (e.g. `slack`, `github`). */
|
|
7
|
+
appProvider?: string;
|
|
8
|
+
/** Depth is the BFS distance from the seed (0 for the seed itself). */
|
|
9
|
+
depth?: number;
|
|
10
|
+
discoveredRelation?: string;
|
|
11
|
+
/**
|
|
12
|
+
* DiscoveredVia and DiscoveredRelation record the traversal provenance:
|
|
13
|
+
* which already-admitted source this member was first reached from, and
|
|
14
|
+
* through which mechanism — a RELATES_TO relation_type (reply_to,
|
|
15
|
+
* child_of, ...), same_thread, parent or child. Empty on the seed.
|
|
16
|
+
*/
|
|
17
|
+
discoveredVia?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Hydration carries the same resolved/stub/placeholder classification
|
|
20
|
+
* Entity.Hydration documents: a RELATES_TO target may be a MERGE-created
|
|
21
|
+
* forward reference to a document that has not been ingested yet.
|
|
22
|
+
*/
|
|
23
|
+
hydration?: string;
|
|
24
|
+
sourceId?: string;
|
|
25
|
+
threadId?: string;
|
|
26
|
+
/** Title or name of the source. */
|
|
27
|
+
title?: string;
|
|
28
|
+
}
|
|
@@ -6,4 +6,11 @@ export interface GraphTripletWithEvidence {
|
|
|
6
6
|
relations?: HydraDB.GraphRelationEvidence[];
|
|
7
7
|
source?: HydraDB.GraphEntity;
|
|
8
8
|
target?: HydraDB.GraphEntity;
|
|
9
|
+
/**
|
|
10
|
+
* Truncated is set on auxiliary triplets whose fan-out hit a per-node cap,
|
|
11
|
+
* so a caller can tell "this source has no more comments" from "we stopped
|
|
12
|
+
* counting". Omitted (false) on entity relations, which are bounded by the
|
|
13
|
+
* request's own limit/cursor instead.
|
|
14
|
+
*/
|
|
15
|
+
truncated?: boolean;
|
|
9
16
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface HandlerCatalogConnector {
|
|
2
|
+
category?: string;
|
|
3
|
+
isAlpha?: boolean;
|
|
4
|
+
isBeta?: boolean;
|
|
5
|
+
moveitSupport?: boolean;
|
|
6
|
+
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
7
|
+
provider?: string;
|
|
8
|
+
/** Rank is the dashboard display order (lower first); null means unranked. */
|
|
9
|
+
rank?: number;
|
|
10
|
+
rbacDescription?: string;
|
|
11
|
+
/**
|
|
12
|
+
* RBACSupport reports whether document-level ACL capture (PRO-1684) is
|
|
13
|
+
* enabled for this provider (the acl_supported control-plane flag), and
|
|
14
|
+
* RBACDescription says in one sentence WHAT is captured, so the dashboard
|
|
15
|
+
* can explain the capability instead of showing a bare boolean.
|
|
16
|
+
*/
|
|
17
|
+
rbacSupport?: boolean;
|
|
18
|
+
supported?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* WebhookSupport marks a provider fed by an inbound webhook. The dashboard
|
|
21
|
+
* needs it to pick the credential form: it otherwise reads moveit_support=false
|
|
22
|
+
* as "classic", and renders the single-token form instead of the provider's
|
|
23
|
+
* declared credential schema.
|
|
24
|
+
*/
|
|
25
|
+
webhookSupport?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerConfigureResponse {
|
|
3
|
+
backfill?: boolean;
|
|
4
|
+
configured?: number;
|
|
5
|
+
/** Connector this resource belongs to. */
|
|
6
|
+
connectorId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* FirstSyncAt/Message state the timing expectation: whether the first
|
|
9
|
+
* sync is already running (configure triggers one) or when the scheduled
|
|
10
|
+
* one runs, so clients stop inventing their own copy (PRO-1565).
|
|
11
|
+
*/
|
|
12
|
+
firstSyncAt?: string;
|
|
13
|
+
/** Human-readable result message. */
|
|
14
|
+
message?: string;
|
|
15
|
+
meta?: HydraDB.HandlerConfigureResponseMeta;
|
|
16
|
+
/**
|
|
17
|
+
* Warnings names resources that were saved but produced nothing when
|
|
18
|
+
* probed. They are valid — the user may know a table is empty and expect it
|
|
19
|
+
* to fill — so they are not rejected, but they are the case that is
|
|
20
|
+
* otherwise indistinguishable from success at every layer, so they are
|
|
21
|
+
* never saved silently either.
|
|
22
|
+
*/
|
|
23
|
+
warnings?: string[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export interface HandlerConnectorApiView {
|
|
2
|
+
/**
|
|
3
|
+
* ACLChangesCursor is the provider permission-change feed's persisted
|
|
4
|
+
* cursor (PRO-1684; e.g. the Drive changes.list page token). Empty means
|
|
5
|
+
* uninitialized: the next cycle fetches a baseline and starts from now.
|
|
6
|
+
* Advanced ONLY after every reported change was applied, so a failed
|
|
7
|
+
* apply replays the same changes next cycle (at-least-once; the writes
|
|
8
|
+
* are idempotent full replacements).
|
|
9
|
+
*/
|
|
10
|
+
aclChangesCursor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ActiveResourceCount mirrors the number of non-disabled resource rows so
|
|
13
|
+
* list responses can distinguish "no resources configured yet"
|
|
14
|
+
* (pending_setup) without a per-connector resources query.
|
|
15
|
+
*/
|
|
16
|
+
activeResourceCount?: number;
|
|
17
|
+
/** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
|
|
18
|
+
authType?: string;
|
|
19
|
+
/** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
|
|
20
|
+
collection?: string;
|
|
21
|
+
/** Connector this resource belongs to. */
|
|
22
|
+
connectorId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* CustomInstructions is optional free-text guidance applied when this
|
|
25
|
+
* connector's documents are ingested: it steers how content is interpreted
|
|
26
|
+
* and indexed. Max 4000 characters; changes apply from the next sync cycle.
|
|
27
|
+
*/
|
|
28
|
+
customInstructions?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Database/Collection are the canonical v2 names for the deprecated
|
|
31
|
+
* tenant_id/sub_tenant_id wire fields. They mirror the same values so a v2
|
|
32
|
+
* client sees the canonical names on responses while a legacy client keeps
|
|
33
|
+
* reading tenant_id/sub_tenant_id. Not persisted (dynamodbav:"-"): the store
|
|
34
|
+
* builds items from tenant_id/sub_tenant_id and mirrors these on load. They
|
|
35
|
+
* are populated at every construction point (toConnector, connectorFromItem)
|
|
36
|
+
* rather than via MarshalJSON so Temporal's JSON data converter round-trips
|
|
37
|
+
* Connector activity inputs without spuriously populating them.
|
|
38
|
+
*/
|
|
39
|
+
database?: string;
|
|
40
|
+
/**
|
|
41
|
+
* DocumentsDispatched is the running total of objects handed to ingestion
|
|
42
|
+
* across all completed cycles. It is dispatch *activity*, not an indexed
|
|
43
|
+
* count: upserts count every time they change, deletes are never
|
|
44
|
+
* subtracted, and an activity retry can double-count. Suitable as an
|
|
45
|
+
* is-data-moving signal, never as "N documents indexed".
|
|
46
|
+
*/
|
|
47
|
+
documentsDispatched?: number;
|
|
48
|
+
/**
|
|
49
|
+
* FirstDataDispatchedAt is set once, by the first completed cycle that
|
|
50
|
+
* dispatched more than zero objects. Its presence is what proves the
|
|
51
|
+
* pipeline end to end; after it is set, an empty cycle is "nothing changed
|
|
52
|
+
* at the source", not "still ingesting".
|
|
53
|
+
*/
|
|
54
|
+
firstDataDispatchedAt?: string;
|
|
55
|
+
/** RFC3339 timestamp of the most recent sync attempt (successful or not). */
|
|
56
|
+
lastAttemptedSyncAt?: string;
|
|
57
|
+
/** Error message from the most recent failed sync, empty string when no error. */
|
|
58
|
+
lastError?: string;
|
|
59
|
+
/** RFC3339 timestamp of the last successful sync completion. */
|
|
60
|
+
lastSuccessfulSyncAt?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Lifecycle is the derived what-is-it-doing-now field and the one status
|
|
63
|
+
* clients should read (PRO-1565): reconnect | syncing | pending_setup |
|
|
64
|
+
* ingesting | active. The embedded `status` field is a scheduler-internal
|
|
65
|
+
* constant ("active" always) kept only for compatibility, and `sync_status`
|
|
66
|
+
* is the narrower mid-cycle indicator. Computed at the HTTP boundary from
|
|
67
|
+
* the connector's stored facts, never persisted, so it cannot disagree
|
|
68
|
+
* with them.
|
|
69
|
+
*/
|
|
70
|
+
lifecycle?: string;
|
|
71
|
+
/** Human-readable label for this resource. */
|
|
72
|
+
name?: string;
|
|
73
|
+
needsReauth?: boolean;
|
|
74
|
+
needsReauthAt?: string;
|
|
75
|
+
needsReauthReason?: string;
|
|
76
|
+
/** RFC3339 timestamp when the next scheduled sync will run. */
|
|
77
|
+
nextSyncAt?: string;
|
|
78
|
+
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
79
|
+
provider?: string;
|
|
80
|
+
/** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
|
|
81
|
+
providerAccountScope?: string;
|
|
82
|
+
/**
|
|
83
|
+
* ResourcesPendingFirstSync counts active resources whose provider_cursor
|
|
84
|
+
* is still empty — resources that have never been successfully pulled.
|
|
85
|
+
* MOVEIT commits provider_cursor after every successful pull (even a
|
|
86
|
+
* zero-row one), so this self-clears one cycle after each resource first
|
|
87
|
+
* syncs. Recomputed by the MOVEIT sync workflow each cycle and by the
|
|
88
|
+
* resource-mutating handlers, so a resource added to a long-active
|
|
89
|
+
* connector re-enters the ingesting state.
|
|
90
|
+
*/
|
|
91
|
+
resourcesPendingFirstSync?: number;
|
|
92
|
+
/** Current lifecycle or processing state. */
|
|
93
|
+
status?: string;
|
|
94
|
+
subTenantId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* NeedsReauth is set by MOVEIT's OAuth refresh sweep when the provider has
|
|
97
|
+
* rejected the connector's refresh token (`invalid_grant` — expired, revoked,
|
|
98
|
+
* or, for a provider with single-use tokens, already spent).
|
|
99
|
+
*
|
|
100
|
+
* It is deliberately distinct from LastError, which records a *sync* failure.
|
|
101
|
+
* This is the one failure class no amount of retrying resolves: the stored
|
|
102
|
+
* grant is gone and only the tenant can mint a new one. Surfacing it as its
|
|
103
|
+
* own field is what lets a client show "reconnect" instead of a generic
|
|
104
|
+
* "sync failed", and the sweep clears it automatically on the next successful
|
|
105
|
+
* rotation, so a client can trust the absence of the flag as much as its
|
|
106
|
+
* presence.
|
|
107
|
+
*
|
|
108
|
+
* Only ever set on OAuth-bundle connectors. A connector authenticated with a
|
|
109
|
+
* static token or with client credentials (X posts: see the `client_id` /
|
|
110
|
+
* `client_secret` inputs on tap-twitter) has no refresh token and therefore
|
|
111
|
+
* cannot reach this state at all — which is the reason to prefer that shape
|
|
112
|
+
* where a provider offers it.
|
|
113
|
+
* SyncBlocked marks a connector stopped by a terminal failure — one no
|
|
114
|
+
* retry can fix. The scheduler skips it and next_sync_at is parked a
|
|
115
|
+
* century out; only a credential or config update clears it. Distinct from
|
|
116
|
+
* NeedsReauth, which is the OAuth sweep's own narrower signal: this covers
|
|
117
|
+
* any provider rejection of the stored credentials, including static keys
|
|
118
|
+
* that have no refresh token to sweep.
|
|
119
|
+
*/
|
|
120
|
+
syncBlocked?: boolean;
|
|
121
|
+
syncBlockedAt?: string;
|
|
122
|
+
syncBlockedReason?: string;
|
|
123
|
+
/**
|
|
124
|
+
* SyncCyclesCompleted counts successfully completed sync cycles. Bounded
|
|
125
|
+
* use only: it lets DeriveLifecycle stop reporting "ingesting" after a few
|
|
126
|
+
* clean-but-empty cycles on a source that genuinely has nothing to pull.
|
|
127
|
+
*/
|
|
128
|
+
syncCyclesCompleted?: number;
|
|
129
|
+
/**
|
|
130
|
+
* SyncEngine is "classic" (default, empty treated as classic) or "moveit".
|
|
131
|
+
* See the SyncEngine* constants; the scheduler branches on it.
|
|
132
|
+
*/
|
|
133
|
+
syncEngine?: string;
|
|
134
|
+
/** 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}. */
|
|
135
|
+
syncIntervalSeconds?: number;
|
|
136
|
+
/** Current sync operation state (e.g. `idle`, `running`). */
|
|
137
|
+
syncStatus?: string;
|
|
138
|
+
tenantId?: string;
|
|
139
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export interface HandlerConnectorCreateResponse {
|
|
2
|
+
/**
|
|
3
|
+
* ACLChangesCursor is the provider permission-change feed's persisted
|
|
4
|
+
* cursor (PRO-1684; e.g. the Drive changes.list page token). Empty means
|
|
5
|
+
* uninitialized: the next cycle fetches a baseline and starts from now.
|
|
6
|
+
* Advanced ONLY after every reported change was applied, so a failed
|
|
7
|
+
* apply replays the same changes next cycle (at-least-once; the writes
|
|
8
|
+
* are idempotent full replacements).
|
|
9
|
+
*/
|
|
10
|
+
aclChangesCursor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* ActiveResourceCount mirrors the number of non-disabled resource rows so
|
|
13
|
+
* list responses can distinguish "no resources configured yet"
|
|
14
|
+
* (pending_setup) without a per-connector resources query.
|
|
15
|
+
*/
|
|
16
|
+
activeResourceCount?: number;
|
|
17
|
+
/** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
|
|
18
|
+
authType?: string;
|
|
19
|
+
/** Collection scope. Defaults to the default collection when omitted. Formerly `sub_tenant_id`; the `sub_tenant_id` alias is still accepted (deprecated). */
|
|
20
|
+
collection?: string;
|
|
21
|
+
/** Connector this resource belongs to. */
|
|
22
|
+
connectorId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* CustomInstructions is optional free-text guidance applied when this
|
|
25
|
+
* connector's documents are ingested: it steers how content is interpreted
|
|
26
|
+
* and indexed. Max 4000 characters; changes apply from the next sync cycle.
|
|
27
|
+
*/
|
|
28
|
+
customInstructions?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Database/Collection are the canonical v2 names for the deprecated
|
|
31
|
+
* tenant_id/sub_tenant_id wire fields. They mirror the same values so a v2
|
|
32
|
+
* client sees the canonical names on responses while a legacy client keeps
|
|
33
|
+
* reading tenant_id/sub_tenant_id. Not persisted (dynamodbav:"-"): the store
|
|
34
|
+
* builds items from tenant_id/sub_tenant_id and mirrors these on load. They
|
|
35
|
+
* are populated at every construction point (toConnector, connectorFromItem)
|
|
36
|
+
* rather than via MarshalJSON so Temporal's JSON data converter round-trips
|
|
37
|
+
* Connector activity inputs without spuriously populating them.
|
|
38
|
+
*/
|
|
39
|
+
database?: string;
|
|
40
|
+
/**
|
|
41
|
+
* DocumentsDispatched is the running total of objects handed to ingestion
|
|
42
|
+
* across all completed cycles. It is dispatch *activity*, not an indexed
|
|
43
|
+
* count: upserts count every time they change, deletes are never
|
|
44
|
+
* subtracted, and an activity retry can double-count. Suitable as an
|
|
45
|
+
* is-data-moving signal, never as "N documents indexed".
|
|
46
|
+
*/
|
|
47
|
+
documentsDispatched?: number;
|
|
48
|
+
/**
|
|
49
|
+
* FirstDataDispatchedAt is set once, by the first completed cycle that
|
|
50
|
+
* dispatched more than zero objects. Its presence is what proves the
|
|
51
|
+
* pipeline end to end; after it is set, an empty cycle is "nothing changed
|
|
52
|
+
* at the source", not "still ingesting".
|
|
53
|
+
*/
|
|
54
|
+
firstDataDispatchedAt?: string;
|
|
55
|
+
/** FirstSyncAt is when the first scheduled sync runs (RFC3339). */
|
|
56
|
+
firstSyncAt?: string;
|
|
57
|
+
/** RFC3339 timestamp of the most recent sync attempt (successful or not). */
|
|
58
|
+
lastAttemptedSyncAt?: string;
|
|
59
|
+
/** Error message from the most recent failed sync, empty string when no error. */
|
|
60
|
+
lastError?: string;
|
|
61
|
+
/** RFC3339 timestamp of the last successful sync completion. */
|
|
62
|
+
lastSuccessfulSyncAt?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Lifecycle is the derived what-is-it-doing-now field and the one status
|
|
65
|
+
* clients should read (PRO-1565): reconnect | syncing | pending_setup |
|
|
66
|
+
* ingesting | active. The embedded `status` field is a scheduler-internal
|
|
67
|
+
* constant ("active" always) kept only for compatibility, and `sync_status`
|
|
68
|
+
* is the narrower mid-cycle indicator. Computed at the HTTP boundary from
|
|
69
|
+
* the connector's stored facts, never persisted, so it cannot disagree
|
|
70
|
+
* with them.
|
|
71
|
+
*/
|
|
72
|
+
lifecycle?: string;
|
|
73
|
+
/** Message is a human-readable expectation, safe to show verbatim. */
|
|
74
|
+
message?: string;
|
|
75
|
+
/** Human-readable label for this resource. */
|
|
76
|
+
name?: string;
|
|
77
|
+
needsReauth?: boolean;
|
|
78
|
+
needsReauthAt?: string;
|
|
79
|
+
needsReauthReason?: string;
|
|
80
|
+
/** RFC3339 timestamp when the next scheduled sync will run. */
|
|
81
|
+
nextSyncAt?: string;
|
|
82
|
+
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
83
|
+
provider?: string;
|
|
84
|
+
/** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
|
|
85
|
+
providerAccountScope?: string;
|
|
86
|
+
/**
|
|
87
|
+
* ResourcesPendingFirstSync counts active resources whose provider_cursor
|
|
88
|
+
* is still empty — resources that have never been successfully pulled.
|
|
89
|
+
* MOVEIT commits provider_cursor after every successful pull (even a
|
|
90
|
+
* zero-row one), so this self-clears one cycle after each resource first
|
|
91
|
+
* syncs. Recomputed by the MOVEIT sync workflow each cycle and by the
|
|
92
|
+
* resource-mutating handlers, so a resource added to a long-active
|
|
93
|
+
* connector re-enters the ingesting state.
|
|
94
|
+
*/
|
|
95
|
+
resourcesPendingFirstSync?: number;
|
|
96
|
+
/** Current lifecycle or processing state. */
|
|
97
|
+
status?: string;
|
|
98
|
+
subTenantId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* NeedsReauth is set by MOVEIT's OAuth refresh sweep when the provider has
|
|
101
|
+
* rejected the connector's refresh token (`invalid_grant` — expired, revoked,
|
|
102
|
+
* or, for a provider with single-use tokens, already spent).
|
|
103
|
+
*
|
|
104
|
+
* It is deliberately distinct from LastError, which records a *sync* failure.
|
|
105
|
+
* This is the one failure class no amount of retrying resolves: the stored
|
|
106
|
+
* grant is gone and only the tenant can mint a new one. Surfacing it as its
|
|
107
|
+
* own field is what lets a client show "reconnect" instead of a generic
|
|
108
|
+
* "sync failed", and the sweep clears it automatically on the next successful
|
|
109
|
+
* rotation, so a client can trust the absence of the flag as much as its
|
|
110
|
+
* presence.
|
|
111
|
+
*
|
|
112
|
+
* Only ever set on OAuth-bundle connectors. A connector authenticated with a
|
|
113
|
+
* static token or with client credentials (X posts: see the `client_id` /
|
|
114
|
+
* `client_secret` inputs on tap-twitter) has no refresh token and therefore
|
|
115
|
+
* cannot reach this state at all — which is the reason to prefer that shape
|
|
116
|
+
* where a provider offers it.
|
|
117
|
+
* SyncBlocked marks a connector stopped by a terminal failure — one no
|
|
118
|
+
* retry can fix. The scheduler skips it and next_sync_at is parked a
|
|
119
|
+
* century out; only a credential or config update clears it. Distinct from
|
|
120
|
+
* NeedsReauth, which is the OAuth sweep's own narrower signal: this covers
|
|
121
|
+
* any provider rejection of the stored credentials, including static keys
|
|
122
|
+
* that have no refresh token to sweep.
|
|
123
|
+
*/
|
|
124
|
+
syncBlocked?: boolean;
|
|
125
|
+
syncBlockedAt?: string;
|
|
126
|
+
syncBlockedReason?: string;
|
|
127
|
+
/**
|
|
128
|
+
* SyncCyclesCompleted counts successfully completed sync cycles. Bounded
|
|
129
|
+
* use only: it lets DeriveLifecycle stop reporting "ingesting" after a few
|
|
130
|
+
* clean-but-empty cycles on a source that genuinely has nothing to pull.
|
|
131
|
+
*/
|
|
132
|
+
syncCyclesCompleted?: number;
|
|
133
|
+
/**
|
|
134
|
+
* SyncEngine is "classic" (default, empty treated as classic) or "moveit".
|
|
135
|
+
* See the SyncEngine* constants; the scheduler branches on it.
|
|
136
|
+
*/
|
|
137
|
+
syncEngine?: string;
|
|
138
|
+
/** 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}. */
|
|
139
|
+
syncIntervalSeconds?: number;
|
|
140
|
+
/** Current sync operation state (e.g. `idle`, `running`). */
|
|
141
|
+
syncStatus?: string;
|
|
142
|
+
tenantId?: string;
|
|
143
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerConnectorListResponse {
|
|
3
|
+
connectors?: HydraDB.HandlerConnectorApiView[];
|
|
4
|
+
/**
|
|
5
|
+
* Health maps connector_id to its rollup (healthy | degraded | failed |
|
|
6
|
+
* checking), present only when the caller asks for `?include=health`.
|
|
7
|
+
* A connector missing from the map has an unknown rollup — its resources
|
|
8
|
+
* could not be read — which clients must not render as a failure.
|
|
9
|
+
*/
|
|
10
|
+
health?: Record<string, string>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface HandlerConnectorResourceStatus {
|
|
2
|
+
/** Action is what the user must do, when there is something they can do. */
|
|
3
|
+
action?: string;
|
|
4
|
+
checkedAt?: string;
|
|
5
|
+
/** Human-readable name for this resource. */
|
|
6
|
+
displayName?: string;
|
|
7
|
+
/** HTTPStatus is the provider's response code when one was reported. */
|
|
8
|
+
httpStatus?: number;
|
|
9
|
+
/** LastRowCount is the rows produced by the last sync. */
|
|
10
|
+
lastRowCount?: number;
|
|
11
|
+
/** Message is the provider's own words when Status is failed. */
|
|
12
|
+
message?: string;
|
|
13
|
+
/** Resource identifier from the Discover endpoint. */
|
|
14
|
+
resourceId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Retryable is set only for a failed resource: false for a provider
|
|
17
|
+
* rejection the user must fix (403, 404, a misconfigured table), true for
|
|
18
|
+
* something that may clear on its own.
|
|
19
|
+
*/
|
|
20
|
+
retryable?: boolean;
|
|
21
|
+
/** Status is one of ok | empty | failed | checking | unknown. */
|
|
22
|
+
status?: string;
|
|
23
|
+
/**
|
|
24
|
+
* SyncBlocked reports that this resource has stopped syncing. Distinct from
|
|
25
|
+
* a failed status: a resource can fail a cycle and be retried, and the
|
|
26
|
+
* difference between "failing" and "given up on" is the one a user needs to
|
|
27
|
+
* act on.
|
|
28
|
+
*/
|
|
29
|
+
syncBlocked?: boolean;
|
|
30
|
+
/** SyncBlockedAt is when it stopped (RFC3339). */
|
|
31
|
+
syncBlockedAt?: string;
|
|
32
|
+
/**
|
|
33
|
+
* SyncBlockedReason is why it stopped, preserved from the failure that
|
|
34
|
+
* stopped it so it survives later syncs overwriting the health block.
|
|
35
|
+
*/
|
|
36
|
+
syncBlockedReason?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error is the connector-level failure, set when Status is failed. Absent
|
|
3
|
+
* when the trouble is confined to individual resources — those carry their
|
|
4
|
+
* own messages below.
|
|
5
|
+
*/
|
|
6
|
+
export interface HandlerConnectorStatusError {
|
|
7
|
+
/** Action is what the user must do, when there is something they can do. */
|
|
8
|
+
action?: string;
|
|
9
|
+
/** DetectedAt is when the failure was observed (RFC3339). */
|
|
10
|
+
detectedAt?: string;
|
|
11
|
+
/** Human-readable result message. */
|
|
12
|
+
message?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Retryable reports whether waiting can fix this. False means only the user
|
|
15
|
+
* can: a rejected credential is not a transient error, and telling someone
|
|
16
|
+
* to retry a dead OAuth grant wastes their time.
|
|
17
|
+
*/
|
|
18
|
+
retryable?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerConnectorStatusResponse {
|
|
3
|
+
/** Connector this resource belongs to. */
|
|
4
|
+
connectorId?: string;
|
|
5
|
+
/** Error message, empty string on success. */
|
|
6
|
+
error?: HydraDB.HandlerConnectorStatusError;
|
|
7
|
+
/** RFC3339 timestamp of the most recent sync attempt (successful or not). */
|
|
8
|
+
lastAttemptedSyncAt?: string;
|
|
9
|
+
/** RFC3339 timestamp of the last successful sync completion. */
|
|
10
|
+
lastSuccessfulSyncAt?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Lifecycle is the derived what-is-it-doing-now field (PRO-1565):
|
|
13
|
+
* reconnect | syncing | pending_setup | ingesting | active. Orthogonal to
|
|
14
|
+
* the health rollup above — a connector can be ingesting and healthy, or
|
|
15
|
+
* active and degraded.
|
|
16
|
+
*/
|
|
17
|
+
lifecycle?: string;
|
|
18
|
+
/** RFC3339 timestamp when the next scheduled sync will run. */
|
|
19
|
+
nextSyncAt?: string;
|
|
20
|
+
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
21
|
+
provider?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Resources is one entry per configured resource, always non-nil so it
|
|
24
|
+
* serialises as [] rather than null.
|
|
25
|
+
*/
|
|
26
|
+
resources?: HydraDB.HandlerConnectorResourceStatus[];
|
|
27
|
+
/**
|
|
28
|
+
* Status is the rollup: healthy | degraded | failed | checking. It is the
|
|
29
|
+
* worst of the credential state and every resource state.
|
|
30
|
+
*/
|
|
31
|
+
status?: string;
|
|
32
|
+
/**
|
|
33
|
+
* SyncStatus is the in-progress indicator ("syncing"/"idle"), orthogonal to
|
|
34
|
+
* Status — a connector can be mid-sync and degraded at the same time.
|
|
35
|
+
*/
|
|
36
|
+
syncStatus?: string;
|
|
37
|
+
}
|