@linqapp/sdk 0.9.0 → 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.
- package/CHANGELOG.md +8 -0
- package/client.d.mts +17 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -6
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/capability.d.mts +17 -14
- package/resources/capability.d.mts.map +1 -1
- package/resources/capability.d.ts +17 -14
- package/resources/capability.d.ts.map +1 -1
- package/resources/capability.js +8 -6
- package/resources/capability.js.map +1 -1
- package/resources/capability.mjs +8 -6
- package/resources/capability.mjs.map +1 -1
- package/resources/chats/chats.d.mts +45 -37
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +45 -37
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js +25 -0
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs +25 -0
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/index.d.mts +1 -1
- package/resources/chats/index.d.mts.map +1 -1
- package/resources/chats/index.d.ts +1 -1
- package/resources/chats/index.d.ts.map +1 -1
- package/resources/chats/index.js.map +1 -1
- package/resources/chats/index.mjs.map +1 -1
- package/resources/contact-card.d.mts +144 -0
- package/resources/contact-card.d.mts.map +1 -0
- package/resources/contact-card.d.ts +144 -0
- package/resources/contact-card.d.ts.map +1 -0
- package/resources/contact-card.js +73 -0
- package/resources/contact-card.js.map +1 -0
- package/resources/contact-card.mjs +69 -0
- package/resources/contact-card.mjs.map +1 -0
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +17 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +17 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/shared.d.mts +2 -19
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +2 -19
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +2 -19
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +2 -19
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +37 -4
- package/src/resources/capability.ts +18 -15
- package/src/resources/chats/chats.ts +54 -41
- package/src/resources/chats/index.ts +2 -0
- package/src/resources/contact-card.ts +185 -0
- package/src/resources/index.ts +13 -2
- package/src/resources/messages.ts +20 -0
- package/src/resources/shared.ts +3 -22
- package/src/resources/webhooks.ts +2 -22
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -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)
|
|
@@ -388,24 +430,6 @@ export interface MessageContent {
|
|
|
388
430
|
reply_to?: MessagesAPI.ReplyTo;
|
|
389
431
|
}
|
|
390
432
|
|
|
391
|
-
export namespace MessageContent {
|
|
392
|
-
export interface LinkPart {
|
|
393
|
-
/**
|
|
394
|
-
* Indicates this is a rich link preview part
|
|
395
|
-
*/
|
|
396
|
-
type: 'link';
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* URL to send with a rich link preview. The recipient will see an inline card with
|
|
400
|
-
* the page's title, description, and preview image (when available).
|
|
401
|
-
*
|
|
402
|
-
* A `link` part must be the **only** part in the message. To send a URL as plain
|
|
403
|
-
* text (no preview card), use a `text` part instead.
|
|
404
|
-
*/
|
|
405
|
-
value: string;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
433
|
export interface TextPart {
|
|
410
434
|
/**
|
|
411
435
|
* Indicates this is a text message part
|
|
@@ -438,28 +462,7 @@ export interface TextPart {
|
|
|
438
462
|
* **Note:** Text decorations only render for iMessage recipients. For SMS/RCS,
|
|
439
463
|
* text decorations are not applied.
|
|
440
464
|
*/
|
|
441
|
-
text_decorations?: Array<
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
export namespace TextPart {
|
|
445
|
-
export interface TextDecoration {
|
|
446
|
-
/**
|
|
447
|
-
* Character range `[start, end)` in the `value` string where the decoration
|
|
448
|
-
* applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
|
|
449
|
-
* UTF-16 code units. Most characters count as 1; some emoji count as 2._
|
|
450
|
-
*/
|
|
451
|
-
range: Array<number>;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Animated text effect to apply. Mutually exclusive with `style`.
|
|
455
|
-
*/
|
|
456
|
-
animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Text style to apply. Mutually exclusive with `animation`.
|
|
460
|
-
*/
|
|
461
|
-
style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
|
|
462
|
-
}
|
|
465
|
+
text_decorations?: Array<MessagesAPI.TextDecoration>;
|
|
463
466
|
}
|
|
464
467
|
|
|
465
468
|
/**
|
|
@@ -511,6 +514,14 @@ export interface ChatUpdateResponse {
|
|
|
511
514
|
status?: string;
|
|
512
515
|
}
|
|
513
516
|
|
|
517
|
+
export interface ChatLeaveChatResponse {
|
|
518
|
+
message?: string;
|
|
519
|
+
|
|
520
|
+
status?: string;
|
|
521
|
+
|
|
522
|
+
trace_id?: string;
|
|
523
|
+
}
|
|
524
|
+
|
|
514
525
|
/**
|
|
515
526
|
* Response for sending a voice memo to a chat
|
|
516
527
|
*/
|
|
@@ -682,11 +693,13 @@ Chats.Messages = Messages;
|
|
|
682
693
|
export declare namespace Chats {
|
|
683
694
|
export {
|
|
684
695
|
type Chat as Chat,
|
|
696
|
+
type LinkPart as LinkPart,
|
|
685
697
|
type MediaPart as MediaPart,
|
|
686
698
|
type MessageContent as MessageContent,
|
|
687
699
|
type TextPart as TextPart,
|
|
688
700
|
type ChatCreateResponse as ChatCreateResponse,
|
|
689
701
|
type ChatUpdateResponse as ChatUpdateResponse,
|
|
702
|
+
type ChatLeaveChatResponse as ChatLeaveChatResponse,
|
|
690
703
|
type ChatSendVoicememoResponse as ChatSendVoicememoResponse,
|
|
691
704
|
type ChatsListChatsPagination as ChatsListChatsPagination,
|
|
692
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
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -10,19 +10,21 @@ export {
|
|
|
10
10
|
} from './attachments';
|
|
11
11
|
export {
|
|
12
12
|
Capability,
|
|
13
|
-
type
|
|
14
|
-
type
|
|
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,
|
package/src/resources/shared.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
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,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
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.
|
|
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,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|