@linqapp/sdk 0.27.0 → 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 +10 -2
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/capability.d.mts +4 -4
- package/resources/capability.d.ts +4 -4
- package/resources/capability.js +2 -2
- package/resources/capability.mjs +2 -2
- package/resources/chats/chats.d.mts +89 -1
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +89 -1
- 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 +83 -1
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +83 -1
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/messages.d.mts +83 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +83 -1
- 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 +166 -4
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +166 -4
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +2 -2
- package/src/resources/capability.ts +5 -5
- package/src/resources/chats/chats.ts +103 -1
- package/src/resources/chats/messages.ts +102 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/messages.ts +102 -1
- package/src/resources/phone-numbers.ts +54 -10
- package/src/resources/webhooks.ts +204 -4
- 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
|
@@ -60,7 +60,12 @@ export interface MessageEventV2 {
|
|
|
60
60
|
/**
|
|
61
61
|
* Message parts (text and/or media)
|
|
62
62
|
*/
|
|
63
|
-
parts: Array<
|
|
63
|
+
parts: Array<
|
|
64
|
+
| SchemasTextPartResponse
|
|
65
|
+
| SchemasMediaPartResponse
|
|
66
|
+
| MessageEventV2.SchemasLinkPartResponse
|
|
67
|
+
| MessageEventV2.SchemasIMessageAppPartResponse
|
|
68
|
+
>;
|
|
64
69
|
|
|
65
70
|
/**
|
|
66
71
|
* The handle that sent this message
|
|
@@ -193,6 +198,88 @@ export namespace MessageEventV2 {
|
|
|
193
198
|
value: string;
|
|
194
199
|
}
|
|
195
200
|
|
|
201
|
+
/**
|
|
202
|
+
* An iMessage app card part.
|
|
203
|
+
*/
|
|
204
|
+
export interface SchemasIMessageAppPartResponse {
|
|
205
|
+
/**
|
|
206
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
207
|
+
*/
|
|
208
|
+
app: SchemasIMessageAppPartResponse.App;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Visible layout of the card.
|
|
212
|
+
*/
|
|
213
|
+
layout: SchemasIMessageAppPartResponse.Layout;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Indicates this is an iMessage app card part.
|
|
217
|
+
*/
|
|
218
|
+
type: 'imessage_app';
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The URL delivered to the iMessage app on tap.
|
|
222
|
+
*/
|
|
223
|
+
url: string;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Fallback text for surfaces that cannot render the card.
|
|
227
|
+
*/
|
|
228
|
+
fallback_text?: string | null;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace SchemasIMessageAppPartResponse {
|
|
232
|
+
/**
|
|
233
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
234
|
+
*/
|
|
235
|
+
export interface App {
|
|
236
|
+
/**
|
|
237
|
+
* Bundle identifier of the Messages app extension.
|
|
238
|
+
*/
|
|
239
|
+
bundle_id: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Display name of the app.
|
|
243
|
+
*/
|
|
244
|
+
name: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* The app's 10-character team identifier.
|
|
248
|
+
*/
|
|
249
|
+
team_id: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The owning app's App Store id, when known.
|
|
253
|
+
*/
|
|
254
|
+
app_store_id?: number | null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Visible layout of the card.
|
|
259
|
+
*/
|
|
260
|
+
export interface Layout {
|
|
261
|
+
/**
|
|
262
|
+
* Primary label, top-left and bold.
|
|
263
|
+
*/
|
|
264
|
+
caption?: string | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Secondary label, below caption on the left.
|
|
268
|
+
*/
|
|
269
|
+
subcaption?: string | null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Label shown top-right.
|
|
273
|
+
*/
|
|
274
|
+
trailing_caption?: string | null;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Label shown below trailing_caption.
|
|
278
|
+
*/
|
|
279
|
+
trailing_subcaption?: string | null;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
196
283
|
/**
|
|
197
284
|
* Reference to the message this is replying to (for threaded replies)
|
|
198
285
|
*/
|
|
@@ -246,7 +333,12 @@ export interface MessagePayload {
|
|
|
246
333
|
/**
|
|
247
334
|
* Message content parts (text and/or media)
|
|
248
335
|
*/
|
|
249
|
-
parts?: Array<
|
|
336
|
+
parts?: Array<
|
|
337
|
+
| SchemasTextPartResponse
|
|
338
|
+
| SchemasMediaPartResponse
|
|
339
|
+
| MessagePayload.SchemasLinkPartResponse
|
|
340
|
+
| MessagePayload.SchemasIMessageAppPartResponse
|
|
341
|
+
>;
|
|
250
342
|
|
|
251
343
|
/**
|
|
252
344
|
* When the message was read
|
|
@@ -285,6 +377,88 @@ export namespace MessagePayload {
|
|
|
285
377
|
value: string;
|
|
286
378
|
}
|
|
287
379
|
|
|
380
|
+
/**
|
|
381
|
+
* An iMessage app card part.
|
|
382
|
+
*/
|
|
383
|
+
export interface SchemasIMessageAppPartResponse {
|
|
384
|
+
/**
|
|
385
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
386
|
+
*/
|
|
387
|
+
app: SchemasIMessageAppPartResponse.App;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Visible layout of the card.
|
|
391
|
+
*/
|
|
392
|
+
layout: SchemasIMessageAppPartResponse.Layout;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Indicates this is an iMessage app card part.
|
|
396
|
+
*/
|
|
397
|
+
type: 'imessage_app';
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The URL delivered to the iMessage app on tap.
|
|
401
|
+
*/
|
|
402
|
+
url: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Fallback text for surfaces that cannot render the card.
|
|
406
|
+
*/
|
|
407
|
+
fallback_text?: string | null;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export namespace SchemasIMessageAppPartResponse {
|
|
411
|
+
/**
|
|
412
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
413
|
+
*/
|
|
414
|
+
export interface App {
|
|
415
|
+
/**
|
|
416
|
+
* Bundle identifier of the Messages app extension.
|
|
417
|
+
*/
|
|
418
|
+
bundle_id: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Display name of the app.
|
|
422
|
+
*/
|
|
423
|
+
name: string;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The app's 10-character team identifier.
|
|
427
|
+
*/
|
|
428
|
+
team_id: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The owning app's App Store id, when known.
|
|
432
|
+
*/
|
|
433
|
+
app_store_id?: number | null;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Visible layout of the card.
|
|
438
|
+
*/
|
|
439
|
+
export interface Layout {
|
|
440
|
+
/**
|
|
441
|
+
* Primary label, top-left and bold.
|
|
442
|
+
*/
|
|
443
|
+
caption?: string | null;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Secondary label, below caption on the left.
|
|
447
|
+
*/
|
|
448
|
+
subcaption?: string | null;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Label shown top-right.
|
|
452
|
+
*/
|
|
453
|
+
trailing_caption?: string | null;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Label shown below trailing_caption.
|
|
457
|
+
*/
|
|
458
|
+
trailing_subcaption?: string | null;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
288
462
|
/**
|
|
289
463
|
* Reference to the message this is replying to
|
|
290
464
|
*/
|
|
@@ -1947,10 +2121,23 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
1947
2121
|
changed_at: string;
|
|
1948
2122
|
|
|
1949
2123
|
/**
|
|
1950
|
-
*
|
|
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.
|
|
1951
2133
|
*/
|
|
1952
2134
|
new_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
1953
2135
|
|
|
2136
|
+
/**
|
|
2137
|
+
* The new line reputation
|
|
2138
|
+
*/
|
|
2139
|
+
new_reputation: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2140
|
+
|
|
1954
2141
|
/**
|
|
1955
2142
|
* The new service status
|
|
1956
2143
|
*/
|
|
@@ -1962,10 +2149,23 @@ export namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
1962
2149
|
phone_number: string;
|
|
1963
2150
|
|
|
1964
2151
|
/**
|
|
1965
|
-
*
|
|
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.
|
|
1966
2161
|
*/
|
|
1967
2162
|
previous_health_status: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
1968
2163
|
|
|
2164
|
+
/**
|
|
2165
|
+
* The previous line reputation
|
|
2166
|
+
*/
|
|
2167
|
+
previous_reputation: 'HEALTHY' | 'AT_RISK' | 'CRITICAL';
|
|
2168
|
+
|
|
1969
2169
|
/**
|
|
1970
2170
|
* The previous service status
|
|
1971
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
|