@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
|
@@ -10,10 +10,6 @@ export declare namespace Sources {
|
|
|
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 Sources {
|
|
|
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,14 +33,22 @@ export declare class Sources {
|
|
|
41
33
|
protected readonly _options: Sources.Options;
|
|
42
34
|
constructor(_options: Sources.Options);
|
|
43
35
|
/**
|
|
44
|
-
*
|
|
36
|
+
* Retrieve all available data source connectors.
|
|
45
37
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
38
|
+
* Returns the complete catalog of source types that Airweave can connect to,
|
|
39
|
+
* including their authentication methods, configuration requirements, and
|
|
40
|
+
* supported features. Use this endpoint to discover which integrations are
|
|
41
|
+
* available for your organization.
|
|
42
|
+
*
|
|
43
|
+
* Each source includes:
|
|
44
|
+
* - **Authentication methods**: How to connect (OAuth, API key, etc.)
|
|
45
|
+
* - **Configuration schemas**: What settings are required or optional
|
|
46
|
+
* - **Supported auth providers**: Pre-configured OAuth providers available
|
|
48
47
|
*
|
|
49
48
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
49
|
*
|
|
51
50
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
51
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
54
|
* await client.sources.list()
|
|
@@ -56,15 +56,26 @@ export declare class Sources {
|
|
|
56
56
|
list(requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source[]>;
|
|
57
57
|
private __list;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Retrieve detailed information about a specific data source connector.
|
|
60
|
+
*
|
|
61
|
+
* Returns the complete configuration for a source type, including:
|
|
62
|
+
*
|
|
63
|
+
* - **Authentication fields**: Schema for credentials required to connect
|
|
64
|
+
* - **Configuration fields**: Schema for optional settings and customization
|
|
65
|
+
* - **Supported auth providers**: Pre-configured OAuth providers available for this source
|
|
66
|
+
*
|
|
67
|
+
* Use this endpoint before creating a source connection to understand what
|
|
68
|
+
* authentication and configuration values are required.
|
|
60
69
|
*
|
|
61
70
|
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
62
71
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
72
|
*
|
|
73
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
64
74
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
75
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
65
76
|
*
|
|
66
77
|
* @example
|
|
67
|
-
* await client.sources.get("
|
|
78
|
+
* await client.sources.get("github")
|
|
68
79
|
*/
|
|
69
80
|
get(shortName: string, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Source>;
|
|
70
81
|
private __get;
|
|
@@ -59,14 +59,22 @@ class Sources {
|
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Retrieve all available data source connectors.
|
|
63
63
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* Returns the complete catalog of source types that Airweave can connect to,
|
|
65
|
+
* including their authentication methods, configuration requirements, and
|
|
66
|
+
* supported features. Use this endpoint to discover which integrations are
|
|
67
|
+
* available for your organization.
|
|
68
|
+
*
|
|
69
|
+
* Each source includes:
|
|
70
|
+
* - **Authentication methods**: How to connect (OAuth, API key, etc.)
|
|
71
|
+
* - **Configuration schemas**: What settings are required or optional
|
|
72
|
+
* - **Supported auth providers**: Pre-configured OAuth providers available
|
|
66
73
|
*
|
|
67
74
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
75
|
*
|
|
69
76
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
77
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
70
78
|
*
|
|
71
79
|
* @example
|
|
72
80
|
* await client.sources.list()
|
|
@@ -76,10 +84,10 @@ class Sources {
|
|
|
76
84
|
}
|
|
77
85
|
__list(requestOptions) {
|
|
78
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c
|
|
80
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({
|
|
87
|
+
var _a, _b, _c;
|
|
88
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
81
89
|
const _response = yield core.fetcher({
|
|
82
|
-
url: core.url.join((
|
|
90
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, "sources"),
|
|
83
91
|
method: "GET",
|
|
84
92
|
headers: _headers,
|
|
85
93
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -94,6 +102,8 @@ class Sources {
|
|
|
94
102
|
switch (_response.error.statusCode) {
|
|
95
103
|
case 422:
|
|
96
104
|
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 429:
|
|
106
|
+
throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
97
107
|
default:
|
|
98
108
|
throw new errors.AirweaveSDKError({
|
|
99
109
|
statusCode: _response.error.statusCode,
|
|
@@ -120,25 +130,36 @@ class Sources {
|
|
|
120
130
|
});
|
|
121
131
|
}
|
|
122
132
|
/**
|
|
123
|
-
*
|
|
133
|
+
* Retrieve detailed information about a specific data source connector.
|
|
134
|
+
*
|
|
135
|
+
* Returns the complete configuration for a source type, including:
|
|
136
|
+
*
|
|
137
|
+
* - **Authentication fields**: Schema for credentials required to connect
|
|
138
|
+
* - **Configuration fields**: Schema for optional settings and customization
|
|
139
|
+
* - **Supported auth providers**: Pre-configured OAuth providers available for this source
|
|
140
|
+
*
|
|
141
|
+
* Use this endpoint before creating a source connection to understand what
|
|
142
|
+
* authentication and configuration values are required.
|
|
124
143
|
*
|
|
125
144
|
* @param {string} shortName - Technical identifier of the source type (e.g., 'github', 'stripe', 'slack')
|
|
126
145
|
* @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
146
|
*
|
|
147
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
128
148
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
149
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
129
150
|
*
|
|
130
151
|
* @example
|
|
131
|
-
* await client.sources.get("
|
|
152
|
+
* await client.sources.get("github")
|
|
132
153
|
*/
|
|
133
154
|
get(shortName, requestOptions) {
|
|
134
155
|
return core.HttpResponsePromise.fromPromise(this.__get(shortName, requestOptions));
|
|
135
156
|
}
|
|
136
157
|
__get(shortName, requestOptions) {
|
|
137
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
-
var _a, _b, _c
|
|
139
|
-
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
140
161
|
const _response = yield core.fetcher({
|
|
141
|
-
url: core.url.join((
|
|
162
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AirweaveSDKEnvironment.Production, `sources/${encodeURIComponent(shortName)}`),
|
|
142
163
|
method: "GET",
|
|
143
164
|
headers: _headers,
|
|
144
165
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -151,8 +172,12 @@ class Sources {
|
|
|
151
172
|
}
|
|
152
173
|
if (_response.error.reason === "status-code") {
|
|
153
174
|
switch (_response.error.statusCode) {
|
|
175
|
+
case 404:
|
|
176
|
+
throw new AirweaveSDK.NotFoundError(_response.error.body, _response.rawResponse);
|
|
154
177
|
case 422:
|
|
155
178
|
throw new AirweaveSDK.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
179
|
+
case 429:
|
|
180
|
+
throw new AirweaveSDK.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
156
181
|
default:
|
|
157
182
|
throw new errors.AirweaveSDKError({
|
|
158
183
|
statusCode: _response.error.statusCode,
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
|
+
import * as AirweaveSDK from "../../../index.js";
|
|
7
|
+
export declare namespace Webhooks {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* API endpoints for managing webhook subscriptions and messages. Subscribe to events like sync completions to receive real-time notifications at your webhook URL
|
|
31
|
+
*/
|
|
32
|
+
export declare class Webhooks {
|
|
33
|
+
protected readonly _options: Webhooks.Options;
|
|
34
|
+
constructor(_options: Webhooks.Options);
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve all webhook messages for your organization.
|
|
37
|
+
*
|
|
38
|
+
* Webhook messages represent payloads that were sent (or attempted to be sent)
|
|
39
|
+
* to your subscribed endpoints. Each message contains the event type, payload data,
|
|
40
|
+
* and delivery status information.
|
|
41
|
+
*
|
|
42
|
+
* Use the `event_types` query parameter to filter messages by specific event types,
|
|
43
|
+
* such as `sync.completed` or `sync.failed`.
|
|
44
|
+
*
|
|
45
|
+
* @param {AirweaveSDK.GetMessagesWebhooksMessagesGetRequest} request
|
|
46
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
49
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.webhooks.getMessages()
|
|
53
|
+
*/
|
|
54
|
+
getMessages(request?: AirweaveSDK.GetMessagesWebhooksMessagesGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookMessage[]>;
|
|
55
|
+
private __getMessages;
|
|
56
|
+
/**
|
|
57
|
+
* Retrieve a specific webhook message by its ID.
|
|
58
|
+
*
|
|
59
|
+
* Returns the full message details including the event type, payload data,
|
|
60
|
+
* timestamp, and delivery channel information. Use this to inspect the
|
|
61
|
+
* exact payload that was sent to your webhook endpoints.
|
|
62
|
+
*
|
|
63
|
+
* Use `include_attempts=true` to also retrieve delivery attempts for this message,
|
|
64
|
+
* which include HTTP response codes, response bodies, and timestamps for debugging
|
|
65
|
+
* delivery failures.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} messageId - The unique identifier of the message to retrieve (UUID).
|
|
68
|
+
* @param {AirweaveSDK.GetMessageWebhooksMessagesMessageIdGetRequest} request
|
|
69
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
72
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
73
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* await client.webhooks.getMessage("550e8400-e29b-41d4-a716-446655440000", {
|
|
77
|
+
* include_attempts: true
|
|
78
|
+
* })
|
|
79
|
+
*/
|
|
80
|
+
getMessage(messageId: string, request?: AirweaveSDK.GetMessageWebhooksMessagesMessageIdGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookMessageWithAttempts>;
|
|
81
|
+
private __getMessage;
|
|
82
|
+
/**
|
|
83
|
+
* List all webhook subscriptions for your organization.
|
|
84
|
+
*
|
|
85
|
+
* Returns all configured webhook endpoints, including their URLs, subscribed
|
|
86
|
+
* event types, and current status (enabled/disabled). Use this to audit
|
|
87
|
+
* your webhook configuration or find a specific subscription.
|
|
88
|
+
*
|
|
89
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
92
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.webhooks.getSubscriptions()
|
|
96
|
+
*/
|
|
97
|
+
getSubscriptions(requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription[]>;
|
|
98
|
+
private __getSubscriptions;
|
|
99
|
+
/**
|
|
100
|
+
* Create a new webhook subscription.
|
|
101
|
+
*
|
|
102
|
+
* Webhook subscriptions allow you to receive real-time notifications when events
|
|
103
|
+
* occur in Airweave. When you create a subscription, you specify:
|
|
104
|
+
*
|
|
105
|
+
* - **URL**: The HTTPS endpoint where events will be delivered
|
|
106
|
+
* - **Event Types**: Which events you want to receive (e.g., `sync.completed`, `sync.failed`)
|
|
107
|
+
* - **Secret** (optional): A custom signing secret for verifying webhook signatures
|
|
108
|
+
*
|
|
109
|
+
* After creation, Airweave will send HTTP POST requests to your URL whenever
|
|
110
|
+
* matching events occur. Each request includes a signature header for verification.
|
|
111
|
+
*
|
|
112
|
+
* @param {AirweaveSDK.CreateSubscriptionRequest} request
|
|
113
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
116
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* await client.webhooks.createSubscription({
|
|
120
|
+
* url: "https://api.mycompany.com/webhooks/airweave",
|
|
121
|
+
* event_types: ["sync.completed", "sync.failed"]
|
|
122
|
+
* })
|
|
123
|
+
*/
|
|
124
|
+
createSubscription(request: AirweaveSDK.CreateSubscriptionRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
|
|
125
|
+
private __createSubscription;
|
|
126
|
+
/**
|
|
127
|
+
* Retrieve a specific webhook subscription with its recent delivery attempts.
|
|
128
|
+
*
|
|
129
|
+
* Returns the subscription configuration along with a history of message delivery
|
|
130
|
+
* attempts. This is useful for debugging delivery issues or verifying that your
|
|
131
|
+
* endpoint is correctly receiving events.
|
|
132
|
+
*
|
|
133
|
+
* Use `include_secret=true` to also retrieve the signing secret for webhook
|
|
134
|
+
* signature verification. Keep this secret secure.
|
|
135
|
+
*
|
|
136
|
+
* @param {string} subscriptionId - The unique identifier of the subscription to retrieve (UUID).
|
|
137
|
+
* @param {AirweaveSDK.GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest} request
|
|
138
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
141
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
142
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.webhooks.getSubscription("550e8400-e29b-41d4-a716-446655440000", {
|
|
146
|
+
* include_secret: true
|
|
147
|
+
* })
|
|
148
|
+
*/
|
|
149
|
+
getSubscription(subscriptionId: string, request?: AirweaveSDK.GetSubscriptionWebhooksSubscriptionsSubscriptionIdGetRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
|
|
150
|
+
private __getSubscription;
|
|
151
|
+
/**
|
|
152
|
+
* Permanently delete a webhook subscription.
|
|
153
|
+
*
|
|
154
|
+
* Once deleted, Airweave will stop sending events to this endpoint immediately.
|
|
155
|
+
* This action cannot be undone. Any pending message deliveries will be cancelled.
|
|
156
|
+
*
|
|
157
|
+
* If you want to temporarily stop receiving events, consider disabling the
|
|
158
|
+
* subscription instead using the PATCH endpoint.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} subscriptionId - The unique identifier of the subscription to delete (UUID).
|
|
161
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
162
|
+
*
|
|
163
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
164
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
165
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* await client.webhooks.deleteSubscription("550e8400-e29b-41d4-a716-446655440000")
|
|
169
|
+
*/
|
|
170
|
+
deleteSubscription(subscriptionId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
|
|
171
|
+
private __deleteSubscription;
|
|
172
|
+
/**
|
|
173
|
+
* Update an existing webhook subscription.
|
|
174
|
+
*
|
|
175
|
+
* Use this endpoint to modify a subscription's configuration. You can:
|
|
176
|
+
*
|
|
177
|
+
* - **Change the URL**: Update where events are delivered
|
|
178
|
+
* - **Update event types**: Modify which events trigger notifications
|
|
179
|
+
* - **Enable/disable**: Temporarily pause delivery without deleting the subscription
|
|
180
|
+
* - **Recover messages**: When re-enabling, optionally recover missed messages
|
|
181
|
+
*
|
|
182
|
+
* Only include the fields you want to change. Omitted fields will retain their
|
|
183
|
+
* current values.
|
|
184
|
+
*
|
|
185
|
+
* When re-enabling a subscription (`disabled: false`), you can optionally provide
|
|
186
|
+
* `recover_since` to automatically retry all messages that were generated while
|
|
187
|
+
* the subscription was disabled.
|
|
188
|
+
*
|
|
189
|
+
* @param {string} subscriptionId - The unique identifier of the subscription to update (UUID).
|
|
190
|
+
* @param {AirweaveSDK.PatchSubscriptionRequest} request
|
|
191
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
192
|
+
*
|
|
193
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
194
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
195
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.webhooks.patchSubscription("550e8400-e29b-41d4-a716-446655440000")
|
|
199
|
+
*/
|
|
200
|
+
patchSubscription(subscriptionId: string, request?: AirweaveSDK.PatchSubscriptionRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.WebhookSubscription>;
|
|
201
|
+
private __patchSubscription;
|
|
202
|
+
/**
|
|
203
|
+
* Retry failed message deliveries for a webhook subscription.
|
|
204
|
+
*
|
|
205
|
+
* Triggers a recovery process that replays all failed messages within the
|
|
206
|
+
* specified time window. This is useful when:
|
|
207
|
+
*
|
|
208
|
+
* - Your endpoint was temporarily down and you want to catch up
|
|
209
|
+
* - You've fixed a bug in your webhook handler
|
|
210
|
+
* - You want to reprocess events after re-enabling a disabled subscription
|
|
211
|
+
*
|
|
212
|
+
* Messages are retried in chronological order. Successfully delivered messages
|
|
213
|
+
* are skipped; only failed or pending messages are retried.
|
|
214
|
+
*
|
|
215
|
+
* @param {string} subscriptionId - The unique identifier of the subscription to recover messages for (UUID).
|
|
216
|
+
* @param {AirweaveSDK.RecoverMessagesRequest} request
|
|
217
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
|
+
*
|
|
219
|
+
* @throws {@link AirweaveSDK.NotFoundError}
|
|
220
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
221
|
+
* @throws {@link AirweaveSDK.TooManyRequestsError}
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* await client.webhooks.recoverFailedMessages("550e8400-e29b-41d4-a716-446655440000", {
|
|
225
|
+
* since: "2024-03-14T00:00:00Z"
|
|
226
|
+
* })
|
|
227
|
+
*/
|
|
228
|
+
recoverFailedMessages(subscriptionId: string, request: AirweaveSDK.RecoverMessagesRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<AirweaveSDK.RecoveryTask>;
|
|
229
|
+
private __recoverFailedMessages;
|
|
230
|
+
protected _getCustomAuthorizationHeaders(): Promise<Record<string, string | undefined>>;
|
|
231
|
+
}
|