@linqapp/sdk 0.1.3 → 0.1.4

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 (59) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/client.d.mts +3 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/tslib.js +6 -6
  9. package/package.json +1 -1
  10. package/resources/chats/chats.d.mts +7 -11
  11. package/resources/chats/chats.d.mts.map +1 -1
  12. package/resources/chats/chats.d.ts +7 -11
  13. package/resources/chats/chats.d.ts.map +1 -1
  14. package/resources/chats/chats.js.map +1 -1
  15. package/resources/chats/chats.mjs.map +1 -1
  16. package/resources/chats/index.d.mts +1 -1
  17. package/resources/chats/index.d.mts.map +1 -1
  18. package/resources/chats/index.d.ts +1 -1
  19. package/resources/chats/index.d.ts.map +1 -1
  20. package/resources/chats/index.js.map +1 -1
  21. package/resources/chats/index.mjs.map +1 -1
  22. package/resources/chats/messages.d.mts +3 -2
  23. package/resources/chats/messages.d.mts.map +1 -1
  24. package/resources/chats/messages.d.ts +3 -2
  25. package/resources/chats/messages.d.ts.map +1 -1
  26. package/resources/chats/messages.js.map +1 -1
  27. package/resources/chats/messages.mjs.map +1 -1
  28. package/resources/index.d.mts +2 -1
  29. package/resources/index.d.mts.map +1 -1
  30. package/resources/index.d.ts +2 -1
  31. package/resources/index.d.ts.map +1 -1
  32. package/resources/index.js +2 -0
  33. package/resources/index.js.map +1 -1
  34. package/resources/index.mjs +1 -0
  35. package/resources/index.mjs.map +1 -1
  36. package/resources/messages.d.mts +44 -8
  37. package/resources/messages.d.mts.map +1 -1
  38. package/resources/messages.d.ts +44 -8
  39. package/resources/messages.d.ts.map +1 -1
  40. package/resources/shared.d.mts +5 -0
  41. package/resources/shared.d.mts.map +1 -0
  42. package/resources/shared.d.ts +5 -0
  43. package/resources/shared.d.ts.map +1 -0
  44. package/resources/shared.js +4 -0
  45. package/resources/shared.js.map +1 -0
  46. package/resources/shared.mjs +3 -0
  47. package/resources/shared.mjs.map +1 -0
  48. package/src/client.ts +2 -2
  49. package/src/resources/chats/chats.ts +6 -12
  50. package/src/resources/chats/index.ts +0 -1
  51. package/src/resources/chats/messages.ts +3 -2
  52. package/src/resources/index.ts +1 -1
  53. package/src/resources/messages.ts +58 -8
  54. package/src/resources/shared.ts +6 -0
  55. package/src/version.ts +1 -1
  56. package/version.d.mts +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
  59. package/version.mjs +1 -1
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as ChatsAPI from './chats/chats';
4
+ import * as Shared from './shared';
5
5
  import { APIPromise } from '../core/api-promise';
6
6
  import { buildHeaders } from '../internal/headers';
7
7
  import { RequestOptions } from '../internal/request-options';
@@ -119,7 +119,7 @@ export interface ChatHandle {
119
119
  /**
120
120
  * Messaging service type
121
121
  */
122
- service: ChatsAPI.ServiceType;
122
+ service: Shared.ServiceType;
123
123
 
124
124
  /**
125
125
  * Whether this handle belongs to the sender (your phone number)
@@ -242,7 +242,7 @@ export interface Message {
242
242
  /**
243
243
  * Messaging service type
244
244
  */
245
- preferred_service?: ChatsAPI.ServiceType | null;
245
+ preferred_service?: Shared.ServiceType | null;
246
246
 
247
247
  /**
248
248
  * When the message was read
@@ -262,7 +262,7 @@ export interface Message {
262
262
  /**
263
263
  * Messaging service type
264
264
  */
265
- service?: ChatsAPI.ServiceType | null;
265
+ service?: Shared.ServiceType | null;
266
266
  }
267
267
 
268
268
  /**
@@ -295,7 +295,8 @@ export interface Reaction {
295
295
  /**
296
296
  * Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh,
297
297
  * emphasize, question. Custom emoji reactions have type "custom" with the actual
298
- * emoji in the custom_emoji field.
298
+ * emoji in the custom_emoji field. Sticker reactions have type "sticker" with
299
+ * sticker attachment details in the sticker field.
299
300
  */
300
301
  type: ReactionType;
301
302
 
@@ -303,14 +304,62 @@ export interface Reaction {
303
304
  * Custom emoji if type is "custom", null otherwise
304
305
  */
305
306
  custom_emoji?: string | null;
307
+
308
+ /**
309
+ * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
310
+ * reactions.
311
+ */
312
+ sticker?: Reaction.Sticker | null;
313
+ }
314
+
315
+ export namespace Reaction {
316
+ /**
317
+ * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
318
+ * reactions.
319
+ */
320
+ export interface Sticker {
321
+ /**
322
+ * Filename of the sticker
323
+ */
324
+ file_name?: string;
325
+
326
+ /**
327
+ * Sticker image height in pixels
328
+ */
329
+ height?: number;
330
+
331
+ /**
332
+ * MIME type of the sticker image
333
+ */
334
+ mime_type?: string;
335
+
336
+ /**
337
+ * Presigned URL for downloading the sticker image (expires in 1 hour).
338
+ */
339
+ url?: string;
340
+
341
+ /**
342
+ * Sticker image width in pixels
343
+ */
344
+ width?: number;
345
+ }
306
346
  }
307
347
 
308
348
  /**
309
349
  * Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh,
310
350
  * emphasize, question. Custom emoji reactions have type "custom" with the actual
311
- * emoji in the custom_emoji field.
351
+ * emoji in the custom_emoji field. Sticker reactions have type "sticker" with
352
+ * sticker attachment details in the sticker field.
312
353
  */
313
- export type ReactionType = 'love' | 'like' | 'dislike' | 'laugh' | 'emphasize' | 'question' | 'custom';
354
+ export type ReactionType =
355
+ | 'love'
356
+ | 'like'
357
+ | 'dislike'
358
+ | 'laugh'
359
+ | 'emphasize'
360
+ | 'question'
361
+ | 'custom'
362
+ | 'sticker';
314
363
 
315
364
  /**
316
365
  * Indicates this message is a threaded reply to another message
@@ -380,7 +429,8 @@ export interface MessageAddReactionParams {
380
429
  /**
381
430
  * Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh,
382
431
  * emphasize, question. Custom emoji reactions have type "custom" with the actual
383
- * emoji in the custom_emoji field.
432
+ * emoji in the custom_emoji field. Sticker reactions have type "sticker" with
433
+ * sticker attachment details in the sticker field.
384
434
  */
385
435
  type: ReactionType;
386
436
 
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ /**
4
+ * Messaging service type
5
+ */
6
+ export type ServiceType = 'iMessage' | 'SMS' | 'RCS';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.3'; // x-release-please-version
1
+ export const VERSION = '0.1.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.3";
1
+ export declare const VERSION = "0.1.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.3";
1
+ export declare const VERSION = "0.1.4";
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.1.3'; // x-release-please-version
4
+ exports.VERSION = '0.1.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.3'; // x-release-please-version
1
+ export const VERSION = '0.1.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map