skedyul 0.1.22 → 0.1.23
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/dist/core/client.d.ts +23 -2
- package/dist/core/client.js +1 -0
- package/package.json +1 -1
package/dist/core/client.d.ts
CHANGED
|
@@ -33,13 +33,34 @@ export declare const workplace: {
|
|
|
33
33
|
list(args?: ListArgs): Promise<Workplace[]>;
|
|
34
34
|
get(id: string): Promise<Workplace>;
|
|
35
35
|
};
|
|
36
|
+
export interface CreateMessageAttachment {
|
|
37
|
+
fileId: string;
|
|
38
|
+
name: string;
|
|
39
|
+
mimeType: string;
|
|
40
|
+
size: number;
|
|
41
|
+
}
|
|
42
|
+
export interface CreateMessageType {
|
|
43
|
+
id?: string | null;
|
|
44
|
+
remoteId?: string | null;
|
|
45
|
+
message: string;
|
|
46
|
+
title?: string | null;
|
|
47
|
+
contentRaw?: string | null;
|
|
48
|
+
newChat?: boolean;
|
|
49
|
+
attachments?: CreateMessageAttachment[];
|
|
50
|
+
}
|
|
51
|
+
export interface ReceiveMessageContact {
|
|
52
|
+
id?: string;
|
|
53
|
+
identifierValue?: string;
|
|
54
|
+
}
|
|
36
55
|
export interface ReceiveMessageInput {
|
|
37
56
|
/** Communication channel ID */
|
|
38
57
|
communicationChannelId: string;
|
|
39
58
|
/** Sender's identifier (e.g., phone number, email) */
|
|
40
59
|
from: string;
|
|
41
|
-
/** Message
|
|
42
|
-
message:
|
|
60
|
+
/** Message payload */
|
|
61
|
+
message: CreateMessageType;
|
|
62
|
+
/** Optional contact metadata to associate the message */
|
|
63
|
+
contact?: ReceiveMessageContact;
|
|
43
64
|
/** Optional remote/external message ID (e.g., Twilio MessageSid) */
|
|
44
65
|
remoteId?: string;
|
|
45
66
|
}
|
package/dist/core/client.js
CHANGED
|
@@ -119,6 +119,7 @@ exports.communicationChannel = {
|
|
|
119
119
|
communicationChannelId: input.communicationChannelId,
|
|
120
120
|
from: input.from,
|
|
121
121
|
message: input.message,
|
|
122
|
+
contact: input.contact,
|
|
122
123
|
...(input.remoteId ? { remoteId: input.remoteId } : {}),
|
|
123
124
|
}));
|
|
124
125
|
return payload;
|