@inkbox/sdk 0.4.5 → 0.4.7
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/README.md +163 -36
- package/dist/_http.d.ts +12 -0
- package/dist/_http.d.ts.map +1 -1
- package/dist/_http.js +23 -2
- package/dist/_http.js.map +1 -1
- package/dist/agent_identity.d.ts +138 -6
- package/dist/agent_identity.d.ts.map +1 -1
- package/dist/agent_identity.js +155 -5
- package/dist/agent_identity.js.map +1 -1
- package/dist/identities/resources/identities.d.ts +11 -1
- package/dist/identities/resources/identities.d.ts.map +1 -1
- package/dist/identities/resources/identities.js +14 -1
- package/dist/identities/resources/identities.js.map +1 -1
- package/dist/identities/types.d.ts +15 -6
- package/dist/identities/types.d.ts.map +1 -1
- package/dist/identities/types.js +2 -4
- package/dist/identities/types.js.map +1 -1
- package/dist/imessage/resources/contactRules.d.ts +55 -0
- package/dist/imessage/resources/contactRules.d.ts.map +1 -0
- package/dist/imessage/resources/contactRules.js +85 -0
- package/dist/imessage/resources/contactRules.js.map +1 -0
- package/dist/imessage/resources/imessages.d.ts +168 -0
- package/dist/imessage/resources/imessages.d.ts.map +1 -0
- package/dist/imessage/resources/imessages.js +238 -0
- package/dist/imessage/resources/imessages.js.map +1 -0
- package/dist/imessage/types.d.ts +335 -0
- package/dist/imessage/types.d.ts.map +1 -0
- package/dist/imessage/types.js +209 -0
- package/dist/imessage/types.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/inkbox.d.ts +25 -0
- package/dist/inkbox.d.ts.map +1 -1
- package/dist/inkbox.js +32 -0
- package/dist/inkbox.js.map +1 -1
- package/dist/mail/resources/mailboxes.d.ts +2 -3
- package/dist/mail/resources/mailboxes.d.ts.map +1 -1
- package/dist/mail/resources/mailboxes.js +2 -5
- package/dist/mail/resources/mailboxes.js.map +1 -1
- package/dist/mail/types.d.ts +10 -2
- package/dist/mail/types.d.ts.map +1 -1
- package/dist/mail/types.js +0 -1
- package/dist/mail/types.js.map +1 -1
- package/dist/phone/resources/numbers.d.ts +0 -2
- package/dist/phone/resources/numbers.d.ts.map +1 -1
- package/dist/phone/resources/numbers.js +0 -6
- package/dist/phone/resources/numbers.js.map +1 -1
- package/dist/phone/resources/texts.d.ts +5 -5
- package/dist/phone/resources/texts.js +5 -5
- package/dist/phone/types.d.ts +15 -2
- package/dist/phone/types.d.ts.map +1 -1
- package/dist/phone/types.js +0 -1
- package/dist/phone/types.js.map +1 -1
- package/dist/webhooks/index.d.ts +8 -0
- package/dist/webhooks/index.d.ts.map +1 -0
- package/dist/webhooks/index.js +8 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/subscriptions.d.ts +96 -0
- package/dist/webhooks/subscriptions.d.ts.map +1 -0
- package/dist/webhooks/subscriptions.js +168 -0
- package/dist/webhooks/subscriptions.js.map +1 -0
- package/dist/webhooks/types.d.ts +173 -11
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* inkbox-imessage/types.ts
|
|
3
|
+
*
|
|
4
|
+
* Types mirroring the Inkbox iMessage API response models.
|
|
5
|
+
*
|
|
6
|
+
* iMessage routes by assignment, not by a number the org owns: a
|
|
7
|
+
* recipient is connected to an agent identity over a shared pool line,
|
|
8
|
+
* and every agent-facing shape is keyed by `conversationId` /
|
|
9
|
+
* `remoteNumber`. The local pool number is never exposed.
|
|
10
|
+
*/
|
|
11
|
+
import { ContactRuleStatus } from "../mail/types.js";
|
|
12
|
+
/** Transport a message actually went over (iMessage may downgrade). */
|
|
13
|
+
export declare enum IMessageService {
|
|
14
|
+
IMESSAGE = "imessage",
|
|
15
|
+
SMS = "sms",
|
|
16
|
+
RCS = "rcs"
|
|
17
|
+
}
|
|
18
|
+
/** Provider-facing delivery lifecycle for an iMessage. */
|
|
19
|
+
export declare enum IMessageDeliveryStatus {
|
|
20
|
+
REGISTERED = "registered",
|
|
21
|
+
PENDING = "pending",
|
|
22
|
+
QUEUED = "queued",
|
|
23
|
+
ACCEPTED = "accepted",
|
|
24
|
+
SENT = "sent",
|
|
25
|
+
DELIVERED = "delivered",
|
|
26
|
+
DECLINED = "declined",
|
|
27
|
+
ERROR = "error",
|
|
28
|
+
RECEIVED = "received"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Tapback reaction kinds.
|
|
32
|
+
*
|
|
33
|
+
* `CUSTOM` is inbound-only: recipients can react with any emoji
|
|
34
|
+
* (carried in `customEmoji`), but sends accept the classic six.
|
|
35
|
+
*/
|
|
36
|
+
export declare enum IMessageReactionType {
|
|
37
|
+
LOVE = "love",
|
|
38
|
+
LIKE = "like",
|
|
39
|
+
DISLIKE = "dislike",
|
|
40
|
+
LAUGH = "laugh",
|
|
41
|
+
EMPHASIZE = "emphasize",
|
|
42
|
+
QUESTION = "question",
|
|
43
|
+
CUSTOM = "custom"
|
|
44
|
+
}
|
|
45
|
+
/** Expressive send style applied to an outbound iMessage. */
|
|
46
|
+
export declare enum IMessageSendStyle {
|
|
47
|
+
CELEBRATION = "celebration",
|
|
48
|
+
SHOOTING_STAR = "shooting_star",
|
|
49
|
+
FIREWORKS = "fireworks",
|
|
50
|
+
LASERS = "lasers",
|
|
51
|
+
LOVE = "love",
|
|
52
|
+
CONFETTI = "confetti",
|
|
53
|
+
BALLOONS = "balloons",
|
|
54
|
+
SPOTLIGHT = "spotlight",
|
|
55
|
+
ECHO = "echo",
|
|
56
|
+
INVISIBLE = "invisible",
|
|
57
|
+
GENTLE = "gentle",
|
|
58
|
+
LOUD = "loud",
|
|
59
|
+
SLAM = "slam"
|
|
60
|
+
}
|
|
61
|
+
/** Lifecycle of a recipient's triage-created connection to an agent. */
|
|
62
|
+
export declare enum IMessageAssignmentStatus {
|
|
63
|
+
ACTIVE = "active",
|
|
64
|
+
RELEASED = "released"
|
|
65
|
+
}
|
|
66
|
+
/** Whether a matching remote number is allowed through or blocked. */
|
|
67
|
+
export declare enum IMessageRuleAction {
|
|
68
|
+
ALLOW = "allow",
|
|
69
|
+
BLOCK = "block"
|
|
70
|
+
}
|
|
71
|
+
/** What an iMessage contact rule matches on. */
|
|
72
|
+
export declare enum IMessageRuleMatchType {
|
|
73
|
+
EXACT_NUMBER = "exact_number"
|
|
74
|
+
}
|
|
75
|
+
/** Media attachment on an iMessage. */
|
|
76
|
+
export interface IMessageMediaItem {
|
|
77
|
+
url: string;
|
|
78
|
+
contentType: string | null;
|
|
79
|
+
size: number | null;
|
|
80
|
+
}
|
|
81
|
+
/** Per-recipient outbound delivery state for an iMessage. */
|
|
82
|
+
export interface IMessageRecipient {
|
|
83
|
+
remoteNumber: string;
|
|
84
|
+
deliveryStatus: IMessageDeliveryStatus | null;
|
|
85
|
+
service: IMessageService | null;
|
|
86
|
+
errorCode: string | null;
|
|
87
|
+
errorMessage: string | null;
|
|
88
|
+
errorReason: string | null;
|
|
89
|
+
errorDetail: string | null;
|
|
90
|
+
sentAt: Date | null;
|
|
91
|
+
deliveredAt: Date | null;
|
|
92
|
+
failedAt: Date | null;
|
|
93
|
+
}
|
|
94
|
+
/** A live tapback attached to a message in read responses. */
|
|
95
|
+
export interface IMessageMessageReaction {
|
|
96
|
+
id: string;
|
|
97
|
+
/** "inbound" | "outbound" */
|
|
98
|
+
direction: string;
|
|
99
|
+
reaction: IMessageReactionType;
|
|
100
|
+
/** Literal emoji when `reaction` is "custom"; null for the classic six. */
|
|
101
|
+
customEmoji: string | null;
|
|
102
|
+
remoteNumber: string;
|
|
103
|
+
partIndex: number;
|
|
104
|
+
createdAt: Date;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* An iMessage in an assignment-routed conversation.
|
|
108
|
+
*
|
|
109
|
+
* There is no local-number field: shared pool lines are hidden from
|
|
110
|
+
* agents, so messages are identified by `conversationId` and the
|
|
111
|
+
* counterparty `remoteNumber` only.
|
|
112
|
+
*/
|
|
113
|
+
export interface IMessage {
|
|
114
|
+
id: string;
|
|
115
|
+
conversationId: string;
|
|
116
|
+
assignmentId: string;
|
|
117
|
+
/** "inbound" | "outbound" */
|
|
118
|
+
direction: string;
|
|
119
|
+
remoteNumber: string;
|
|
120
|
+
content: string | null;
|
|
121
|
+
/** "message" | "carousel" */
|
|
122
|
+
messageType: string;
|
|
123
|
+
service: IMessageService;
|
|
124
|
+
sendStyle: IMessageSendStyle | null;
|
|
125
|
+
media: IMessageMediaItem[] | null;
|
|
126
|
+
wasDowngraded: boolean | null;
|
|
127
|
+
status: IMessageDeliveryStatus | null;
|
|
128
|
+
errorCode: string | null;
|
|
129
|
+
errorMessage: string | null;
|
|
130
|
+
errorReason: string | null;
|
|
131
|
+
errorDetail: string | null;
|
|
132
|
+
isRead: boolean;
|
|
133
|
+
isBlocked: boolean;
|
|
134
|
+
recipients: IMessageRecipient[] | null;
|
|
135
|
+
/** Live (non-removed) tapbacks targeting this message, oldest first. */
|
|
136
|
+
reactions: IMessageMessageReaction[] | null;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
updatedAt: Date;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* One assignment-scoped iMessage conversation.
|
|
142
|
+
*
|
|
143
|
+
* `assignmentStatus` reflects the current connection: non-active means
|
|
144
|
+
* the recipient is disconnected and the agent cannot reply until they
|
|
145
|
+
* reconnect through triage.
|
|
146
|
+
*/
|
|
147
|
+
export interface IMessageConversation {
|
|
148
|
+
id: string;
|
|
149
|
+
assignmentId: string;
|
|
150
|
+
assignmentStatus: IMessageAssignmentStatus;
|
|
151
|
+
remoteNumber: string;
|
|
152
|
+
createdAt: Date;
|
|
153
|
+
updatedAt: Date;
|
|
154
|
+
}
|
|
155
|
+
/** Conversation list row with latest-message preview. */
|
|
156
|
+
export interface IMessageConversationSummary {
|
|
157
|
+
id: string;
|
|
158
|
+
assignmentId: string;
|
|
159
|
+
assignmentStatus: IMessageAssignmentStatus;
|
|
160
|
+
remoteNumber: string;
|
|
161
|
+
latestText: string | null;
|
|
162
|
+
latestMessageAt: Date | null;
|
|
163
|
+
latestDirection: string | null;
|
|
164
|
+
latestHasMedia: boolean;
|
|
165
|
+
unreadCount: number;
|
|
166
|
+
totalCount: number;
|
|
167
|
+
}
|
|
168
|
+
/** A tapback reaction on an iMessage. */
|
|
169
|
+
export interface IMessageReaction {
|
|
170
|
+
id: string;
|
|
171
|
+
conversationId: string;
|
|
172
|
+
assignmentId: string;
|
|
173
|
+
targetMessageId: string;
|
|
174
|
+
/** "inbound" | "outbound" */
|
|
175
|
+
direction: string;
|
|
176
|
+
reaction: IMessageReactionType;
|
|
177
|
+
/** Literal emoji when `reaction` is "custom"; null for the classic six. */
|
|
178
|
+
customEmoji: string | null;
|
|
179
|
+
remoteNumber: string;
|
|
180
|
+
partIndex: number;
|
|
181
|
+
createdAt: Date;
|
|
182
|
+
updatedAt: Date;
|
|
183
|
+
}
|
|
184
|
+
/** An active connection between one recipient and one agent identity. */
|
|
185
|
+
export interface IMessageAssignment {
|
|
186
|
+
id: string;
|
|
187
|
+
remoteNumber: string;
|
|
188
|
+
agentIdentityId: string;
|
|
189
|
+
organizationId: string;
|
|
190
|
+
status: IMessageAssignmentStatus;
|
|
191
|
+
releasedAt: Date | null;
|
|
192
|
+
createdAt: Date;
|
|
193
|
+
updatedAt: Date;
|
|
194
|
+
}
|
|
195
|
+
/** The active triage line and how recipients start a connection. */
|
|
196
|
+
export interface IMessageTriageNumber {
|
|
197
|
+
number: string;
|
|
198
|
+
connectCommand: string;
|
|
199
|
+
}
|
|
200
|
+
/** Result of marking a conversation's inbound messages read. */
|
|
201
|
+
export interface IMessageMarkReadResult {
|
|
202
|
+
conversationId: string;
|
|
203
|
+
updatedCount: number;
|
|
204
|
+
}
|
|
205
|
+
/** A reusable media URL returned by the iMessage media upload. */
|
|
206
|
+
export interface IMessageMediaUpload {
|
|
207
|
+
mediaUrl: string;
|
|
208
|
+
contentType: string | null;
|
|
209
|
+
size: number | null;
|
|
210
|
+
}
|
|
211
|
+
/** An allow/block rule scoped to an agent identity for iMessage. */
|
|
212
|
+
export interface IMessageContactRule {
|
|
213
|
+
id: string;
|
|
214
|
+
agentIdentityId: string;
|
|
215
|
+
action: IMessageRuleAction;
|
|
216
|
+
matchType: IMessageRuleMatchType;
|
|
217
|
+
matchTarget: string;
|
|
218
|
+
status: ContactRuleStatus;
|
|
219
|
+
createdAt: Date;
|
|
220
|
+
updatedAt: Date;
|
|
221
|
+
}
|
|
222
|
+
export interface RawIMessageMediaItem {
|
|
223
|
+
url: string;
|
|
224
|
+
content_type?: string | null;
|
|
225
|
+
size?: number | null;
|
|
226
|
+
}
|
|
227
|
+
export interface RawIMessageRecipient {
|
|
228
|
+
remote_number: string;
|
|
229
|
+
delivery_status?: string | null;
|
|
230
|
+
service?: string | null;
|
|
231
|
+
error_code?: string | null;
|
|
232
|
+
error_message?: string | null;
|
|
233
|
+
error_reason?: string | null;
|
|
234
|
+
error_detail?: string | null;
|
|
235
|
+
sent_at?: string | null;
|
|
236
|
+
delivered_at?: string | null;
|
|
237
|
+
failed_at?: string | null;
|
|
238
|
+
}
|
|
239
|
+
export interface RawIMessageMessageReaction {
|
|
240
|
+
id: string;
|
|
241
|
+
direction: string;
|
|
242
|
+
reaction: string;
|
|
243
|
+
custom_emoji?: string | null;
|
|
244
|
+
remote_number: string;
|
|
245
|
+
part_index?: number;
|
|
246
|
+
created_at: string;
|
|
247
|
+
}
|
|
248
|
+
export interface RawIMessage {
|
|
249
|
+
id: string;
|
|
250
|
+
conversation_id: string;
|
|
251
|
+
assignment_id: string;
|
|
252
|
+
direction: string;
|
|
253
|
+
remote_number: string;
|
|
254
|
+
content?: string | null;
|
|
255
|
+
message_type: string;
|
|
256
|
+
service: string;
|
|
257
|
+
send_style?: string | null;
|
|
258
|
+
media?: RawIMessageMediaItem[] | null;
|
|
259
|
+
was_downgraded?: boolean | null;
|
|
260
|
+
status?: string | null;
|
|
261
|
+
error_code?: string | null;
|
|
262
|
+
error_message?: string | null;
|
|
263
|
+
error_reason?: string | null;
|
|
264
|
+
error_detail?: string | null;
|
|
265
|
+
is_read: boolean;
|
|
266
|
+
is_blocked?: boolean;
|
|
267
|
+
recipients?: RawIMessageRecipient[] | null;
|
|
268
|
+
reactions?: RawIMessageMessageReaction[] | null;
|
|
269
|
+
created_at: string;
|
|
270
|
+
updated_at: string;
|
|
271
|
+
}
|
|
272
|
+
export interface RawIMessageConversation {
|
|
273
|
+
id: string;
|
|
274
|
+
assignment_id: string;
|
|
275
|
+
assignment_status?: string | null;
|
|
276
|
+
remote_number: string;
|
|
277
|
+
created_at: string;
|
|
278
|
+
updated_at: string;
|
|
279
|
+
}
|
|
280
|
+
export interface RawIMessageAssignment {
|
|
281
|
+
id: string;
|
|
282
|
+
remote_number: string;
|
|
283
|
+
agent_identity_id: string;
|
|
284
|
+
organization_id: string;
|
|
285
|
+
status: string;
|
|
286
|
+
released_at?: string | null;
|
|
287
|
+
created_at: string;
|
|
288
|
+
updated_at: string;
|
|
289
|
+
}
|
|
290
|
+
export interface RawIMessageConversationSummary extends RawIMessageConversation {
|
|
291
|
+
latest_text?: string | null;
|
|
292
|
+
latest_message_at?: string | null;
|
|
293
|
+
latest_direction?: string | null;
|
|
294
|
+
latest_has_media?: boolean;
|
|
295
|
+
unread_count?: number;
|
|
296
|
+
total_count?: number;
|
|
297
|
+
}
|
|
298
|
+
export interface RawIMessageReaction {
|
|
299
|
+
id: string;
|
|
300
|
+
conversation_id: string;
|
|
301
|
+
assignment_id: string;
|
|
302
|
+
target_message_id: string;
|
|
303
|
+
direction: string;
|
|
304
|
+
reaction: string;
|
|
305
|
+
custom_emoji?: string | null;
|
|
306
|
+
remote_number: string;
|
|
307
|
+
part_index?: number;
|
|
308
|
+
created_at: string;
|
|
309
|
+
updated_at: string;
|
|
310
|
+
}
|
|
311
|
+
export interface RawIMessageTriageNumber {
|
|
312
|
+
number: string;
|
|
313
|
+
connect_command: string;
|
|
314
|
+
}
|
|
315
|
+
export interface RawIMessageContactRule {
|
|
316
|
+
id: string;
|
|
317
|
+
agent_identity_id: string;
|
|
318
|
+
action: string;
|
|
319
|
+
match_type: string;
|
|
320
|
+
match_target: string;
|
|
321
|
+
status: string;
|
|
322
|
+
created_at: string;
|
|
323
|
+
updated_at: string;
|
|
324
|
+
}
|
|
325
|
+
export declare function parseIMessageMediaItem(r: RawIMessageMediaItem): IMessageMediaItem;
|
|
326
|
+
export declare function parseIMessageRecipient(r: RawIMessageRecipient): IMessageRecipient;
|
|
327
|
+
export declare function parseIMessageMessageReaction(r: RawIMessageMessageReaction): IMessageMessageReaction;
|
|
328
|
+
export declare function parseIMessage(r: RawIMessage): IMessage;
|
|
329
|
+
export declare function parseIMessageConversation(r: RawIMessageConversation): IMessageConversation;
|
|
330
|
+
export declare function parseIMessageAssignment(r: RawIMessageAssignment): IMessageAssignment;
|
|
331
|
+
export declare function parseIMessageConversationSummary(r: RawIMessageConversationSummary): IMessageConversationSummary;
|
|
332
|
+
export declare function parseIMessageReaction(r: RawIMessageReaction): IMessageReaction;
|
|
333
|
+
export declare function parseIMessageTriageNumber(r: RawIMessageTriageNumber): IMessageTriageNumber;
|
|
334
|
+
export declare function parseIMessageContactRule(r: RawIMessageContactRule): IMessageContactRule;
|
|
335
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/imessage/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,uEAAuE;AACvE,oBAAY,eAAe;IACzB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,0DAA0D;AAC1D,oBAAY,sBAAsB;IAChC,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,SAAS,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yB,CACvC,CAAC,EAAE,uBAAuB,GACzB,oBAAoB,CAKtB;AAED,wBAAgB,wBAAwB,CACtC,CAAC,EAAE,sBAAsB,GACxB,mBAAmB,CAWrB"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* inkbox-imessage/types.ts
|
|
3
|
+
*
|
|
4
|
+
* Types mirroring the Inkbox iMessage API response models.
|
|
5
|
+
*
|
|
6
|
+
* iMessage routes by assignment, not by a number the org owns: a
|
|
7
|
+
* recipient is connected to an agent identity over a shared pool line,
|
|
8
|
+
* and every agent-facing shape is keyed by `conversationId` /
|
|
9
|
+
* `remoteNumber`. The local pool number is never exposed.
|
|
10
|
+
*/
|
|
11
|
+
/** Transport a message actually went over (iMessage may downgrade). */
|
|
12
|
+
export var IMessageService;
|
|
13
|
+
(function (IMessageService) {
|
|
14
|
+
IMessageService["IMESSAGE"] = "imessage";
|
|
15
|
+
IMessageService["SMS"] = "sms";
|
|
16
|
+
IMessageService["RCS"] = "rcs";
|
|
17
|
+
})(IMessageService || (IMessageService = {}));
|
|
18
|
+
/** Provider-facing delivery lifecycle for an iMessage. */
|
|
19
|
+
export var IMessageDeliveryStatus;
|
|
20
|
+
(function (IMessageDeliveryStatus) {
|
|
21
|
+
IMessageDeliveryStatus["REGISTERED"] = "registered";
|
|
22
|
+
IMessageDeliveryStatus["PENDING"] = "pending";
|
|
23
|
+
IMessageDeliveryStatus["QUEUED"] = "queued";
|
|
24
|
+
IMessageDeliveryStatus["ACCEPTED"] = "accepted";
|
|
25
|
+
IMessageDeliveryStatus["SENT"] = "sent";
|
|
26
|
+
IMessageDeliveryStatus["DELIVERED"] = "delivered";
|
|
27
|
+
IMessageDeliveryStatus["DECLINED"] = "declined";
|
|
28
|
+
IMessageDeliveryStatus["ERROR"] = "error";
|
|
29
|
+
IMessageDeliveryStatus["RECEIVED"] = "received";
|
|
30
|
+
})(IMessageDeliveryStatus || (IMessageDeliveryStatus = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Tapback reaction kinds.
|
|
33
|
+
*
|
|
34
|
+
* `CUSTOM` is inbound-only: recipients can react with any emoji
|
|
35
|
+
* (carried in `customEmoji`), but sends accept the classic six.
|
|
36
|
+
*/
|
|
37
|
+
export var IMessageReactionType;
|
|
38
|
+
(function (IMessageReactionType) {
|
|
39
|
+
IMessageReactionType["LOVE"] = "love";
|
|
40
|
+
IMessageReactionType["LIKE"] = "like";
|
|
41
|
+
IMessageReactionType["DISLIKE"] = "dislike";
|
|
42
|
+
IMessageReactionType["LAUGH"] = "laugh";
|
|
43
|
+
IMessageReactionType["EMPHASIZE"] = "emphasize";
|
|
44
|
+
IMessageReactionType["QUESTION"] = "question";
|
|
45
|
+
IMessageReactionType["CUSTOM"] = "custom";
|
|
46
|
+
})(IMessageReactionType || (IMessageReactionType = {}));
|
|
47
|
+
/** Expressive send style applied to an outbound iMessage. */
|
|
48
|
+
export var IMessageSendStyle;
|
|
49
|
+
(function (IMessageSendStyle) {
|
|
50
|
+
IMessageSendStyle["CELEBRATION"] = "celebration";
|
|
51
|
+
IMessageSendStyle["SHOOTING_STAR"] = "shooting_star";
|
|
52
|
+
IMessageSendStyle["FIREWORKS"] = "fireworks";
|
|
53
|
+
IMessageSendStyle["LASERS"] = "lasers";
|
|
54
|
+
IMessageSendStyle["LOVE"] = "love";
|
|
55
|
+
IMessageSendStyle["CONFETTI"] = "confetti";
|
|
56
|
+
IMessageSendStyle["BALLOONS"] = "balloons";
|
|
57
|
+
IMessageSendStyle["SPOTLIGHT"] = "spotlight";
|
|
58
|
+
IMessageSendStyle["ECHO"] = "echo";
|
|
59
|
+
IMessageSendStyle["INVISIBLE"] = "invisible";
|
|
60
|
+
IMessageSendStyle["GENTLE"] = "gentle";
|
|
61
|
+
IMessageSendStyle["LOUD"] = "loud";
|
|
62
|
+
IMessageSendStyle["SLAM"] = "slam";
|
|
63
|
+
})(IMessageSendStyle || (IMessageSendStyle = {}));
|
|
64
|
+
/** Lifecycle of a recipient's triage-created connection to an agent. */
|
|
65
|
+
export var IMessageAssignmentStatus;
|
|
66
|
+
(function (IMessageAssignmentStatus) {
|
|
67
|
+
IMessageAssignmentStatus["ACTIVE"] = "active";
|
|
68
|
+
IMessageAssignmentStatus["RELEASED"] = "released";
|
|
69
|
+
})(IMessageAssignmentStatus || (IMessageAssignmentStatus = {}));
|
|
70
|
+
/** Whether a matching remote number is allowed through or blocked. */
|
|
71
|
+
export var IMessageRuleAction;
|
|
72
|
+
(function (IMessageRuleAction) {
|
|
73
|
+
IMessageRuleAction["ALLOW"] = "allow";
|
|
74
|
+
IMessageRuleAction["BLOCK"] = "block";
|
|
75
|
+
})(IMessageRuleAction || (IMessageRuleAction = {}));
|
|
76
|
+
/** What an iMessage contact rule matches on. */
|
|
77
|
+
export var IMessageRuleMatchType;
|
|
78
|
+
(function (IMessageRuleMatchType) {
|
|
79
|
+
IMessageRuleMatchType["EXACT_NUMBER"] = "exact_number";
|
|
80
|
+
})(IMessageRuleMatchType || (IMessageRuleMatchType = {}));
|
|
81
|
+
// ---- parsers ----
|
|
82
|
+
export function parseIMessageMediaItem(r) {
|
|
83
|
+
return {
|
|
84
|
+
url: r.url,
|
|
85
|
+
contentType: r.content_type ?? null,
|
|
86
|
+
size: r.size ?? null,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export function parseIMessageRecipient(r) {
|
|
90
|
+
return {
|
|
91
|
+
remoteNumber: r.remote_number,
|
|
92
|
+
deliveryStatus: r.delivery_status ?? null,
|
|
93
|
+
service: r.service ?? null,
|
|
94
|
+
errorCode: r.error_code ?? null,
|
|
95
|
+
errorMessage: r.error_message ?? null,
|
|
96
|
+
errorReason: r.error_reason ?? null,
|
|
97
|
+
errorDetail: r.error_detail ?? null,
|
|
98
|
+
sentAt: r.sent_at ? new Date(r.sent_at) : null,
|
|
99
|
+
deliveredAt: r.delivered_at ? new Date(r.delivered_at) : null,
|
|
100
|
+
failedAt: r.failed_at ? new Date(r.failed_at) : null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export function parseIMessageMessageReaction(r) {
|
|
104
|
+
return {
|
|
105
|
+
id: r.id,
|
|
106
|
+
direction: r.direction,
|
|
107
|
+
reaction: r.reaction,
|
|
108
|
+
customEmoji: r.custom_emoji ?? null,
|
|
109
|
+
remoteNumber: r.remote_number,
|
|
110
|
+
partIndex: r.part_index ?? 0,
|
|
111
|
+
createdAt: new Date(r.created_at),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export function parseIMessage(r) {
|
|
115
|
+
return {
|
|
116
|
+
id: r.id,
|
|
117
|
+
conversationId: r.conversation_id,
|
|
118
|
+
assignmentId: r.assignment_id,
|
|
119
|
+
direction: r.direction,
|
|
120
|
+
remoteNumber: r.remote_number,
|
|
121
|
+
content: r.content ?? null,
|
|
122
|
+
messageType: r.message_type,
|
|
123
|
+
service: r.service,
|
|
124
|
+
sendStyle: r.send_style ?? null,
|
|
125
|
+
media: r.media ? r.media.map(parseIMessageMediaItem) : null,
|
|
126
|
+
wasDowngraded: r.was_downgraded ?? null,
|
|
127
|
+
status: r.status ?? null,
|
|
128
|
+
errorCode: r.error_code ?? null,
|
|
129
|
+
errorMessage: r.error_message ?? null,
|
|
130
|
+
errorReason: r.error_reason ?? null,
|
|
131
|
+
errorDetail: r.error_detail ?? null,
|
|
132
|
+
isRead: r.is_read,
|
|
133
|
+
isBlocked: r.is_blocked ?? false,
|
|
134
|
+
recipients: r.recipients ? r.recipients.map(parseIMessageRecipient) : null,
|
|
135
|
+
reactions: r.reactions ? r.reactions.map(parseIMessageMessageReaction) : null,
|
|
136
|
+
createdAt: new Date(r.created_at),
|
|
137
|
+
updatedAt: new Date(r.updated_at),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export function parseIMessageConversation(r) {
|
|
141
|
+
return {
|
|
142
|
+
id: r.id,
|
|
143
|
+
assignmentId: r.assignment_id,
|
|
144
|
+
assignmentStatus: r.assignment_status ?? IMessageAssignmentStatus.ACTIVE,
|
|
145
|
+
remoteNumber: r.remote_number,
|
|
146
|
+
createdAt: new Date(r.created_at),
|
|
147
|
+
updatedAt: new Date(r.updated_at),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export function parseIMessageAssignment(r) {
|
|
151
|
+
return {
|
|
152
|
+
id: r.id,
|
|
153
|
+
remoteNumber: r.remote_number,
|
|
154
|
+
agentIdentityId: r.agent_identity_id,
|
|
155
|
+
organizationId: r.organization_id,
|
|
156
|
+
status: r.status,
|
|
157
|
+
releasedAt: r.released_at ? new Date(r.released_at) : null,
|
|
158
|
+
createdAt: new Date(r.created_at),
|
|
159
|
+
updatedAt: new Date(r.updated_at),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
export function parseIMessageConversationSummary(r) {
|
|
163
|
+
return {
|
|
164
|
+
id: r.id,
|
|
165
|
+
assignmentId: r.assignment_id,
|
|
166
|
+
assignmentStatus: r.assignment_status ?? IMessageAssignmentStatus.ACTIVE,
|
|
167
|
+
remoteNumber: r.remote_number,
|
|
168
|
+
latestText: r.latest_text ?? null,
|
|
169
|
+
latestMessageAt: r.latest_message_at ? new Date(r.latest_message_at) : null,
|
|
170
|
+
latestDirection: r.latest_direction ?? null,
|
|
171
|
+
latestHasMedia: r.latest_has_media ?? false,
|
|
172
|
+
unreadCount: r.unread_count ?? 0,
|
|
173
|
+
totalCount: r.total_count ?? 0,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
export function parseIMessageReaction(r) {
|
|
177
|
+
return {
|
|
178
|
+
id: r.id,
|
|
179
|
+
conversationId: r.conversation_id,
|
|
180
|
+
assignmentId: r.assignment_id,
|
|
181
|
+
targetMessageId: r.target_message_id,
|
|
182
|
+
direction: r.direction,
|
|
183
|
+
reaction: r.reaction,
|
|
184
|
+
customEmoji: r.custom_emoji ?? null,
|
|
185
|
+
remoteNumber: r.remote_number,
|
|
186
|
+
partIndex: r.part_index ?? 0,
|
|
187
|
+
createdAt: new Date(r.created_at),
|
|
188
|
+
updatedAt: new Date(r.updated_at),
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export function parseIMessageTriageNumber(r) {
|
|
192
|
+
return {
|
|
193
|
+
number: r.number,
|
|
194
|
+
connectCommand: r.connect_command,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export function parseIMessageContactRule(r) {
|
|
198
|
+
return {
|
|
199
|
+
id: r.id,
|
|
200
|
+
agentIdentityId: r.agent_identity_id,
|
|
201
|
+
action: r.action,
|
|
202
|
+
matchType: r.match_type,
|
|
203
|
+
matchTarget: r.match_target,
|
|
204
|
+
status: r.status,
|
|
205
|
+
createdAt: new Date(r.created_at),
|
|
206
|
+
updatedAt: new Date(r.updated_at),
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/imessage/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,uEAAuE;AACvE,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,wCAAqB,CAAA;IACrB,8BAAW,CAAA;IACX,8BAAW,CAAA;AACb,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,0DAA0D;AAC1D,MAAM,CAAN,IAAY,sBAUX;AAVD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;IACjB,+CAAqB,CAAA;IACrB,uCAAa,CAAA;IACb,iDAAuB,CAAA;IACvB,+CAAqB,CAAA;IACrB,yCAAe,CAAA;IACf,+CAAqB,CAAA;AACvB,CAAC,EAVW,sBAAsB,KAAtB,sBAAsB,QAUjC;AAED;;;;;GAKG;AACH,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,qCAAa,CAAA;IACb,2CAAmB,CAAA;IACnB,uCAAe,CAAA;IACf,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AAI,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,12 +9,18 @@ export type { WhoamiApiKeyResponse, WhoamiJwtResponse, WhoamiResponse, } from ".
|
|
|
9
9
|
export { AUTH_SUBTYPE_API_KEY_ADMIN_SCOPED, AUTH_SUBTYPE_API_KEY_AGENT_SCOPED_CLAIMED, AUTH_SUBTYPE_API_KEY_AGENT_SCOPED_UNCLAIMED, } from "./whoami/types.js";
|
|
10
10
|
export type { SigningKey } from "./signing_keys.js";
|
|
11
11
|
export { verifyWebhook } from "./signing_keys.js";
|
|
12
|
-
export type { WebhookContact, WebhookMailContact, MailContactBucket, MailWebhookPayload, MailWebhookEventType, MailWebhookMessage, MessageStatus, MessageDirectionWire, TextWebhookPayload, TextWebhookEventType, TextWebhookMessage, TextDirectionWire, TextTypeWire, SmsDeliveryStatusWire, TextMessageOriginWire, PhoneIncomingCallWebhookPayload, CallStatusWire, HangupReasonWire, CallDirectionWire, } from "./webhooks/types.js";
|
|
12
|
+
export type { WebhookContact, WebhookMailContact, WebhookAgentIdentity, WebhookMailAgentIdentity, MailContactBucket, MailWebhookPayload, MailWebhookEventType, MailWebhookMessage, MessageStatus, MessageDirectionWire, TextWebhookPayload, TextWebhookEventType, TextWebhookMessage, TextDirectionWire, TextTypeWire, SmsDeliveryStatusWire, TextMessageOriginWire, IMessageWebhookPayload, IMessageWebhookEventType, IMessageWebhookMessage, IMessageWebhookReaction, IMessageDirectionWire, IMessageServiceWire, IMessageTypeWire, IMessageDeliveryStatusWire, IMessageReactionTypeWire, IMessageSendStyleWire, IMessageMediaItemWire, IMessageMessageReactionWire, IMessageRecipientWire, PhoneIncomingCallWebhookPayload, CallStatusWire, HangupReasonWire, CallDirectionWire, } from "./webhooks/types.js";
|
|
13
|
+
export type { WebhookSubscription, WebhookSubscriptionStatus, CreateWebhookSubscriptionOptions, UpdateWebhookSubscriptionOptions, ListWebhookSubscriptionsOptions, } from "./webhooks/subscriptions.js";
|
|
14
|
+
export type { WebhookSubscriptionsResource } from "./webhooks/subscriptions.js";
|
|
13
15
|
export type { RawRateLimitInfo, RawTextMediaItem, RawTextMessageRecipient, } from "./phone/types.js";
|
|
14
16
|
export { ContactRuleStatus, FilterMode, ForwardMode, MailRuleAction, MailRuleMatchType, MessageDirection, SendingDomainStatus, ThreadFolder, } from "./mail/types.js";
|
|
15
17
|
export type { Domain, FilterModeChangeNotice, Mailbox, MailContactRule, Message, MessageDetail, Thread, ThreadDetail, } from "./mail/types.js";
|
|
16
18
|
export { PhoneRuleAction, PhoneRuleMatchType, SmsDeliveryStatus, SmsOptInSource, SmsOptInStatus, SmsStatus, TextMessageOrigin, } from "./phone/types.js";
|
|
17
19
|
export type { PhoneNumber, PhoneCall, PhoneCallWithRateLimit, PhoneContactRule, RateLimitInfo, PhoneTranscript, SmsOptIn, TextMediaItem, TextMessage, TextMessageRecipient, TextConversationSummary, TextConversationUpdateResult, } from "./phone/types.js";
|
|
20
|
+
export { IMessageAssignmentStatus, IMessageDeliveryStatus, IMessageReactionType, IMessageRuleAction, IMessageRuleMatchType, IMessageSendStyle, IMessageService, } from "./imessage/types.js";
|
|
21
|
+
export type { IMessage, IMessageAssignment, IMessageContactRule, IMessageConversation, IMessageConversationSummary, IMessageMarkReadResult, IMessageMediaItem, IMessageMediaUpload, IMessageMessageReaction, IMessageReaction, IMessageRecipient, IMessageTriageNumber, } from "./imessage/types.js";
|
|
22
|
+
export type { IMessagesResource, } from "./imessage/resources/imessages.js";
|
|
23
|
+
export type { IMessageContactRulesResource, CreateIMessageContactRuleOptions, ListIMessageContactRulesOptions, ListAllIMessageContactRulesOptions, UpdateIMessageContactRuleOptions, } from "./imessage/resources/contactRules.js";
|
|
18
24
|
export type { AgentIdentitySummary, CreateIdentityOptions, IdentityAccess, IdentityMailboxCreateOptions, IdentityMailbox, IdentityPhoneNumberCreateOptions, IdentityPhoneNumber, IdentityTunnelCreateOptions, } from "./identities/types.js";
|
|
19
25
|
export { HandleUnavailableError, type BlockingNamespace, } from "./identities/exceptions.js";
|
|
20
26
|
export { validateAgentHandle, validateTunnelName, normalizeAgentHandle, } from "./tunnels/_validation.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iCAAiC,EACjC,yCAAyC,EACzC,2CAA2C,GAC5C,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,+BAA+B,EAC/B,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAChE,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iCAAiC,EACjC,yCAAyC,EACzC,2CAA2C,GAC5C,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EACV,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,sBAA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,EAAE,MAAM,kBAAkB,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,MAAM,EACN,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EACV,UAAU,EACV,MAAM,GACP,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { AUTH_SUBTYPE_API_KEY_ADMIN_SCOPED, AUTH_SUBTYPE_API_KEY_AGENT_SCOPED_CL
|
|
|
6
6
|
export { verifyWebhook } from "./signing_keys.js";
|
|
7
7
|
export { ContactRuleStatus, FilterMode, ForwardMode, MailRuleAction, MailRuleMatchType, MessageDirection, SendingDomainStatus, ThreadFolder, } from "./mail/types.js";
|
|
8
8
|
export { PhoneRuleAction, PhoneRuleMatchType, SmsDeliveryStatus, SmsOptInSource, SmsOptInStatus, SmsStatus, TextMessageOrigin, } from "./phone/types.js";
|
|
9
|
+
export { IMessageAssignmentStatus, IMessageDeliveryStatus, IMessageReactionType, IMessageRuleAction, IMessageRuleMatchType, IMessageSendStyle, IMessageService, } from "./imessage/types.js";
|
|
9
10
|
export { HandleUnavailableError, } from "./identities/exceptions.js";
|
|
10
11
|
export { validateAgentHandle, validateTunnelName, normalizeAgentHandle, } from "./tunnels/_validation.js";
|
|
11
12
|
export { VaultSecretType, VaultKeyType } from "./vault/types.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAW/C,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,YAAY,CAAC;AAOpB,OAAO,EACL,iCAAiC,EACjC,yCAAyC,EACzC,2CAA2C,GAC5C,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAW/C,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,YAAY,CAAC;AAOpB,OAAO,EACL,iCAAiC,EACjC,yCAAyC,EACzC,2CAA2C,GAC5C,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAsDlD,OAAO,E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