@hydradb/sdk 2.0.1 → 2.1.1
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/README.md +493 -554
- package/dist/Client.d.ts +33 -8
- package/dist/Client.js +124 -18
- package/dist/api/client/requests/ListProvidersRequest.d.ts +10 -0
- package/dist/api/client/requests/SearchQueryRequest.d.ts +55 -15
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/errors/BadGatewayError.d.ts +6 -0
- package/dist/api/errors/{TooManyRequestsError.js → BadGatewayError.js} +5 -5
- package/dist/api/errors/{TooManyRequestsError.d.ts → ContentTooLargeError.d.ts} +1 -1
- package/dist/api/errors/ContentTooLargeError.js +54 -0
- package/dist/api/errors/NotFoundError.d.ts +1 -2
- package/dist/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/dist/api/errors/ServiceUnavailableError.js +54 -0
- package/dist/api/errors/index.d.ts +3 -1
- package/dist/api/errors/index.js +3 -1
- package/dist/api/resources/connectors/client/Client.d.ts +240 -0
- package/dist/api/resources/connectors/client/Client.js +1034 -0
- package/dist/api/resources/connectors/client/requests/DeleteConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/DeleteResourceConnectorsRequest.d.ts +13 -0
- package/dist/api/resources/connectors/client/requests/DiscoverConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/GetConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +34 -0
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +41 -0
- package/dist/api/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +17 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +34 -0
- package/dist/api/resources/connectors/client/requests/ListConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/ListResourcesConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/PatchConnectorsIdCredentialsRequest.d.ts +14 -0
- package/dist/api/resources/connectors/client/requests/SyncConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +12 -0
- package/dist/api/resources/connectors/exports.d.ts +2 -0
- package/dist/api/resources/{embeddings → connectors}/exports.js +2 -2
- package/dist/api/resources/context/client/Client.d.ts +33 -6
- package/dist/api/resources/context/client/Client.js +134 -19
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +30 -0
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +6 -3
- package/dist/api/resources/context/client/requests/InspectContextRequest.d.ts +12 -5
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +16 -1
- package/dist/api/resources/context/client/requests/RelationsContextRequest.d.ts +14 -6
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +14 -1
- package/dist/api/resources/context/client/requests/StatusContextRequest.d.ts +10 -3
- package/dist/api/resources/context/client/requests/index.d.ts +1 -0
- package/dist/api/resources/context/index.d.ts +1 -0
- package/dist/api/resources/context/index.js +1 -0
- package/dist/api/resources/context/types/IngestContextRequestType.d.ts +5 -0
- package/dist/api/resources/context/types/IngestContextRequestType.js +8 -0
- package/dist/api/resources/context/types/ListV2ListContentRequestType.d.ts +6 -0
- package/dist/api/resources/context/types/ListV2ListContentRequestType.js +9 -0
- package/dist/api/resources/context/types/RelationsContextRequestType.d.ts +5 -0
- package/dist/api/resources/context/types/RelationsContextRequestType.js +8 -0
- package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +6 -0
- package/dist/api/resources/context/types/SourcesV2SourceDeleteRequestType.js +9 -0
- package/dist/api/resources/context/types/index.d.ts +4 -0
- package/dist/api/resources/context/types/index.js +20 -0
- package/dist/api/resources/databases/client/Client.d.ts +127 -0
- package/dist/api/resources/{tenants → databases}/client/Client.js +146 -78
- package/dist/api/resources/databases/client/requests/CollectionsDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/DeleteDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/StatsDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/StatusDatabasesRequest.d.ts +10 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantCreateRequest.d.ts +23 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantMetadataSchemaUpdateRequest.d.ts +13 -0
- package/dist/api/resources/databases/client/requests/TenantsTenantMetadataSchemaUpdateRequest.js +3 -0
- package/dist/api/resources/databases/client/requests/index.d.ts +6 -0
- package/dist/api/resources/databases/exports.d.ts +2 -0
- package/dist/api/resources/{tenants → databases}/exports.js +2 -2
- package/dist/api/resources/index.d.ts +5 -4
- package/dist/api/resources/index.js +6 -5
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -3
- package/dist/api/resources/webhooks/client/Client.js +19 -31
- package/dist/api/resources/webhooks/client/requests/GetDeliveryWebhooksRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/RetryDeliveryWebhooksRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/WebhooksWebhookRegisterRequest.d.ts +3 -0
- package/dist/api/types/ConnectorsConnector.d.ts +58 -0
- package/dist/api/types/ConnectorsConnector.js +3 -0
- package/dist/api/types/ConnectorsResource.d.ts +71 -0
- package/dist/api/types/ConnectorsResource.js +3 -0
- package/dist/api/types/DashboardPaginationMeta.d.ts +6 -0
- package/dist/api/types/FetchV2SourceFetchResponse.d.ts +10 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +26 -0
- package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +3 -0
- package/dist/api/types/GraphEntity.d.ts +12 -0
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +4 -0
- package/dist/api/types/GraphRelationEvidence.d.ts +6 -0
- package/dist/api/types/GraphTripletWithEvidence.d.ts +2 -0
- package/dist/api/types/HandlerApiError.d.ts +2 -0
- package/dist/api/types/HandlerDeprecationNotice.d.ts +12 -0
- package/dist/api/types/HandlerDeprecationNotice.js +3 -0
- package/dist/api/types/HandlerEnvelopeFetchV2SourceFetchResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +3 -0
- package/dist/api/types/HandlerEnvelopeGraphGraphRelationsResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2BatchProcessingStatus.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeIngestionV2SourceUploadResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeListV2SourceListResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeSearchV2RetrievalResult.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts +9 -0
- package/dist/api/types/HandlerEnvelopeSourcesMemoryDeleteResponse.js +3 -0
- package/dist/api/types/HandlerEnvelopeTenantsInfraStatusResponseV2.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeTenantsSubTenantIdsResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantCreateAcceptedResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantDeleteResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantIdsResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeTenantsTenantStatsResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksDeliveryItem.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksDeliveryListResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksRetryResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookDeleteResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookGetResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookRegisterResponse.d.ts +2 -0
- package/dist/api/types/HandlerEnvelopeWebhooksWebhookTestResponse.d.ts +2 -0
- package/dist/api/types/HandlerErrorDetail.d.ts +9 -0
- package/dist/api/types/HandlerErrorResponse.d.ts +1 -0
- package/dist/api/types/HandlerMetadataSchemaUpdateResponse.d.ts +7 -0
- package/dist/api/types/HandlerMetadataSchemaUpdateResponse.js +3 -0
- package/dist/api/types/HandlerResourceMapping.d.ts +46 -0
- package/dist/api/types/HandlerResourceMapping.js +3 -0
- package/dist/api/types/HandlerResponseMeta.d.ts +19 -0
- package/dist/api/types/IngestionV2BatchProcessingStatus.d.ts +1 -0
- package/dist/api/types/IngestionV2ProcessingStatus.d.ts +6 -0
- package/dist/api/types/IngestionV2SourceUploadResponse.d.ts +5 -0
- package/dist/api/types/IngestionV2SourceUploadResultItem.d.ts +7 -0
- package/dist/api/types/ListContentFilter.d.ts +8 -2
- package/dist/api/types/ListSourceListResponse.d.ts +4 -0
- package/dist/api/types/SearchGraphContext.d.ts +9 -0
- package/dist/api/types/SearchMetadataFilters.d.ts +4 -0
- package/dist/api/types/SearchMetadataFilters.js +3 -0
- package/dist/api/types/SearchPathTriplet.d.ts +3 -0
- package/dist/api/types/SearchQueryRequestCollections.d.ts +4 -0
- package/dist/api/types/SearchQueryRequestCollections.js +3 -0
- package/dist/api/types/SearchQueryRequestSubTenantIds.d.ts +4 -0
- package/dist/api/types/SearchQueryRequestSubTenantIds.js +3 -0
- package/dist/api/types/SearchRecallMode.d.ts +1 -0
- package/dist/api/types/SearchRecallMode.js +1 -0
- package/dist/api/types/SearchScoredPathResponse.d.ts +5 -0
- package/dist/api/types/SearchSourceInfo.d.ts +11 -0
- package/dist/api/types/SearchV2Chunk.d.ts +13 -0
- package/dist/api/types/SearchV2RetrievalResult.d.ts +3 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +13 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.js +3 -0
- package/dist/api/types/SourcesSourceDeleteResultItem.d.ts +3 -0
- package/dist/api/types/TenantsCollectionStats.d.ts +2 -0
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +7 -0
- package/dist/api/types/TenantsFailedTenant.d.ts +3 -0
- package/dist/api/types/TenantsInfraStatusResponseV2.d.ts +4 -0
- package/dist/api/types/TenantsInfraV2.d.ts +2 -0
- package/dist/api/types/TenantsSubTenantIdsResponse.d.ts +4 -0
- package/dist/api/types/TenantsTenantCreateAcceptedResponse.d.ts +4 -0
- package/dist/api/types/TenantsTenantDeleteResponse.d.ts +4 -0
- package/dist/api/types/TenantsTenantIdsResponse.d.ts +7 -0
- package/dist/api/types/TenantsTenantStatsResponse.d.ts +3 -0
- package/dist/api/types/TenantsVectorstoreStatusV2.d.ts +2 -0
- package/dist/api/types/WebhooksDeliveryItem.d.ts +10 -0
- package/dist/api/types/WebhooksDeliveryListResponse.d.ts +3 -0
- package/dist/api/types/WebhooksRetryResponse.d.ts +3 -0
- package/dist/api/types/WebhooksWebhookDeleteResponse.d.ts +2 -0
- package/dist/api/types/WebhooksWebhookGetResponse.d.ts +4 -0
- package/dist/api/types/WebhooksWebhookRegisterResponse.d.ts +5 -0
- package/dist/api/types/WebhooksWebhookTestResponse.d.ts +3 -0
- package/dist/api/types/index.d.ts +12 -10
- package/dist/api/types/index.js +12 -10
- package/dist/auth/BearerAuthProvider.d.ts +1 -1
- package/dist/serialization/client/catalog.d.ts +6 -0
- package/dist/serialization/{types/EmbeddingsRawEmbeddingVector.js → client/catalog.js} +2 -5
- package/dist/serialization/client/index.d.ts +2 -0
- package/dist/serialization/client/index.js +25 -0
- package/dist/serialization/client/listProviders.d.ts +6 -0
- package/dist/serialization/{types/EmbeddingsDeleteResult.js → client/listProviders.js} +2 -6
- package/dist/serialization/client/requests/SearchQueryRequest.d.ts +11 -3
- package/dist/serialization/client/requests/SearchQueryRequest.js +11 -3
- package/dist/serialization/resources/connectors/client/configure.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/configure.js +39 -0
- package/dist/serialization/resources/connectors/client/delete.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/delete.js +39 -0
- package/dist/serialization/resources/connectors/client/deleteResource.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/deleteResource.js +39 -0
- package/dist/serialization/resources/connectors/client/discover.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/discover.js +39 -0
- package/dist/serialization/resources/connectors/client/discoverPreview.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/discoverPreview.js +39 -0
- package/dist/serialization/resources/connectors/client/index.d.ts +10 -0
- package/dist/serialization/resources/connectors/client/index.js +49 -0
- package/dist/serialization/resources/connectors/client/list.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/list.js +39 -0
- package/dist/serialization/resources/connectors/client/listResources.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/listResources.js +39 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConfigureReq.d.ts +12 -0
- package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → connectors/client/requests/HandlerConfigureReq.js} +6 -7
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +21 -0
- package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js → connectors/client/requests/HandlerConnectorCreateReq.js} +15 -8
- package/dist/serialization/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +11 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerDiscoverPreviewReq.js +43 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +19 -0
- package/dist/serialization/{types/EmbeddingsRawEmbeddingSearchResult.js → resources/connectors/client/requests/HandlerResourceCreateReq.js} +13 -8
- package/dist/serialization/resources/connectors/client/requests/index.d.ts +4 -0
- package/dist/serialization/resources/connectors/client/requests/index.js +11 -0
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.d.ts +10 -0
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.js +40 -0
- package/dist/serialization/resources/connectors/client/sync.d.ts +6 -0
- package/dist/serialization/resources/connectors/client/sync.js +39 -0
- package/dist/serialization/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +16 -0
- package/dist/serialization/resources/{embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js → context/client/requests/HandlerContextMetadataUpdateRequest.js} +10 -8
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.d.ts +4 -1
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +4 -1
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +4 -1
- package/dist/serialization/resources/context/client/requests/SourcesV2SourceDeleteRequest.js +4 -1
- package/dist/serialization/resources/context/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/index.js +3 -1
- package/dist/serialization/resources/context/index.d.ts +1 -0
- package/dist/serialization/resources/context/index.js +1 -0
- package/dist/serialization/resources/context/types/IngestContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/IngestContextRequestType.js +39 -0
- package/dist/serialization/resources/context/types/ListV2ListContentRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/ListV2ListContentRequestType.js +39 -0
- package/dist/serialization/resources/context/types/RelationsContextRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/RelationsContextRequestType.js +39 -0
- package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.d.ts +7 -0
- package/dist/serialization/resources/context/types/SourcesV2SourceDeleteRequestType.js +39 -0
- package/dist/serialization/resources/context/types/index.d.ts +4 -0
- package/dist/serialization/resources/context/types/index.js +20 -0
- package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.d.ts +2 -0
- package/dist/serialization/resources/{tenants → databases}/client/requests/TenantsTenantCreateRequest.js +2 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantMetadataSchemaUpdateRequest.d.ts +10 -0
- package/dist/serialization/resources/databases/client/requests/TenantsTenantMetadataSchemaUpdateRequest.js +42 -0
- package/dist/serialization/resources/databases/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/databases/client/requests/index.js +7 -0
- package/dist/serialization/resources/index.d.ts +5 -4
- package/dist/serialization/resources/index.js +6 -5
- package/dist/serialization/types/ConnectorsConnector.d.ts +30 -0
- package/dist/serialization/types/ConnectorsConnector.js +62 -0
- package/dist/serialization/types/ConnectorsResource.d.ts +26 -0
- package/dist/serialization/types/ConnectorsResource.js +58 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +20 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +52 -0
- package/dist/serialization/types/GraphEntity.d.ts +1 -0
- package/dist/serialization/types/GraphEntity.js +1 -0
- package/dist/serialization/types/HandlerDeprecationNotice.d.ts +13 -0
- package/dist/serialization/types/HandlerDeprecationNotice.js +45 -0
- package/dist/serialization/types/HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts +15 -0
- package/dist/serialization/types/{HandlerEnvelopeEmbeddingsInsertResult.js → HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.d.ts → HandlerEnvelopeSourcesMemoryDeleteResponse.d.ts} +4 -4
- package/dist/serialization/types/{HandlerEnvelopeSourcesSourceDeleteResponse.js → HandlerEnvelopeSourcesMemoryDeleteResponse.js} +4 -4
- package/dist/serialization/types/HandlerErrorDetail.d.ts +3 -0
- package/dist/serialization/types/HandlerErrorDetail.js +3 -0
- package/dist/serialization/types/HandlerMetadataSchemaUpdateResponse.d.ts +11 -0
- package/dist/serialization/types/HandlerMetadataSchemaUpdateResponse.js +43 -0
- package/dist/serialization/types/HandlerResourceMapping.d.ts +17 -0
- package/dist/serialization/types/{EmbeddingsRawEmbeddingDocument.js → HandlerResourceMapping.js} +8 -5
- package/dist/serialization/types/HandlerResponseMeta.d.ts +7 -0
- package/dist/serialization/types/HandlerResponseMeta.js +7 -0
- package/dist/serialization/types/ListContentFilter.d.ts +2 -2
- package/dist/serialization/types/ListContentFilter.js +2 -2
- package/dist/serialization/types/SearchMetadataFilters.d.ts +7 -0
- package/dist/serialization/types/{EmbeddingsInsertResult.js → SearchMetadataFilters.js} +2 -7
- package/dist/serialization/types/SearchQueryRequestCollections.d.ts +7 -0
- package/dist/serialization/types/SearchQueryRequestCollections.js +42 -0
- package/dist/serialization/types/SearchQueryRequestSubTenantIds.d.ts +7 -0
- package/dist/serialization/types/SearchQueryRequestSubTenantIds.js +42 -0
- package/dist/serialization/types/SearchRecallMode.d.ts +1 -1
- package/dist/serialization/types/SearchRecallMode.js +1 -1
- package/dist/serialization/types/SearchSourceInfo.d.ts +1 -0
- package/dist/serialization/types/SearchSourceInfo.js +1 -0
- package/dist/serialization/types/SearchV2Chunk.d.ts +1 -0
- package/dist/serialization/types/SearchV2Chunk.js +1 -0
- package/dist/serialization/types/{SourcesSourceDeleteResponse.d.ts → SourcesMemoryDeleteResponse.d.ts} +3 -2
- package/dist/serialization/types/{SourcesSourceDeleteResponse.js → SourcesMemoryDeleteResponse.js} +3 -2
- package/dist/serialization/types/TenantsFailedTenant.d.ts +1 -0
- package/dist/serialization/types/TenantsFailedTenant.js +1 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.d.ts +1 -0
- package/dist/serialization/types/TenantsInfraStatusResponseV2.js +1 -0
- package/dist/serialization/types/TenantsSubTenantIdsResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsSubTenantIdsResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantCreateAcceptedResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantDeleteResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantDeleteResponse.js +1 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.d.ts +2 -0
- package/dist/serialization/types/TenantsTenantIdsResponse.js +2 -0
- package/dist/serialization/types/TenantsTenantStatsResponse.d.ts +1 -0
- package/dist/serialization/types/TenantsTenantStatsResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +12 -10
- package/dist/serialization/types/index.js +12 -10
- package/package.json +1 -1
- package/dist/api/resources/embeddings/client/Client.d.ts +0 -80
- package/dist/api/resources/embeddings/client/Client.js +0 -351
- package/dist/api/resources/embeddings/client/requests/DeleteEmbeddingsRequest.d.ts +0 -18
- package/dist/api/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -15
- package/dist/api/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -14
- package/dist/api/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -16
- package/dist/api/resources/embeddings/client/requests/index.d.ts +0 -4
- package/dist/api/resources/embeddings/exports.d.ts +0 -2
- package/dist/api/resources/tenants/client/Client.d.ts +0 -109
- package/dist/api/resources/tenants/client/requests/DeleteTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/StatsTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/StatusTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/SubTenantsTenantsRequest.d.ts +0 -10
- package/dist/api/resources/tenants/client/requests/TenantsTenantCreateRequest.d.ts +0 -11
- package/dist/api/resources/tenants/client/requests/index.d.ts +0 -5
- package/dist/api/resources/tenants/exports.d.ts +0 -2
- package/dist/api/types/EmbeddingsDeleteResult.d.ts +0 -5
- package/dist/api/types/EmbeddingsInsertResult.d.ts +0 -6
- package/dist/api/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -8
- package/dist/api/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -8
- package/dist/api/types/EmbeddingsRawEmbeddingVector.d.ts +0 -5
- package/dist/api/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -7
- package/dist/api/types/HandlerEnvelopeSourcesSourceDeleteResponse.d.ts +0 -7
- package/dist/api/types/SourcesSourceDeleteResponse.d.ts +0 -7
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.d.ts +0 -14
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.d.ts +0 -13
- package/dist/serialization/resources/embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.d.ts +0 -14
- package/dist/serialization/resources/embeddings/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/embeddings/client/requests/index.js +0 -9
- package/dist/serialization/resources/tenants/client/index.d.ts +0 -1
- package/dist/serialization/resources/tenants/client/index.js +0 -17
- package/dist/serialization/resources/tenants/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/tenants/client/requests/index.js +0 -5
- package/dist/serialization/types/EmbeddingsDeleteResult.d.ts +0 -11
- package/dist/serialization/types/EmbeddingsInsertResult.d.ts +0 -12
- package/dist/serialization/types/EmbeddingsRawEmbeddingDocument.d.ts +0 -14
- package/dist/serialization/types/EmbeddingsRawEmbeddingSearchResult.d.ts +0 -14
- package/dist/serialization/types/EmbeddingsRawEmbeddingVector.d.ts +0 -10
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.d.ts +0 -15
- package/dist/serialization/types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js +0 -47
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.d.ts +0 -15
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsDeleteResult.js +0 -47
- package/dist/serialization/types/HandlerEnvelopeEmbeddingsInsertResult.d.ts +0 -15
- /package/dist/api/{resources/embeddings/client/requests/DeleteEmbeddingsRequest.js → client/requests/ListProvidersRequest.js} +0 -0
- /package/dist/api/resources/{embeddings → connectors}/client/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → connectors}/client/index.js +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsFilterRawEmbeddingsRequest.js → connectors/client/requests/DeleteConnectorsRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsInsertRawEmbeddingsRequest.js → connectors/client/requests/DeleteResourceConnectorsRequest.js} +0 -0
- /package/dist/api/resources/{embeddings/client/requests/EmbeddingsSearchRawEmbeddingsRequest.js → connectors/client/requests/DiscoverConnectorsRequest.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/DeleteTenantsRequest.js → connectors/client/requests/GetConnectorsRequest.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/StatsTenantsRequest.js → connectors/client/requests/HandlerConfigureReq.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/StatusTenantsRequest.js → connectors/client/requests/HandlerConnectorCreateReq.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/SubTenantsTenantsRequest.js → connectors/client/requests/HandlerDiscoverPreviewReq.js} +0 -0
- /package/dist/api/resources/{tenants/client/requests/TenantsTenantCreateRequest.js → connectors/client/requests/HandlerResourceCreateReq.js} +0 -0
- /package/dist/api/{types/EmbeddingsDeleteResult.js → resources/connectors/client/requests/ListConnectorsRequest.js} +0 -0
- /package/dist/api/{types/EmbeddingsInsertResult.js → resources/connectors/client/requests/ListResourcesConnectorsRequest.js} +0 -0
- /package/dist/api/{types/EmbeddingsRawEmbeddingDocument.js → resources/connectors/client/requests/PatchConnectorsIdCredentialsRequest.js} +0 -0
- /package/dist/api/{types/EmbeddingsRawEmbeddingSearchResult.js → resources/connectors/client/requests/SyncConnectorsRequest.js} +0 -0
- /package/dist/api/resources/{embeddings → connectors}/client/requests/index.js +0 -0
- /package/dist/api/resources/{embeddings → connectors}/index.d.ts +0 -0
- /package/dist/api/resources/{embeddings → connectors}/index.js +0 -0
- /package/dist/api/{types/EmbeddingsRawEmbeddingVector.js → resources/context/client/requests/HandlerContextMetadataUpdateRequest.js} +0 -0
- /package/dist/api/resources/{tenants → databases}/client/index.d.ts +0 -0
- /package/dist/api/resources/{tenants → databases}/client/index.js +0 -0
- /package/dist/api/{types/HandlerEnvelopeArrayEmbeddingsRawEmbeddingSearchResult.js → resources/databases/client/requests/CollectionsDatabasesRequest.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeEmbeddingsDeleteResult.js → resources/databases/client/requests/DeleteDatabasesRequest.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeEmbeddingsInsertResult.js → resources/databases/client/requests/StatsDatabasesRequest.js} +0 -0
- /package/dist/api/{types/HandlerEnvelopeSourcesSourceDeleteResponse.js → resources/databases/client/requests/StatusDatabasesRequest.js} +0 -0
- /package/dist/api/{types/SourcesSourceDeleteResponse.js → resources/databases/client/requests/TenantsTenantCreateRequest.js} +0 -0
- /package/dist/api/resources/{tenants → databases}/client/requests/index.js +0 -0
- /package/dist/api/resources/{tenants → databases}/index.d.ts +0 -0
- /package/dist/api/resources/{tenants → databases}/index.js +0 -0
- /package/dist/serialization/resources/{embeddings → connectors}/index.d.ts +0 -0
- /package/dist/serialization/resources/{embeddings → connectors}/index.js +0 -0
- /package/dist/serialization/resources/{embeddings → databases}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/{embeddings → databases}/client/index.js +0 -0
- /package/dist/serialization/resources/{tenants → databases}/index.d.ts +0 -0
- /package/dist/serialization/resources/{tenants → databases}/index.js +0 -0
|
@@ -44,10 +44,12 @@ const errors = __importStar(require("../../../../errors/index.js"));
|
|
|
44
44
|
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
45
45
|
const HydraDB = __importStar(require("../../../index.js"));
|
|
46
46
|
class WebhooksClient {
|
|
47
|
-
constructor(options) {
|
|
47
|
+
constructor(options = {}) {
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
+
* Get the registered indexing webhook configuration for this API key.
|
|
52
|
+
*
|
|
51
53
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
54
|
*
|
|
53
55
|
* @example
|
|
@@ -162,6 +164,8 @@ class WebhooksClient {
|
|
|
162
164
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing");
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
167
|
+
* Unregister the indexing webhook for this API key.
|
|
168
|
+
*
|
|
165
169
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
170
|
*
|
|
167
171
|
* @throws {@link HydraDB.NotFoundError}
|
|
@@ -203,13 +207,7 @@ class WebhooksClient {
|
|
|
203
207
|
if (_response.error.reason === "status-code") {
|
|
204
208
|
switch (_response.error.statusCode) {
|
|
205
209
|
case 404:
|
|
206
|
-
throw new HydraDB.NotFoundError(
|
|
207
|
-
unrecognizedObjectKeys: "passthrough",
|
|
208
|
-
allowUnrecognizedUnionMembers: true,
|
|
209
|
-
allowUnrecognizedEnumValues: true,
|
|
210
|
-
skipValidation: true,
|
|
211
|
-
breadcrumbsPrefix: ["response"],
|
|
212
|
-
}), _response.rawResponse);
|
|
210
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
213
211
|
default:
|
|
214
212
|
throw new errors.HydraDBError({
|
|
215
213
|
statusCode: _response.error.statusCode,
|
|
@@ -221,6 +219,8 @@ class WebhooksClient {
|
|
|
221
219
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/webhooks/indexing");
|
|
222
220
|
}
|
|
223
221
|
/**
|
|
222
|
+
* List recent webhook delivery attempts with optional cursor-based pagination.
|
|
223
|
+
*
|
|
224
224
|
* @param {HydraDB.ListDeliveriesWebhooksRequest} request
|
|
225
225
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
226
|
*
|
|
@@ -278,6 +278,8 @@ class WebhooksClient {
|
|
|
278
278
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing/deliveries");
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
+
* Get a single webhook delivery attempt by ID.
|
|
282
|
+
*
|
|
281
283
|
* @param {HydraDB.GetDeliveryWebhooksRequest} request
|
|
282
284
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
285
|
*
|
|
@@ -285,7 +287,7 @@ class WebhooksClient {
|
|
|
285
287
|
*
|
|
286
288
|
* @example
|
|
287
289
|
* await client.webhooks.getDelivery({
|
|
288
|
-
* deliveryId: "
|
|
290
|
+
* deliveryId: "dlv_9f8e7d6c"
|
|
289
291
|
* })
|
|
290
292
|
*/
|
|
291
293
|
getDelivery(request, requestOptions) {
|
|
@@ -323,13 +325,7 @@ class WebhooksClient {
|
|
|
323
325
|
if (_response.error.reason === "status-code") {
|
|
324
326
|
switch (_response.error.statusCode) {
|
|
325
327
|
case 404:
|
|
326
|
-
throw new HydraDB.NotFoundError(
|
|
327
|
-
unrecognizedObjectKeys: "passthrough",
|
|
328
|
-
allowUnrecognizedUnionMembers: true,
|
|
329
|
-
allowUnrecognizedEnumValues: true,
|
|
330
|
-
skipValidation: true,
|
|
331
|
-
breadcrumbsPrefix: ["response"],
|
|
332
|
-
}), _response.rawResponse);
|
|
328
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
333
329
|
default:
|
|
334
330
|
throw new errors.HydraDBError({
|
|
335
331
|
statusCode: _response.error.statusCode,
|
|
@@ -341,6 +337,8 @@ class WebhooksClient {
|
|
|
341
337
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/webhooks/indexing/deliveries/{delivery_id}");
|
|
342
338
|
}
|
|
343
339
|
/**
|
|
340
|
+
* Queue a failed or permanently-failed delivery for retry.
|
|
341
|
+
*
|
|
344
342
|
* @param {HydraDB.RetryDeliveryWebhooksRequest} request
|
|
345
343
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
346
344
|
*
|
|
@@ -348,7 +346,7 @@ class WebhooksClient {
|
|
|
348
346
|
*
|
|
349
347
|
* @example
|
|
350
348
|
* await client.webhooks.retryDelivery({
|
|
351
|
-
* deliveryId: "
|
|
349
|
+
* deliveryId: "dlv_9f8e7d6c"
|
|
352
350
|
* })
|
|
353
351
|
*/
|
|
354
352
|
retryDelivery(request, requestOptions) {
|
|
@@ -386,13 +384,7 @@ class WebhooksClient {
|
|
|
386
384
|
if (_response.error.reason === "status-code") {
|
|
387
385
|
switch (_response.error.statusCode) {
|
|
388
386
|
case 404:
|
|
389
|
-
throw new HydraDB.NotFoundError(
|
|
390
|
-
unrecognizedObjectKeys: "passthrough",
|
|
391
|
-
allowUnrecognizedUnionMembers: true,
|
|
392
|
-
allowUnrecognizedEnumValues: true,
|
|
393
|
-
skipValidation: true,
|
|
394
|
-
breadcrumbsPrefix: ["response"],
|
|
395
|
-
}), _response.rawResponse);
|
|
387
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
396
388
|
default:
|
|
397
389
|
throw new errors.HydraDBError({
|
|
398
390
|
statusCode: _response.error.statusCode,
|
|
@@ -404,6 +396,8 @@ class WebhooksClient {
|
|
|
404
396
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/webhooks/indexing/deliveries/{delivery_id}/retry");
|
|
405
397
|
}
|
|
406
398
|
/**
|
|
399
|
+
* Send a test webhook event to the registered endpoint to verify connectivity.
|
|
400
|
+
*
|
|
407
401
|
* @param {WebhooksClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
408
402
|
*
|
|
409
403
|
* @throws {@link HydraDB.NotFoundError}
|
|
@@ -445,13 +439,7 @@ class WebhooksClient {
|
|
|
445
439
|
if (_response.error.reason === "status-code") {
|
|
446
440
|
switch (_response.error.statusCode) {
|
|
447
441
|
case 404:
|
|
448
|
-
throw new HydraDB.NotFoundError(
|
|
449
|
-
unrecognizedObjectKeys: "passthrough",
|
|
450
|
-
allowUnrecognizedUnionMembers: true,
|
|
451
|
-
allowUnrecognizedEnumValues: true,
|
|
452
|
-
skipValidation: true,
|
|
453
|
-
breadcrumbsPrefix: ["response"],
|
|
454
|
-
}), _response.rawResponse);
|
|
442
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
455
443
|
default:
|
|
456
444
|
throw new errors.HydraDBError({
|
|
457
445
|
statusCode: _response.error.statusCode,
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* {}
|
|
4
4
|
*/
|
|
5
5
|
export interface WebhooksWebhookRegisterRequest {
|
|
6
|
+
/** Event types to subscribe to (e.g. `["indexing.status_changed"]`). */
|
|
6
7
|
eventTypes?: string[];
|
|
8
|
+
/** Optional secret used to sign webhook payloads for verification. Minimum 32 characters. */
|
|
7
9
|
signingSecret?: string;
|
|
10
|
+
/** Endpoint URL to deliver webhook events to. */
|
|
8
11
|
url?: string;
|
|
9
12
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface ConnectorsConnector {
|
|
2
|
+
/** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
|
|
3
|
+
authType?: string;
|
|
4
|
+
/** Default collection partition for synced objects. Canonical name; mirrors the deprecated `sub_tenant_id` alias. */
|
|
5
|
+
collection?: string;
|
|
6
|
+
/** Connector this resource belongs to. */
|
|
7
|
+
connectorId?: string;
|
|
8
|
+
/** Internal reference to the stored credential record. */
|
|
9
|
+
credentialRef?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Database/Collection are the canonical v2 names for the deprecated
|
|
12
|
+
* tenant_id/sub_tenant_id wire fields. They mirror the same values so a v2
|
|
13
|
+
* client sees the canonical names on responses while a legacy client keeps
|
|
14
|
+
* reading tenant_id/sub_tenant_id. Not persisted (dynamodbav:"-"): the store
|
|
15
|
+
* builds items from tenant_id/sub_tenant_id and mirrors these on load. They
|
|
16
|
+
* are populated at every construction point (toConnector, connectorFromItem)
|
|
17
|
+
* rather than via MarshalJSON so Temporal's JSON data converter round-trips
|
|
18
|
+
* Connector activity inputs without spuriously populating them.
|
|
19
|
+
*/
|
|
20
|
+
database?: string;
|
|
21
|
+
/** Internal deployment context for this connector. */
|
|
22
|
+
deploymentId?: string;
|
|
23
|
+
/** RFC3339 timestamp of the most recent sync attempt (successful or not). */
|
|
24
|
+
lastAttemptedSyncAt?: string;
|
|
25
|
+
/** Error message from the most recent failed sync, empty string when no error. */
|
|
26
|
+
lastError?: string;
|
|
27
|
+
/** RFC3339 timestamp of the last successful sync completion. */
|
|
28
|
+
lastSuccessfulSyncAt?: string;
|
|
29
|
+
/** Human-readable label for this connector. */
|
|
30
|
+
name?: string;
|
|
31
|
+
/** RFC3339 timestamp when the next scheduled sync will run. */
|
|
32
|
+
nextSyncAt?: string;
|
|
33
|
+
/** Organization that owns this resource. */
|
|
34
|
+
orgId?: string;
|
|
35
|
+
/** Subscription plan this connector runs under. */
|
|
36
|
+
plan?: string;
|
|
37
|
+
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
38
|
+
provider?: string;
|
|
39
|
+
/** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
|
|
40
|
+
providerAccountScope?: string;
|
|
41
|
+
/** Lifecycle status of the connector (e.g. `active`, `paused`, `error`). */
|
|
42
|
+
status?: string;
|
|
43
|
+
/** Default collection partition for synced objects. Deprecated — use `collection`. */
|
|
44
|
+
subTenantId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* SyncEngine is "classic" (default, empty treated as classic) or "moveit".
|
|
47
|
+
* See the SyncEngine* constants; the scheduler branches on it.
|
|
48
|
+
*/
|
|
49
|
+
syncEngine?: string;
|
|
50
|
+
/** How frequently the scheduler triggers incremental syncs, in seconds. */
|
|
51
|
+
syncIntervalSeconds?: number;
|
|
52
|
+
/** Current sync operation state (e.g. `idle`, `running`). */
|
|
53
|
+
syncStatus?: string;
|
|
54
|
+
/** Database that receives synced data. Deprecated — use `database`. */
|
|
55
|
+
tenantId?: string;
|
|
56
|
+
/** User that created or owns this resource. */
|
|
57
|
+
userId?: string;
|
|
58
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export interface ConnectorsResource {
|
|
2
|
+
/**
|
|
3
|
+
* AdditionalMetadata is merged into the additional_metadata (document
|
|
4
|
+
* metadata) layer of every object synced from this resource. User-supplied
|
|
5
|
+
* keys are shallow-merged as the base; provider-generated fields are
|
|
6
|
+
* applied on top and always win on conflict.
|
|
7
|
+
*/
|
|
8
|
+
additionalMetadata?: Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* BackfillChunkIntervalSeconds is the pacing interval persisted at configure
|
|
11
|
+
* time so the scheduler can thread it into each chunk's workflow input.
|
|
12
|
+
*/
|
|
13
|
+
backfillChunkIntervalSeconds?: number;
|
|
14
|
+
/**
|
|
15
|
+
* BackfillNextChunkAt is the RFC3339 time the next chunk becomes due. The
|
|
16
|
+
* backfill workflow processes one chunk then sets this to now+interval and
|
|
17
|
+
* exits; the connector scheduler starts the next chunk once it passes.
|
|
18
|
+
*/
|
|
19
|
+
backfillNextChunkAt?: string;
|
|
20
|
+
/**
|
|
21
|
+
* BackfillOldest is an RFC3339 timestamp marking the oldest boundary remaining
|
|
22
|
+
* for async historical backfill. Empty means backfill is complete or not needed.
|
|
23
|
+
*/
|
|
24
|
+
backfillOldest?: string;
|
|
25
|
+
/**
|
|
26
|
+
* BackfillStatus gates the sparse ResourcesByBackfillNextChunkAt GSI: it is
|
|
27
|
+
* set to BackfillStatusActive while a historical backfill is in progress and
|
|
28
|
+
* removed when it completes, so only actively-backfilling resources appear in
|
|
29
|
+
* the scheduler's due query. Pacing between chunks is driven by that scheduler
|
|
30
|
+
* (see BackfillNextChunkAt), not by an in-workflow sleep.
|
|
31
|
+
*/
|
|
32
|
+
backfillStatus?: string;
|
|
33
|
+
/** Routes this resource's synced objects into a specific collection, overriding the connector's. Canonical name; mirrors the deprecated `sub_tenant_id_override` alias. */
|
|
34
|
+
collectionOverride?: string;
|
|
35
|
+
/** Connector this resource belongs to. */
|
|
36
|
+
connectorId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* DatabaseOverride/CollectionOverride are the canonical v2 names for the
|
|
39
|
+
* deprecated tenant_id_override/sub_tenant_id_override wire fields. Empty
|
|
40
|
+
* means the resource inherits the connector's database/collection, exactly
|
|
41
|
+
* as the deprecated fields do. Not persisted (dynamodbav:"-"): mirrored from
|
|
42
|
+
* the tenant_id_override/sub_tenant_id_override values at construction time.
|
|
43
|
+
*/
|
|
44
|
+
databaseOverride?: string;
|
|
45
|
+
/** Human-readable name for this resource. */
|
|
46
|
+
displayName?: string;
|
|
47
|
+
/** Provider-specific filters applied during sync (e.g. `{"lookback_days": 30}`). */
|
|
48
|
+
filters?: Record<string, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Metadata is merged into the tenant metadata layer of every object synced
|
|
51
|
+
* from this resource. User-supplied keys are shallow-merged as the base;
|
|
52
|
+
* system defaults (connector_id, provider) are applied on top so they
|
|
53
|
+
* always win on conflict — user keys extend the map but cannot override
|
|
54
|
+
* system-set fields.
|
|
55
|
+
*/
|
|
56
|
+
metadata?: Record<string, unknown>;
|
|
57
|
+
/** Bookmark of the last synced position. Non-empty value confirms the first sync has run. */
|
|
58
|
+
providerCursor?: string;
|
|
59
|
+
/** Additional provider-supplied metadata for this resource. */
|
|
60
|
+
providerMetadata?: Record<string, unknown>;
|
|
61
|
+
/** Resource identifier from the Discover endpoint. */
|
|
62
|
+
resourceId?: string;
|
|
63
|
+
/** Type of resource within the provider (e.g. `channel`, `repo`, `linear_team`). */
|
|
64
|
+
resourceType?: string;
|
|
65
|
+
/** Current sync state of this resource (e.g. `active`, `paused`). */
|
|
66
|
+
status?: string;
|
|
67
|
+
/** Overrides the connector-level collection for objects synced from this resource. */
|
|
68
|
+
subTenantIdOverride?: string;
|
|
69
|
+
/** Overrides the connector-level database for objects synced from this resource. Deprecated. */
|
|
70
|
+
tenantIdOverride?: string;
|
|
71
|
+
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export interface DashboardPaginationMeta {
|
|
2
|
+
/** Whether a next page exists. */
|
|
2
3
|
hasNext?: boolean;
|
|
4
|
+
/** Whether a previous page exists. */
|
|
3
5
|
hasPrevious?: boolean;
|
|
6
|
+
/** Current page number (1-indexed). */
|
|
4
7
|
page?: number;
|
|
8
|
+
/** Number of items per page. */
|
|
5
9
|
pageSize?: number;
|
|
10
|
+
/** Total number of items across all pages. */
|
|
6
11
|
total?: number;
|
|
12
|
+
/** Total number of pages. */
|
|
7
13
|
totalPages?: number;
|
|
8
14
|
}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
export interface FetchV2SourceFetchResponse {
|
|
2
|
+
/** Extracted text content of the source document. */
|
|
2
3
|
content?: string;
|
|
4
|
+
/** Base64-encoded binary content, for binary file types. */
|
|
3
5
|
contentBase64?: string;
|
|
6
|
+
/** MIME type of the source (e.g. `application/pdf`, `text/plain`). */
|
|
4
7
|
contentType?: string;
|
|
8
|
+
/** Error message, empty string on success. */
|
|
5
9
|
error?: string;
|
|
10
|
+
/** Unique identifier for this resource. */
|
|
6
11
|
id?: string;
|
|
12
|
+
/** LLM-generated summary of the source content. */
|
|
7
13
|
inferredContent?: string;
|
|
14
|
+
/** Human-readable result message. */
|
|
8
15
|
message?: string;
|
|
16
|
+
/** Time-limited download URL for the original file. */
|
|
9
17
|
presignedUrl?: string;
|
|
18
|
+
/** File size in bytes. */
|
|
10
19
|
sizeBytes?: number;
|
|
20
|
+
/** Whether the request succeeded. */
|
|
11
21
|
success?: boolean;
|
|
12
22
|
}
|
package/dist/api/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult {
|
|
2
|
+
/** Additional metadata keys included in the update request. */
|
|
3
|
+
additionalMetadataKeys?: string[];
|
|
4
|
+
/** Number of MongoDB chunk rows matched by the source update. */
|
|
5
|
+
chunkRowsMatched?: number;
|
|
6
|
+
/** Number of MongoDB chunk rows modified by the source update. */
|
|
7
|
+
chunkRowsModified?: number;
|
|
8
|
+
/** Database metadata keys included in the update request. Canonical name; `tenant_metadata_keys` is a deprecated alias. */
|
|
9
|
+
databaseMetadataKeys?: string[];
|
|
10
|
+
/** Unique identifier for this resource. */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** Number of chunk rows synced to Milvus when sync was required. */
|
|
13
|
+
milvusRowsSynced?: number;
|
|
14
|
+
/** Whether at least one changed database metadata field has dense or sparse embedding enabled. */
|
|
15
|
+
milvusSyncRequired?: boolean;
|
|
16
|
+
/** Whether the Milvus metadata sync completed. Present when sync was required. */
|
|
17
|
+
milvusSynced?: boolean;
|
|
18
|
+
/** Collection that contained the source. */
|
|
19
|
+
subTenantId?: string;
|
|
20
|
+
/** Owning database. */
|
|
21
|
+
tenantId?: string;
|
|
22
|
+
/** deprecated: use database_metadata_keys */
|
|
23
|
+
tenantMetadataKeys?: string[];
|
|
24
|
+
/** Whether the source metadata was updated. */
|
|
25
|
+
updated?: boolean;
|
|
26
|
+
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
export interface GraphEntity {
|
|
2
|
+
/** Unique identifier for this entity in the graph. */
|
|
2
3
|
entityId?: string;
|
|
3
4
|
/** NO omitempty — serialize as null */
|
|
4
5
|
identifier?: string;
|
|
6
|
+
/** Human-readable label for this resource. */
|
|
5
7
|
name?: string;
|
|
8
|
+
/** Namespace grouping for the entity (e.g. `organization`, `person`). */
|
|
6
9
|
namespace?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Provider is the source app the entity's evidence chunk came from (e.g.
|
|
12
|
+
* "slack", "google", "intercom"), read from the owning Source node's
|
|
13
|
+
* app_provider. Empty string when the evidence has no app source (plain
|
|
14
|
+
* document / web ingest). Consumed by the dashboard to render a connector
|
|
15
|
+
* logo inside the graph node.
|
|
16
|
+
*/
|
|
17
|
+
provider?: string;
|
|
18
|
+
/** Entity type label (e.g. `knowledge`, `person`, `organization`). */
|
|
7
19
|
type?: string;
|
|
8
20
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface GraphGraphRelationsResponse {
|
|
3
|
+
/** Whether the response was truncated due to the result limit. */
|
|
3
4
|
isTruncated?: boolean;
|
|
5
|
+
/** Human-readable result message. */
|
|
4
6
|
message?: string;
|
|
5
7
|
/** NO omitempty */
|
|
6
8
|
nextCursor?: number;
|
|
9
|
+
/** Array of triplet groups with evidence for each relationship. */
|
|
7
10
|
relations?: HydraDB.GraphTripletWithEvidence[];
|
|
11
|
+
/** Whether the request succeeded. */
|
|
8
12
|
success?: boolean;
|
|
9
13
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export interface GraphRelationEvidence {
|
|
2
|
+
/** Normalized predicate for the relationship (e.g. `works_at`, `depends_on`). */
|
|
2
3
|
canonicalPredicate?: string;
|
|
3
4
|
/** NO omitempty */
|
|
4
5
|
chunkId?: string;
|
|
6
|
+
/** Confidence score, from 0 to 1. */
|
|
5
7
|
confidence?: number;
|
|
8
|
+
/** Verbatim passage from the source that evidences the relationship. */
|
|
6
9
|
context?: string;
|
|
10
|
+
/** As-extracted predicate before normalization. */
|
|
7
11
|
rawPredicate?: string;
|
|
12
|
+
/** Unique identifier for this relationship instance. */
|
|
8
13
|
relationshipId?: string;
|
|
9
14
|
/** NO omitempty */
|
|
10
15
|
sourceEntityId?: string;
|
|
@@ -12,5 +17,6 @@ export interface GraphRelationEvidence {
|
|
|
12
17
|
targetEntityId?: string;
|
|
13
18
|
/** NO omitempty */
|
|
14
19
|
temporalDetails?: string;
|
|
20
|
+
/** RFC3339 timestamp associated with this item. */
|
|
15
21
|
timestamp?: string;
|
|
16
22
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface GraphTripletWithEvidence {
|
|
3
|
+
/** Chunk that provides evidence for this relation. */
|
|
3
4
|
chunkId?: string;
|
|
5
|
+
/** Evidence entries for this relationship triplet. */
|
|
4
6
|
relations?: HydraDB.GraphRelationEvidence[];
|
|
5
7
|
source?: HydraDB.GraphEntity;
|
|
6
8
|
target?: HydraDB.GraphEntity;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface HandlerDeprecationNotice {
|
|
2
|
+
/** Whether this response concerns a deprecated field or route. */
|
|
3
|
+
deprecated?: boolean;
|
|
4
|
+
/** The deprecated field name. */
|
|
5
|
+
deprecatedField?: string;
|
|
6
|
+
/** API version when the field was deprecated. */
|
|
7
|
+
deprecatedSince?: string;
|
|
8
|
+
/** Migration guidance message. */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** The canonical replacement for the deprecated field. */
|
|
11
|
+
preferredField?: string;
|
|
12
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeFetchV2SourceFetchResponse {
|
|
3
3
|
data?: HydraDB.FetchV2SourceFetchResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerEnvelopeGithubComHydradbHydradbApplicationInternalServiceMetadataEditResult {
|
|
3
|
+
data?: HydraDB.GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
5
|
+
error?: HydraDB.HandlerApiError;
|
|
6
|
+
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
8
|
+
success?: boolean;
|
|
9
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeGraphGraphRelationsResponse {
|
|
3
3
|
data?: HydraDB.GraphGraphRelationsResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeIngestionV2BatchProcessingStatus {
|
|
3
3
|
data?: HydraDB.IngestionV2BatchProcessingStatus;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeIngestionV2SourceUploadResponse {
|
|
3
3
|
data?: HydraDB.IngestionV2SourceUploadResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeListV2SourceListResponse {
|
|
3
3
|
data?: HydraDB.ListV2SourceListResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeSearchV2RetrievalResult {
|
|
3
3
|
data?: HydraDB.SearchV2RetrievalResult;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as HydraDB from "../index.js";
|
|
2
|
+
export interface HandlerEnvelopeSourcesMemoryDeleteResponse {
|
|
3
|
+
data?: HydraDB.SourcesMemoryDeleteResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
5
|
+
error?: HydraDB.HandlerApiError;
|
|
6
|
+
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
8
|
+
success?: boolean;
|
|
9
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsInfraStatusResponseV2 {
|
|
3
3
|
data?: HydraDB.TenantsInfraStatusResponseV2;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsSubTenantIdsResponse {
|
|
3
3
|
data?: HydraDB.TenantsSubTenantIdsResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsTenantCreateAcceptedResponse {
|
|
3
3
|
data?: HydraDB.TenantsTenantCreateAcceptedResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsTenantDeleteResponse {
|
|
3
3
|
data?: HydraDB.TenantsTenantDeleteResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsTenantIdsResponse {
|
|
3
3
|
data?: HydraDB.TenantsTenantIdsResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type * as HydraDB from "../index.js";
|
|
2
2
|
export interface HandlerEnvelopeTenantsTenantStatsResponse {
|
|
3
3
|
data?: HydraDB.TenantsTenantStatsResponse;
|
|
4
|
+
/** Error message, empty string on success. */
|
|
4
5
|
error?: HydraDB.HandlerApiError;
|
|
5
6
|
meta?: HydraDB.HandlerResponseMeta;
|
|
7
|
+
/** Whether the request succeeded. */
|
|
6
8
|
success?: boolean;
|
|
7
9
|
}
|