@airweave/sdk 0.7.20 → 0.8.77
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 +24 -0
- package/dist/cjs/api/types/EventType.js +19 -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 +21 -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/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 +22 -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 +19 -25
- package/dist/cjs/api/types/index.js +19 -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 +24 -0
- package/dist/esm/api/types/EventType.mjs +16 -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 +21 -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/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 +22 -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 +19 -25
- package/dist/esm/api/types/index.mjs +19 -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/SyncWithSourceConnection.js +0 -5
- 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/SyncWithSourceConnection.mjs +0 -4
- 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 → ValidationErrorDetail.js} +0 -0
- /package/dist/cjs/api/types/{Nested.js → ValidationErrorResponse.js} +0 -0
- /package/dist/cjs/api/types/{NestedCondition.js → WebhookMessage.js} +0 -0
- /package/dist/cjs/api/types/{PayloadField.js → WebhookMessageWithAttempts.js} +0 -0
- /package/dist/cjs/api/types/{Range.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 → ValidationErrorDetail.mjs} +0 -0
- /package/dist/esm/api/types/{Nested.mjs → ValidationErrorResponse.mjs} +0 -0
- /package/dist/esm/api/types/{NestedCondition.mjs → WebhookMessage.mjs} +0 -0
- /package/dist/esm/api/types/{PayloadField.mjs → WebhookMessageWithAttempts.mjs} +0 -0
- /package/dist/esm/api/types/{Range.mjs → WebhookSubscription.mjs} +0 -0
|
@@ -3,19 +3,34 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AirweaveSDK from "../index.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* A sync job representing a single synchronization run.
|
|
7
|
+
*
|
|
8
|
+
* Sync jobs track the execution of data synchronization from a source connection.
|
|
9
|
+
* Each job includes timing information, entity counts, and error details if applicable.
|
|
7
10
|
*/
|
|
8
11
|
export interface SourceConnectionJob {
|
|
12
|
+
/** Unique identifier of the sync job */
|
|
9
13
|
id: string;
|
|
14
|
+
/** ID of the source connection this job belongs to */
|
|
10
15
|
source_connection_id: string;
|
|
16
|
+
/** Current status: PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, or CANCELLING */
|
|
11
17
|
status: AirweaveSDK.SyncJobStatus;
|
|
18
|
+
/** When the job started execution (ISO 8601) */
|
|
12
19
|
started_at?: string;
|
|
20
|
+
/** When the job finished (ISO 8601). Null if still running. */
|
|
13
21
|
completed_at?: string;
|
|
22
|
+
/** Total execution time in seconds. Null if still running. */
|
|
14
23
|
duration_seconds?: number;
|
|
24
|
+
/** Number of new entities created during this sync */
|
|
15
25
|
entities_inserted?: number;
|
|
26
|
+
/** Number of existing entities updated during this sync */
|
|
16
27
|
entities_updated?: number;
|
|
28
|
+
/** Number of entities removed during this sync */
|
|
17
29
|
entities_deleted?: number;
|
|
30
|
+
/** Number of entities that failed to process */
|
|
18
31
|
entities_failed?: number;
|
|
32
|
+
/** Error message if the job failed */
|
|
19
33
|
error?: string;
|
|
34
|
+
/** Additional error context for debugging */
|
|
20
35
|
error_details?: Record<string, unknown>;
|
|
21
36
|
}
|
|
@@ -3,18 +3,29 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AirweaveSDK from "../index.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Lightweight source connection representation for list views.
|
|
7
|
+
*
|
|
8
|
+
* Contains essential fields for display and navigation. For full details
|
|
9
|
+
* including sync history and configuration, use the GET /{id} endpoint.
|
|
7
10
|
*/
|
|
8
11
|
export interface SourceConnectionListItem {
|
|
12
|
+
/** Unique identifier of the source connection */
|
|
9
13
|
id: string;
|
|
14
|
+
/** Display name of the connection */
|
|
10
15
|
name: string;
|
|
16
|
+
/** Source type identifier */
|
|
11
17
|
short_name: string;
|
|
18
|
+
/** Collection this connection belongs to */
|
|
12
19
|
readable_collection_id: string;
|
|
20
|
+
/** When the connection was created (ISO 8601) */
|
|
13
21
|
created_at: string;
|
|
22
|
+
/** When the connection was last modified (ISO 8601) */
|
|
14
23
|
modified_at: string;
|
|
24
|
+
/** Whether the connection has valid credentials */
|
|
15
25
|
is_authenticated: boolean;
|
|
26
|
+
/** Total number of entities synced from this connection */
|
|
16
27
|
entity_count?: number;
|
|
17
|
-
/** Whether this source uses federated search */
|
|
28
|
+
/** Whether this source uses federated (real-time) search instead of syncing */
|
|
18
29
|
federated_search?: boolean;
|
|
19
30
|
/** Get authentication method from database value. */
|
|
20
31
|
auth_method: AirweaveSDK.AuthenticationMethod;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Sync configuration with automatic env var loading.
|
|
7
|
+
*
|
|
8
|
+
* Env vars use double underscore as delimiter:
|
|
9
|
+
* SYNC_CONFIG__DESTINATIONS__SKIP_QDRANT=true
|
|
10
|
+
* SYNC_CONFIG__HANDLERS__ENABLE_VECTOR_HANDLERS=false
|
|
11
|
+
*/
|
|
12
|
+
export interface SyncConfig {
|
|
13
|
+
destinations?: AirweaveSDK.DestinationConfig;
|
|
14
|
+
handlers?: AirweaveSDK.HandlerConfig;
|
|
15
|
+
cursor?: AirweaveSDK.CursorConfig;
|
|
16
|
+
behavior?: AirweaveSDK.BehaviorConfig;
|
|
17
|
+
}
|
|
@@ -10,6 +10,7 @@ export interface SyncUpdate {
|
|
|
10
10
|
cron_schedule?: string;
|
|
11
11
|
next_scheduled_run?: string;
|
|
12
12
|
sync_metadata?: Record<string, unknown>;
|
|
13
|
+
sync_config?: AirweaveSDK.SyncConfig;
|
|
13
14
|
status?: AirweaveSDK.SyncStatus;
|
|
14
15
|
temporal_schedule_id?: string;
|
|
15
16
|
sync_type?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Details about a validation error for a specific field.
|
|
6
|
+
*/
|
|
7
|
+
export interface ValidationErrorDetail {
|
|
8
|
+
/** Location of the error (e.g., ['body', 'url']) */
|
|
9
|
+
loc: string[];
|
|
10
|
+
/** Human-readable error message */
|
|
11
|
+
msg: string;
|
|
12
|
+
/** Error type identifier */
|
|
13
|
+
type: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Response returned when request validation fails (HTTP 422).
|
|
7
|
+
*
|
|
8
|
+
* This occurs when the request body contains invalid data, such as
|
|
9
|
+
* malformed URLs, invalid event types, or missing required fields.
|
|
10
|
+
*/
|
|
11
|
+
export interface ValidationErrorResponse {
|
|
12
|
+
/** List of validation errors */
|
|
13
|
+
detail: AirweaveSDK.ValidationErrorDetail[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A webhook message that was sent (or attempted) to webhook subscribers.
|
|
6
|
+
*
|
|
7
|
+
* The payload contains the actual event data matching the webhook delivery format.
|
|
8
|
+
*/
|
|
9
|
+
export interface WebhookMessage {
|
|
10
|
+
/** Unique identifier for this message (UUID format) */
|
|
11
|
+
id: string;
|
|
12
|
+
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
13
|
+
event_type: string;
|
|
14
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
15
|
+
payload: Record<string, unknown>;
|
|
16
|
+
/** When this message was created (ISO 8601 format, UTC) */
|
|
17
|
+
timestamp: string;
|
|
18
|
+
/** Channels this message was sent to (typically matches the event type) */
|
|
19
|
+
channels?: string[];
|
|
20
|
+
/** Tags associated with this message for filtering */
|
|
21
|
+
tags?: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* A webhook message with delivery attempts.
|
|
7
|
+
*/
|
|
8
|
+
export interface WebhookMessageWithAttempts {
|
|
9
|
+
/** Unique identifier for this message (UUID format) */
|
|
10
|
+
id: string;
|
|
11
|
+
/** The type of event (e.g., 'sync.completed', 'sync.failed') */
|
|
12
|
+
event_type: string;
|
|
13
|
+
/** The event payload data, matching what is delivered to webhooks. Structure varies by event_type. */
|
|
14
|
+
payload: Record<string, unknown>;
|
|
15
|
+
/** When this message was created (ISO 8601 format, UTC) */
|
|
16
|
+
timestamp: string;
|
|
17
|
+
/** Channels this message was sent to (typically matches the event type) */
|
|
18
|
+
channels?: string[];
|
|
19
|
+
/** Tags associated with this message for filtering */
|
|
20
|
+
tags?: string[];
|
|
21
|
+
/** Delivery attempts for this message. */
|
|
22
|
+
delivery_attempts?: AirweaveSDK.DeliveryAttempt[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* A webhook subscription (endpoint) configuration.
|
|
7
|
+
*/
|
|
8
|
+
export interface WebhookSubscription {
|
|
9
|
+
/** Unique identifier for this subscription (UUID format) */
|
|
10
|
+
id: string;
|
|
11
|
+
/** The URL where webhook events are delivered */
|
|
12
|
+
url: string;
|
|
13
|
+
/** Event types this subscription is filtered to receive. See EventType enum for all available types. */
|
|
14
|
+
filter_types?: string[];
|
|
15
|
+
/** Whether this subscription is currently disabled. Disabled subscriptions do not receive event deliveries. */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Optional human-readable description of this subscription */
|
|
18
|
+
description?: string;
|
|
19
|
+
/** When this subscription was created (ISO 8601 format, UTC) */
|
|
20
|
+
created_at: string;
|
|
21
|
+
/** When this subscription was last updated (ISO 8601 format, UTC) */
|
|
22
|
+
updated_at: string;
|
|
23
|
+
/** Recent delivery attempts for this subscription. Only included when fetching a single subscription via GET /subscriptions/{id}. */
|
|
24
|
+
delivery_attempts?: AirweaveSDK.DeliveryAttempt[];
|
|
25
|
+
/** The signing secret for webhook signature verification. Only included when include_secret=true is passed to the API. Keep this secret secure. */
|
|
26
|
+
secret?: string;
|
|
27
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./ApiKey.js";
|
|
|
2
2
|
export * from "./ApiKeyCreate.js";
|
|
3
3
|
export * from "./ActionCheckRequest.js";
|
|
4
4
|
export * from "./ActionCheckResponse.js";
|
|
5
|
+
export * from "./AdminSearchDestination.js";
|
|
6
|
+
export * from "./AdminSyncInfo.js";
|
|
5
7
|
export * from "./AuthProvider.js";
|
|
6
8
|
export * from "./AuthProviderAuthentication.js";
|
|
7
9
|
export * from "./AuthProviderConnection.js";
|
|
@@ -9,6 +11,7 @@ export * from "./AuthProviderConnectionCreate.js";
|
|
|
9
11
|
export * from "./AuthProviderConnectionUpdate.js";
|
|
10
12
|
export * from "./AuthenticationDetails.js";
|
|
11
13
|
export * from "./AuthenticationMethod.js";
|
|
14
|
+
export * from "./BehaviorConfig.js";
|
|
12
15
|
export * from "./BillingPeriod.js";
|
|
13
16
|
export * from "./BillingPeriodStatus.js";
|
|
14
17
|
export * from "./BillingPeriodUsage.js";
|
|
@@ -16,19 +19,22 @@ export * from "./BillingPlan.js";
|
|
|
16
19
|
export * from "./BillingStatus.js";
|
|
17
20
|
export * from "./BillingTransition.js";
|
|
18
21
|
export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js";
|
|
22
|
+
export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js";
|
|
19
23
|
export * from "./CheckoutSessionRequest.js";
|
|
20
24
|
export * from "./CheckoutSessionResponse.js";
|
|
21
25
|
export * from "./Collection.js";
|
|
22
26
|
export * from "./CollectionStatus.js";
|
|
23
|
-
export * from "./CollectionUpdate.js";
|
|
24
27
|
export * from "./ConfigField.js";
|
|
25
28
|
export * from "./ConfigValues.js";
|
|
29
|
+
export * from "./ConflictErrorResponse.js";
|
|
26
30
|
export * from "./Connection.js";
|
|
27
31
|
export * from "./ConnectionStatus.js";
|
|
32
|
+
export * from "./CursorConfig.js";
|
|
28
33
|
export * from "./CustomerPortalRequest.js";
|
|
29
34
|
export * from "./CustomerPortalResponse.js";
|
|
30
|
-
export * from "./
|
|
35
|
+
export * from "./DeliveryAttempt.js";
|
|
31
36
|
export * from "./Destination.js";
|
|
37
|
+
export * from "./DestinationConfig.js";
|
|
32
38
|
export * from "./DestinationWithAuthenticationFields.js";
|
|
33
39
|
export * from "./DirectAuthentication.js";
|
|
34
40
|
export * from "./EmbeddingModel.js";
|
|
@@ -40,39 +46,22 @@ export * from "./EntityDefinitionCreate.js";
|
|
|
40
46
|
export * from "./EntitySummary.js";
|
|
41
47
|
export * from "./EntityType.js";
|
|
42
48
|
export * from "./EntityTypeStats.js";
|
|
49
|
+
export * from "./EventType.js";
|
|
43
50
|
export * from "./FeatureFlag.js";
|
|
44
|
-
export * from "./Range.js";
|
|
45
|
-
export * from "./FieldCondition.js";
|
|
46
51
|
export * from "./Fields.js";
|
|
47
|
-
export * from "./Filter.js";
|
|
48
|
-
export * from "./GeoBoundingBox.js";
|
|
49
|
-
export * from "./GeoLineString.js";
|
|
50
|
-
export * from "./GeoPoint.js";
|
|
51
|
-
export * from "./GeoPolygon.js";
|
|
52
|
-
export * from "./GeoRadius.js";
|
|
53
52
|
export * from "./HttpValidationError.js";
|
|
54
|
-
export * from "./
|
|
55
|
-
export * from "./HasVectorCondition.js";
|
|
53
|
+
export * from "./HandlerConfig.js";
|
|
56
54
|
export * from "./IntegrationCredentialInDb.js";
|
|
57
55
|
export * from "./IntegrationCredentialRawCreate.js";
|
|
58
56
|
export * from "./IntegrationType.js";
|
|
59
57
|
export * from "./InvitationCreate.js";
|
|
60
58
|
export * from "./InvitationResponse.js";
|
|
61
|
-
export * from "./IsEmptyCondition.js";
|
|
62
|
-
export * from "./IsNullCondition.js";
|
|
63
59
|
export * from "./LegacySearchRequest.js";
|
|
64
60
|
export * from "./LegacySearchResponse.js";
|
|
65
|
-
export * from "./MatchAny.js";
|
|
66
|
-
export * from "./MatchExcept.js";
|
|
67
|
-
export * from "./MatchPhrase.js";
|
|
68
|
-
export * from "./MatchText.js";
|
|
69
|
-
export * from "./MatchValue.js";
|
|
70
61
|
export * from "./MemberResponse.js";
|
|
71
62
|
export * from "./MessageResponse.js";
|
|
72
|
-
export * from "./MinShould.js";
|
|
73
63
|
export * from "./MinuteLevelScheduleConfig.js";
|
|
74
|
-
export * from "./
|
|
75
|
-
export * from "./NestedCondition.js";
|
|
64
|
+
export * from "./NotFoundErrorResponse.js";
|
|
76
65
|
export * from "./OAuthBrowserAuthentication.js";
|
|
77
66
|
export * from "./OAuthTokenAuthentication.js";
|
|
78
67
|
export * from "./OAuthType.js";
|
|
@@ -81,8 +70,9 @@ export * from "./OrganizationBilling.js";
|
|
|
81
70
|
export * from "./OrganizationCreate.js";
|
|
82
71
|
export * from "./OrganizationMetrics.js";
|
|
83
72
|
export * from "./OrganizationWithRole.js";
|
|
84
|
-
export * from "./PayloadField.js";
|
|
85
73
|
export * from "./QueryExpansionStrategy.js";
|
|
74
|
+
export * from "./RateLimitErrorResponse.js";
|
|
75
|
+
export * from "./RecoveryTask.js";
|
|
86
76
|
export * from "./ResponseType.js";
|
|
87
77
|
export * from "./RetrievalStrategy.js";
|
|
88
78
|
export * from "./S3ConfigRequest.js";
|
|
@@ -104,6 +94,7 @@ export * from "./SourceRateLimitResponse.js";
|
|
|
104
94
|
export * from "./SourceRateLimitUpdateRequest.js";
|
|
105
95
|
export * from "./SubscriptionInfo.js";
|
|
106
96
|
export * from "./Sync.js";
|
|
97
|
+
export * from "./SyncConfig.js";
|
|
107
98
|
export * from "./SyncCreate.js";
|
|
108
99
|
export * from "./SyncDetails.js";
|
|
109
100
|
export * from "./SyncJob.js";
|
|
@@ -111,7 +102,6 @@ export * from "./SyncJobDetails.js";
|
|
|
111
102
|
export * from "./SyncJobStatus.js";
|
|
112
103
|
export * from "./SyncStatus.js";
|
|
113
104
|
export * from "./SyncUpdate.js";
|
|
114
|
-
export * from "./SyncWithSourceConnection.js";
|
|
115
105
|
export * from "./Transformer.js";
|
|
116
106
|
export * from "./TransformerCreate.js";
|
|
117
107
|
export * from "./TransformerUpdate.js";
|
|
@@ -123,4 +113,8 @@ export * from "./User.js";
|
|
|
123
113
|
export * from "./UserCreate.js";
|
|
124
114
|
export * from "./UserOrganization.js";
|
|
125
115
|
export * from "./ValidationError.js";
|
|
126
|
-
export * from "./
|
|
116
|
+
export * from "./ValidationErrorDetail.js";
|
|
117
|
+
export * from "./ValidationErrorResponse.js";
|
|
118
|
+
export * from "./WebhookMessage.js";
|
|
119
|
+
export * from "./WebhookMessageWithAttempts.js";
|
|
120
|
+
export * from "./WebhookSubscription.js";
|
|
@@ -18,6 +18,8 @@ __exportStar(require("./ApiKey.js"), exports);
|
|
|
18
18
|
__exportStar(require("./ApiKeyCreate.js"), exports);
|
|
19
19
|
__exportStar(require("./ActionCheckRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./ActionCheckResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./AdminSearchDestination.js"), exports);
|
|
22
|
+
__exportStar(require("./AdminSyncInfo.js"), exports);
|
|
21
23
|
__exportStar(require("./AuthProvider.js"), exports);
|
|
22
24
|
__exportStar(require("./AuthProviderAuthentication.js"), exports);
|
|
23
25
|
__exportStar(require("./AuthProviderConnection.js"), exports);
|
|
@@ -25,6 +27,7 @@ __exportStar(require("./AuthProviderConnectionCreate.js"), exports);
|
|
|
25
27
|
__exportStar(require("./AuthProviderConnectionUpdate.js"), exports);
|
|
26
28
|
__exportStar(require("./AuthenticationDetails.js"), exports);
|
|
27
29
|
__exportStar(require("./AuthenticationMethod.js"), exports);
|
|
30
|
+
__exportStar(require("./BehaviorConfig.js"), exports);
|
|
28
31
|
__exportStar(require("./BillingPeriod.js"), exports);
|
|
29
32
|
__exportStar(require("./BillingPeriodStatus.js"), exports);
|
|
30
33
|
__exportStar(require("./BillingPeriodUsage.js"), exports);
|
|
@@ -32,19 +35,22 @@ __exportStar(require("./BillingPlan.js"), exports);
|
|
|
32
35
|
__exportStar(require("./BillingStatus.js"), exports);
|
|
33
36
|
__exportStar(require("./BillingTransition.js"), exports);
|
|
34
37
|
__exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js"), exports);
|
|
38
|
+
__exportStar(require("./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js"), exports);
|
|
35
39
|
__exportStar(require("./CheckoutSessionRequest.js"), exports);
|
|
36
40
|
__exportStar(require("./CheckoutSessionResponse.js"), exports);
|
|
37
41
|
__exportStar(require("./Collection.js"), exports);
|
|
38
42
|
__exportStar(require("./CollectionStatus.js"), exports);
|
|
39
|
-
__exportStar(require("./CollectionUpdate.js"), exports);
|
|
40
43
|
__exportStar(require("./ConfigField.js"), exports);
|
|
41
44
|
__exportStar(require("./ConfigValues.js"), exports);
|
|
45
|
+
__exportStar(require("./ConflictErrorResponse.js"), exports);
|
|
42
46
|
__exportStar(require("./Connection.js"), exports);
|
|
43
47
|
__exportStar(require("./ConnectionStatus.js"), exports);
|
|
48
|
+
__exportStar(require("./CursorConfig.js"), exports);
|
|
44
49
|
__exportStar(require("./CustomerPortalRequest.js"), exports);
|
|
45
50
|
__exportStar(require("./CustomerPortalResponse.js"), exports);
|
|
46
|
-
__exportStar(require("./
|
|
51
|
+
__exportStar(require("./DeliveryAttempt.js"), exports);
|
|
47
52
|
__exportStar(require("./Destination.js"), exports);
|
|
53
|
+
__exportStar(require("./DestinationConfig.js"), exports);
|
|
48
54
|
__exportStar(require("./DestinationWithAuthenticationFields.js"), exports);
|
|
49
55
|
__exportStar(require("./DirectAuthentication.js"), exports);
|
|
50
56
|
__exportStar(require("./EmbeddingModel.js"), exports);
|
|
@@ -56,39 +62,22 @@ __exportStar(require("./EntityDefinitionCreate.js"), exports);
|
|
|
56
62
|
__exportStar(require("./EntitySummary.js"), exports);
|
|
57
63
|
__exportStar(require("./EntityType.js"), exports);
|
|
58
64
|
__exportStar(require("./EntityTypeStats.js"), exports);
|
|
65
|
+
__exportStar(require("./EventType.js"), exports);
|
|
59
66
|
__exportStar(require("./FeatureFlag.js"), exports);
|
|
60
|
-
__exportStar(require("./Range.js"), exports);
|
|
61
|
-
__exportStar(require("./FieldCondition.js"), exports);
|
|
62
67
|
__exportStar(require("./Fields.js"), exports);
|
|
63
|
-
__exportStar(require("./Filter.js"), exports);
|
|
64
|
-
__exportStar(require("./GeoBoundingBox.js"), exports);
|
|
65
|
-
__exportStar(require("./GeoLineString.js"), exports);
|
|
66
|
-
__exportStar(require("./GeoPoint.js"), exports);
|
|
67
|
-
__exportStar(require("./GeoPolygon.js"), exports);
|
|
68
|
-
__exportStar(require("./GeoRadius.js"), exports);
|
|
69
68
|
__exportStar(require("./HttpValidationError.js"), exports);
|
|
70
|
-
__exportStar(require("./
|
|
71
|
-
__exportStar(require("./HasVectorCondition.js"), exports);
|
|
69
|
+
__exportStar(require("./HandlerConfig.js"), exports);
|
|
72
70
|
__exportStar(require("./IntegrationCredentialInDb.js"), exports);
|
|
73
71
|
__exportStar(require("./IntegrationCredentialRawCreate.js"), exports);
|
|
74
72
|
__exportStar(require("./IntegrationType.js"), exports);
|
|
75
73
|
__exportStar(require("./InvitationCreate.js"), exports);
|
|
76
74
|
__exportStar(require("./InvitationResponse.js"), exports);
|
|
77
|
-
__exportStar(require("./IsEmptyCondition.js"), exports);
|
|
78
|
-
__exportStar(require("./IsNullCondition.js"), exports);
|
|
79
75
|
__exportStar(require("./LegacySearchRequest.js"), exports);
|
|
80
76
|
__exportStar(require("./LegacySearchResponse.js"), exports);
|
|
81
|
-
__exportStar(require("./MatchAny.js"), exports);
|
|
82
|
-
__exportStar(require("./MatchExcept.js"), exports);
|
|
83
|
-
__exportStar(require("./MatchPhrase.js"), exports);
|
|
84
|
-
__exportStar(require("./MatchText.js"), exports);
|
|
85
|
-
__exportStar(require("./MatchValue.js"), exports);
|
|
86
77
|
__exportStar(require("./MemberResponse.js"), exports);
|
|
87
78
|
__exportStar(require("./MessageResponse.js"), exports);
|
|
88
|
-
__exportStar(require("./MinShould.js"), exports);
|
|
89
79
|
__exportStar(require("./MinuteLevelScheduleConfig.js"), exports);
|
|
90
|
-
__exportStar(require("./
|
|
91
|
-
__exportStar(require("./NestedCondition.js"), exports);
|
|
80
|
+
__exportStar(require("./NotFoundErrorResponse.js"), exports);
|
|
92
81
|
__exportStar(require("./OAuthBrowserAuthentication.js"), exports);
|
|
93
82
|
__exportStar(require("./OAuthTokenAuthentication.js"), exports);
|
|
94
83
|
__exportStar(require("./OAuthType.js"), exports);
|
|
@@ -97,8 +86,9 @@ __exportStar(require("./OrganizationBilling.js"), exports);
|
|
|
97
86
|
__exportStar(require("./OrganizationCreate.js"), exports);
|
|
98
87
|
__exportStar(require("./OrganizationMetrics.js"), exports);
|
|
99
88
|
__exportStar(require("./OrganizationWithRole.js"), exports);
|
|
100
|
-
__exportStar(require("./PayloadField.js"), exports);
|
|
101
89
|
__exportStar(require("./QueryExpansionStrategy.js"), exports);
|
|
90
|
+
__exportStar(require("./RateLimitErrorResponse.js"), exports);
|
|
91
|
+
__exportStar(require("./RecoveryTask.js"), exports);
|
|
102
92
|
__exportStar(require("./ResponseType.js"), exports);
|
|
103
93
|
__exportStar(require("./RetrievalStrategy.js"), exports);
|
|
104
94
|
__exportStar(require("./S3ConfigRequest.js"), exports);
|
|
@@ -120,6 +110,7 @@ __exportStar(require("./SourceRateLimitResponse.js"), exports);
|
|
|
120
110
|
__exportStar(require("./SourceRateLimitUpdateRequest.js"), exports);
|
|
121
111
|
__exportStar(require("./SubscriptionInfo.js"), exports);
|
|
122
112
|
__exportStar(require("./Sync.js"), exports);
|
|
113
|
+
__exportStar(require("./SyncConfig.js"), exports);
|
|
123
114
|
__exportStar(require("./SyncCreate.js"), exports);
|
|
124
115
|
__exportStar(require("./SyncDetails.js"), exports);
|
|
125
116
|
__exportStar(require("./SyncJob.js"), exports);
|
|
@@ -127,7 +118,6 @@ __exportStar(require("./SyncJobDetails.js"), exports);
|
|
|
127
118
|
__exportStar(require("./SyncJobStatus.js"), exports);
|
|
128
119
|
__exportStar(require("./SyncStatus.js"), exports);
|
|
129
120
|
__exportStar(require("./SyncUpdate.js"), exports);
|
|
130
|
-
__exportStar(require("./SyncWithSourceConnection.js"), exports);
|
|
131
121
|
__exportStar(require("./Transformer.js"), exports);
|
|
132
122
|
__exportStar(require("./TransformerCreate.js"), exports);
|
|
133
123
|
__exportStar(require("./TransformerUpdate.js"), exports);
|
|
@@ -139,4 +129,8 @@ __exportStar(require("./User.js"), exports);
|
|
|
139
129
|
__exportStar(require("./UserCreate.js"), exports);
|
|
140
130
|
__exportStar(require("./UserOrganization.js"), exports);
|
|
141
131
|
__exportStar(require("./ValidationError.js"), exports);
|
|
142
|
-
__exportStar(require("./
|
|
132
|
+
__exportStar(require("./ValidationErrorDetail.js"), exports);
|
|
133
|
+
__exportStar(require("./ValidationErrorResponse.js"), exports);
|
|
134
|
+
__exportStar(require("./WebhookMessage.js"), exports);
|
|
135
|
+
__exportStar(require("./WebhookMessageWithAttempts.js"), exports);
|
|
136
|
+
__exportStar(require("./WebhookSubscription.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.
|
|
1
|
+
export declare const SDK_VERSION = "v0.8.77";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -6,16 +6,13 @@ import * as core from "./core/index.mjs";
|
|
|
6
6
|
import { Sources } from "./api/resources/sources/client/Client.mjs";
|
|
7
7
|
import { Collections } from "./api/resources/collections/client/Client.mjs";
|
|
8
8
|
import { SourceConnections } from "./api/resources/sourceConnections/client/Client.mjs";
|
|
9
|
+
import { Webhooks } from "./api/resources/webhooks/client/Client.mjs";
|
|
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/esm/Client.mjs
CHANGED
|
@@ -6,15 +6,14 @@ import { mergeHeaders } from "./core/headers.mjs";
|
|
|
6
6
|
import { Sources } from "./api/resources/sources/client/Client.mjs";
|
|
7
7
|
import { Collections } from "./api/resources/collections/client/Client.mjs";
|
|
8
8
|
import { SourceConnections } from "./api/resources/sourceConnections/client/Client.mjs";
|
|
9
|
+
import { Webhooks } from "./api/resources/webhooks/client/Client.mjs";
|
|
9
10
|
export class AirweaveSDKClient {
|
|
10
11
|
constructor(_options) {
|
|
11
12
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
12
|
-
"X-Framework-Name": _options === null || _options === void 0 ? void 0 : _options.frameworkName,
|
|
13
|
-
"X-Framework-Version": _options === null || _options === void 0 ? void 0 : _options.frameworkVersion,
|
|
14
13
|
"X-Fern-Language": "JavaScript",
|
|
15
14
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
16
|
-
"X-Fern-SDK-Version": "v0.
|
|
17
|
-
"User-Agent": "@airweave/sdk/v0.
|
|
15
|
+
"X-Fern-SDK-Version": "v0.8.77",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.8.77",
|
|
18
17
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
19
18
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
20
19
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -31,4 +30,8 @@ export class AirweaveSDKClient {
|
|
|
31
30
|
var _a;
|
|
32
31
|
return ((_a = this._sourceConnections) !== null && _a !== void 0 ? _a : (this._sourceConnections = new SourceConnections(this._options)));
|
|
33
32
|
}
|
|
33
|
+
get webhooks() {
|
|
34
|
+
var _a;
|
|
35
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Webhooks(this._options)));
|
|
36
|
+
}
|
|
34
37
|
}
|
|
@@ -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.mjs";
|
|
5
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
export declare class ConflictError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.ConflictErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.mjs";
|
|
5
|
+
export class ConflictError extends errors.AirweaveSDKError {
|
|
6
|
+
constructor(body, rawResponse) {
|
|
7
|
+
super({
|
|
8
|
+
message: "ConflictError",
|
|
9
|
+
statusCode: 409,
|
|
10
|
+
body: body,
|
|
11
|
+
rawResponse: rawResponse,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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.mjs";
|
|
5
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
export declare class NotFoundError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.NotFoundErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.mjs";
|
|
5
|
+
export class NotFoundError extends errors.AirweaveSDKError {
|
|
6
|
+
constructor(body, rawResponse) {
|
|
7
|
+
super({
|
|
8
|
+
message: "NotFoundError",
|
|
9
|
+
statusCode: 404,
|
|
10
|
+
body: body,
|
|
11
|
+
rawResponse: rawResponse,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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.mjs";
|
|
5
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
6
|
+
import * as core from "../../core/index.mjs";
|
|
7
|
+
export declare class TooManyRequestsError extends errors.AirweaveSDKError {
|
|
8
|
+
constructor(body: AirweaveSDK.RateLimitErrorResponse, rawResponse?: core.RawResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as errors from "../../errors/index.mjs";
|
|
5
|
+
export class TooManyRequestsError extends errors.AirweaveSDKError {
|
|
6
|
+
constructor(body, rawResponse) {
|
|
7
|
+
super({
|
|
8
|
+
message: "TooManyRequestsError",
|
|
9
|
+
statusCode: 429,
|
|
10
|
+
body: body,
|
|
11
|
+
rawResponse: rawResponse,
|
|
12
|
+
});
|
|
13
|
+
Object.setPrototypeOf(this, TooManyRequestsError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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.mjs";
|
|
5
|
-
import * as AirweaveSDK from "../index.mjs";
|
|
6
5
|
import * as core from "../../core/index.mjs";
|
|
7
6
|
export declare class UnprocessableEntityError extends errors.AirweaveSDKError {
|
|
8
|
-
constructor(body
|
|
7
|
+
constructor(body?: unknown, rawResponse?: core.RawResponse);
|
|
9
8
|
}
|