@linqapp/sdk 0.26.0 → 0.27.1
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 +4 -3
- package/README.md +2 -2
- package/client.d.mts +16 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -5
- package/client.d.ts.map +1 -1
- package/client.js +5 -1
- package/client.js.map +1 -1
- package/client.mjs +5 -1
- package/client.mjs.map +1 -1
- package/package.json +4 -2
- 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 +100 -1
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +100 -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 +101 -3
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +101 -3
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.ts +2 -2
- package/resources/messages.d.mts +107 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +107 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/webhooks.d.mts +178 -5
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +178 -5
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +9 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +9 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +20 -4
- package/src/resources/capability.ts +5 -5
- package/src/resources/chats/chats.ts +117 -1
- package/src/resources/chats/messages.ts +124 -3
- package/src/resources/index.ts +2 -2
- package/src/resources/messages.ts +131 -3
- package/src/resources/webhooks.ts +230 -6
- 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
|
@@ -114,15 +114,16 @@ export interface SentMessage {
|
|
|
114
114
|
/**
|
|
115
115
|
* Current delivery status of a message
|
|
116
116
|
*/
|
|
117
|
-
delivery_status: 'pending' | 'queued' | 'sent' | 'delivered' | 'failed';
|
|
117
|
+
delivery_status: 'pending' | 'queued' | 'sent' | 'delivered' | 'received' | 'read' | 'failed';
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* @deprecated DEPRECATED: Use `delivery_status == "read"` instead. Whether the
|
|
120
|
+
* message has been read.
|
|
120
121
|
*/
|
|
121
122
|
is_read: boolean;
|
|
122
123
|
/**
|
|
123
124
|
* Message parts in order (text, media, and link)
|
|
124
125
|
*/
|
|
125
|
-
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse>;
|
|
126
|
+
parts: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse | SentMessage.IMessageAppPartResponse>;
|
|
126
127
|
/**
|
|
127
128
|
* When the message was actually sent (null if still queued)
|
|
128
129
|
*/
|
|
@@ -152,6 +153,103 @@ export interface SentMessage {
|
|
|
152
153
|
*/
|
|
153
154
|
service?: Shared.ServiceType | null;
|
|
154
155
|
}
|
|
156
|
+
export declare namespace SentMessage {
|
|
157
|
+
/**
|
|
158
|
+
* An iMessage app card part.
|
|
159
|
+
*/
|
|
160
|
+
interface IMessageAppPartResponse {
|
|
161
|
+
/**
|
|
162
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
163
|
+
*/
|
|
164
|
+
app: IMessageAppPartResponse.App;
|
|
165
|
+
/**
|
|
166
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
167
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
168
|
+
* the card renders as an empty bubble.
|
|
169
|
+
*/
|
|
170
|
+
layout: IMessageAppPartResponse.Layout;
|
|
171
|
+
/**
|
|
172
|
+
* Reactions on this message part
|
|
173
|
+
*/
|
|
174
|
+
reactions: Array<Shared.Reaction> | null;
|
|
175
|
+
/**
|
|
176
|
+
* Indicates this is an iMessage app card part.
|
|
177
|
+
*/
|
|
178
|
+
type: 'imessage_app';
|
|
179
|
+
/**
|
|
180
|
+
* The URL delivered to the iMessage app on tap.
|
|
181
|
+
*/
|
|
182
|
+
url: string;
|
|
183
|
+
/**
|
|
184
|
+
* Fallback text for surfaces that cannot render the card.
|
|
185
|
+
*/
|
|
186
|
+
fallback_text?: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* Client-supplied session identifier, echoed back when provided.
|
|
189
|
+
*/
|
|
190
|
+
session_id?: string | null;
|
|
191
|
+
}
|
|
192
|
+
namespace IMessageAppPartResponse {
|
|
193
|
+
/**
|
|
194
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
195
|
+
*/
|
|
196
|
+
interface App {
|
|
197
|
+
/**
|
|
198
|
+
* Bundle identifier of the Messages app extension. Must not contain `:`.
|
|
199
|
+
*/
|
|
200
|
+
bundle_id: string;
|
|
201
|
+
/**
|
|
202
|
+
* Display name of the app, shown by Messages' fallback UI.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
/**
|
|
206
|
+
* The app's 10-character uppercase alphanumeric team identifier.
|
|
207
|
+
*/
|
|
208
|
+
team_id: string;
|
|
209
|
+
/**
|
|
210
|
+
* The owning app's App Store id (optional). When set, recipients without the
|
|
211
|
+
* iMessage app installed see a "Get the app" affordance.
|
|
212
|
+
*/
|
|
213
|
+
app_store_id?: number;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
217
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
218
|
+
* the card renders as an empty bubble.
|
|
219
|
+
*/
|
|
220
|
+
interface Layout {
|
|
221
|
+
/**
|
|
222
|
+
* Primary label, top-left and bold.
|
|
223
|
+
*/
|
|
224
|
+
caption?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Overlay text shown below `image_title`. Requires `image_url`.
|
|
227
|
+
*/
|
|
228
|
+
image_subtitle?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Overlay text shown above the image. Requires `image_url`.
|
|
231
|
+
*/
|
|
232
|
+
image_title?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Optional HTTPS URL of a preview image. The server downloads it and embeds it in
|
|
235
|
+
* the card as JPEG (10MB max, same fetch rules as media parts).
|
|
236
|
+
*/
|
|
237
|
+
image_url?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Secondary label, below `caption` on the left.
|
|
240
|
+
*/
|
|
241
|
+
subcaption?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Label shown top-right.
|
|
244
|
+
*/
|
|
245
|
+
trailing_caption?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Label shown below `trailing_caption`, on the right.
|
|
248
|
+
*/
|
|
249
|
+
trailing_subcaption?: string;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
155
253
|
/**
|
|
156
254
|
* Response for sending a message to a chat
|
|
157
255
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,8BAA8B,EAAE,uBAAoB;AAC7D,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAEL,KAAK,4BAA4B,EACjC,WAAW,EACZ,iCAA8B;AAC/B,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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cAAc,CAAC;CAClC;AAED,MAAM,WAAW,iBAAkB,SAAQ,4BAA4B;CAAG;AAE1E,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH;AAED,OAAO,EAAE,KAAK,8BAA8B,EAAE,CAAC"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
|
|
3
|
-
export { Capability, type HandleCheck, type HandleCheckResponse, type
|
|
3
|
+
export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.mjs";
|
|
4
4
|
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatListChatsParams, type ChatUpdateParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.mjs";
|
|
5
5
|
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardRetrieveParams, type ContactCardCreateParams, type ContactCardUpdateParams, } from "./contact-card.mjs";
|
|
6
6
|
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessagesListMessagesPagination, } from "./messages.mjs";
|
|
@@ -8,5 +8,5 @@ export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.mjs"
|
|
|
8
8
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.mjs";
|
|
9
9
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.mjs";
|
|
10
10
|
export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.mjs";
|
|
11
|
-
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentWebhookEvent, type MessageReceivedWebhookEvent, type MessageReadWebhookEvent, type MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent, type MessageEditedWebhookEvent, type ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent, type
|
|
11
|
+
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentWebhookEvent, type MessageReceivedWebhookEvent, type MessageReadWebhookEvent, type MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent, type MessageEditedWebhookEvent, type ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.mjs";
|
|
12
12
|
//# sourceMappingURL=index.d.mts.map
|
package/resources/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { Attachments, type SupportedContentType, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
|
|
3
|
-
export { Capability, type HandleCheck, type HandleCheckResponse, type
|
|
3
|
+
export { Capability, type HandleCheck, type HandleCheckResponse, type CapabilityCheckIMessageParams, type CapabilityCheckRCSParams, } from "./capability.js";
|
|
4
4
|
export { Chats, type Chat, type LinkPart, type MediaPart, type MessageContent, type TextPart, type ChatCreateResponse, type ChatUpdateResponse, type ChatLeaveChatResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatListChatsParams, type ChatUpdateParams, type ChatSendVoicememoParams, type ChatsListChatsPagination, } from "./chats/chats.js";
|
|
5
5
|
export { ContactCard, type SetContactCard, type ContactCardRetrieveResponse, type ContactCardRetrieveParams, type ContactCardCreateParams, type ContactCardUpdateParams, } from "./contact-card.js";
|
|
6
6
|
export { Messages, type Message, type MessageEffect, type ReplyTo, type MessageAddReactionResponse, type MessageListMessagesThreadParams, type MessageAddReactionParams, type MessageUpdateParams, type MessagesListMessagesPagination, } from "./messages.js";
|
|
@@ -8,5 +8,5 @@ export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.js";
|
|
|
8
8
|
export { Phonenumbers, type PhonenumberListResponse } from "./phonenumbers.js";
|
|
9
9
|
export { WebhookEvents, type WebhookEventType, type WebhookEventListResponse } from "./webhook-events.js";
|
|
10
10
|
export { WebhookSubscriptions, type WebhookSubscription, type WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams, } from "./webhook-subscriptions.js";
|
|
11
|
-
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentWebhookEvent, type MessageReceivedWebhookEvent, type MessageReadWebhookEvent, type MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent, type MessageEditedWebhookEvent, type ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent, type
|
|
11
|
+
export { Webhooks, type MessageEventV2, type MessagePayload, type ReactionEventBase, type SchemasMediaPartResponse, type SchemasMessageEffect, type SchemasTextPartResponse, type MessageSentWebhookEvent, type MessageReceivedWebhookEvent, type MessageReadWebhookEvent, type MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent, type MessageEditedWebhookEvent, type ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent, type UnwrapWebhookEvent, } from "./webhooks.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/messages.d.mts
CHANGED
|
@@ -121,7 +121,13 @@ export interface Message {
|
|
|
121
121
|
*/
|
|
122
122
|
created_at: string;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Current delivery status of a message
|
|
125
|
+
*/
|
|
126
|
+
delivery_status: 'pending' | 'queued' | 'sent' | 'delivered' | 'received' | 'read' | 'failed';
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated DEPRECATED: Use `delivery_status` instead (true when
|
|
129
|
+
* `delivery_status` is `delivered` or `read`). Whether the message has been
|
|
130
|
+
* delivered.
|
|
125
131
|
*/
|
|
126
132
|
is_delivered: boolean;
|
|
127
133
|
/**
|
|
@@ -129,7 +135,8 @@ export interface Message {
|
|
|
129
135
|
*/
|
|
130
136
|
is_from_me: boolean;
|
|
131
137
|
/**
|
|
132
|
-
*
|
|
138
|
+
* @deprecated DEPRECATED: Use `delivery_status == "read"` instead. Whether the
|
|
139
|
+
* message has been read.
|
|
133
140
|
*/
|
|
134
141
|
is_read: boolean;
|
|
135
142
|
/**
|
|
@@ -156,7 +163,7 @@ export interface Message {
|
|
|
156
163
|
/**
|
|
157
164
|
* Message parts in order (text, media, and link)
|
|
158
165
|
*/
|
|
159
|
-
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse> | null;
|
|
166
|
+
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse | Message.IMessageAppPartResponse> | null;
|
|
160
167
|
/**
|
|
161
168
|
* Messaging service type
|
|
162
169
|
*/
|
|
@@ -178,6 +185,103 @@ export interface Message {
|
|
|
178
185
|
*/
|
|
179
186
|
service?: Shared.ServiceType | null;
|
|
180
187
|
}
|
|
188
|
+
export declare namespace Message {
|
|
189
|
+
/**
|
|
190
|
+
* An iMessage app card part.
|
|
191
|
+
*/
|
|
192
|
+
interface IMessageAppPartResponse {
|
|
193
|
+
/**
|
|
194
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
195
|
+
*/
|
|
196
|
+
app: IMessageAppPartResponse.App;
|
|
197
|
+
/**
|
|
198
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
199
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
200
|
+
* the card renders as an empty bubble.
|
|
201
|
+
*/
|
|
202
|
+
layout: IMessageAppPartResponse.Layout;
|
|
203
|
+
/**
|
|
204
|
+
* Reactions on this message part
|
|
205
|
+
*/
|
|
206
|
+
reactions: Array<Shared.Reaction> | null;
|
|
207
|
+
/**
|
|
208
|
+
* Indicates this is an iMessage app card part.
|
|
209
|
+
*/
|
|
210
|
+
type: 'imessage_app';
|
|
211
|
+
/**
|
|
212
|
+
* The URL delivered to the iMessage app on tap.
|
|
213
|
+
*/
|
|
214
|
+
url: string;
|
|
215
|
+
/**
|
|
216
|
+
* Fallback text for surfaces that cannot render the card.
|
|
217
|
+
*/
|
|
218
|
+
fallback_text?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Client-supplied session identifier, echoed back when provided.
|
|
221
|
+
*/
|
|
222
|
+
session_id?: string | null;
|
|
223
|
+
}
|
|
224
|
+
namespace IMessageAppPartResponse {
|
|
225
|
+
/**
|
|
226
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
227
|
+
*/
|
|
228
|
+
interface App {
|
|
229
|
+
/**
|
|
230
|
+
* Bundle identifier of the Messages app extension. Must not contain `:`.
|
|
231
|
+
*/
|
|
232
|
+
bundle_id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Display name of the app, shown by Messages' fallback UI.
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
/**
|
|
238
|
+
* The app's 10-character uppercase alphanumeric team identifier.
|
|
239
|
+
*/
|
|
240
|
+
team_id: string;
|
|
241
|
+
/**
|
|
242
|
+
* The owning app's App Store id (optional). When set, recipients without the
|
|
243
|
+
* iMessage app installed see a "Get the app" affordance.
|
|
244
|
+
*/
|
|
245
|
+
app_store_id?: number;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
249
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
250
|
+
* the card renders as an empty bubble.
|
|
251
|
+
*/
|
|
252
|
+
interface Layout {
|
|
253
|
+
/**
|
|
254
|
+
* Primary label, top-left and bold.
|
|
255
|
+
*/
|
|
256
|
+
caption?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Overlay text shown below `image_title`. Requires `image_url`.
|
|
259
|
+
*/
|
|
260
|
+
image_subtitle?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Overlay text shown above the image. Requires `image_url`.
|
|
263
|
+
*/
|
|
264
|
+
image_title?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Optional HTTPS URL of a preview image. The server downloads it and embeds it in
|
|
267
|
+
* the card as JPEG (10MB max, same fetch rules as media parts).
|
|
268
|
+
*/
|
|
269
|
+
image_url?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Secondary label, below `caption` on the left.
|
|
272
|
+
*/
|
|
273
|
+
subcaption?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Label shown top-right.
|
|
276
|
+
*/
|
|
277
|
+
trailing_caption?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Label shown below `trailing_caption`, on the right.
|
|
280
|
+
*/
|
|
281
|
+
trailing_subcaption?: string;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
181
285
|
/**
|
|
182
286
|
* iMessage effect applied to a message (screen or bubble effect)
|
|
183
287
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE,+BAA2B;AAE5G,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,KAAK,GA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ACnB;AAED,MAAM,WAAW,+BAAgC,SAAQ,4BAA4B;IACnF;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,KAAK,GAAG,QAAQ,CAAC;IAE5B;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/messages.d.ts
CHANGED
|
@@ -121,7 +121,13 @@ export interface Message {
|
|
|
121
121
|
*/
|
|
122
122
|
created_at: string;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Current delivery status of a message
|
|
125
|
+
*/
|
|
126
|
+
delivery_status: 'pending' | 'queued' | 'sent' | 'delivered' | 'received' | 'read' | 'failed';
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated DEPRECATED: Use `delivery_status` instead (true when
|
|
129
|
+
* `delivery_status` is `delivered` or `read`). Whether the message has been
|
|
130
|
+
* delivered.
|
|
125
131
|
*/
|
|
126
132
|
is_delivered: boolean;
|
|
127
133
|
/**
|
|
@@ -129,7 +135,8 @@ export interface Message {
|
|
|
129
135
|
*/
|
|
130
136
|
is_from_me: boolean;
|
|
131
137
|
/**
|
|
132
|
-
*
|
|
138
|
+
* @deprecated DEPRECATED: Use `delivery_status == "read"` instead. Whether the
|
|
139
|
+
* message has been read.
|
|
133
140
|
*/
|
|
134
141
|
is_read: boolean;
|
|
135
142
|
/**
|
|
@@ -156,7 +163,7 @@ export interface Message {
|
|
|
156
163
|
/**
|
|
157
164
|
* Message parts in order (text, media, and link)
|
|
158
165
|
*/
|
|
159
|
-
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse> | null;
|
|
166
|
+
parts?: Array<Shared.TextPartResponse | Shared.MediaPartResponse | Shared.LinkPartResponse | Message.IMessageAppPartResponse> | null;
|
|
160
167
|
/**
|
|
161
168
|
* Messaging service type
|
|
162
169
|
*/
|
|
@@ -178,6 +185,103 @@ export interface Message {
|
|
|
178
185
|
*/
|
|
179
186
|
service?: Shared.ServiceType | null;
|
|
180
187
|
}
|
|
188
|
+
export declare namespace Message {
|
|
189
|
+
/**
|
|
190
|
+
* An iMessage app card part.
|
|
191
|
+
*/
|
|
192
|
+
interface IMessageAppPartResponse {
|
|
193
|
+
/**
|
|
194
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
195
|
+
*/
|
|
196
|
+
app: IMessageAppPartResponse.App;
|
|
197
|
+
/**
|
|
198
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
199
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
200
|
+
* the card renders as an empty bubble.
|
|
201
|
+
*/
|
|
202
|
+
layout: IMessageAppPartResponse.Layout;
|
|
203
|
+
/**
|
|
204
|
+
* Reactions on this message part
|
|
205
|
+
*/
|
|
206
|
+
reactions: Array<Shared.Reaction> | null;
|
|
207
|
+
/**
|
|
208
|
+
* Indicates this is an iMessage app card part.
|
|
209
|
+
*/
|
|
210
|
+
type: 'imessage_app';
|
|
211
|
+
/**
|
|
212
|
+
* The URL delivered to the iMessage app on tap.
|
|
213
|
+
*/
|
|
214
|
+
url: string;
|
|
215
|
+
/**
|
|
216
|
+
* Fallback text for surfaces that cannot render the card.
|
|
217
|
+
*/
|
|
218
|
+
fallback_text?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* Client-supplied session identifier, echoed back when provided.
|
|
221
|
+
*/
|
|
222
|
+
session_id?: string | null;
|
|
223
|
+
}
|
|
224
|
+
namespace IMessageAppPartResponse {
|
|
225
|
+
/**
|
|
226
|
+
* Identifies the iMessage app (Messages app extension) that backs the card.
|
|
227
|
+
*/
|
|
228
|
+
interface App {
|
|
229
|
+
/**
|
|
230
|
+
* Bundle identifier of the Messages app extension. Must not contain `:`.
|
|
231
|
+
*/
|
|
232
|
+
bundle_id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Display name of the app, shown by Messages' fallback UI.
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
/**
|
|
238
|
+
* The app's 10-character uppercase alphanumeric team identifier.
|
|
239
|
+
*/
|
|
240
|
+
team_id: string;
|
|
241
|
+
/**
|
|
242
|
+
* The owning app's App Store id (optional). When set, recipients without the
|
|
243
|
+
* iMessage app installed see a "Get the app" affordance.
|
|
244
|
+
*/
|
|
245
|
+
app_store_id?: number;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Visible layout of the card. At least one of `caption`, `subcaption`,
|
|
249
|
+
* `trailing_caption`, `trailing_subcaption`, or `image_url` must be set, otherwise
|
|
250
|
+
* the card renders as an empty bubble.
|
|
251
|
+
*/
|
|
252
|
+
interface Layout {
|
|
253
|
+
/**
|
|
254
|
+
* Primary label, top-left and bold.
|
|
255
|
+
*/
|
|
256
|
+
caption?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Overlay text shown below `image_title`. Requires `image_url`.
|
|
259
|
+
*/
|
|
260
|
+
image_subtitle?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Overlay text shown above the image. Requires `image_url`.
|
|
263
|
+
*/
|
|
264
|
+
image_title?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Optional HTTPS URL of a preview image. The server downloads it and embeds it in
|
|
267
|
+
* the card as JPEG (10MB max, same fetch rules as media parts).
|
|
268
|
+
*/
|
|
269
|
+
image_url?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Secondary label, below `caption` on the left.
|
|
272
|
+
*/
|
|
273
|
+
subcaption?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Label shown top-right.
|
|
276
|
+
*/
|
|
277
|
+
trailing_caption?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Label shown below `trailing_caption`, on the right.
|
|
280
|
+
*/
|
|
281
|
+
trailing_subcaption?: string;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
181
285
|
/**
|
|
182
286
|
* iMessage effect applied to a message (screen or bubble effect)
|
|
183
287
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,sBAAsB,EAAE,KAAK,4BAA4B,EAAE,WAAW,EAAE,8BAA2B;AAE5G,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;OAiBG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,OAAO,CAAC;IAOvD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE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