@linqapp/sdk 0.27.1 → 0.28.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/chats/chats.d.mts +11 -22
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +11 -22
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/messages.d.mts +6 -21
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +6 -21
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/messages.d.mts +6 -21
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +6 -21
- package/resources/messages.d.ts.map +1 -1
- package/resources/phone-numbers.d.mts +51 -10
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +51 -10
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/webhooks.d.mts +26 -34
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +26 -34
- package/resources/webhooks.d.ts.map +1 -1
- package/src/resources/chats/chats.ts +12 -26
- package/src/resources/chats/messages.ts +6 -25
- package/src/resources/messages.ts +6 -25
- package/src/resources/phone-numbers.ts +54 -10
- package/src/resources/webhooks.ts +28 -42
- 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
|
@@ -204,8 +204,9 @@ export namespace SentMessage {
|
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
207
|
-
* `trailing_caption`,
|
|
208
|
-
*
|
|
207
|
+
* `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
|
|
208
|
+
* renders as an empty bubble. Any image on the card is drawn by the recipient's
|
|
209
|
+
* installed app extension; it cannot be supplied here.
|
|
209
210
|
*/
|
|
210
211
|
layout: IMessageAppPartResponse.Layout;
|
|
211
212
|
|
|
@@ -228,11 +229,6 @@ export namespace SentMessage {
|
|
|
228
229
|
* Fallback text for surfaces that cannot render the card.
|
|
229
230
|
*/
|
|
230
231
|
fallback_text?: string | null;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Client-supplied session identifier, echoed back when provided.
|
|
234
|
-
*/
|
|
235
|
-
session_id?: string | null;
|
|
236
232
|
}
|
|
237
233
|
|
|
238
234
|
export namespace IMessageAppPartResponse {
|
|
@@ -264,8 +260,9 @@ export namespace SentMessage {
|
|
|
264
260
|
|
|
265
261
|
/**
|
|
266
262
|
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
267
|
-
* `trailing_caption`,
|
|
268
|
-
*
|
|
263
|
+
* `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
|
|
264
|
+
* renders as an empty bubble. Any image on the card is drawn by the recipient's
|
|
265
|
+
* installed app extension; it cannot be supplied here.
|
|
269
266
|
*/
|
|
270
267
|
export interface Layout {
|
|
271
268
|
/**
|
|
@@ -273,22 +270,6 @@ export namespace SentMessage {
|
|
|
273
270
|
*/
|
|
274
271
|
caption?: string;
|
|
275
272
|
|
|
276
|
-
/**
|
|
277
|
-
* Overlay text shown below `image_title`. Requires `image_url`.
|
|
278
|
-
*/
|
|
279
|
-
image_subtitle?: string;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Overlay text shown above the image. Requires `image_url`.
|
|
283
|
-
*/
|
|
284
|
-
image_title?: string;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Optional HTTPS URL of a preview image. The server downloads it and embeds it in
|
|
288
|
-
* the card as JPEG (10MB max, same fetch rules as media parts).
|
|
289
|
-
*/
|
|
290
|
-
image_url?: string;
|
|
291
|
-
|
|
292
273
|
/**
|
|
293
274
|
* Secondary label, below `caption` on the left.
|
|
294
275
|
*/
|
|
@@ -255,8 +255,9 @@ export namespace Message {
|
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
258
|
-
* `trailing_caption`,
|
|
259
|
-
*
|
|
258
|
+
* `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
|
|
259
|
+
* renders as an empty bubble. Any image on the card is drawn by the recipient's
|
|
260
|
+
* installed app extension; it cannot be supplied here.
|
|
260
261
|
*/
|
|
261
262
|
layout: IMessageAppPartResponse.Layout;
|
|
262
263
|
|
|
@@ -279,11 +280,6 @@ export namespace Message {
|
|
|
279
280
|
* Fallback text for surfaces that cannot render the card.
|
|
280
281
|
*/
|
|
281
282
|
fallback_text?: string | null;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Client-supplied session identifier, echoed back when provided.
|
|
285
|
-
*/
|
|
286
|
-
session_id?: string | null;
|
|
287
283
|
}
|
|
288
284
|
|
|
289
285
|
export namespace IMessageAppPartResponse {
|
|
@@ -315,8 +311,9 @@ export namespace Message {
|
|
|
315
311
|
|
|
316
312
|
/**
|
|
317
313
|
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
318
|
-
* `trailing_caption`,
|
|
319
|
-
*
|
|
314
|
+
* `trailing_caption`, or `trailing_subcaption` must be set, otherwise the card
|
|
315
|
+
* renders as an empty bubble. Any image on the card is drawn by the recipient's
|
|
316
|
+
* installed app extension; it cannot be supplied here.
|
|
320
317
|
*/
|
|
321
318
|
export interface Layout {
|
|
322
319
|
/**
|
|
@@ -324,22 +321,6 @@ export namespace Message {
|
|
|
324
321
|
*/
|
|
325
322
|
caption?: string;
|
|
326
323
|
|
|
327
|
-
/**
|
|
328
|
-
* Overlay text shown below `image_title`. Requires `image_url`.
|
|
329
|
-
*/
|
|
330
|
-
image_subtitle?: string;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Overlay text shown above the image. Requires `image_url`.
|
|
334
|
-
*/
|
|
335
|
-
image_title?: string;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Optional HTTPS URL of a preview image. The server downloads it and embeds it in
|
|
339
|
-
* the card as JPEG (10MB max, same fetch rules as media parts).
|
|
340
|
-
*/
|
|
341
|
-
image_url?: string;
|
|
342
|
-
|
|
343
324
|
/**
|
|
344
325
|
* Secondary label, below `caption` on the left.
|
|
345
326
|
*/
|
|
@@ -39,12 +39,12 @@ export namespace PhoneNumberListResponse {
|
|
|
39
39
|
id: string;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* **[BETA]** Current
|
|
43
|
-
* `HEALTHY` and may shift based on aggregate engagement and
|
|
44
|
-
* across all conversations on the line.
|
|
42
|
+
* @deprecated **[BETA]** Current reputation for a phone line. Always present —
|
|
43
|
+
* lines start at `HEALTHY` and may shift based on aggregate engagement and
|
|
44
|
+
* delivery signals across all conversations on the line.
|
|
45
45
|
*
|
|
46
|
-
* Unlike chat health, line
|
|
47
|
-
* to individual recipients, not the whole line.
|
|
46
|
+
* Unlike chat health, line reputation does not include `opted_out` — opt-out
|
|
47
|
+
* applies to individual recipients, not the whole line.
|
|
48
48
|
*
|
|
49
49
|
* See the [Phone Health guide](/guides/phone-numbers/phone-health) for what each
|
|
50
50
|
* status means and how to react.
|
|
@@ -55,28 +55,72 @@ export namespace PhoneNumberListResponse {
|
|
|
55
55
|
* Phone number in E.164 format
|
|
56
56
|
*/
|
|
57
57
|
phone_number: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* **[BETA]** Current reputation for a phone line. Always present — lines start at
|
|
61
|
+
* `HEALTHY` and may shift based on aggregate engagement and delivery signals
|
|
62
|
+
* across all conversations on the line.
|
|
63
|
+
*
|
|
64
|
+
* Unlike chat health, line reputation does not include `opted_out` — opt-out
|
|
65
|
+
* applies to individual recipients, not the whole line.
|
|
66
|
+
*
|
|
67
|
+
* See the [Phone Health guide](/guides/phone-numbers/phone-health) for what each
|
|
68
|
+
* status means and how to react.
|
|
69
|
+
*/
|
|
70
|
+
reputation: PhoneNumber.Reputation;
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
export namespace PhoneNumber {
|
|
61
74
|
/**
|
|
62
|
-
* **[BETA]** Current
|
|
75
|
+
* @deprecated **[BETA]** Current reputation for a phone line. Always present —
|
|
76
|
+
* lines start at `HEALTHY` and may shift based on aggregate engagement and
|
|
77
|
+
* delivery signals across all conversations on the line.
|
|
78
|
+
*
|
|
79
|
+
* Unlike chat health, line reputation does not include `opted_out` — opt-out
|
|
80
|
+
* applies to individual recipients, not the whole line.
|
|
81
|
+
*
|
|
82
|
+
* See the [Phone Health guide](/guides/phone-numbers/phone-health) for what each
|
|
83
|
+
* status means and how to react.
|
|
84
|
+
*/
|
|
85
|
+
export interface HealthStatus {
|
|
86
|
+
/**
|
|
87
|
+
* Deep-link to the relevant section of the Phone Health guide for this status.
|
|
88
|
+
*/
|
|
89
|
+
doc_url: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Current reputation of this phone line as assessed by risk-service.
|
|
93
|
+
*
|
|
94
|
+
* - `HEALTHY` — No elevated risk detected.
|
|
95
|
+
* - `AT_RISK` — Elevated risk indicators present; consider reducing send volume or
|
|
96
|
+
* reviewing messaging patterns.
|
|
97
|
+
* - `CRITICAL` — High risk; further sending may result in line flagging or
|
|
98
|
+
* restriction.
|
|
99
|
+
*
|
|
100
|
+
* Defaults to `HEALTHY` for lines that have not yet been scored.
|
|
101
|
+
*/
|
|
102
|
+
status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* **[BETA]** Current reputation for a phone line. Always present — lines start at
|
|
63
107
|
* `HEALTHY` and may shift based on aggregate engagement and delivery signals
|
|
64
108
|
* across all conversations on the line.
|
|
65
109
|
*
|
|
66
|
-
* Unlike chat health, line
|
|
67
|
-
* to individual recipients, not the whole line.
|
|
110
|
+
* Unlike chat health, line reputation does not include `opted_out` — opt-out
|
|
111
|
+
* applies to individual recipients, not the whole line.
|
|
68
112
|
*
|
|
69
113
|
* See the [Phone Health guide](/guides/phone-numbers/phone-health) for what each
|
|
70
114
|
* status means and how to react.
|
|
71
115
|
*/
|
|
72
|
-
export interface
|
|
116
|
+
export interface Reputation {
|
|
73
117
|
/**
|
|
74
118
|
* Deep-link to the relevant section of the Phone Health guide for this status.
|
|
75
119
|
*/
|
|
76
120
|
doc_url: string;
|
|
77
121
|
|
|
78
122
|
/**
|
|
79
|
-
* Current
|
|
123
|
+
* Current reputation of this phone line as assessed by risk-service.
|
|
80
124
|
*
|
|
81
125
|
* - `HEALTHY` — No elevated risk detected.
|
|
82
126
|
* - `AT_RISK` — Elevated risk indicators present; consider reducing send volume or
|
|
@@ -226,11 +226,6 @@ export namespace MessageEventV2 {
|
|
|
226
226
|
* Fallback text for surfaces that cannot render the card.
|
|
227
227
|
*/
|
|
228
228
|
fallback_text?: string | null;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Client-supplied session identifier, echoed back when provided.
|
|
232
|
-
*/
|
|
233
|
-
session_id?: string | null;
|
|
234
229
|
}
|
|
235
230
|
|
|
236
231
|
export namespace SchemasIMessageAppPartResponse {
|
|
@@ -268,21 +263,6 @@ export namespace MessageEventV2 {
|
|
|
268
263
|
*/
|
|
269
264
|
caption?: string | null;
|
|
270
265
|
|
|
271
|
-
/**
|
|
272
|
-
* Overlay text shown below image_title.
|
|
273
|
-
*/
|
|
274
|
-
image_subtitle?: string | null;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Overlay text shown above the image.
|
|
278
|
-
*/
|
|
279
|
-
image_title?: string | null;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Presigned URL of the card preview image, when present.
|
|
283
|
-
*/
|
|
284
|
-
image_url?: string | null;
|
|
285
|
-
|
|
286
266
|
/**
|
|
287
267
|
* Secondary label, below caption on the left.
|
|
288
268
|
*/
|
|
@@ -425,11 +405,6 @@ export namespace MessagePayload {
|
|
|
425
405
|
* Fallback text for surfaces that cannot render the card.
|
|
426
406
|
*/
|
|
427
407
|
fallback_text?: string | null;
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Client-supplied session identifier, echoed back when provided.
|
|
431
|
-
*/
|
|
432
|
-
session_id?: string | null;
|
|
433
408
|
}
|
|
434
409
|
|
|
435
410
|
export namespace SchemasIMessageAppPartResponse {
|
|
@@ -467,21 +442,6 @@ export namespace MessagePayload {
|
|
|
467
442
|
*/
|
|
468
443
|
caption?: string | null;
|
|
469
444
|
|
|
470
|
-
/**
|
|
471
|
-
* Overlay text shown below image_title.
|
|
472
|
-
*/
|
|
473
|
-
image_subtitle?: string | null;
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Overlay text shown above the image.
|
|
477
|
-
*/
|
|
478
|
-
image_title?: string | null;
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Presigned URL of the card preview image, when present.
|
|
482
|
-
*/
|
|
483
|
-
image_url?: string | null;
|
|
484
|
-
|
|
485
445
|
/**
|
|
486
446
|
* Secondary label, below caption on the left.
|
|
487
447
|
*/
|
|
@@ -2161,10 +2121,23 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
2161
2121
|
changed_at: string;
|
|
2162
2122
|
|
|
2163
2123
|
/**
|
|
2164
|
-
*
|
|
2124
|
+
* @deprecated Current reputation of this phone line as assessed by risk-service.
|
|
2125
|
+
*
|
|
2126
|
+
* - `HEALTHY` — No elevated risk detected.
|
|
2127
|
+
* - `AT_RISK` — Elevated risk indicators present; consider reducing send volume or
|
|
2128
|
+
* reviewing messaging patterns.
|
|
2129
|
+
* - `CRITICAL` — High risk; further sending may result in line flagging or
|
|
2130
|
+
* restriction.
|
|
2131
|
+
*
|
|
2132
|
+
* Defaults to `HEALTHY` for lines that have not yet been scored.
|
|
2165
2133
|
*/
|
|
2166
2134
|
new_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2167
2135
|
|
|
2136
|
+
/**
|
|
2137
|
+
* The new line reputation
|
|
2138
|
+
*/
|
|
2139
|
+
new_reputation: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2140
|
+
|
|
2168
2141
|
/**
|
|
2169
2142
|
* The new service status
|
|
2170
2143
|
*/
|
|
@@ -2176,10 +2149,23 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
2176
2149
|
phone_number: string;
|
|
2177
2150
|
|
|
2178
2151
|
/**
|
|
2179
|
-
*
|
|
2152
|
+
* @deprecated Current reputation of this phone line as assessed by risk-service.
|
|
2153
|
+
*
|
|
2154
|
+
* - `HEALTHY` — No elevated risk detected.
|
|
2155
|
+
* - `AT_RISK` — Elevated risk indicators present; consider reducing send volume or
|
|
2156
|
+
* reviewing messaging patterns.
|
|
2157
|
+
* - `CRITICAL` — High risk; further sending may result in line flagging or
|
|
2158
|
+
* restriction.
|
|
2159
|
+
*
|
|
2160
|
+
* Defaults to `HEALTHY` for lines that have not yet been scored.
|
|
2180
2161
|
*/
|
|
2181
2162
|
previous_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2182
2163
|
|
|
2164
|
+
/**
|
|
2165
|
+
* The previous line reputation
|
|
2166
|
+
*/
|
|
2167
|
+
previous_reputation: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2168
|
+
|
|
2183
2169
|
/**
|
|
2184
2170
|
* The previous service status
|
|
2185
2171
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.28.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.28.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.28.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.28.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|