@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/capability.d.mts +4 -4
  8. package/resources/capability.d.ts +4 -4
  9. package/resources/capability.js +2 -2
  10. package/resources/capability.mjs +2 -2
  11. package/resources/chats/chats.d.mts +89 -1
  12. package/resources/chats/chats.d.mts.map +1 -1
  13. package/resources/chats/chats.d.ts +89 -1
  14. package/resources/chats/chats.d.ts.map +1 -1
  15. package/resources/chats/chats.js.map +1 -1
  16. package/resources/chats/chats.mjs.map +1 -1
  17. package/resources/chats/messages.d.mts +83 -1
  18. package/resources/chats/messages.d.mts.map +1 -1
  19. package/resources/chats/messages.d.ts +83 -1
  20. package/resources/chats/messages.d.ts.map +1 -1
  21. package/resources/index.d.mts +1 -1
  22. package/resources/index.d.ts +1 -1
  23. package/resources/messages.d.mts +83 -1
  24. package/resources/messages.d.mts.map +1 -1
  25. package/resources/messages.d.ts +83 -1
  26. package/resources/messages.d.ts.map +1 -1
  27. package/resources/phone-numbers.d.mts +51 -10
  28. package/resources/phone-numbers.d.mts.map +1 -1
  29. package/resources/phone-numbers.d.ts +51 -10
  30. package/resources/phone-numbers.d.ts.map +1 -1
  31. package/resources/webhooks.d.mts +166 -4
  32. package/resources/webhooks.d.mts.map +1 -1
  33. package/resources/webhooks.d.ts +166 -4
  34. package/resources/webhooks.d.ts.map +1 -1
  35. package/src/client.ts +2 -2
  36. package/src/resources/capability.ts +5 -5
  37. package/src/resources/chats/chats.ts +103 -1
  38. package/src/resources/chats/messages.ts +102 -1
  39. package/src/resources/index.ts +1 -1
  40. package/src/resources/messages.ts +102 -1
  41. package/src/resources/phone-numbers.ts +54 -10
  42. package/src/resources/webhooks.ts +204 -4
  43. package/src/version.ts +1 -1
  44. package/version.d.mts +1 -1
  45. package/version.d.ts +1 -1
  46. package/version.js +1 -1
  47. 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<SchemasTextPartResponse | SchemasMediaPartResponse | MessageEventV2.SchemasLinkPartResponse>;
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<SchemasTextPartResponse | SchemasMediaPartResponse | MessagePayload.SchemasLinkPartResponse>;
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
- * The new line health status
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
- * The previous line health status
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.27.0'; // x-release-please-version
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.27.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.27.0";
1
+ export declare const VERSION = "0.28.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.27.0'; // x-release-please-version
4
+ exports.VERSION = '0.28.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.27.0'; // x-release-please-version
1
+ export const VERSION = '0.28.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map