@airweave/sdk 0.7.20 → 0.8.76
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 +1 -5
- package/dist/cjs/Client.d.ts +3 -8
- package/dist/cjs/Client.js +7 -4
- package/dist/cjs/api/errors/ConflictError.d.ts +9 -0
- package/dist/cjs/api/errors/ConflictError.js +52 -0
- package/dist/cjs/api/errors/NotFoundError.d.ts +9 -0
- package/dist/cjs/api/errors/NotFoundError.js +52 -0
- package/dist/cjs/api/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/cjs/api/errors/TooManyRequestsError.js +52 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +1 -2
- package/dist/cjs/api/errors/index.d.ts +3 -0
- package/dist/cjs/api/errors/index.js +3 -0
- package/dist/cjs/api/resources/collections/client/Client.d.ts +107 -42
- package/dist/cjs/api/resources/collections/client/Client.js +205 -58
- package/dist/cjs/api/resources/collections/client/requests/CollectionCreate.d.ts +3 -0
- package/dist/cjs/api/resources/collections/client/requests/CollectionUpdate.d.ts +16 -0
- package/dist/cjs/api/resources/collections/client/requests/ListCollectionsGetRequest.d.ts +4 -4
- package/dist/cjs/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.ts +4 -4
- package/dist/cjs/api/resources/collections/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/collections/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/collections/types/index.js +0 -1
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +96 -62
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +152 -78
- package/dist/cjs/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.ts +2 -1
- package/dist/cjs/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.ts +4 -2
- package/dist/cjs/api/resources/sourceConnections/client/requests/RunSourceConnectionsSourceConnectionIdRunPostRequest.d.ts +2 -2
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.ts +10 -9
- package/dist/cjs/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.ts +6 -3
- package/dist/cjs/api/resources/sources/client/Client.d.ts +24 -13
- package/dist/cjs/api/resources/sources/client/Client.js +36 -11
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +231 -0
- package/dist/cjs/api/resources/webhooks/client/Client.js +689 -0
- package/dist/cjs/api/resources/webhooks/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
- package/dist/cjs/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.ts +19 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.d.ts +13 -0
- package/dist/cjs/api/resources/webhooks/client/requests/PatchSubscriptionRequest.d.ts +18 -0
- package/dist/cjs/api/resources/webhooks/client/requests/RecoverMessagesRequest.d.ts +15 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/webhooks/index.d.ts +1 -0
- package/dist/cjs/api/resources/webhooks/index.js +17 -0
- package/dist/cjs/api/types/AdminSearchDestination.d.ts +11 -0
- package/dist/cjs/api/types/AdminSearchDestination.js +10 -0
- package/dist/cjs/api/types/{SyncWithSourceConnection.d.ts → AdminSyncInfo.d.ts} +14 -3
- package/dist/cjs/api/types/BehaviorConfig.d.ts +14 -0
- package/dist/cjs/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.ts +10 -0
- package/dist/cjs/api/types/Collection.d.ts +4 -2
- package/dist/cjs/api/types/ConfigField.d.ts +2 -0
- package/dist/cjs/api/types/ConflictErrorResponse.d.ts +13 -0
- package/dist/cjs/api/types/CursorConfig.d.ts +12 -0
- package/dist/cjs/api/types/DeliveryAttempt.d.ts +28 -0
- package/dist/cjs/api/types/DestinationConfig.d.ts +16 -0
- package/dist/cjs/api/types/EventType.d.ts +14 -0
- package/dist/cjs/api/types/EventType.js +13 -0
- package/dist/cjs/api/types/FeatureFlag.d.ts +4 -1
- package/dist/cjs/api/types/FeatureFlag.js +3 -0
- package/dist/cjs/api/types/HandlerConfig.d.ts +14 -0
- package/dist/cjs/api/types/LegacySearchRequest.d.ts +2 -2
- package/dist/cjs/api/types/NotFoundErrorResponse.d.ts +10 -0
- package/dist/cjs/api/types/RateLimitErrorResponse.d.ts +13 -0
- package/dist/cjs/api/types/RecoveryTask.d.ts +16 -0
- package/dist/cjs/api/types/S3ConfigRequest.d.ts +5 -9
- package/dist/cjs/api/types/SearchRequest.d.ts +15 -12
- package/dist/cjs/api/types/SearchResponse.d.ts +6 -3
- package/dist/cjs/api/types/Source.d.ts +4 -0
- package/dist/cjs/api/types/SourceConnection.d.ts +19 -3
- package/dist/cjs/api/types/SourceConnectionJob.d.ts +16 -1
- package/dist/cjs/api/types/SourceConnectionListItem.d.ts +13 -2
- package/dist/cjs/api/types/Sync.d.ts +1 -0
- package/dist/cjs/api/types/SyncConfig.d.ts +17 -0
- package/dist/cjs/api/types/SyncCreate.d.ts +1 -0
- package/dist/cjs/api/types/SyncEventPayload.d.ts +15 -0
- package/dist/cjs/api/types/SyncJob.d.ts +2 -0
- package/dist/cjs/api/types/SyncUpdate.d.ts +1 -0
- package/dist/cjs/api/types/ValidationErrorDetail.d.ts +14 -0
- package/dist/cjs/api/types/ValidationErrorResponse.d.ts +14 -0
- package/dist/cjs/api/types/WebhookMessage.d.ts +23 -0
- package/dist/cjs/api/types/WebhookMessageWithAttempts.d.ts +23 -0
- package/dist/cjs/api/types/WebhookSubscription.d.ts +27 -0
- package/dist/cjs/api/types/index.d.ts +20 -25
- package/dist/cjs/api/types/index.js +20 -25
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -8
- package/dist/esm/Client.mjs +7 -4
- package/dist/esm/api/errors/ConflictError.d.mts +9 -0
- package/dist/esm/api/errors/ConflictError.mjs +15 -0
- package/dist/esm/api/errors/NotFoundError.d.mts +9 -0
- package/dist/esm/api/errors/NotFoundError.mjs +15 -0
- package/dist/esm/api/errors/TooManyRequestsError.d.mts +9 -0
- package/dist/esm/api/errors/TooManyRequestsError.mjs +15 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +1 -2
- package/dist/esm/api/errors/index.d.mts +3 -0
- package/dist/esm/api/errors/index.mjs +3 -0
- package/dist/esm/api/resources/collections/client/Client.d.mts +107 -42
- package/dist/esm/api/resources/collections/client/Client.mjs +205 -58
- package/dist/esm/api/resources/collections/client/requests/CollectionCreate.d.mts +3 -0
- package/dist/esm/api/resources/collections/client/requests/CollectionUpdate.d.mts +16 -0
- package/dist/esm/api/resources/collections/client/requests/ListCollectionsGetRequest.d.mts +4 -4
- package/dist/esm/api/resources/collections/client/requests/SearchGetLegacyCollectionsReadableIdSearchGetRequest.d.mts +4 -4
- package/dist/esm/api/resources/collections/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/collections/types/index.d.mts +0 -1
- package/dist/esm/api/resources/collections/types/index.mjs +0 -1
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +96 -62
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +152 -78
- package/dist/esm/api/resources/sourceConnections/client/requests/GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest.d.mts +2 -1
- package/dist/esm/api/resources/sourceConnections/client/requests/ListSourceConnectionsGetRequest.d.mts +4 -2
- package/dist/esm/api/resources/sourceConnections/client/requests/RunSourceConnectionsSourceConnectionIdRunPostRequest.d.mts +2 -2
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionCreate.d.mts +10 -9
- package/dist/esm/api/resources/sourceConnections/client/requests/SourceConnectionUpdate.d.mts +6 -3
- package/dist/esm/api/resources/sources/client/Client.d.mts +24 -13
- package/dist/esm/api/resources/sources/client/Client.mjs +36 -11
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +231 -0
- package/dist/esm/api/resources/webhooks/client/Client.mjs +652 -0
- package/dist/esm/api/resources/webhooks/client/index.d.mts +2 -0
- package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/client/requests/CreateSubscriptionRequest.d.mts +19 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.d.mts +13 -0
- package/dist/esm/api/resources/webhooks/client/requests/PatchSubscriptionRequest.d.mts +18 -0
- package/dist/esm/api/resources/webhooks/client/requests/RecoverMessagesRequest.d.mts +15 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/webhooks/index.d.mts +1 -0
- package/dist/esm/api/resources/webhooks/index.mjs +1 -0
- package/dist/esm/api/types/AdminSearchDestination.d.mts +11 -0
- package/dist/esm/api/types/AdminSearchDestination.mjs +7 -0
- package/dist/esm/api/types/{SyncWithSourceConnection.d.mts → AdminSyncInfo.d.mts} +14 -3
- package/dist/esm/api/types/BehaviorConfig.d.mts +14 -0
- package/dist/esm/api/types/BodyResyncWithExecutionConfigAdminResyncSyncIdPost.d.mts +10 -0
- package/dist/esm/api/types/Collection.d.mts +4 -2
- package/dist/esm/api/types/ConfigField.d.mts +2 -0
- package/dist/esm/api/types/ConflictErrorResponse.d.mts +13 -0
- package/dist/esm/api/types/CursorConfig.d.mts +12 -0
- package/dist/esm/api/types/DeliveryAttempt.d.mts +28 -0
- package/dist/esm/api/types/DestinationConfig.d.mts +16 -0
- package/dist/esm/api/types/EventType.d.mts +14 -0
- package/dist/esm/api/types/EventType.mjs +10 -0
- package/dist/esm/api/types/FeatureFlag.d.mts +4 -1
- package/dist/esm/api/types/FeatureFlag.mjs +3 -0
- package/dist/esm/api/types/HandlerConfig.d.mts +14 -0
- package/dist/esm/api/types/LegacySearchRequest.d.mts +2 -2
- package/dist/esm/api/types/NotFoundErrorResponse.d.mts +10 -0
- package/dist/esm/api/types/RateLimitErrorResponse.d.mts +13 -0
- package/dist/esm/api/types/RecoveryTask.d.mts +16 -0
- package/dist/esm/api/types/S3ConfigRequest.d.mts +5 -9
- package/dist/esm/api/types/SearchRequest.d.mts +15 -12
- package/dist/esm/api/types/SearchResponse.d.mts +6 -3
- package/dist/esm/api/types/Source.d.mts +4 -0
- package/dist/esm/api/types/SourceConnection.d.mts +19 -3
- package/dist/esm/api/types/SourceConnectionJob.d.mts +16 -1
- package/dist/esm/api/types/SourceConnectionListItem.d.mts +13 -2
- package/dist/esm/api/types/Sync.d.mts +1 -0
- package/dist/esm/api/types/SyncConfig.d.mts +17 -0
- package/dist/esm/api/types/SyncCreate.d.mts +1 -0
- package/dist/esm/api/types/SyncEventPayload.d.mts +15 -0
- package/dist/esm/api/types/SyncJob.d.mts +2 -0
- package/dist/esm/api/types/SyncUpdate.d.mts +1 -0
- package/dist/esm/api/types/ValidationErrorDetail.d.mts +14 -0
- package/dist/esm/api/types/ValidationErrorResponse.d.mts +14 -0
- package/dist/esm/api/types/WebhookMessage.d.mts +23 -0
- package/dist/esm/api/types/WebhookMessageWithAttempts.d.mts +23 -0
- package/dist/esm/api/types/WebhookSubscription.d.mts +27 -0
- package/dist/esm/api/types/index.d.mts +20 -25
- package/dist/esm/api/types/index.mjs +20 -25
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +891 -121
- package/dist/cjs/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.ts +0 -5
- package/dist/cjs/api/types/CollectionUpdate.d.ts +0 -13
- package/dist/cjs/api/types/DatetimeRange.d.ts +0 -34
- package/dist/cjs/api/types/FieldCondition.d.ts +0 -33
- package/dist/cjs/api/types/Filter.d.ts +0 -28
- package/dist/cjs/api/types/GeoBoundingBox.d.ts +0 -13
- package/dist/cjs/api/types/GeoLineString.d.ts +0 -11
- package/dist/cjs/api/types/GeoPoint.d.ts +0 -12
- package/dist/cjs/api/types/GeoPolygon.d.ts +0 -13
- package/dist/cjs/api/types/GeoRadius.d.ts +0 -13
- package/dist/cjs/api/types/HasIdCondition.d.ts +0 -16
- package/dist/cjs/api/types/HasVectorCondition.d.ts +0 -10
- package/dist/cjs/api/types/IsEmptyCondition.d.ts +0 -11
- package/dist/cjs/api/types/IsNullCondition.d.ts +0 -11
- package/dist/cjs/api/types/MatchAny.d.ts +0 -16
- package/dist/cjs/api/types/MatchExcept.d.ts +0 -16
- package/dist/cjs/api/types/MatchPhrase.d.ts +0 -10
- package/dist/cjs/api/types/MatchText.d.ts +0 -10
- package/dist/cjs/api/types/MatchValue.d.ts +0 -16
- package/dist/cjs/api/types/MinShould.d.ts +0 -16
- package/dist/cjs/api/types/Nested.d.ts +0 -13
- package/dist/cjs/api/types/NestedCondition.d.ts +0 -8
- package/dist/cjs/api/types/PayloadField.d.ts +0 -10
- package/dist/cjs/api/types/Range.d.ts +0 -16
- package/dist/cjs/api/types/ValuesCount.d.ts +0 -16
- package/dist/cjs/api/types/ValuesCount.js +0 -5
- package/dist/esm/api/resources/collections/types/SearchCollectionsReadableIdSearchPostResponse.d.mts +0 -5
- package/dist/esm/api/types/CollectionUpdate.d.mts +0 -13
- package/dist/esm/api/types/DatetimeRange.d.mts +0 -34
- package/dist/esm/api/types/FieldCondition.d.mts +0 -33
- package/dist/esm/api/types/Filter.d.mts +0 -28
- package/dist/esm/api/types/GeoBoundingBox.d.mts +0 -13
- package/dist/esm/api/types/GeoLineString.d.mts +0 -11
- package/dist/esm/api/types/GeoPoint.d.mts +0 -12
- package/dist/esm/api/types/GeoPolygon.d.mts +0 -13
- package/dist/esm/api/types/GeoRadius.d.mts +0 -13
- package/dist/esm/api/types/HasIdCondition.d.mts +0 -16
- package/dist/esm/api/types/HasVectorCondition.d.mts +0 -10
- package/dist/esm/api/types/IsEmptyCondition.d.mts +0 -11
- package/dist/esm/api/types/IsNullCondition.d.mts +0 -11
- package/dist/esm/api/types/MatchAny.d.mts +0 -16
- package/dist/esm/api/types/MatchExcept.d.mts +0 -16
- package/dist/esm/api/types/MatchPhrase.d.mts +0 -10
- package/dist/esm/api/types/MatchText.d.mts +0 -10
- package/dist/esm/api/types/MatchValue.d.mts +0 -16
- package/dist/esm/api/types/MinShould.d.mts +0 -16
- package/dist/esm/api/types/Nested.d.mts +0 -13
- package/dist/esm/api/types/NestedCondition.d.mts +0 -8
- package/dist/esm/api/types/PayloadField.d.mts +0 -10
- package/dist/esm/api/types/Range.d.mts +0 -16
- package/dist/esm/api/types/ValuesCount.d.mts +0 -16
- package/dist/esm/api/types/ValuesCount.mjs +0 -4
- /package/dist/cjs/api/{types → resources/collections/client/requests}/CollectionUpdate.js +0 -0
- /package/dist/cjs/api/resources/{collections/types/SearchCollectionsReadableIdSearchPostResponse.js → webhooks/client/requests/CreateSubscriptionRequest.js} +0 -0
- /package/dist/cjs/api/{types/DatetimeRange.js → resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/FieldCondition.js → resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/Filter.js → resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/GeoBoundingBox.js → resources/webhooks/client/requests/PatchSubscriptionRequest.js} +0 -0
- /package/dist/cjs/api/{types/GeoLineString.js → resources/webhooks/client/requests/RecoverMessagesRequest.js} +0 -0
- /package/dist/cjs/api/types/{GeoPoint.js → AdminSyncInfo.js} +0 -0
- /package/dist/cjs/api/types/{GeoPolygon.js → BehaviorConfig.js} +0 -0
- /package/dist/cjs/api/types/{GeoRadius.js → BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js} +0 -0
- /package/dist/cjs/api/types/{HasIdCondition.js → ConflictErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{HasVectorCondition.js → CursorConfig.js} +0 -0
- /package/dist/cjs/api/types/{IsEmptyCondition.js → DeliveryAttempt.js} +0 -0
- /package/dist/cjs/api/types/{IsNullCondition.js → DestinationConfig.js} +0 -0
- /package/dist/cjs/api/types/{MatchAny.js → HandlerConfig.js} +0 -0
- /package/dist/cjs/api/types/{MatchExcept.js → NotFoundErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{MatchPhrase.js → RateLimitErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{MatchText.js → RecoveryTask.js} +0 -0
- /package/dist/cjs/api/types/{MatchValue.js → SyncConfig.js} +0 -0
- /package/dist/cjs/api/types/{MinShould.js → SyncEventPayload.js} +0 -0
- /package/dist/cjs/api/types/{Nested.js → ValidationErrorDetail.js} +0 -0
- /package/dist/cjs/api/types/{NestedCondition.js → ValidationErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{PayloadField.js → WebhookMessage.js} +0 -0
- /package/dist/cjs/api/types/{Range.js → WebhookMessageWithAttempts.js} +0 -0
- /package/dist/cjs/api/types/{SyncWithSourceConnection.js → WebhookSubscription.js} +0 -0
- /package/dist/esm/api/{types → resources/collections/client/requests}/CollectionUpdate.mjs +0 -0
- /package/dist/esm/api/resources/{collections/types/SearchCollectionsReadableIdSearchPostResponse.mjs → webhooks/client/requests/CreateSubscriptionRequest.mjs} +0 -0
- /package/dist/esm/api/{types/DatetimeRange.mjs → resources/webhooks/client/requests/GetMessageWebhooksMessagesMessageIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/FieldCondition.mjs → resources/webhooks/client/requests/GetMessagesWebhooksMessagesGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/Filter.mjs → resources/webhooks/client/requests/GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/GeoBoundingBox.mjs → resources/webhooks/client/requests/PatchSubscriptionRequest.mjs} +0 -0
- /package/dist/esm/api/{types/GeoLineString.mjs → resources/webhooks/client/requests/RecoverMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/types/{GeoPoint.mjs → AdminSyncInfo.mjs} +0 -0
- /package/dist/esm/api/types/{GeoPolygon.mjs → BehaviorConfig.mjs} +0 -0
- /package/dist/esm/api/types/{GeoRadius.mjs → BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs} +0 -0
- /package/dist/esm/api/types/{HasIdCondition.mjs → ConflictErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{HasVectorCondition.mjs → CursorConfig.mjs} +0 -0
- /package/dist/esm/api/types/{IsEmptyCondition.mjs → DeliveryAttempt.mjs} +0 -0
- /package/dist/esm/api/types/{IsNullCondition.mjs → DestinationConfig.mjs} +0 -0
- /package/dist/esm/api/types/{MatchAny.mjs → HandlerConfig.mjs} +0 -0
- /package/dist/esm/api/types/{MatchExcept.mjs → NotFoundErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{MatchPhrase.mjs → RateLimitErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{MatchText.mjs → RecoveryTask.mjs} +0 -0
- /package/dist/esm/api/types/{MatchValue.mjs → SyncConfig.mjs} +0 -0
- /package/dist/esm/api/types/{MinShould.mjs → SyncEventPayload.mjs} +0 -0
- /package/dist/esm/api/types/{Nested.mjs → ValidationErrorDetail.mjs} +0 -0
- /package/dist/esm/api/types/{NestedCondition.mjs → ValidationErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{PayloadField.mjs → WebhookMessage.mjs} +0 -0
- /package/dist/esm/api/types/{Range.mjs → WebhookMessageWithAttempts.mjs} +0 -0
- /package/dist/esm/api/types/{SyncWithSourceConnection.mjs → WebhookSubscription.mjs} +0 -0
|
@@ -10,10 +10,6 @@ export declare namespace SourceConnections {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
-
/** Override the X-Framework-Name header */
|
|
14
|
-
frameworkName?: core.Supplier<string | undefined>;
|
|
15
|
-
/** Override the X-Framework-Version header */
|
|
16
|
-
frameworkVersion?: core.Supplier<string | undefined>;
|
|
17
13
|
/** Additional headers to include in requests. */
|
|
18
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
19
15
|
}
|
|
@@ -24,10 +20,6 @@ export declare namespace SourceConnections {
|
|
|
24
20
|
maxRetries?: number;
|
|
25
21
|
/** A hook to abort the request. */
|
|
26
22
|
abortSignal?: AbortSignal;
|
|
27
|
-
/** Override the X-Framework-Name header */
|
|
28
|
-
frameworkName?: string | undefined;
|
|
29
|
-
/** Override the X-Framework-Version header */
|
|
30
|
-
frameworkVersion?: string | undefined;
|
|
31
23
|
/** Additional query string parameters to include in the request. */
|
|
32
24
|
queryParams?: Record<string, unknown>;
|
|
33
25
|
/** Additional headers to include in the request. */
|
|
@@ -41,155 +33,197 @@ export declare class SourceConnections {
|
|
|
41
33
|
protected readonly _options: SourceConnections.Options;
|
|
42
34
|
constructor(_options: SourceConnections.Options);
|
|
43
35
|
/**
|
|
44
|
-
*
|
|
36
|
+
* Retrieve all source connections for your organization.
|
|
37
|
+
*
|
|
38
|
+
* Returns a lightweight list of source connections with essential fields for
|
|
39
|
+
* display and navigation. Use the collection filter to see connections within
|
|
40
|
+
* a specific collection.
|
|
41
|
+
*
|
|
42
|
+
* For full connection details including sync history, use the GET /{id} endpoint.
|
|
45
43
|
*
|
|
46
44
|
* @param {AirweaveSDK.ListSourceConnectionsGetRequest} request
|
|
47
45
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
46
|
*
|
|
49
47
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
48
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
50
49
|
*
|
|
51
50
|
* @example
|
|
52
51
|
* await client.sourceConnections.list({
|
|
53
52
|
* collection: "collection",
|
|
54
|
-
* skip:
|
|
55
|
-
* limit:
|
|
53
|
+
* skip: 0,
|
|
54
|
+
* limit: 100
|
|
56
55
|
* })
|
|
57
56
|
*/
|
|
58
57
|
list(request?: AirweaveSDK.ListSourceConnectionsGetRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionListItem[]>;
|
|
59
58
|
private __list;
|
|
60
59
|
/**
|
|
61
|
-
* Create a new source connection.
|
|
60
|
+
* Create a new source connection to sync data from an external source.
|
|
62
61
|
*
|
|
63
|
-
* The authentication
|
|
64
|
-
* - DirectAuthentication: Immediate creation with provided credentials
|
|
65
|
-
* - OAuthBrowserAuthentication: Returns shell with authentication URL
|
|
66
|
-
* - OAuthTokenAuthentication: Immediate creation with provided token
|
|
67
|
-
* - AuthProviderAuthentication: Using external auth provider
|
|
62
|
+
* The authentication method determines the creation flow:
|
|
68
63
|
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
64
|
+
* - **Direct**: Provide credentials (API key, token) directly. Connection is created immediately.
|
|
65
|
+
* - **OAuth Browser**: Returns a connection with an `auth_url` to redirect users for authentication.
|
|
66
|
+
* - **OAuth Token**: Provide an existing OAuth token. Connection is created immediately.
|
|
67
|
+
* - **Auth Provider**: Use a pre-configured auth provider (e.g., Composio, Pipedream).
|
|
71
68
|
*
|
|
72
|
-
*
|
|
73
|
-
* - True for: direct, oauth_token, auth_provider
|
|
74
|
-
* - False for: oauth_browser, oauth_byoc (these sync after authentication)
|
|
69
|
+
* After successful authentication, data sync can begin automatically or on-demand.
|
|
75
70
|
*
|
|
76
71
|
* @param {AirweaveSDK.SourceConnectionCreate} request
|
|
77
72
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
73
|
*
|
|
79
74
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
75
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
80
76
|
*
|
|
81
77
|
* @example
|
|
82
78
|
* await client.sourceConnections.create({
|
|
83
|
-
* short_name: "
|
|
84
|
-
* readable_collection_id: "
|
|
79
|
+
* short_name: "github",
|
|
80
|
+
* readable_collection_id: "customer-support-tickets-x7k9m"
|
|
85
81
|
* })
|
|
86
82
|
*/
|
|
87
83
|
create(request: AirweaveSDK.SourceConnectionCreate, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
88
84
|
private __create;
|
|
89
85
|
/**
|
|
90
|
-
*
|
|
86
|
+
* Retrieve details of a specific source connection.
|
|
87
|
+
*
|
|
88
|
+
* Returns complete information about the connection including:
|
|
89
|
+
* - Configuration settings
|
|
90
|
+
* - Authentication status
|
|
91
|
+
* - Sync schedule and history
|
|
92
|
+
* - Entity statistics
|
|
91
93
|
*
|
|
92
|
-
* @param {string} sourceConnectionId
|
|
94
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
93
95
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
94
96
|
*
|
|
97
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
95
98
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
99
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
96
100
|
*
|
|
97
101
|
* @example
|
|
98
|
-
* await client.sourceConnections.get("
|
|
102
|
+
* await client.sourceConnections.get("550e8400-e29b-41d4-a716-446655440000")
|
|
99
103
|
*/
|
|
100
104
|
get(sourceConnectionId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
101
105
|
private __get;
|
|
102
106
|
/**
|
|
103
|
-
*
|
|
107
|
+
* Permanently delete a source connection and all its synced data.
|
|
108
|
+
*
|
|
109
|
+
* This operation:
|
|
110
|
+
* - Removes all entities synced from this source from the vector database
|
|
111
|
+
* - Cancels any scheduled or running sync jobs
|
|
112
|
+
* - Deletes the connection configuration and credentials
|
|
113
|
+
*
|
|
114
|
+
* **Warning**: This action cannot be undone. All synced data will be permanently deleted.
|
|
104
115
|
*
|
|
105
|
-
* @param {string} sourceConnectionId
|
|
116
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
|
|
106
117
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
118
|
*
|
|
119
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
108
120
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
121
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
109
122
|
*
|
|
110
123
|
* @example
|
|
111
|
-
* await client.sourceConnections.delete("
|
|
124
|
+
* await client.sourceConnections.delete("550e8400-e29b-41d4-a716-446655440000")
|
|
112
125
|
*/
|
|
113
126
|
delete(sourceConnectionId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
114
127
|
private __delete;
|
|
115
128
|
/**
|
|
116
|
-
* Update
|
|
129
|
+
* Update an existing source connection's configuration.
|
|
117
130
|
*
|
|
118
|
-
*
|
|
119
|
-
* -
|
|
120
|
-
* -
|
|
121
|
-
* -
|
|
122
|
-
* -
|
|
131
|
+
* You can modify:
|
|
132
|
+
* - **Name and description**: Display information
|
|
133
|
+
* - **Configuration**: Source-specific settings (e.g., repository name, filters)
|
|
134
|
+
* - **Schedule**: Cron expression for automatic syncs
|
|
135
|
+
* - **Authentication**: Update credentials (direct auth only)
|
|
123
136
|
*
|
|
124
|
-
*
|
|
137
|
+
* Only include the fields you want to change; omitted fields retain their current values.
|
|
138
|
+
*
|
|
139
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection to update (UUID)
|
|
125
140
|
* @param {AirweaveSDK.SourceConnectionUpdate} request
|
|
126
141
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
142
|
*
|
|
143
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
128
144
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
145
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
129
146
|
*
|
|
130
147
|
* @example
|
|
131
|
-
* await client.sourceConnections.update("
|
|
148
|
+
* await client.sourceConnections.update("550e8400-e29b-41d4-a716-446655440000")
|
|
132
149
|
*/
|
|
133
150
|
update(sourceConnectionId: string, request?: AirweaveSDK.SourceConnectionUpdate, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnection>;
|
|
134
151
|
private __update;
|
|
135
152
|
/**
|
|
136
|
-
* Trigger a
|
|
153
|
+
* Trigger a data synchronization job for a source connection.
|
|
137
154
|
*
|
|
138
|
-
*
|
|
155
|
+
* Starts an asynchronous sync job that pulls the latest data from the connected
|
|
156
|
+
* source. The job runs in the background and you can monitor its progress using
|
|
157
|
+
* the jobs endpoint.
|
|
139
158
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* source_connection_id: ID of the source connection to run
|
|
143
|
-
* ctx: API context with organization and user information
|
|
144
|
-
* guard_rail: Guard rail service for usage limits
|
|
145
|
-
* force_full_sync: If True, forces a full sync with orphaned entity cleanup
|
|
146
|
-
* for continuous syncs. Raises 400 error if used on
|
|
147
|
-
* non-continuous syncs (which are always full syncs).
|
|
159
|
+
* For continuous sync connections, this performs an incremental sync by default.
|
|
160
|
+
* Use `force_full_sync=true` to perform a complete re-sync of all data.
|
|
148
161
|
*
|
|
149
|
-
* @param {string} sourceConnectionId
|
|
162
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection to sync (UUID)
|
|
150
163
|
* @param {AirweaveSDK.RunSourceConnectionsSourceConnectionIdRunPostRequest} request
|
|
151
164
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
152
165
|
*
|
|
166
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
167
|
+
* @throws {@link AirweaveSDK.ConflictError}
|
|
153
168
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
169
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
154
170
|
*
|
|
155
171
|
* @example
|
|
156
|
-
* await client.sourceConnections.run("
|
|
157
|
-
* force_full_sync:
|
|
172
|
+
* await client.sourceConnections.run("550e8400-e29b-41d4-a716-446655440000", {
|
|
173
|
+
* force_full_sync: false
|
|
158
174
|
* })
|
|
159
175
|
*/
|
|
160
176
|
run(sourceConnectionId: string, request?: AirweaveSDK.RunSourceConnectionsSourceConnectionIdRunPostRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob>;
|
|
161
177
|
private __run;
|
|
162
178
|
/**
|
|
163
|
-
*
|
|
179
|
+
* Retrieve the sync job history for a source connection.
|
|
180
|
+
*
|
|
181
|
+
* Returns a list of sync jobs ordered by creation time (newest first). Each job
|
|
182
|
+
* includes status, timing information, and entity counts.
|
|
164
183
|
*
|
|
165
|
-
*
|
|
184
|
+
* Job statuses:
|
|
185
|
+
* - **PENDING**: Job is queued and waiting to start
|
|
186
|
+
* - **RUNNING**: Sync is actively pulling and processing data
|
|
187
|
+
* - **COMPLETED**: Sync finished successfully
|
|
188
|
+
* - **FAILED**: Sync encountered an error
|
|
189
|
+
* - **CANCELLED**: Sync was manually cancelled
|
|
190
|
+
* - **CANCELLING**: Cancellation has been requested
|
|
191
|
+
*
|
|
192
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
166
193
|
* @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
|
|
167
194
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
195
|
*
|
|
196
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
169
197
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
198
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
170
199
|
*
|
|
171
200
|
* @example
|
|
172
|
-
* await client.sourceConnections.getSourceConnectionJobs("
|
|
173
|
-
* limit:
|
|
201
|
+
* await client.sourceConnections.getSourceConnectionJobs("550e8400-e29b-41d4-a716-446655440000", {
|
|
202
|
+
* limit: 100
|
|
174
203
|
* })
|
|
175
204
|
*/
|
|
176
205
|
getSourceConnectionJobs(sourceConnectionId: string, request?: AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob[]>;
|
|
177
206
|
private __getSourceConnectionJobs;
|
|
178
207
|
/**
|
|
179
|
-
*
|
|
208
|
+
* Request cancellation of a running sync job.
|
|
209
|
+
*
|
|
210
|
+
* The job will be marked as CANCELLING and the sync workflow will stop at the
|
|
211
|
+
* next checkpoint. Already-processed entities are retained.
|
|
180
212
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* the cancellation request.
|
|
213
|
+
* **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
|
|
214
|
+
* once the workflow has fully stopped.
|
|
184
215
|
*
|
|
185
|
-
* @param {string} sourceConnectionId
|
|
186
|
-
* @param {string} jobId
|
|
216
|
+
* @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
|
|
217
|
+
* @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
|
|
187
218
|
* @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
|
|
188
219
|
*
|
|
220
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
221
|
+
* @throws {@link AirweaveSDK.ConflictError}
|
|
189
222
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
223
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
190
224
|
*
|
|
191
225
|
* @example
|
|
192
|
-
* await client.sourceConnections.cancelJob("
|
|
226
|
+
* await client.sourceConnections.cancelJob("550e8400-e29b-41d4-a716-446655440000", "660e8400-e29b-41d4-a716-446655440001")
|
|
193
227
|
*/
|
|
194
228
|
cancelJob(sourceConnectionId: string, jobId: string, requestOptions?: SourceConnections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob>;
|
|
195
229
|
private __cancelJob;
|