@linqapp/sdk 0.69.2 → 0.70.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 +7 -0
- package/package.json +1 -1
- package/resources/webhook-subscriptions.d.mts +37 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +37 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/src/resources/webhook-subscriptions.ts +45 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.70.0](https://github.com/linq-team/linq-node/compare/v0.69.2...v0.70.0) (2026-09-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add delivery affinity routing headers to webhook subscriptions ([cb07cd9](https://github.com/linq-team/linq-node/commit/cb07cd9518699fb99f65a7bf798c30350e2bc186))
|
|
9
|
+
|
|
3
10
|
## [0.69.2](https://github.com/linq-team/linq-node/compare/v0.69.1...v0.69.2) (2026-09-18)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -261,6 +261,14 @@ export interface WebhookSubscription {
|
|
|
261
261
|
* phone numbers are delivered.
|
|
262
262
|
*/
|
|
263
263
|
phone_numbers?: Array<string> | null;
|
|
264
|
+
/**
|
|
265
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
266
|
+
*/
|
|
267
|
+
routing_id_header?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
270
|
+
*/
|
|
271
|
+
routing_key_header?: string | null;
|
|
264
272
|
}
|
|
265
273
|
/**
|
|
266
274
|
* Response returned when creating a webhook subscription. Includes the signing
|
|
@@ -301,6 +309,14 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
301
309
|
* phone numbers are delivered.
|
|
302
310
|
*/
|
|
303
311
|
phone_numbers?: Array<string> | null;
|
|
312
|
+
/**
|
|
313
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
314
|
+
*/
|
|
315
|
+
routing_id_header?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
318
|
+
*/
|
|
319
|
+
routing_key_header?: string | null;
|
|
304
320
|
}
|
|
305
321
|
export interface WebhookSubscriptionListResponse {
|
|
306
322
|
/**
|
|
@@ -324,6 +340,17 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
324
340
|
* E.164 format.
|
|
325
341
|
*/
|
|
326
342
|
phone_numbers?: Array<string>;
|
|
343
|
+
/**
|
|
344
|
+
* Name of the header carrying the chat id, used to hash-route before a token is
|
|
345
|
+
* learned. Defaults to `Linq-Chat-Id`. Ignored without `routing_key_header`.
|
|
346
|
+
*/
|
|
347
|
+
routing_id_header?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Enables delivery affinity. Name of the header carrying an opaque routing token:
|
|
350
|
+
* we send it on each webhook for a chat and read it back from your 2xx response,
|
|
351
|
+
* so your edge can route to the cluster holding that chat. Omit to disable.
|
|
352
|
+
*/
|
|
353
|
+
routing_key_header?: string;
|
|
327
354
|
}
|
|
328
355
|
export interface WebhookSubscriptionUpdateParams {
|
|
329
356
|
/**
|
|
@@ -337,6 +364,16 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
337
364
|
* E.164 format.
|
|
338
365
|
*/
|
|
339
366
|
phone_numbers?: Array<string> | null;
|
|
367
|
+
/**
|
|
368
|
+
* Updated header name for the chat id. Set to null or an empty string to fall back
|
|
369
|
+
* to `Linq-Chat-Id`.
|
|
370
|
+
*/
|
|
371
|
+
routing_id_header?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* Updated header name for the routing token. Set to null or an empty string to
|
|
374
|
+
* disable delivery affinity and drop the stored tokens.
|
|
375
|
+
*/
|
|
376
|
+
routing_key_header?: string | null;
|
|
340
377
|
/**
|
|
341
378
|
* Updated list of event types to subscribe to
|
|
342
379
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.mts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;IAIhD;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI3F;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;IAI3E;;;;;;;;;OASG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAA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A+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -261,6 +261,14 @@ export interface WebhookSubscription {
|
|
|
261
261
|
* phone numbers are delivered.
|
|
262
262
|
*/
|
|
263
263
|
phone_numbers?: Array<string> | null;
|
|
264
|
+
/**
|
|
265
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
266
|
+
*/
|
|
267
|
+
routing_id_header?: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
270
|
+
*/
|
|
271
|
+
routing_key_header?: string | null;
|
|
264
272
|
}
|
|
265
273
|
/**
|
|
266
274
|
* Response returned when creating a webhook subscription. Includes the signing
|
|
@@ -301,6 +309,14 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
301
309
|
* phone numbers are delivered.
|
|
302
310
|
*/
|
|
303
311
|
phone_numbers?: Array<string> | null;
|
|
312
|
+
/**
|
|
313
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
314
|
+
*/
|
|
315
|
+
routing_id_header?: string | null;
|
|
316
|
+
/**
|
|
317
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
318
|
+
*/
|
|
319
|
+
routing_key_header?: string | null;
|
|
304
320
|
}
|
|
305
321
|
export interface WebhookSubscriptionListResponse {
|
|
306
322
|
/**
|
|
@@ -324,6 +340,17 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
324
340
|
* E.164 format.
|
|
325
341
|
*/
|
|
326
342
|
phone_numbers?: Array<string>;
|
|
343
|
+
/**
|
|
344
|
+
* Name of the header carrying the chat id, used to hash-route before a token is
|
|
345
|
+
* learned. Defaults to `Linq-Chat-Id`. Ignored without `routing_key_header`.
|
|
346
|
+
*/
|
|
347
|
+
routing_id_header?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Enables delivery affinity. Name of the header carrying an opaque routing token:
|
|
350
|
+
* we send it on each webhook for a chat and read it back from your 2xx response,
|
|
351
|
+
* so your edge can route to the cluster holding that chat. Omit to disable.
|
|
352
|
+
*/
|
|
353
|
+
routing_key_header?: string;
|
|
327
354
|
}
|
|
328
355
|
export interface WebhookSubscriptionUpdateParams {
|
|
329
356
|
/**
|
|
@@ -337,6 +364,16 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
337
364
|
* E.164 format.
|
|
338
365
|
*/
|
|
339
366
|
phone_numbers?: Array<string> | null;
|
|
367
|
+
/**
|
|
368
|
+
* Updated header name for the chat id. Set to null or an empty string to fall back
|
|
369
|
+
* to `Linq-Chat-Id`.
|
|
370
|
+
*/
|
|
371
|
+
routing_id_header?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
* Updated header name for the routing token. Set to null or an empty string to
|
|
374
|
+
* disable delivery affinity and drop the stored tokens.
|
|
375
|
+
*/
|
|
376
|
+
routing_key_header?: string | null;
|
|
340
377
|
/**
|
|
341
378
|
* Updated list of event types to subscribe to
|
|
342
379
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-subscriptions.d.ts","sourceRoot":"","sources":["../src/resources/webhook-subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,gBAAgB,4BAAyB;AACrD,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,MAAM,CACJ,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAA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;;;OAKG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAE7D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -297,6 +297,16 @@ export interface WebhookSubscription {
|
|
|
297
297
|
* phone numbers are delivered.
|
|
298
298
|
*/
|
|
299
299
|
phone_numbers?: Array<string> | null;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
303
|
+
*/
|
|
304
|
+
routing_id_header?: string | null;
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
308
|
+
*/
|
|
309
|
+
routing_key_header?: string | null;
|
|
300
310
|
}
|
|
301
311
|
|
|
302
312
|
/**
|
|
@@ -345,6 +355,16 @@ export interface WebhookSubscriptionCreateResponse {
|
|
|
345
355
|
* phone numbers are delivered.
|
|
346
356
|
*/
|
|
347
357
|
phone_numbers?: Array<string> | null;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Header carrying the chat id. Defaults to `Linq-Chat-Id` when affinity is on.
|
|
361
|
+
*/
|
|
362
|
+
routing_id_header?: string | null;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Header carrying the routing token. Null disables delivery affinity.
|
|
366
|
+
*/
|
|
367
|
+
routing_key_header?: string | null;
|
|
348
368
|
}
|
|
349
369
|
|
|
350
370
|
export interface WebhookSubscriptionListResponse {
|
|
@@ -372,6 +392,19 @@ export interface WebhookSubscriptionCreateParams {
|
|
|
372
392
|
* E.164 format.
|
|
373
393
|
*/
|
|
374
394
|
phone_numbers?: Array<string>;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Name of the header carrying the chat id, used to hash-route before a token is
|
|
398
|
+
* learned. Defaults to `Linq-Chat-Id`. Ignored without `routing_key_header`.
|
|
399
|
+
*/
|
|
400
|
+
routing_id_header?: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Enables delivery affinity. Name of the header carrying an opaque routing token:
|
|
404
|
+
* we send it on each webhook for a chat and read it back from your 2xx response,
|
|
405
|
+
* so your edge can route to the cluster holding that chat. Omit to disable.
|
|
406
|
+
*/
|
|
407
|
+
routing_key_header?: string;
|
|
375
408
|
}
|
|
376
409
|
|
|
377
410
|
export interface WebhookSubscriptionUpdateParams {
|
|
@@ -388,6 +421,18 @@ export interface WebhookSubscriptionUpdateParams {
|
|
|
388
421
|
*/
|
|
389
422
|
phone_numbers?: Array<string> | null;
|
|
390
423
|
|
|
424
|
+
/**
|
|
425
|
+
* Updated header name for the chat id. Set to null or an empty string to fall back
|
|
426
|
+
* to `Linq-Chat-Id`.
|
|
427
|
+
*/
|
|
428
|
+
routing_id_header?: string | null;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Updated header name for the routing token. Set to null or an empty string to
|
|
432
|
+
* disable delivery affinity and drop the stored tokens.
|
|
433
|
+
*/
|
|
434
|
+
routing_key_header?: string | null;
|
|
435
|
+
|
|
391
436
|
/**
|
|
392
437
|
* Updated list of event types to subscribe to
|
|
393
438
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.70.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.70.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.70.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.70.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|