@airweave/sdk 0.7.19 → 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
package/README.md
CHANGED
|
@@ -39,11 +39,7 @@ Instantiate and use the client with the following:
|
|
|
39
39
|
```typescript
|
|
40
40
|
import { AirweaveSDKClient } from "@airweave/sdk";
|
|
41
41
|
|
|
42
|
-
const client = new AirweaveSDKClient({
|
|
43
|
-
apiKey: "YOUR_API_KEY",
|
|
44
|
-
frameworkName: "YOUR_FRAMEWORK_NAME",
|
|
45
|
-
frameworkVersion: "YOUR_FRAMEWORK_VERSION",
|
|
46
|
-
});
|
|
42
|
+
const client = new AirweaveSDKClient({ apiKey: "YOUR_API_KEY" });
|
|
47
43
|
await client.collections.create({
|
|
48
44
|
name: "Finance Data",
|
|
49
45
|
readable_id: "finance-data-reports",
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -6,16 +6,13 @@ import * as core from "./core/index.js";
|
|
|
6
6
|
import { Sources } from "./api/resources/sources/client/Client.js";
|
|
7
7
|
import { Collections } from "./api/resources/collections/client/Client.js";
|
|
8
8
|
import { SourceConnections } from "./api/resources/sourceConnections/client/Client.js";
|
|
9
|
+
import { Webhooks } from "./api/resources/webhooks/client/Client.js";
|
|
9
10
|
export declare namespace AirweaveSDKClient {
|
|
10
11
|
interface Options {
|
|
11
12
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
12
13
|
/** Specify a custom URL to connect the client to. */
|
|
13
14
|
baseUrl?: core.Supplier<string>;
|
|
14
15
|
apiKey: core.Supplier<string>;
|
|
15
|
-
/** Override the X-Framework-Name header */
|
|
16
|
-
frameworkName?: core.Supplier<string | undefined>;
|
|
17
|
-
/** Override the X-Framework-Version header */
|
|
18
|
-
frameworkVersion?: core.Supplier<string | undefined>;
|
|
19
16
|
/** Additional headers to include in requests. */
|
|
20
17
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
21
18
|
}
|
|
@@ -26,10 +23,6 @@ export declare namespace AirweaveSDKClient {
|
|
|
26
23
|
maxRetries?: number;
|
|
27
24
|
/** A hook to abort the request. */
|
|
28
25
|
abortSignal?: AbortSignal;
|
|
29
|
-
/** Override the X-Framework-Name header */
|
|
30
|
-
frameworkName?: string | undefined;
|
|
31
|
-
/** Override the X-Framework-Version header */
|
|
32
|
-
frameworkVersion?: string | undefined;
|
|
33
26
|
/** Additional query string parameters to include in the request. */
|
|
34
27
|
queryParams?: Record<string, unknown>;
|
|
35
28
|
/** Additional headers to include in the request. */
|
|
@@ -41,8 +34,10 @@ export declare class AirweaveSDKClient {
|
|
|
41
34
|
protected _sources: Sources | undefined;
|
|
42
35
|
protected _collections: Collections | undefined;
|
|
43
36
|
protected _sourceConnections: SourceConnections | undefined;
|
|
37
|
+
protected _webhooks: Webhooks | undefined;
|
|
44
38
|
constructor(_options: AirweaveSDKClient.Options);
|
|
45
39
|
get sources(): Sources;
|
|
46
40
|
get collections(): Collections;
|
|
47
41
|
get sourceConnections(): SourceConnections;
|
|
42
|
+
get webhooks(): Webhooks;
|
|
48
43
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -42,15 +42,14 @@ const headers_js_1 = require("./core/headers.js");
|
|
|
42
42
|
const Client_js_1 = require("./api/resources/sources/client/Client.js");
|
|
43
43
|
const Client_js_2 = require("./api/resources/collections/client/Client.js");
|
|
44
44
|
const Client_js_3 = require("./api/resources/sourceConnections/client/Client.js");
|
|
45
|
+
const Client_js_4 = require("./api/resources/webhooks/client/Client.js");
|
|
45
46
|
class AirweaveSDKClient {
|
|
46
47
|
constructor(_options) {
|
|
47
48
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
48
|
-
"X-Framework-Name": _options === null || _options === void 0 ? void 0 : _options.frameworkName,
|
|
49
|
-
"X-Framework-Version": _options === null || _options === void 0 ? void 0 : _options.frameworkVersion,
|
|
50
49
|
"X-Fern-Language": "JavaScript",
|
|
51
50
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
52
|
-
"X-Fern-SDK-Version": "v0.
|
|
53
|
-
"User-Agent": "@airweave/sdk/v0.
|
|
51
|
+
"X-Fern-SDK-Version": "v0.8.76",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.8.76",
|
|
54
53
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
54
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
55
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -67,5 +66,9 @@ class AirweaveSDKClient {
|
|
|
67
66
|
var _a;
|
|
68
67
|
return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new Client_js_3.SourceConnections(this._options)));
|
|
69
68
|
}
|
|
69
|
+
get webhooks() {
|
|
70
|
+
var _a;
|
|
71
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_4.Webhooks(this._options)));
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as AirweaveSDK from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class ConflictError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.ConflictErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ConflictError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class ConflictError extends errors.AirweaveSDKError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "ConflictError",
|
|
45
|
+
statusCode: 409,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ConflictError = ConflictError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as AirweaveSDK from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class NotFoundError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.NotFoundErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.NotFoundError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class NotFoundError extends errors.AirweaveSDKError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "NotFoundError",
|
|
45
|
+
statusCode: 404,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.js";
|
|
5
|
+
import * as AirweaveSDK from "../index.js";
|
|
6
|
+
import * as core from "../../core/index.js";
|
|
7
|
+
export declare class TooManyRequestsError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.RateLimitErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TooManyRequestsError = void 0;
|
|
40
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
41
|
+
class TooManyRequestsError extends errors.AirweaveSDKError {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
|
+
super({
|
|
44
|
+
message: "TooManyRequestsError",
|
|
45
|
+
statusCode: 429,
|
|
46
|
+
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
48
|
+
});
|
|
49
|
+
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index.js";
|
|
5
|
-
import * as AirweaveSDK from "../index.js";
|
|
6
5
|
import * as core from "../../core/index.js";
|
|
7
6
|
export declare class UnprocessableEntityError extends errors.AirweaveSDKError {
|
|
8
|
-
constructor(body
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
9
8
|
}
|
|
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./UnprocessableEntityError.js"), exports);
|
|
18
|
+
__exportStar(require("./TooManyRequestsError.js"), exports);
|
|
19
|
+
__exportStar(require("./NotFoundError.js"), exports);
|
|
20
|
+
__exportStar(require("./ConflictError.js"), exports);
|
|
@@ -10,10 +10,6 @@ export declare namespace Collections {
|
|
|
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 Collections {
|
|
|
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,34 +33,46 @@ export declare class Collections {
|
|
|
41
33
|
protected readonly _options: Collections.Options;
|
|
42
34
|
constructor(_options: Collections.Options);
|
|
43
35
|
/**
|
|
44
|
-
*
|
|
36
|
+
* Retrieve all collections belonging to your organization.
|
|
45
37
|
*
|
|
46
|
-
* Collections are
|
|
38
|
+
* Collections are containers that group related data from one or more source
|
|
39
|
+
* connections, enabling unified search across multiple data sources.
|
|
40
|
+
*
|
|
41
|
+
* Results are sorted by creation date (newest first) and support pagination
|
|
42
|
+
* and text search filtering.
|
|
47
43
|
*
|
|
48
44
|
* @param {AirweaveSDK.ListCollectionsGetRequest} request
|
|
49
45
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
46
|
*
|
|
51
47
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
48
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
52
49
|
*
|
|
53
50
|
* @example
|
|
54
51
|
* await client.collections.list({
|
|
55
|
-
* skip:
|
|
56
|
-
* limit:
|
|
57
|
-
* search: "
|
|
52
|
+
* skip: 0,
|
|
53
|
+
* limit: 100,
|
|
54
|
+
* search: "customer"
|
|
58
55
|
* })
|
|
59
56
|
*/
|
|
60
57
|
list(request?: AirweaveSDK.ListCollectionsGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection[]>;
|
|
61
58
|
private __list;
|
|
62
59
|
/**
|
|
63
|
-
* Create a new collection.
|
|
60
|
+
* Create a new collection in your organization.
|
|
61
|
+
*
|
|
62
|
+
* Collections are containers for organizing and searching across data from multiple
|
|
63
|
+
* sources. After creation, add source connections to begin syncing data.
|
|
64
|
+
*
|
|
65
|
+
* The collection will be assigned a unique `readable_id` based on the name you provide,
|
|
66
|
+
* which is used in URLs and API calls. You can optionally configure:
|
|
64
67
|
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
68
|
+
* - **Sync schedule**: How frequently to automatically sync data from all sources
|
|
69
|
+
* - **Custom readable_id**: Provide your own identifier (must be unique and URL-safe)
|
|
67
70
|
*
|
|
68
71
|
* @param {AirweaveSDK.CollectionCreate} request
|
|
69
72
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
73
|
*
|
|
71
74
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
75
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
72
76
|
*
|
|
73
77
|
* @example
|
|
74
78
|
* await client.collections.create({
|
|
@@ -79,94 +83,155 @@ export declare class Collections {
|
|
|
79
83
|
create(request: AirweaveSDK.CollectionCreate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
80
84
|
private __create;
|
|
81
85
|
/**
|
|
82
|
-
* Retrieve a specific collection by its readable ID.
|
|
86
|
+
* Retrieve details of a specific collection by its readable ID.
|
|
87
|
+
*
|
|
88
|
+
* Returns the complete collection configuration including sync settings, status,
|
|
89
|
+
* and metadata. Use this to check the current state of a collection or to get
|
|
90
|
+
* configuration details before making updates.
|
|
83
91
|
*
|
|
84
92
|
* @param {string} readableId - The unique readable identifier of the collection (e.g., 'finance-data-ab123')
|
|
85
93
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
94
|
*
|
|
95
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
87
96
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
97
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
88
98
|
*
|
|
89
99
|
* @example
|
|
90
|
-
* await client.collections.get("
|
|
100
|
+
* await client.collections.get("customer-support-tickets-x7k9m")
|
|
91
101
|
*/
|
|
92
102
|
get(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
93
103
|
private __get;
|
|
94
104
|
/**
|
|
95
|
-
*
|
|
105
|
+
* Permanently delete a collection and all associated data.
|
|
106
|
+
*
|
|
107
|
+
* This operation:
|
|
108
|
+
* - Removes all synced data from the vector database
|
|
109
|
+
* - Deletes all source connections within the collection
|
|
110
|
+
* - Cancels any scheduled sync jobs
|
|
111
|
+
* - Cleans up all related resources
|
|
96
112
|
*
|
|
97
|
-
*
|
|
98
|
-
* from the destination systems. All source connections within this collection
|
|
99
|
-
* will also be deleted as part of the cleanup process. This action cannot be undone.
|
|
113
|
+
* **Warning**: This action cannot be undone. All data will be permanently deleted.
|
|
100
114
|
*
|
|
101
115
|
* @param {string} readableId - The unique readable identifier of the collection to delete
|
|
102
116
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
117
|
*
|
|
118
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
104
119
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
120
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
105
121
|
*
|
|
106
122
|
* @example
|
|
107
|
-
* await client.collections.delete("
|
|
123
|
+
* await client.collections.delete("customer-support-tickets-x7k9m")
|
|
108
124
|
*/
|
|
109
125
|
delete(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
110
126
|
private __delete;
|
|
111
127
|
/**
|
|
112
|
-
*
|
|
128
|
+
* Update an existing collection's properties.
|
|
129
|
+
*
|
|
130
|
+
* You can modify:
|
|
131
|
+
* - **Name**: The display name shown in the UI
|
|
132
|
+
* - **Sync configuration**: Schedule settings for automatic data synchronization
|
|
113
133
|
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
134
|
+
* Note that the `readable_id` cannot be changed after creation to maintain stable
|
|
135
|
+
* API endpoints and preserve existing integrations.
|
|
136
|
+
*
|
|
137
|
+
* @param {string} readableId - The unique readable identifier of the collection to update
|
|
138
|
+
* @param {AirweaveSDK.CollectionUpdate} request
|
|
139
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
142
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
143
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* await client.collections.update("customer-support-tickets-x7k9m", {
|
|
147
|
+
* name: "Updated Finance Data"
|
|
148
|
+
* })
|
|
149
|
+
*/
|
|
150
|
+
update(readableId: string, request?: AirweaveSDK.CollectionUpdate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
|
|
151
|
+
private __update;
|
|
152
|
+
/**
|
|
153
|
+
* Trigger data synchronization for all source connections in a collection.
|
|
154
|
+
*
|
|
155
|
+
* Starts sync jobs for every source connection in the collection, pulling the latest
|
|
156
|
+
* data from each connected source. Jobs run asynchronously in the background.
|
|
157
|
+
*
|
|
158
|
+
* Returns a list of sync jobs that were created. Use the source connection endpoints
|
|
159
|
+
* to monitor the progress and status of individual sync jobs.
|
|
118
160
|
*
|
|
119
161
|
* @param {string} readableId - The unique readable identifier of the collection to refresh
|
|
120
162
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
163
|
*
|
|
164
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
122
165
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
166
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
123
167
|
*
|
|
124
168
|
* @example
|
|
125
|
-
* await client.collections.refreshAllSourceConnections("
|
|
169
|
+
* await client.collections.refreshAllSourceConnections("customer-support-tickets-x7k9m")
|
|
126
170
|
*/
|
|
127
171
|
refreshAllSourceConnections(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob[]>;
|
|
128
172
|
private __refreshAllSourceConnections;
|
|
129
173
|
/**
|
|
130
|
-
*
|
|
174
|
+
* **DEPRECATED**: Use POST /collections/{readable_id}/search instead.
|
|
131
175
|
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
176
|
+
* This legacy GET endpoint provides basic search functionality via query parameters.
|
|
177
|
+
* Migrate to the POST endpoint for access to advanced features like:
|
|
178
|
+
* - Structured filters
|
|
179
|
+
* - Query expansion
|
|
180
|
+
* - Reranking
|
|
181
|
+
* - Streaming responses
|
|
134
182
|
*
|
|
135
183
|
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
136
184
|
* @param {AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest} request
|
|
137
185
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
186
|
*
|
|
187
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
139
188
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
189
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
140
190
|
*
|
|
141
191
|
* @example
|
|
142
|
-
* await client.collections.searchGetLegacy("
|
|
143
|
-
* query: "
|
|
192
|
+
* await client.collections.searchGetLegacy("customer-support-tickets-x7k9m", {
|
|
193
|
+
* query: "How do I reset my password?",
|
|
144
194
|
* response_type: "raw",
|
|
145
|
-
* limit:
|
|
146
|
-
* offset:
|
|
195
|
+
* limit: 10,
|
|
196
|
+
* offset: 0,
|
|
147
197
|
* recency_bias: 1.1
|
|
148
198
|
* })
|
|
149
199
|
*/
|
|
150
200
|
searchGetLegacy(readableId: string, request: AirweaveSDK.SearchGetLegacyCollectionsReadableIdSearchGetRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.LegacySearchResponse>;
|
|
151
201
|
private __searchGetLegacy;
|
|
152
202
|
/**
|
|
153
|
-
* Search your collection.
|
|
203
|
+
* Search your collection using semantic and hybrid search.
|
|
204
|
+
*
|
|
205
|
+
* This is the primary search endpoint providing powerful AI-powered search capabilities:
|
|
206
|
+
*
|
|
207
|
+
* **Search Strategies:**
|
|
208
|
+
* - **hybrid** (default): Combines neural (semantic) and keyword (BM25) matching
|
|
209
|
+
* - **neural**: Pure semantic search using embeddings
|
|
210
|
+
* - **keyword**: Traditional keyword-based BM25 search
|
|
154
211
|
*
|
|
155
|
-
*
|
|
212
|
+
* **Features:**
|
|
213
|
+
* - **Query expansion**: Generate query variations to improve recall
|
|
214
|
+
* - **Filter interpretation**: Extract structured filters from natural language
|
|
215
|
+
* - **Reranking**: LLM-based reranking for improved relevance
|
|
216
|
+
* - **Answer generation**: AI-generated answers based on search results
|
|
217
|
+
*
|
|
218
|
+
* **Note**: Accepts both new SearchRequest and legacy LegacySearchRequest formats
|
|
156
219
|
* for backwards compatibility.
|
|
157
220
|
*
|
|
158
|
-
* @param {string} readableId - The unique readable identifier of the collection
|
|
221
|
+
* @param {string} readableId - The unique readable identifier of the collection to search
|
|
159
222
|
* @param {AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest} request
|
|
160
223
|
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
224
|
*
|
|
225
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
162
226
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
227
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
163
228
|
*
|
|
164
229
|
* @example
|
|
165
|
-
* await client.collections.search("
|
|
166
|
-
* query: "
|
|
230
|
+
* await client.collections.search("customer-support-tickets-x7k9m", {
|
|
231
|
+
* query: "How do I reset my password?"
|
|
167
232
|
* })
|
|
168
233
|
*/
|
|
169
|
-
search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.
|
|
234
|
+
search(readableId: string, request: AirweaveSDK.SearchCollectionsReadableIdSearchPostRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SearchResponse>;
|
|
170
235
|
private __search;
|
|
171
236
|
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
172
237
|
}
|