@hydradb/sdk 2.1.1 → 2.1.3
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 +6 -3
- package/dist/Client.js +10 -12
- package/dist/api/client/requests/SearchQueryRequest.d.ts +20 -0
- package/dist/api/errors/ConflictError.d.ts +1 -2
- package/dist/api/errors/InternalServerError.d.ts +1 -2
- package/dist/api/errors/UnsupportedMediaTypeError.d.ts +6 -0
- package/dist/api/errors/UnsupportedMediaTypeError.js +54 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/connectors/client/Client.d.ts +50 -19
- package/dist/api/resources/connectors/client/Client.js +187 -108
- package/dist/api/resources/connectors/client/requests/DiscoverConnectorsRequest.d.ts +4 -0
- package/dist/api/resources/connectors/client/requests/HandlerConfigureReq.d.ts +9 -3
- package/dist/api/resources/connectors/client/requests/HandlerConnectorCreateReq.d.ts +1 -7
- package/dist/api/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +14 -0
- package/dist/api/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +4 -0
- package/dist/api/resources/connectors/client/requests/HandlerResourceCreateReq.d.ts +2 -2
- package/dist/api/resources/connectors/client/requests/StatusConnectorsRequest.d.ts +10 -0
- package/dist/api/resources/connectors/client/requests/index.d.ts +2 -0
- package/dist/api/resources/context/client/Client.d.ts +20 -2
- package/dist/api/resources/context/client/Client.js +41 -11
- package/dist/api/resources/context/client/requests/HandlerContextMetadataUpdateRequest.d.ts +4 -4
- package/dist/api/resources/context/client/requests/IngestContextRequest.d.ts +3 -0
- package/dist/api/resources/context/client/requests/ListV2ListContentRequest.d.ts +8 -0
- package/dist/api/resources/context/client/requests/SourcesV2SourceDeleteRequest.d.ts +2 -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/index.d.ts +1 -0
- package/dist/api/resources/context/types/index.js +1 -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 +27 -1
- package/dist/api/resources/webhooks/client/Client.js +127 -1
- 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 +1 -0
- package/dist/api/types/FeedbackGroundTruth.d.ts +12 -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/FeedbackSubmitRequestFeedback.d.ts +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 +23 -5
- package/dist/api/types/GraphGraphRelationsResponse.d.ts +7 -1
- package/dist/api/types/HandlerCatalogConnector.d.ts +11 -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 +124 -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 +128 -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 +21 -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 +17 -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 → HandlerEnvelopeIngestionV2IngestResponse.d.ts} +2 -2
- 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/HandlerErrorMeta.d.ts +6 -0
- package/dist/api/types/HandlerErrorMeta.js +3 -0
- package/dist/api/types/HandlerErrorResponse.d.ts +6 -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 +11 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.d.ts +14 -0
- package/dist/api/types/HandlerResourceMappingSyncMode.js +17 -0
- package/dist/api/types/HandlerResponseMeta.d.ts +7 -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/SearchGraphContext.d.ts +0 -2
- package/dist/api/types/SearchMetadataFilters.d.ts +1 -1
- 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 +7 -0
- package/dist/api/types/SourcesMemoryDeleteResponse.d.ts +9 -1
- package/dist/api/types/TenantsCollectionStats.d.ts +0 -2
- package/dist/api/types/TenantsCustomPropertyDefinition.d.ts +0 -2
- package/dist/api/types/TenantsInfraV2.d.ts +3 -1
- 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 +49 -7
- package/dist/api/types/index.js +49 -7
- package/dist/helpers/buildString.js +140 -22
- 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 +4 -0
- package/dist/serialization/client/requests/SearchQueryRequest.js +4 -0
- package/dist/serialization/resources/connectors/client/index.d.ts +1 -9
- package/dist/serialization/resources/connectors/client/index.js +5 -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 +0 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorCreateReq.js +0 -3
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.d.ts +10 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerConnectorUpdateReq.js +42 -0
- package/dist/serialization/resources/connectors/client/requests/HandlerDiscoverPreviewReq.d.ts +1 -1
- 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/context/client/requests/ListV2ListContentRequest.d.ts +1 -0
- package/dist/serialization/resources/context/client/requests/ListV2ListContentRequest.js +1 -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/discover.js → context/types/DeleteContextRequestXHydraDbDeleteStatus.js} +2 -2
- package/dist/serialization/resources/context/types/index.d.ts +1 -0
- package/dist/serialization/resources/context/types/index.js +1 -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/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/{resources/connectors/client/delete.js → types/FeedbackSubmitRequestFeedback.js} +5 -3
- 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 +5 -0
- package/dist/serialization/types/GithubComHydradbHydradbApplicationInternalServiceMetadataEditResult.js +5 -0
- package/dist/serialization/types/HandlerCatalogConnector.d.ts +15 -0
- package/dist/serialization/types/HandlerCatalogConnector.js +47 -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} +14 -7
- package/dist/serialization/types/{ConnectorsConnector.js → HandlerConnectorApiView.js} +14 -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 +39 -0
- package/dist/serialization/types/HandlerConnectorCreateResponse.js +71 -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 +16 -0
- package/dist/serialization/types/HandlerConnectorResourceStatus.js +48 -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 +14 -0
- package/dist/serialization/types/HandlerConnectorUpdateResponse.js +46 -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/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/HandlerErrorMeta.d.ts +11 -0
- package/dist/serialization/types/HandlerErrorMeta.js +43 -0
- package/dist/serialization/types/HandlerErrorResponse.d.ts +6 -0
- package/dist/serialization/types/HandlerErrorResponse.js +6 -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 +2 -0
- package/dist/serialization/types/HandlerResourceMapping.js +2 -0
- package/dist/serialization/types/HandlerResourceMappingSyncMode.d.ts +7 -0
- package/dist/serialization/{resources/connectors/client/configure.js → types/HandlerResourceMappingSyncMode.js} +3 -3
- package/dist/serialization/types/HandlerResponseMeta.d.ts +1 -0
- package/dist/serialization/types/HandlerResponseMeta.js +1 -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/SearchGraphContext.d.ts +0 -1
- package/dist/serialization/types/SearchGraphContext.js +0 -1
- 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 +6 -0
- package/dist/serialization/types/SearchV2RetrievalResult.js +6 -0
- package/dist/serialization/types/TenantsCollectionStats.d.ts +0 -1
- package/dist/serialization/types/TenantsCollectionStats.js +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.d.ts +0 -1
- package/dist/serialization/types/TenantsCustomPropertyDefinition.js +0 -1
- package/dist/serialization/types/TenantsInfraV2.d.ts +1 -0
- package/dist/serialization/types/TenantsInfraV2.js +1 -0
- 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 +49 -7
- package/dist/serialization/types/index.js +49 -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/rotateAConnectorsStoredOAuthRefreshToken.d.ts +0 -10
- package/dist/serialization/resources/connectors/client/rotateAConnectorsStoredOAuthRefreshToken.js +0 -40
- 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/databases/client/requests/GetMetadataSchemaDatabasesRequest.js} +0 -0
- /package/dist/api/{types/IngestionV2SourceUploadResponse.js → resources/webhooks/client/requests/WebhooksSigningSecretRequest.js} +0 -0
- /package/dist/api/types/{IngestionV2SourceUploadResultItem.js → FeedbackGroundTruth.js} +0 -0
- /package/dist/api/types/{ListSourceListResponse.js → FeedbackSubmitRequest.js} +0 -0
- /package/dist/api/types/{ListV2SourceListResponse.js → FeedbackSubmitRequestFeedback.js} +0 -0
|
@@ -48,7 +48,7 @@ class ConnectorsClient {
|
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* List a provider's resources directly from supplied credentials, before creating a connector.
|
|
51
|
+
* List a provider's resources directly from supplied credentials, before creating a connector. Passing cursor or limit opts into pagination (currently Notion only): the response then adds next_cursor and has_more, a page may hold fewer than limit resources, and clients must continue while has_more is true. Without either param the full resource list is returned.
|
|
52
52
|
*
|
|
53
53
|
* @param {HydraDB.HandlerDiscoverPreviewReq} request
|
|
54
54
|
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,6 +68,11 @@ class ConnectorsClient {
|
|
|
68
68
|
return core.HttpResponsePromise.fromPromise(this.__discoverPreview(request, requestOptions));
|
|
69
69
|
}
|
|
70
70
|
async __discoverPreview(request, requestOptions) {
|
|
71
|
+
const { cursor, limit, ..._body } = request;
|
|
72
|
+
const _queryParams = {
|
|
73
|
+
cursor,
|
|
74
|
+
limit,
|
|
75
|
+
};
|
|
71
76
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
72
77
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
73
78
|
const _response = await core.fetcher({
|
|
@@ -77,9 +82,13 @@ class ConnectorsClient {
|
|
|
77
82
|
method: "POST",
|
|
78
83
|
headers: _headers,
|
|
79
84
|
contentType: "application/json",
|
|
80
|
-
queryString: core.url
|
|
85
|
+
queryString: core.url
|
|
86
|
+
.queryBuilder()
|
|
87
|
+
.addMany(_queryParams)
|
|
88
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
89
|
+
.build(),
|
|
81
90
|
requestType: "json",
|
|
82
|
-
body: serializers.HandlerDiscoverPreviewReq.jsonOrThrow(
|
|
91
|
+
body: serializers.HandlerDiscoverPreviewReq.jsonOrThrow(_body, {
|
|
83
92
|
unrecognizedObjectKeys: "strip",
|
|
84
93
|
omitUndefined: true,
|
|
85
94
|
}),
|
|
@@ -91,7 +100,7 @@ class ConnectorsClient {
|
|
|
91
100
|
});
|
|
92
101
|
if (_response.ok) {
|
|
93
102
|
return {
|
|
94
|
-
data: serializers.
|
|
103
|
+
data: serializers.HandlerDiscoverResponseBody.parseOrThrow(_response.body, {
|
|
95
104
|
unrecognizedObjectKeys: "passthrough",
|
|
96
105
|
allowUnrecognizedUnionMembers: true,
|
|
97
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,7 +180,7 @@ class ConnectorsClient {
|
|
|
171
180
|
});
|
|
172
181
|
if (_response.ok) {
|
|
173
182
|
return {
|
|
174
|
-
data: serializers.
|
|
183
|
+
data: serializers.HandlerConnectorListResponse.parseOrThrow(_response.body, {
|
|
175
184
|
unrecognizedObjectKeys: "passthrough",
|
|
176
185
|
allowUnrecognizedUnionMembers: true,
|
|
177
186
|
allowUnrecognizedEnumValues: true,
|
|
@@ -184,13 +193,7 @@ class ConnectorsClient {
|
|
|
184
193
|
if (_response.error.reason === "status-code") {
|
|
185
194
|
switch (_response.error.statusCode) {
|
|
186
195
|
case 500:
|
|
187
|
-
throw new HydraDB.InternalServerError(
|
|
188
|
-
unrecognizedObjectKeys: "passthrough",
|
|
189
|
-
allowUnrecognizedUnionMembers: true,
|
|
190
|
-
allowUnrecognizedEnumValues: true,
|
|
191
|
-
skipValidation: true,
|
|
192
|
-
breadcrumbsPrefix: ["response"],
|
|
193
|
-
}), _response.rawResponse);
|
|
196
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
194
197
|
default:
|
|
195
198
|
throw new errors.HydraDBError({
|
|
196
199
|
statusCode: _response.error.statusCode,
|
|
@@ -243,7 +246,7 @@ class ConnectorsClient {
|
|
|
243
246
|
});
|
|
244
247
|
if (_response.ok) {
|
|
245
248
|
return {
|
|
246
|
-
data: serializers.
|
|
249
|
+
data: serializers.HandlerConnectorCreateResponse.parseOrThrow(_response.body, {
|
|
247
250
|
unrecognizedObjectKeys: "passthrough",
|
|
248
251
|
allowUnrecognizedUnionMembers: true,
|
|
249
252
|
allowUnrecognizedEnumValues: true,
|
|
@@ -264,13 +267,7 @@ class ConnectorsClient {
|
|
|
264
267
|
breadcrumbsPrefix: ["response"],
|
|
265
268
|
}), _response.rawResponse);
|
|
266
269
|
case 500:
|
|
267
|
-
throw new HydraDB.InternalServerError(
|
|
268
|
-
unrecognizedObjectKeys: "passthrough",
|
|
269
|
-
allowUnrecognizedUnionMembers: true,
|
|
270
|
-
allowUnrecognizedEnumValues: true,
|
|
271
|
-
skipValidation: true,
|
|
272
|
-
breadcrumbsPrefix: ["response"],
|
|
273
|
-
}), _response.rawResponse);
|
|
270
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
274
271
|
case 503:
|
|
275
272
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
276
273
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -325,7 +322,7 @@ class ConnectorsClient {
|
|
|
325
322
|
});
|
|
326
323
|
if (_response.ok) {
|
|
327
324
|
return {
|
|
328
|
-
data: serializers.
|
|
325
|
+
data: serializers.HandlerConnectorApiView.parseOrThrow(_response.body, {
|
|
329
326
|
unrecognizedObjectKeys: "passthrough",
|
|
330
327
|
allowUnrecognizedUnionMembers: true,
|
|
331
328
|
allowUnrecognizedEnumValues: true,
|
|
@@ -340,13 +337,7 @@ class ConnectorsClient {
|
|
|
340
337
|
case 404:
|
|
341
338
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
342
339
|
case 500:
|
|
343
|
-
throw new HydraDB.InternalServerError(
|
|
344
|
-
unrecognizedObjectKeys: "passthrough",
|
|
345
|
-
allowUnrecognizedUnionMembers: true,
|
|
346
|
-
allowUnrecognizedEnumValues: true,
|
|
347
|
-
skipValidation: true,
|
|
348
|
-
breadcrumbsPrefix: ["response"],
|
|
349
|
-
}), _response.rawResponse);
|
|
340
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
350
341
|
default:
|
|
351
342
|
throw new errors.HydraDBError({
|
|
352
343
|
statusCode: _response.error.statusCode,
|
|
@@ -393,7 +384,7 @@ class ConnectorsClient {
|
|
|
393
384
|
});
|
|
394
385
|
if (_response.ok) {
|
|
395
386
|
return {
|
|
396
|
-
data: serializers.
|
|
387
|
+
data: serializers.HandlerConnectorDeleteResponse.parseOrThrow(_response.body, {
|
|
397
388
|
unrecognizedObjectKeys: "passthrough",
|
|
398
389
|
allowUnrecognizedUnionMembers: true,
|
|
399
390
|
allowUnrecognizedEnumValues: true,
|
|
@@ -408,13 +399,84 @@ class ConnectorsClient {
|
|
|
408
399
|
case 404:
|
|
409
400
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
410
401
|
case 500:
|
|
411
|
-
throw new HydraDB.InternalServerError(
|
|
402
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
403
|
+
default:
|
|
404
|
+
throw new errors.HydraDBError({
|
|
405
|
+
statusCode: _response.error.statusCode,
|
|
406
|
+
body: _response.error.body,
|
|
407
|
+
rawResponse: _response.rawResponse,
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/connectors/{id}");
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Update a connector's mutable settings. `sync_interval_seconds` sets the cadence at which the scheduler starts incremental syncs: the allowed range is provider-aware and returned in the response; values outside it are rejected rather than clamped; 0 resets to the provider default; changing it re-anchors the next sync so a shorter cadence takes effect immediately. `credentials` reconnects the connector in place: send the provider's full credential set (what create accepts); supplied keys replace their stored values, other stored keys survive, the bundle is re-validated against the provider's credential schema, and a pending needs-reauth flag is cleared — the connector keeps its id, resources, and sync cursors.
|
|
415
|
+
*
|
|
416
|
+
* @param {HydraDB.HandlerConnectorUpdateReq} request
|
|
417
|
+
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
418
|
+
*
|
|
419
|
+
* @throws {@link HydraDB.BadRequestError}
|
|
420
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
421
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* await client.connectors.update({
|
|
425
|
+
* id: "HydraDoc1234"
|
|
426
|
+
* })
|
|
427
|
+
*/
|
|
428
|
+
update(request, requestOptions) {
|
|
429
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
430
|
+
}
|
|
431
|
+
async __update(request, requestOptions) {
|
|
432
|
+
const { id, ..._body } = request;
|
|
433
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
434
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
435
|
+
const _response = await core.fetcher({
|
|
436
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
437
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
438
|
+
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}`),
|
|
439
|
+
method: "PATCH",
|
|
440
|
+
headers: _headers,
|
|
441
|
+
contentType: "application/json",
|
|
442
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
443
|
+
requestType: "json",
|
|
444
|
+
body: serializers.HandlerConnectorUpdateReq.jsonOrThrow(_body, {
|
|
445
|
+
unrecognizedObjectKeys: "strip",
|
|
446
|
+
omitUndefined: true,
|
|
447
|
+
}),
|
|
448
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
449
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
450
|
+
abortSignal: requestOptions?.abortSignal,
|
|
451
|
+
fetchFn: this._options?.fetch,
|
|
452
|
+
logging: this._options.logging,
|
|
453
|
+
});
|
|
454
|
+
if (_response.ok) {
|
|
455
|
+
return {
|
|
456
|
+
data: serializers.HandlerConnectorUpdateResponse.parseOrThrow(_response.body, {
|
|
457
|
+
unrecognizedObjectKeys: "passthrough",
|
|
458
|
+
allowUnrecognizedUnionMembers: true,
|
|
459
|
+
allowUnrecognizedEnumValues: true,
|
|
460
|
+
skipValidation: true,
|
|
461
|
+
breadcrumbsPrefix: ["response"],
|
|
462
|
+
}),
|
|
463
|
+
rawResponse: _response.rawResponse,
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
if (_response.error.reason === "status-code") {
|
|
467
|
+
switch (_response.error.statusCode) {
|
|
468
|
+
case 400:
|
|
469
|
+
throw new HydraDB.BadRequestError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
412
470
|
unrecognizedObjectKeys: "passthrough",
|
|
413
471
|
allowUnrecognizedUnionMembers: true,
|
|
414
472
|
allowUnrecognizedEnumValues: true,
|
|
415
473
|
skipValidation: true,
|
|
416
474
|
breadcrumbsPrefix: ["response"],
|
|
417
475
|
}), _response.rawResponse);
|
|
476
|
+
case 404:
|
|
477
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
478
|
+
case 500:
|
|
479
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
418
480
|
default:
|
|
419
481
|
throw new errors.HydraDBError({
|
|
420
482
|
statusCode: _response.error.statusCode,
|
|
@@ -423,7 +485,7 @@ class ConnectorsClient {
|
|
|
423
485
|
});
|
|
424
486
|
}
|
|
425
487
|
}
|
|
426
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
488
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/connectors/{id}");
|
|
427
489
|
}
|
|
428
490
|
/**
|
|
429
491
|
* Save the selected resources for a connector and trigger initial sync/backfill.
|
|
@@ -451,9 +513,7 @@ class ConnectorsClient {
|
|
|
451
513
|
* },
|
|
452
514
|
* name: "general",
|
|
453
515
|
* resourceId: "C0123456789",
|
|
454
|
-
* resourceType: "channel"
|
|
455
|
-
* subTenantId: "sub_tenant_4567",
|
|
456
|
-
* tenantId: "tenant_1234"
|
|
516
|
+
* resourceType: "channel"
|
|
457
517
|
* }]
|
|
458
518
|
* })
|
|
459
519
|
*/
|
|
@@ -485,7 +545,7 @@ class ConnectorsClient {
|
|
|
485
545
|
});
|
|
486
546
|
if (_response.ok) {
|
|
487
547
|
return {
|
|
488
|
-
data: serializers.
|
|
548
|
+
data: serializers.HandlerConfigureResponse.parseOrThrow(_response.body, {
|
|
489
549
|
unrecognizedObjectKeys: "passthrough",
|
|
490
550
|
allowUnrecognizedUnionMembers: true,
|
|
491
551
|
allowUnrecognizedEnumValues: true,
|
|
@@ -508,13 +568,7 @@ class ConnectorsClient {
|
|
|
508
568
|
case 404:
|
|
509
569
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
510
570
|
case 500:
|
|
511
|
-
throw new HydraDB.InternalServerError(
|
|
512
|
-
unrecognizedObjectKeys: "passthrough",
|
|
513
|
-
allowUnrecognizedUnionMembers: true,
|
|
514
|
-
allowUnrecognizedEnumValues: true,
|
|
515
|
-
skipValidation: true,
|
|
516
|
-
breadcrumbsPrefix: ["response"],
|
|
517
|
-
}), _response.rawResponse);
|
|
571
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
518
572
|
default:
|
|
519
573
|
throw new errors.HydraDBError({
|
|
520
574
|
statusCode: _response.error.statusCode,
|
|
@@ -526,7 +580,7 @@ class ConnectorsClient {
|
|
|
526
580
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/connectors/{id}/configure");
|
|
527
581
|
}
|
|
528
582
|
/**
|
|
529
|
-
* Internal
|
|
583
|
+
* Internal endpoint. It is not callable with a customer API key and always returns 403 for external callers. Persists a rotated refresh_token for OAuth-bundle connectors: providers that rotate the refresh token on each exchange invalidate the previously stored one, so the new token must be written back or the next sync fails with invalid_grant. Only refresh_token is merged onto the current stored credential bundle and re-encrypted under the connector's identity context; credentials are never returned. It has no automated caller and is disabled by default: until an operator enables it, every call returns 500.
|
|
530
584
|
*
|
|
531
585
|
* @param {HydraDB.PatchConnectorsIdCredentialsRequest} request
|
|
532
586
|
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -538,17 +592,17 @@ class ConnectorsClient {
|
|
|
538
592
|
* @throws {@link HydraDB.ServiceUnavailableError}
|
|
539
593
|
*
|
|
540
594
|
* @example
|
|
541
|
-
* await client.connectors.
|
|
595
|
+
* await client.connectors.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly({
|
|
542
596
|
* id: "HydraDoc1234",
|
|
543
597
|
* body: {
|
|
544
598
|
* "key": "value"
|
|
545
599
|
* }
|
|
546
600
|
* })
|
|
547
601
|
*/
|
|
548
|
-
|
|
549
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
602
|
+
rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions) {
|
|
603
|
+
return core.HttpResponsePromise.fromPromise(this.__rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions));
|
|
550
604
|
}
|
|
551
|
-
async
|
|
605
|
+
async __rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly(request, requestOptions) {
|
|
552
606
|
const { id, body: _body } = request;
|
|
553
607
|
const _headers = (0, headers_js_1.mergeHeaders)(this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
554
608
|
const _response = await core.fetcher({
|
|
@@ -560,10 +614,7 @@ class ConnectorsClient {
|
|
|
560
614
|
contentType: "application/json",
|
|
561
615
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
562
616
|
requestType: "json",
|
|
563
|
-
body: serializers.connectors.
|
|
564
|
-
unrecognizedObjectKeys: "strip",
|
|
565
|
-
omitUndefined: true,
|
|
566
|
-
}),
|
|
617
|
+
body: serializers.connectors.rotateAConnectorsStoredOAuthRefreshTokenInternalUseOnly.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip", omitUndefined: true }),
|
|
567
618
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
568
619
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
569
620
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -572,7 +623,7 @@ class ConnectorsClient {
|
|
|
572
623
|
});
|
|
573
624
|
if (_response.ok) {
|
|
574
625
|
return {
|
|
575
|
-
data: serializers.
|
|
626
|
+
data: serializers.HandlerCredentialsUpdateResponse.parseOrThrow(_response.body, {
|
|
576
627
|
unrecognizedObjectKeys: "passthrough",
|
|
577
628
|
allowUnrecognizedUnionMembers: true,
|
|
578
629
|
allowUnrecognizedEnumValues: true,
|
|
@@ -603,13 +654,7 @@ class ConnectorsClient {
|
|
|
603
654
|
case 404:
|
|
604
655
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
605
656
|
case 500:
|
|
606
|
-
throw new HydraDB.InternalServerError(
|
|
607
|
-
unrecognizedObjectKeys: "passthrough",
|
|
608
|
-
allowUnrecognizedUnionMembers: true,
|
|
609
|
-
allowUnrecognizedEnumValues: true,
|
|
610
|
-
skipValidation: true,
|
|
611
|
-
breadcrumbsPrefix: ["response"],
|
|
612
|
-
}), _response.rawResponse);
|
|
657
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
613
658
|
case 503:
|
|
614
659
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
615
660
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -629,7 +674,7 @@ class ConnectorsClient {
|
|
|
629
674
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/connectors/{id}/credentials");
|
|
630
675
|
}
|
|
631
676
|
/**
|
|
632
|
-
* List a connected provider's resources using the connector's stored credentials.
|
|
677
|
+
* List a connected provider's resources using the connector's stored credentials. Passing cursor or limit opts into pagination (currently Notion only): the response then adds next_cursor and has_more, a page may hold fewer than limit resources, and clients must continue while has_more is true. Without either param the full resource list is returned.
|
|
633
678
|
*
|
|
634
679
|
* @param {HydraDB.DiscoverConnectorsRequest} request
|
|
635
680
|
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -648,7 +693,11 @@ class ConnectorsClient {
|
|
|
648
693
|
return core.HttpResponsePromise.fromPromise(this.__discover(request, requestOptions));
|
|
649
694
|
}
|
|
650
695
|
async __discover(request, requestOptions) {
|
|
651
|
-
const { id } = request;
|
|
696
|
+
const { id, cursor, limit } = request;
|
|
697
|
+
const _queryParams = {
|
|
698
|
+
cursor,
|
|
699
|
+
limit,
|
|
700
|
+
};
|
|
652
701
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
653
702
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
654
703
|
const _response = await core.fetcher({
|
|
@@ -657,7 +706,11 @@ class ConnectorsClient {
|
|
|
657
706
|
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}/discover`),
|
|
658
707
|
method: "GET",
|
|
659
708
|
headers: _headers,
|
|
660
|
-
queryString: core.url
|
|
709
|
+
queryString: core.url
|
|
710
|
+
.queryBuilder()
|
|
711
|
+
.addMany(_queryParams)
|
|
712
|
+
.mergeAdditional(requestOptions?.queryParams)
|
|
713
|
+
.build(),
|
|
661
714
|
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
662
715
|
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
663
716
|
abortSignal: requestOptions?.abortSignal,
|
|
@@ -666,7 +719,7 @@ class ConnectorsClient {
|
|
|
666
719
|
});
|
|
667
720
|
if (_response.ok) {
|
|
668
721
|
return {
|
|
669
|
-
data: serializers.
|
|
722
|
+
data: serializers.HandlerDiscoverResponseBody.parseOrThrow(_response.body, {
|
|
670
723
|
unrecognizedObjectKeys: "passthrough",
|
|
671
724
|
allowUnrecognizedUnionMembers: true,
|
|
672
725
|
allowUnrecognizedEnumValues: true,
|
|
@@ -689,13 +742,7 @@ class ConnectorsClient {
|
|
|
689
742
|
case 404:
|
|
690
743
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
691
744
|
case 500:
|
|
692
|
-
throw new HydraDB.InternalServerError(
|
|
693
|
-
unrecognizedObjectKeys: "passthrough",
|
|
694
|
-
allowUnrecognizedUnionMembers: true,
|
|
695
|
-
allowUnrecognizedEnumValues: true,
|
|
696
|
-
skipValidation: true,
|
|
697
|
-
breadcrumbsPrefix: ["response"],
|
|
698
|
-
}), _response.rawResponse);
|
|
745
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
699
746
|
case 502:
|
|
700
747
|
throw new HydraDB.BadGatewayError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
701
748
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -750,7 +797,7 @@ class ConnectorsClient {
|
|
|
750
797
|
});
|
|
751
798
|
if (_response.ok) {
|
|
752
799
|
return {
|
|
753
|
-
data: serializers.
|
|
800
|
+
data: serializers.HandlerConnectorResourcesResponse.parseOrThrow(_response.body, {
|
|
754
801
|
unrecognizedObjectKeys: "passthrough",
|
|
755
802
|
allowUnrecognizedUnionMembers: true,
|
|
756
803
|
allowUnrecognizedEnumValues: true,
|
|
@@ -765,13 +812,7 @@ class ConnectorsClient {
|
|
|
765
812
|
case 404:
|
|
766
813
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
767
814
|
case 500:
|
|
768
|
-
throw new HydraDB.InternalServerError(
|
|
769
|
-
unrecognizedObjectKeys: "passthrough",
|
|
770
|
-
allowUnrecognizedUnionMembers: true,
|
|
771
|
-
allowUnrecognizedEnumValues: true,
|
|
772
|
-
skipValidation: true,
|
|
773
|
-
breadcrumbsPrefix: ["response"],
|
|
774
|
-
}), _response.rawResponse);
|
|
815
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
775
816
|
default:
|
|
776
817
|
throw new errors.HydraDBError({
|
|
777
818
|
statusCode: _response.error.statusCode,
|
|
@@ -849,13 +890,7 @@ class ConnectorsClient {
|
|
|
849
890
|
case 404:
|
|
850
891
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
851
892
|
case 500:
|
|
852
|
-
throw new HydraDB.InternalServerError(
|
|
853
|
-
unrecognizedObjectKeys: "passthrough",
|
|
854
|
-
allowUnrecognizedUnionMembers: true,
|
|
855
|
-
allowUnrecognizedEnumValues: true,
|
|
856
|
-
skipValidation: true,
|
|
857
|
-
breadcrumbsPrefix: ["response"],
|
|
858
|
-
}), _response.rawResponse);
|
|
893
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
859
894
|
default:
|
|
860
895
|
throw new errors.HydraDBError({
|
|
861
896
|
statusCode: _response.error.statusCode,
|
|
@@ -904,7 +939,7 @@ class ConnectorsClient {
|
|
|
904
939
|
});
|
|
905
940
|
if (_response.ok) {
|
|
906
941
|
return {
|
|
907
|
-
data: serializers.
|
|
942
|
+
data: serializers.HandlerResourceDeleteResponse.parseOrThrow(_response.body, {
|
|
908
943
|
unrecognizedObjectKeys: "passthrough",
|
|
909
944
|
allowUnrecognizedUnionMembers: true,
|
|
910
945
|
allowUnrecognizedEnumValues: true,
|
|
@@ -927,13 +962,7 @@ class ConnectorsClient {
|
|
|
927
962
|
case 404:
|
|
928
963
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
929
964
|
case 500:
|
|
930
|
-
throw new HydraDB.InternalServerError(
|
|
931
|
-
unrecognizedObjectKeys: "passthrough",
|
|
932
|
-
allowUnrecognizedUnionMembers: true,
|
|
933
|
-
allowUnrecognizedEnumValues: true,
|
|
934
|
-
skipValidation: true,
|
|
935
|
-
breadcrumbsPrefix: ["response"],
|
|
936
|
-
}), _response.rawResponse);
|
|
965
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
937
966
|
default:
|
|
938
967
|
throw new errors.HydraDBError({
|
|
939
968
|
statusCode: _response.error.statusCode,
|
|
@@ -944,6 +973,68 @@ class ConnectorsClient {
|
|
|
944
973
|
}
|
|
945
974
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/connectors/{id}/resources/{resource_id}");
|
|
946
975
|
}
|
|
976
|
+
/**
|
|
977
|
+
* Report whether a connector is working, in one call: a rollup status (healthy, degraded, failed, checking) plus per-resource detail. `degraded` means the connector is syncing but at least one configured resource is failing — the state that is otherwise invisible, because a connector whose resources partly fail still reports an idle sync status and no error.
|
|
978
|
+
*
|
|
979
|
+
* @param {HydraDB.StatusConnectorsRequest} request
|
|
980
|
+
* @param {ConnectorsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
981
|
+
*
|
|
982
|
+
* @throws {@link HydraDB.NotFoundError}
|
|
983
|
+
* @throws {@link HydraDB.InternalServerError}
|
|
984
|
+
*
|
|
985
|
+
* @example
|
|
986
|
+
* await client.connectors.status({
|
|
987
|
+
* id: "HydraDoc1234"
|
|
988
|
+
* })
|
|
989
|
+
*/
|
|
990
|
+
status(request, requestOptions) {
|
|
991
|
+
return core.HttpResponsePromise.fromPromise(this.__status(request, requestOptions));
|
|
992
|
+
}
|
|
993
|
+
async __status(request, requestOptions) {
|
|
994
|
+
const { id } = request;
|
|
995
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
996
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "API-Version": requestOptions?.apiVersion ?? this._options?.apiVersion ?? "2" }), requestOptions?.headers);
|
|
997
|
+
const _response = await core.fetcher({
|
|
998
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
999
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1000
|
+
environments.HydraDBEnvironment.Default, `connectors/${core.url.encodePathParam(id)}/status`),
|
|
1001
|
+
method: "GET",
|
|
1002
|
+
headers: _headers,
|
|
1003
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1004
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1005
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1006
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1007
|
+
fetchFn: this._options?.fetch,
|
|
1008
|
+
logging: this._options.logging,
|
|
1009
|
+
});
|
|
1010
|
+
if (_response.ok) {
|
|
1011
|
+
return {
|
|
1012
|
+
data: serializers.HandlerConnectorStatusResponse.parseOrThrow(_response.body, {
|
|
1013
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1014
|
+
allowUnrecognizedUnionMembers: true,
|
|
1015
|
+
allowUnrecognizedEnumValues: true,
|
|
1016
|
+
skipValidation: true,
|
|
1017
|
+
breadcrumbsPrefix: ["response"],
|
|
1018
|
+
}),
|
|
1019
|
+
rawResponse: _response.rawResponse,
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
if (_response.error.reason === "status-code") {
|
|
1023
|
+
switch (_response.error.statusCode) {
|
|
1024
|
+
case 404:
|
|
1025
|
+
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1026
|
+
case 500:
|
|
1027
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1028
|
+
default:
|
|
1029
|
+
throw new errors.HydraDBError({
|
|
1030
|
+
statusCode: _response.error.statusCode,
|
|
1031
|
+
body: _response.error.body,
|
|
1032
|
+
rawResponse: _response.rawResponse,
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/connectors/{id}/status");
|
|
1037
|
+
}
|
|
947
1038
|
/**
|
|
948
1039
|
* Start a manual sync workflow for a connector.
|
|
949
1040
|
*
|
|
@@ -982,7 +1073,7 @@ class ConnectorsClient {
|
|
|
982
1073
|
});
|
|
983
1074
|
if (_response.ok) {
|
|
984
1075
|
return {
|
|
985
|
-
data: serializers.
|
|
1076
|
+
data: serializers.HandlerConnectorSyncResponse.parseOrThrow(_response.body, {
|
|
986
1077
|
unrecognizedObjectKeys: "passthrough",
|
|
987
1078
|
allowUnrecognizedUnionMembers: true,
|
|
988
1079
|
allowUnrecognizedEnumValues: true,
|
|
@@ -997,21 +1088,9 @@ class ConnectorsClient {
|
|
|
997
1088
|
case 404:
|
|
998
1089
|
throw new HydraDB.NotFoundError(_response.error.body, _response.rawResponse);
|
|
999
1090
|
case 409:
|
|
1000
|
-
throw new HydraDB.ConflictError(
|
|
1001
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1002
|
-
allowUnrecognizedUnionMembers: true,
|
|
1003
|
-
allowUnrecognizedEnumValues: true,
|
|
1004
|
-
skipValidation: true,
|
|
1005
|
-
breadcrumbsPrefix: ["response"],
|
|
1006
|
-
}), _response.rawResponse);
|
|
1091
|
+
throw new HydraDB.ConflictError(_response.error.body, _response.rawResponse);
|
|
1007
1092
|
case 500:
|
|
1008
|
-
throw new HydraDB.InternalServerError(
|
|
1009
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1010
|
-
allowUnrecognizedUnionMembers: true,
|
|
1011
|
-
allowUnrecognizedEnumValues: true,
|
|
1012
|
-
skipValidation: true,
|
|
1013
|
-
breadcrumbsPrefix: ["response"],
|
|
1014
|
-
}), _response.rawResponse);
|
|
1093
|
+
throw new HydraDB.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1015
1094
|
case 503:
|
|
1016
1095
|
throw new HydraDB.ServiceUnavailableError(serializers.HandlerErrorResponse.parseOrThrow(_response.error.body, {
|
|
1017
1096
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -7,4 +7,8 @@
|
|
|
7
7
|
export interface DiscoverConnectorsRequest {
|
|
8
8
|
/** Connector ID */
|
|
9
9
|
id: string;
|
|
10
|
+
/** Opaque pagination cursor from a previous response's next_cursor */
|
|
11
|
+
cursor?: string;
|
|
12
|
+
/** Max resources per page, 1-100 (values above 100 are clamped) */
|
|
13
|
+
limit?: number;
|
|
10
14
|
}
|
|
@@ -16,9 +16,7 @@ import type * as HydraDB from "../../../../index.js";
|
|
|
16
16
|
* },
|
|
17
17
|
* name: "general",
|
|
18
18
|
* resourceId: "C0123456789",
|
|
19
|
-
* resourceType: "channel"
|
|
20
|
-
* subTenantId: "sub_tenant_4567",
|
|
21
|
-
* tenantId: "tenant_1234"
|
|
19
|
+
* resourceType: "channel"
|
|
22
20
|
* }]
|
|
23
21
|
* }
|
|
24
22
|
*/
|
|
@@ -31,4 +29,12 @@ export interface HandlerConfigureReq {
|
|
|
31
29
|
lookbackDays?: number;
|
|
32
30
|
/** Resources to activate for this connector. Each item corresponds to one entry from the Discover endpoint. */
|
|
33
31
|
resources: HydraDB.HandlerResourceMapping[];
|
|
32
|
+
/**
|
|
33
|
+
* TableConfigs carries per-table replication settings for MOVEIT
|
|
34
|
+
* connectors whose tap reads a `table_configs` credential input (bigquery).
|
|
35
|
+
* Configure merges them into the stored credential bundle before the first
|
|
36
|
+
* sync, so the mode chosen at selection time governs every sync from the
|
|
37
|
+
* start. Optional; rejected for non-MOVEIT engines.
|
|
38
|
+
*/
|
|
39
|
+
tableConfigs?: HydraDB.HandlerTableConfigEntry[];
|
|
34
40
|
}
|
|
@@ -20,21 +20,15 @@ export interface HandlerConnectorCreateReq {
|
|
|
20
20
|
* here would force the generated SDK to demand the deprecated field.
|
|
21
21
|
*/
|
|
22
22
|
database?: string;
|
|
23
|
-
/** Internal deployment context for this connector. */
|
|
24
|
-
deploymentId?: string;
|
|
25
23
|
/** Human-readable label for this connector. */
|
|
26
24
|
name?: string;
|
|
27
|
-
/** Subscription plan this connector runs under. */
|
|
28
|
-
plan?: string;
|
|
29
25
|
/** External provider being synced (e.g. `slack`, `github`, `linear`, `notion`, `gmail`). */
|
|
30
26
|
provider: string;
|
|
31
27
|
/** Identifier for the external account (e.g. Slack workspace ID, GitHub org name). Must be distinct across connectors for the same provider. */
|
|
32
28
|
providerAccountScope?: string;
|
|
33
29
|
/** deprecated: use collection */
|
|
34
30
|
subTenantId?: string;
|
|
35
|
-
/**
|
|
36
|
-
syncEngine?: string;
|
|
37
|
-
/** How frequently the scheduler triggers incremental syncs, in seconds. */
|
|
31
|
+
/** How frequently the scheduler triggers incremental syncs, in seconds. Bounded per provider; send 0 or omit to use the provider default. Change it later with PATCH /connectors/{id}. */
|
|
38
32
|
syncIntervalSeconds?: number;
|
|
39
33
|
/** deprecated: use database */
|
|
40
34
|
tenantId?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "HydraDoc1234"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface HandlerConnectorUpdateReq {
|
|
8
|
+
/** Connector ID */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Provider-specific credentials (typically `{"api_token": "..."}` or `{"access_token": "..."}`). */
|
|
11
|
+
credentials?: Record<string, unknown>;
|
|
12
|
+
/** 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}. */
|
|
13
|
+
syncIntervalSeconds?: number;
|
|
14
|
+
}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface HandlerDiscoverPreviewReq {
|
|
11
|
+
/** Opaque pagination cursor from a previous response's next_cursor */
|
|
12
|
+
cursor?: string;
|
|
13
|
+
/** Max resources per page, 1-100 (values above 100 are clamped) */
|
|
14
|
+
limit?: number;
|
|
11
15
|
/** Authentication method for the provider connection (e.g. `api_token`, `oauth`). */
|
|
12
16
|
authType?: string;
|
|
13
17
|
/** Provider-specific credentials (typically `{"api_token": "..."}` or `{"access_token": "..."}`). */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
export interface HandlerResourceCreateReq {
|
|
9
9
|
/** Connector ID */
|
|
10
10
|
id: string;
|
|
11
|
-
/** Key-value pairs merged into document metadata on every synced object from this resource. */
|
|
11
|
+
/** Key-value pairs merged into document metadata on every synced object from this resource. Capped at 1 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */
|
|
12
12
|
additionalMetadata?: Record<string, unknown>;
|
|
13
13
|
collectionOverride?: string;
|
|
14
14
|
databaseOverride?: string;
|
|
@@ -16,7 +16,7 @@ export interface HandlerResourceCreateReq {
|
|
|
16
16
|
displayName?: string;
|
|
17
17
|
/** Provider-specific filters applied during sync (e.g. `{"lookback_days": 30}`). */
|
|
18
18
|
filters?: Record<string, unknown>;
|
|
19
|
-
/** Key-value pairs merged into tenant metadata on every synced object from this resource. */
|
|
19
|
+
/** Key-value pairs merged into tenant metadata on every synced object from this resource. Capped at 16 KiB, measured on the compact JSON encoding of the whole map in UTF-8 bytes — keys, quotes, commas and braces count toward the budget. The cap is applied when synced objects are ingested, not to this request. */
|
|
20
20
|
metadata?: Record<string, unknown>;
|
|
21
21
|
/** Additional provider-supplied metadata for this resource. */
|
|
22
22
|
providerMetadata?: Record<string, unknown>;
|