@linqapp/sdk 0.8.1 → 0.10.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 (89) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +17 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +17 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/attachments.d.mts +11 -4
  12. package/resources/attachments.d.mts.map +1 -1
  13. package/resources/attachments.d.ts +11 -4
  14. package/resources/attachments.d.ts.map +1 -1
  15. package/resources/attachments.js +9 -3
  16. package/resources/attachments.js.map +1 -1
  17. package/resources/attachments.mjs +9 -3
  18. package/resources/attachments.mjs.map +1 -1
  19. package/resources/capability.d.mts +17 -14
  20. package/resources/capability.d.mts.map +1 -1
  21. package/resources/capability.d.ts +17 -14
  22. package/resources/capability.d.ts.map +1 -1
  23. package/resources/capability.js +8 -6
  24. package/resources/capability.js.map +1 -1
  25. package/resources/capability.mjs +8 -6
  26. package/resources/capability.mjs.map +1 -1
  27. package/resources/chats/chats.d.mts +45 -21
  28. package/resources/chats/chats.d.mts.map +1 -1
  29. package/resources/chats/chats.d.ts +45 -21
  30. package/resources/chats/chats.d.ts.map +1 -1
  31. package/resources/chats/chats.js +25 -0
  32. package/resources/chats/chats.js.map +1 -1
  33. package/resources/chats/chats.mjs +25 -0
  34. package/resources/chats/chats.mjs.map +1 -1
  35. package/resources/chats/index.d.mts +1 -1
  36. package/resources/chats/index.d.mts.map +1 -1
  37. package/resources/chats/index.d.ts +1 -1
  38. package/resources/chats/index.d.ts.map +1 -1
  39. package/resources/chats/index.js.map +1 -1
  40. package/resources/chats/index.mjs.map +1 -1
  41. package/resources/contact-card.d.mts +144 -0
  42. package/resources/contact-card.d.mts.map +1 -0
  43. package/resources/contact-card.d.ts +144 -0
  44. package/resources/contact-card.d.ts.map +1 -0
  45. package/resources/contact-card.js +73 -0
  46. package/resources/contact-card.js.map +1 -0
  47. package/resources/contact-card.mjs +69 -0
  48. package/resources/contact-card.mjs.map +1 -0
  49. package/resources/index.d.mts +4 -3
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +4 -3
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +3 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +1 -0
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/messages.d.mts +17 -1
  58. package/resources/messages.d.mts.map +1 -1
  59. package/resources/messages.d.ts +17 -1
  60. package/resources/messages.d.ts.map +1 -1
  61. package/resources/shared.d.mts +2 -19
  62. package/resources/shared.d.mts.map +1 -1
  63. package/resources/shared.d.ts +2 -19
  64. package/resources/shared.d.ts.map +1 -1
  65. package/resources/webhooks.d.mts +2 -19
  66. package/resources/webhooks.d.mts.map +1 -1
  67. package/resources/webhooks.d.ts +2 -19
  68. package/resources/webhooks.d.ts.map +1 -1
  69. package/resources/webhooks.js.map +1 -1
  70. package/resources/webhooks.mjs.map +1 -1
  71. package/src/client.ts +37 -4
  72. package/src/resources/attachments.ts +11 -4
  73. package/src/resources/capability.ts +18 -15
  74. package/src/resources/chats/chats.ts +54 -23
  75. package/src/resources/chats/index.ts +2 -0
  76. package/src/resources/contact-card.ts +185 -0
  77. package/src/resources/index.ts +13 -2
  78. package/src/resources/messages.ts +20 -0
  79. package/src/resources/shared.ts +3 -22
  80. package/src/resources/webhooks.ts +2 -22
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.mts.map +1 -1
  84. package/version.d.ts +1 -1
  85. package/version.d.ts.map +1 -1
  86. package/version.js +1 -1
  87. package/version.js.map +1 -1
  88. package/version.mjs +1 -1
  89. package/version.mjs.map +1 -1
@@ -97,13 +97,19 @@ export class Attachments extends APIResource {
97
97
  * ## Step 2: Upload the file
98
98
  *
99
99
  * Make a PUT request to the `upload_url` with the raw file bytes as the request
100
- * body.. Include the headers from `required_headers`. The request body is the
101
- * binary file content **not** JSON, **not** multipart form data.
100
+ * body. You **must** include all headers from `required_headers` exactly as
101
+ * returned the presigned URL is signed with these values and S3 will reject the
102
+ * upload if they don't match.
103
+ *
104
+ * The request body is the binary file content — **not** JSON, **not** multipart
105
+ * form data. The file must equal `size_bytes` bytes (the value you declared in
106
+ * step 1).
102
107
  *
103
108
  * ```bash
104
109
  * curl -X PUT "<upload_url from step 1>" \
105
110
  * -H "Content-Type: image/jpeg" \
106
- * --data-binary @filebytes
111
+ * -H "Content-Length: 1024000" \
112
+ * --data-binary @photo.jpg
107
113
  * ```
108
114
  *
109
115
  * ## Step 3: Send a message with the attachment
@@ -269,7 +275,8 @@ export interface AttachmentCreateResponse {
269
275
  http_method: 'PUT';
270
276
 
271
277
  /**
272
- * HTTP headers required for the upload request
278
+ * HTTP headers that must be set on the upload request. The presigned URL is signed
279
+ * with these exact values — S3 will reject the upload if they don't match.
273
280
  */
274
281
  required_headers: { [key: string]: string };
275
282
 
@@ -14,15 +14,16 @@ export class Capability extends APIResource {
14
14
  *
15
15
  * @example
16
16
  * ```ts
17
- * const response = await client.capability.checkiMessage({
18
- * address: '+15551234567',
19
- * });
17
+ * const handleCheckResponse =
18
+ * await client.capability.checkiMessage({
19
+ * address: '+15551234567',
20
+ * });
20
21
  * ```
21
22
  */
22
23
  checkiMessage(
23
24
  body: CapabilityCheckiMessageParams,
24
25
  options?: RequestOptions,
25
- ): APIPromise<CapabilityCheckiMessageResponse> {
26
+ ): APIPromise<HandleCheckResponse> {
26
27
  return this._client.post('/v3/capability/check_imessage', { body, ...options });
27
28
  }
28
29
 
@@ -31,29 +32,31 @@ export class Capability extends APIResource {
31
32
  *
32
33
  * @example
33
34
  * ```ts
34
- * const response = await client.capability.checkRCS({
35
- * address: '+15551234567',
36
- * });
35
+ * const handleCheckResponse =
36
+ * await client.capability.checkRCS({
37
+ * address: '+15551234567',
38
+ * });
37
39
  * ```
38
40
  */
39
- checkRCS(body: CapabilityCheckRCSParams, options?: RequestOptions): APIPromise<CapabilityCheckRCSResponse> {
41
+ checkRCS(body: CapabilityCheckRCSParams, options?: RequestOptions): APIPromise<HandleCheckResponse> {
40
42
  return this._client.post('/v3/capability/check_rcs', { body, ...options });
41
43
  }
42
44
  }
43
45
 
44
- export interface CapabilityCheckiMessageResponse {
46
+ export interface HandleCheck {
45
47
  /**
46
- * The recipient address that was checked
48
+ * The recipient phone number or email address to check
47
49
  */
48
50
  address: string;
49
51
 
50
52
  /**
51
- * Whether the recipient supports the checked messaging service
53
+ * Optional sender phone number. If omitted, an available phone from your pool is
54
+ * used automatically.
52
55
  */
53
- available: boolean;
56
+ from?: string;
54
57
  }
55
58
 
56
- export interface CapabilityCheckRCSResponse {
59
+ export interface HandleCheckResponse {
57
60
  /**
58
61
  * The recipient address that was checked
59
62
  */
@@ -93,8 +96,8 @@ export interface CapabilityCheckRCSParams {
93
96
 
94
97
  export declare namespace Capability {
95
98
  export {
96
- type CapabilityCheckiMessageResponse as CapabilityCheckiMessageResponse,
97
- type CapabilityCheckRCSResponse as CapabilityCheckRCSResponse,
99
+ type HandleCheck as HandleCheck,
100
+ type HandleCheckResponse as HandleCheckResponse,
98
101
  type CapabilityCheckiMessageParams as CapabilityCheckiMessageParams,
99
102
  type CapabilityCheckRCSParams as CapabilityCheckRCSParams,
100
103
  };
@@ -123,6 +123,32 @@ export class Chats extends APIResource {
123
123
  return this._client.put(path`/v3/chats/${chatID}`, { body, ...options });
124
124
  }
125
125
 
126
+ /**
127
+ * Removes your phone number from a group chat. Once you leave, you will no longer
128
+ * receive messages from the group and all interaction endpoints (send message,
129
+ * typing, mark read, etc.) will return 409.
130
+ *
131
+ * A `participant.removed` webhook will fire once the leave has been processed.
132
+ *
133
+ * **Supported**
134
+ *
135
+ * - iMessage group chats with 4 or more active participants (including yourself)
136
+ *
137
+ * **Not supported**
138
+ *
139
+ * - DM (1-on-1) chats — use the chat directly to continue the conversation
140
+ *
141
+ * @example
142
+ * ```ts
143
+ * const response = await client.chats.leaveChat(
144
+ * '550e8400-e29b-41d4-a716-446655440000',
145
+ * );
146
+ * ```
147
+ */
148
+ leaveChat(chatID: string, options?: RequestOptions): APIPromise<ChatLeaveChatResponse> {
149
+ return this._client.post(path`/v3/chats/${chatID}/leave`, options);
150
+ }
151
+
126
152
  /**
127
153
  * Retrieves a paginated list of chats for the authenticated partner.
128
154
  *
@@ -280,6 +306,22 @@ export interface Chat {
280
306
  service?: Shared.ServiceType | null;
281
307
  }
282
308
 
309
+ export interface LinkPart {
310
+ /**
311
+ * Indicates this is a rich link preview part
312
+ */
313
+ type: 'link';
314
+
315
+ /**
316
+ * URL to send with a rich link preview. The recipient will see an inline card with
317
+ * the page's title, description, and preview image (when available).
318
+ *
319
+ * A `link` part must be the **only** part in the message. To send a URL as plain
320
+ * text (no preview card), use a `text` part instead.
321
+ */
322
+ value: string;
323
+ }
324
+
283
325
  export interface MediaPart {
284
326
  /**
285
327
  * Indicates this is a media attachment part
@@ -364,7 +406,7 @@ export interface MessageContent {
364
406
  * sub-limit. For bulk media sends exceeding 40 files, pre-upload via
365
407
  * `POST /v3/attachments` and reference by `attachment_id` or `download_url`.
366
408
  */
367
- parts: Array<TextPart | MediaPart>;
409
+ parts: Array<TextPart | MediaPart | LinkPart>;
368
410
 
369
411
  /**
370
412
  * iMessage effect to apply to this message (screen or bubble effect)
@@ -420,28 +462,7 @@ export interface TextPart {
420
462
  * **Note:** Text decorations only render for iMessage recipients. For SMS/RCS,
421
463
  * text decorations are not applied.
422
464
  */
423
- text_decorations?: Array<TextPart.TextDecoration>;
424
- }
425
-
426
- export namespace TextPart {
427
- export interface TextDecoration {
428
- /**
429
- * Character range `[start, end)` in the `value` string where the decoration
430
- * applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
431
- * UTF-16 code units. Most characters count as 1; some emoji count as 2._
432
- */
433
- range: Array<number>;
434
-
435
- /**
436
- * Animated text effect to apply. Mutually exclusive with `style`.
437
- */
438
- animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
439
-
440
- /**
441
- * Text style to apply. Mutually exclusive with `animation`.
442
- */
443
- style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
444
- }
465
+ text_decorations?: Array<MessagesAPI.TextDecoration>;
445
466
  }
446
467
 
447
468
  /**
@@ -493,6 +514,14 @@ export interface ChatUpdateResponse {
493
514
  status?: string;
494
515
  }
495
516
 
517
+ export interface ChatLeaveChatResponse {
518
+ message?: string;
519
+
520
+ status?: string;
521
+
522
+ trace_id?: string;
523
+ }
524
+
496
525
  /**
497
526
  * Response for sending a voice memo to a chat
498
527
  */
@@ -664,11 +693,13 @@ Chats.Messages = Messages;
664
693
  export declare namespace Chats {
665
694
  export {
666
695
  type Chat as Chat,
696
+ type LinkPart as LinkPart,
667
697
  type MediaPart as MediaPart,
668
698
  type MessageContent as MessageContent,
669
699
  type TextPart as TextPart,
670
700
  type ChatCreateResponse as ChatCreateResponse,
671
701
  type ChatUpdateResponse as ChatUpdateResponse,
702
+ type ChatLeaveChatResponse as ChatLeaveChatResponse,
672
703
  type ChatSendVoicememoResponse as ChatSendVoicememoResponse,
673
704
  type ChatsListChatsPagination as ChatsListChatsPagination,
674
705
  type ChatCreateParams as ChatCreateParams,
@@ -3,11 +3,13 @@
3
3
  export {
4
4
  Chats,
5
5
  type Chat,
6
+ type LinkPart,
6
7
  type MediaPart,
7
8
  type MessageContent,
8
9
  type TextPart,
9
10
  type ChatCreateResponse,
10
11
  type ChatUpdateResponse,
12
+ type ChatLeaveChatResponse,
11
13
  type ChatSendVoicememoResponse,
12
14
  type ChatCreateParams,
13
15
  type ChatUpdateParams,
@@ -0,0 +1,185 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ /**
8
+ * Contact Card lets you set and share your contact information (name and profile photo) with chat participants via iMessage Name and Photo Sharing.
9
+ *
10
+ * Use `POST /v3/contact_card` to create or update a card for a phone number.
11
+ * Use `PATCH /v3/contact_card` to update an existing active card.
12
+ * Use `GET /v3/contact_card` to retrieve the active card(s) for your partner account.
13
+ */
14
+ export class ContactCard extends APIResource {
15
+ /**
16
+ * Creates a contact card for a phone number.
17
+ *
18
+ * The contact card is stored in an inactive state first. Once it's applied
19
+ * successfully, it is activated and `is_active` is returned as `true`. On failure,
20
+ * `is_active` is `false`.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const setContactCard = await client.contactCard.create({
25
+ * first_name: 'John',
26
+ * phone_number: '+15551234567',
27
+ * image_url:
28
+ * 'https://cdn.linqapp.com/contact-card/example.jpg',
29
+ * last_name: 'Doe',
30
+ * });
31
+ * ```
32
+ */
33
+ create(body: ContactCardCreateParams, options?: RequestOptions): APIPromise<SetContactCard> {
34
+ return this._client.post('/v3/contact_card', { body, ...options });
35
+ }
36
+
37
+ /**
38
+ * Returns the contact card for a specific phone number, or all contact cards for
39
+ * the authenticated partner if no `phone_number` is provided.
40
+ *
41
+ * @example
42
+ * ```ts
43
+ * const contactCard = await client.contactCard.retrieve();
44
+ * ```
45
+ */
46
+ retrieve(
47
+ query: ContactCardRetrieveParams | null | undefined = {},
48
+ options?: RequestOptions,
49
+ ): APIPromise<ContactCardRetrieveResponse> {
50
+ return this._client.get('/v3/contact_card', { query, ...options });
51
+ }
52
+
53
+ /**
54
+ * Partially updates an existing active contact card for a phone number.
55
+ *
56
+ * Fetches the current active contact card and merges the provided fields. Only
57
+ * fields present in the request body are updated; omitted fields retain their
58
+ * existing values.
59
+ *
60
+ * Requires an active contact card to exist for the phone number.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const setContactCard = await client.contactCard.update({
65
+ * phone_number: '+15551234567',
66
+ * first_name: 'John',
67
+ * image_url:
68
+ * 'https://cdn.linqapp.com/contact-card/example.jpg',
69
+ * last_name: 'Doe',
70
+ * });
71
+ * ```
72
+ */
73
+ update(params: ContactCardUpdateParams, options?: RequestOptions): APIPromise<SetContactCard> {
74
+ const { phone_number, ...body } = params;
75
+ return this._client.patch('/v3/contact_card', { query: { phone_number }, body, ...options });
76
+ }
77
+ }
78
+
79
+ export interface SetContactCard {
80
+ /**
81
+ * First name on the contact card
82
+ */
83
+ first_name: string;
84
+
85
+ /**
86
+ * Whether the contact card was successfully applied to the device
87
+ */
88
+ is_active: boolean;
89
+
90
+ /**
91
+ * The phone number the contact card is associated with
92
+ */
93
+ phone_number: string;
94
+
95
+ /**
96
+ * Image URL on the contact card
97
+ */
98
+ image_url?: string;
99
+
100
+ /**
101
+ * Last name on the contact card
102
+ */
103
+ last_name?: string;
104
+ }
105
+
106
+ export interface ContactCardRetrieveResponse {
107
+ contact_cards: Array<ContactCardRetrieveResponse.ContactCard>;
108
+ }
109
+
110
+ export namespace ContactCardRetrieveResponse {
111
+ export interface ContactCard {
112
+ first_name: string;
113
+
114
+ is_active: boolean;
115
+
116
+ phone_number: string;
117
+
118
+ image_url?: string;
119
+
120
+ last_name?: string;
121
+ }
122
+ }
123
+
124
+ export interface ContactCardCreateParams {
125
+ /**
126
+ * First name for the contact card. Required.
127
+ */
128
+ first_name: string;
129
+
130
+ /**
131
+ * E.164 phone number to associate the contact card with
132
+ */
133
+ phone_number: string;
134
+
135
+ /**
136
+ * URL of the profile image to rehost on the CDN. Only re-uploaded when a new value
137
+ * is provided.
138
+ */
139
+ image_url?: string;
140
+
141
+ /**
142
+ * Last name for the contact card. Optional.
143
+ */
144
+ last_name?: string;
145
+ }
146
+
147
+ export interface ContactCardRetrieveParams {
148
+ /**
149
+ * E.164 phone number to filter by. If omitted, all my cards for the partner are
150
+ * returned.
151
+ */
152
+ phone_number?: string;
153
+ }
154
+
155
+ export interface ContactCardUpdateParams {
156
+ /**
157
+ * Query param: E.164 phone number of the contact card to update
158
+ */
159
+ phone_number: string;
160
+
161
+ /**
162
+ * Body param: Updated first name. If omitted, the existing value is kept.
163
+ */
164
+ first_name?: string;
165
+
166
+ /**
167
+ * Body param: Updated profile image URL. If omitted, the existing image is kept.
168
+ */
169
+ image_url?: string;
170
+
171
+ /**
172
+ * Body param: Updated last name. If omitted, the existing value is kept.
173
+ */
174
+ last_name?: string;
175
+ }
176
+
177
+ export declare namespace ContactCard {
178
+ export {
179
+ type SetContactCard as SetContactCard,
180
+ type ContactCardRetrieveResponse as ContactCardRetrieveResponse,
181
+ type ContactCardCreateParams as ContactCardCreateParams,
182
+ type ContactCardRetrieveParams as ContactCardRetrieveParams,
183
+ type ContactCardUpdateParams as ContactCardUpdateParams,
184
+ };
185
+ }
@@ -10,19 +10,21 @@ export {
10
10
  } from './attachments';
11
11
  export {
12
12
  Capability,
13
- type CapabilityCheckiMessageResponse,
14
- type CapabilityCheckRCSResponse,
13
+ type HandleCheck,
14
+ type HandleCheckResponse,
15
15
  type CapabilityCheckiMessageParams,
16
16
  type CapabilityCheckRCSParams,
17
17
  } from './capability';
18
18
  export {
19
19
  Chats,
20
20
  type Chat,
21
+ type LinkPart,
21
22
  type MediaPart,
22
23
  type MessageContent,
23
24
  type TextPart,
24
25
  type ChatCreateResponse,
25
26
  type ChatUpdateResponse,
27
+ type ChatLeaveChatResponse,
26
28
  type ChatSendVoicememoResponse,
27
29
  type ChatCreateParams,
28
30
  type ChatUpdateParams,
@@ -30,11 +32,20 @@ export {
30
32
  type ChatSendVoicememoParams,
31
33
  type ChatsListChatsPagination,
32
34
  } from './chats/chats';
35
+ export {
36
+ ContactCard,
37
+ type SetContactCard,
38
+ type ContactCardRetrieveResponse,
39
+ type ContactCardCreateParams,
40
+ type ContactCardRetrieveParams,
41
+ type ContactCardUpdateParams,
42
+ } from './contact-card';
33
43
  export {
34
44
  Messages,
35
45
  type Message,
36
46
  type MessageEffect,
37
47
  type ReplyTo,
48
+ type TextDecoration,
38
49
  type MessageAddReactionResponse,
39
50
  type MessageUpdateParams,
40
51
  type MessageAddReactionParams,
@@ -255,6 +255,25 @@ export interface ReplyTo {
255
255
  part_index?: number;
256
256
  }
257
257
 
258
+ export interface TextDecoration {
259
+ /**
260
+ * Character range `[start, end)` in the `value` string where the decoration
261
+ * applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
262
+ * UTF-16 code units. Most characters count as 1; some emoji count as 2._
263
+ */
264
+ range: Array<number>;
265
+
266
+ /**
267
+ * Animated text effect to apply. Mutually exclusive with `style`.
268
+ */
269
+ animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
270
+
271
+ /**
272
+ * Text style to apply. Mutually exclusive with `animation`.
273
+ */
274
+ style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
275
+ }
276
+
258
277
  export interface MessageAddReactionResponse {
259
278
  message?: string;
260
279
 
@@ -313,6 +332,7 @@ export declare namespace Messages {
313
332
  type Message as Message,
314
333
  type MessageEffect as MessageEffect,
315
334
  type ReplyTo as ReplyTo,
335
+ type TextDecoration as TextDecoration,
316
336
  type MessageAddReactionResponse as MessageAddReactionResponse,
317
337
  type MessagesListMessagesPagination as MessagesListMessagesPagination,
318
338
  type MessageUpdateParams as MessageUpdateParams,
@@ -1,5 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ import * as MessagesAPI from './messages';
4
+
3
5
  export interface ChatHandle {
4
6
  /**
5
7
  * Unique identifier for this handle
@@ -181,26 +183,5 @@ export interface TextPartResponse {
181
183
  /**
182
184
  * Text decorations applied to character ranges in the value
183
185
  */
184
- text_decorations?: Array<TextPartResponse.TextDecoration> | null;
185
- }
186
-
187
- export namespace TextPartResponse {
188
- export interface TextDecoration {
189
- /**
190
- * Character range `[start, end)` in the `value` string where the decoration
191
- * applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
192
- * UTF-16 code units. Most characters count as 1; some emoji count as 2._
193
- */
194
- range: Array<number>;
195
-
196
- /**
197
- * Animated text effect to apply. Mutually exclusive with `style`.
198
- */
199
- animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
200
-
201
- /**
202
- * Text style to apply. Mutually exclusive with `animation`.
203
- */
204
- style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
205
- }
186
+ text_decorations?: Array<MessagesAPI.TextDecoration> | null;
206
187
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as WebhooksAPI from './webhooks';
5
+ import * as MessagesAPI from './messages';
5
6
  import * as Shared from './shared';
6
7
  import * as WebhookEventsAPI from './webhook-events';
7
8
 
@@ -376,28 +377,7 @@ export interface SchemasTextPartResponse {
376
377
  /**
377
378
  * Text decorations applied to character ranges in the value
378
379
  */
379
- text_decorations?: Array<SchemasTextPartResponse.TextDecoration> | null;
380
- }
381
-
382
- export namespace SchemasTextPartResponse {
383
- export interface TextDecoration {
384
- /**
385
- * Character range `[start, end)` in the `value` string where the decoration
386
- * applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
387
- * UTF-16 code units. Most characters count as 1; some emoji count as 2._
388
- */
389
- range: Array<number>;
390
-
391
- /**
392
- * Animated text effect to apply. Mutually exclusive with `style`.
393
- */
394
- animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
395
-
396
- /**
397
- * Text style to apply. Mutually exclusive with `animation`.
398
- */
399
- style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
400
- }
380
+ text_decorations?: Array<MessagesAPI.TextDecoration> | null;
401
381
  }
402
382
 
403
383
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.8.1'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.1";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.8.1";
1
+ export declare const VERSION = "0.10.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
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.8.1'; // x-release-please-version
4
+ exports.VERSION = '0.10.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.8.1'; // x-release-please-version
1
+ export const VERSION = '0.10.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}