@linqapp/sdk 0.71.1 → 0.72.0
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/CHANGELOG.md +14 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js +4 -4
- package/client.js.map +1 -1
- package/client.mjs +4 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/webhook-events.d.mts +3 -3
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +3 -3
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-events.js +2 -2
- package/resources/webhook-events.mjs +2 -2
- package/resources/webhook-subscriptions.d.mts +4 -4
- package/resources/webhook-subscriptions.d.ts +4 -4
- package/resources/webhook-subscriptions.js +4 -4
- package/resources/webhook-subscriptions.mjs +4 -4
- package/resources/webhooks.d.mts +7412 -14
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +7412 -14
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +58 -4
- package/src/resources/index.ts +27 -0
- package/src/resources/webhook-events.ts +30 -3
- package/src/resources/webhook-subscriptions.ts +4 -4
- package/src/resources/webhooks.ts +11083 -13
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/index.ts
CHANGED
|
@@ -173,5 +173,32 @@ export {
|
|
|
173
173
|
type PaymentDeclinedWebhookEvent,
|
|
174
174
|
type PaymentExpiredWebhookEvent,
|
|
175
175
|
type PaymentSucceededWebhookEvent,
|
|
176
|
+
type ZeroDayRetentionUpdatedWebhookEvent,
|
|
177
|
+
type PhoneNumberForwardingUpdatedWebhookEvent,
|
|
178
|
+
type EnvironmentLineMovedWebhookEvent,
|
|
179
|
+
type ContactCardCreatedWebhookEvent,
|
|
180
|
+
type ContactCardUpdatedWebhookEvent,
|
|
181
|
+
type ContactCardDeletedWebhookEvent,
|
|
182
|
+
type APITokenCreatedWebhookEvent,
|
|
183
|
+
type APITokenRenamedWebhookEvent,
|
|
184
|
+
type APITokenExpiryScheduledWebhookEvent,
|
|
185
|
+
type APITokenExpiredWebhookEvent,
|
|
186
|
+
type APITokenActivatedWebhookEvent,
|
|
187
|
+
type APITokenDeletedWebhookEvent,
|
|
188
|
+
type EnvironmentCreatedWebhookEvent,
|
|
189
|
+
type EnvironmentRenamedWebhookEvent,
|
|
190
|
+
type EnvironmentDeletedWebhookEvent,
|
|
191
|
+
type WebhookSubscriptionCreatedWebhookEvent,
|
|
192
|
+
type WebhookSubscriptionDeletedWebhookEvent,
|
|
193
|
+
type WebhookSubscriptionTargetURLChangedWebhookEvent,
|
|
194
|
+
type WebhookSubscriptionEnabledWebhookEvent,
|
|
195
|
+
type WebhookSubscriptionDisabledWebhookEvent,
|
|
196
|
+
type WebhookSubscriptionEventsUpdatedWebhookEvent,
|
|
197
|
+
type WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent,
|
|
198
|
+
type WebhookSubscriptionRoutingHeadersSetWebhookEvent,
|
|
199
|
+
type WebhookSubscriptionRoutingHeadersClearedWebhookEvent,
|
|
200
|
+
type TeamMemberAddedWebhookEvent,
|
|
201
|
+
type TeamMemberSignedInWebhookEvent,
|
|
202
|
+
type TeamMemberSignedOutWebhookEvent,
|
|
176
203
|
type UnwrapWebhookEvent,
|
|
177
204
|
} from './webhooks';
|
|
@@ -11,8 +11,8 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
11
11
|
* Configure webhook endpoints to receive events such as messages sent/received,
|
|
12
12
|
* delivery status changes, reactions, typing indicators, and more.
|
|
13
13
|
*
|
|
14
|
-
* Failed deliveries (5xx, 429, network errors) are retried
|
|
15
|
-
*
|
|
14
|
+
* Failed deliveries (5xx, 429, network errors) are retried with exponential
|
|
15
|
+
* backoff for up to 30 minutes. Each event includes a unique ID for
|
|
16
16
|
* deduplication.
|
|
17
17
|
*
|
|
18
18
|
* ## Webhook Headers
|
|
@@ -198,7 +198,34 @@ export type WebhookEventType =
|
|
|
198
198
|
| 'payment.declined'
|
|
199
199
|
| 'payment.authorized'
|
|
200
200
|
| 'connection.created'
|
|
201
|
-
| 'connection.revoked'
|
|
201
|
+
| 'connection.revoked'
|
|
202
|
+
| 'zero_day_retention.updated'
|
|
203
|
+
| 'phone_number.forwarding_updated'
|
|
204
|
+
| 'environment.line_moved'
|
|
205
|
+
| 'contact_card.created'
|
|
206
|
+
| 'contact_card.updated'
|
|
207
|
+
| 'contact_card.deleted'
|
|
208
|
+
| 'api_token.created'
|
|
209
|
+
| 'api_token.renamed'
|
|
210
|
+
| 'api_token.expiry_scheduled'
|
|
211
|
+
| 'api_token.expired'
|
|
212
|
+
| 'api_token.activated'
|
|
213
|
+
| 'api_token.deleted'
|
|
214
|
+
| 'environment.created'
|
|
215
|
+
| 'environment.renamed'
|
|
216
|
+
| 'environment.deleted'
|
|
217
|
+
| 'webhook_subscription.created'
|
|
218
|
+
| 'webhook_subscription.deleted'
|
|
219
|
+
| 'webhook_subscription.target_url_changed'
|
|
220
|
+
| 'webhook_subscription.enabled'
|
|
221
|
+
| 'webhook_subscription.disabled'
|
|
222
|
+
| 'webhook_subscription.events.updated'
|
|
223
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
224
|
+
| 'webhook_subscription.routing_headers_set'
|
|
225
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
226
|
+
| 'team_member.added'
|
|
227
|
+
| 'team_member.signed_in'
|
|
228
|
+
| 'team_member.signed_out';
|
|
202
229
|
|
|
203
230
|
export interface WebhookEventListResponse {
|
|
204
231
|
/**
|
|
@@ -14,8 +14,8 @@ import { path } from '../internal/utils/path';
|
|
|
14
14
|
* Configure webhook endpoints to receive events such as messages sent/received,
|
|
15
15
|
* delivery status changes, reactions, typing indicators, and more.
|
|
16
16
|
*
|
|
17
|
-
* Failed deliveries (5xx, 429, network errors) are retried
|
|
18
|
-
*
|
|
17
|
+
* Failed deliveries (5xx, 429, network errors) are retried with exponential
|
|
18
|
+
* backoff for up to 30 minutes. Each event includes a unique ID for
|
|
19
19
|
* deduplication.
|
|
20
20
|
*
|
|
21
21
|
* ## Webhook Headers
|
|
@@ -163,8 +163,8 @@ export class WebhookSubscriptions extends APIResource {
|
|
|
163
163
|
* - See
|
|
164
164
|
* [Verifying Webhook Signatures](https://docs.linqapp.com/channel/imessage/guides/webhooks#verifying-webhook-signatures)
|
|
165
165
|
* for verification details
|
|
166
|
-
* - Failed deliveries (5xx, 429, network errors) are retried
|
|
167
|
-
*
|
|
166
|
+
* - Failed deliveries (5xx, 429, network errors) are retried with exponential
|
|
167
|
+
* backoff for up to 30 minutes
|
|
168
168
|
* - Client errors (4xx except 429) are not retried
|
|
169
169
|
*
|
|
170
170
|
* @example
|