@wildix/xbees-conversations-client 1.0.30 → 1.0.31
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-cjs/Conversations.js +36 -4
- package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
- package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
- package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
- package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
- package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
- package/dist-cjs/commands/InviteCommand.js +41 -0
- package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
- package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
- package/dist-cjs/commands/MarkReadCommand.js +41 -0
- package/dist-cjs/commands/SendGiphyCommand.js +41 -0
- package/dist-cjs/commands/SendMessageCommand.js +41 -0
- package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
- package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
- package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
- package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
- package/dist-cjs/commands/index.js +18 -2
- package/dist-cjs/models/models_0.js +71 -52
- package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
- package/dist-es/Conversations.js +36 -4
- package/dist-es/commands/AddChannelMemberCommand.js +37 -0
- package/dist-es/commands/AddChannelMembersCommand.js +37 -0
- package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
- package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
- package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
- package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
- package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
- package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
- package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
- package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
- package/dist-es/commands/ListChannelMembersCommand.js +37 -0
- package/dist-es/commands/MarkReadCommand.js +37 -0
- package/dist-es/commands/SendGiphyCommand.js +37 -0
- package/dist-es/commands/SendMessageCommand.js +37 -0
- package/dist-es/commands/SendMessageReactionCommand.js +37 -0
- package/dist-es/commands/SendSystemMessageCommand.js +37 -0
- package/dist-es/commands/SendTypingStartCommand.js +37 -0
- package/dist-es/commands/SendTypingStopCommand.js +37 -0
- package/dist-es/commands/index.js +18 -2
- package/dist-es/models/models_0.js +67 -50
- package/dist-es/protocols/Aws_restJson1.js +1174 -148
- package/dist-types/Conversations.d.ts +122 -10
- package/dist-types/ConversationsClient.d.ts +20 -4
- package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
- package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
- package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
- package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
- package/dist-types/commands/GetChannelCommand.d.ts +2 -0
- package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
- package/dist-types/commands/GetMessageCommand.d.ts +23 -21
- package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
- package/dist-types/commands/InviteCommand.d.ts +98 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
- package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
- package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
- package/dist-types/commands/MarkReadCommand.d.ts +76 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
- package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
- package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
- package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
- package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
- package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
- package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
- package/dist-types/commands/index.d.ts +18 -2
- package/dist-types/models/models_0.d.ts +450 -172
- package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_SendSystemMessageCommand, se_SendSystemMessageCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SendSystemMessageCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "ConversationsClient";
|
|
16
|
+
const commandName = "SendSystemMessageCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "Conversations",
|
|
25
|
+
operation: "SendSystemMessage",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_SendSystemMessageCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_SendSystemMessageCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_SendTypingStartCommand, se_SendTypingStartCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SendTypingStartCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "ConversationsClient";
|
|
16
|
+
const commandName = "SendTypingStartCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "Conversations",
|
|
25
|
+
operation: "SendTypingStart",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_SendTypingStartCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_SendTypingStartCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_SendTypingStopCommand, se_SendTypingStopCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SendTypingStopCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "ConversationsClient";
|
|
16
|
+
const commandName = "SendTypingStopCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "Conversations",
|
|
25
|
+
operation: "SendTypingStop",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_SendTypingStopCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_SendTypingStopCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./AddChannelMemberCommand";
|
|
2
|
+
export * from "./AddChannelMembersCommand";
|
|
3
|
+
export * from "./CreateGroupChannelCommand";
|
|
3
4
|
export * from "./DeleteChannelCommand";
|
|
5
|
+
export * from "./DeleteChannelMemberCommand";
|
|
4
6
|
export * from "./DeleteMessageCommand";
|
|
7
|
+
export * from "./DeleteMessageReactionCommand";
|
|
5
8
|
export * from "./GetChannelCommand";
|
|
6
9
|
export * from "./GetChannelMemberCommand";
|
|
10
|
+
export * from "./GetDirectChannelIdCommand";
|
|
7
11
|
export * from "./GetMessageCommand";
|
|
12
|
+
export * from "./GetMessageReactionsCommand";
|
|
13
|
+
export * from "./GetOrCreateDirectChannelCommand";
|
|
14
|
+
export * from "./InviteCommand";
|
|
8
15
|
export * from "./JoinChannelCommand";
|
|
16
|
+
export * from "./LeaveChannelCommand";
|
|
17
|
+
export * from "./ListChannelMembersCommand";
|
|
9
18
|
export * from "./ListChannelsCommand";
|
|
10
19
|
export * from "./ListMessagesCommand";
|
|
20
|
+
export * from "./MarkReadCommand";
|
|
11
21
|
export * from "./PartialUpdateChannelCommand";
|
|
12
22
|
export * from "./PartialUpdateMessageCommand";
|
|
13
23
|
export * from "./ScheduleExternalFlagAdjustmentJobCommand";
|
|
24
|
+
export * from "./SendGiphyCommand";
|
|
25
|
+
export * from "./SendMessageCommand";
|
|
26
|
+
export * from "./SendMessageReactionCommand";
|
|
27
|
+
export * from "./SendSystemMessageCommand";
|
|
28
|
+
export * from "./SendTypingStartCommand";
|
|
29
|
+
export * from "./SendTypingStopCommand";
|
|
14
30
|
export * from "./UpdateChannelCommand";
|
|
15
31
|
export * from "./UpdateMessageCommand";
|
|
@@ -27,19 +27,6 @@ export const ChannelType = {
|
|
|
27
27
|
DIRECT: "direct",
|
|
28
28
|
GROUP: "group",
|
|
29
29
|
};
|
|
30
|
-
export const ChannelAccess = {
|
|
31
|
-
PRIVATE: "private",
|
|
32
|
-
PUBLIC: "public",
|
|
33
|
-
};
|
|
34
|
-
export const ChannelContextEventAttendeeStatus = {
|
|
35
|
-
ACCEPTED: "accepted",
|
|
36
|
-
DECLINED: "declined",
|
|
37
|
-
NONE: "none",
|
|
38
|
-
TENTATIVE: "tentative",
|
|
39
|
-
};
|
|
40
|
-
export const ChannelContextSource = {
|
|
41
|
-
KITE: "kite",
|
|
42
|
-
};
|
|
43
30
|
export const ChannelMemberRole = {
|
|
44
31
|
MEMBER: "member",
|
|
45
32
|
SUPERVISOR: "supervisor",
|
|
@@ -56,49 +43,41 @@ export class ChannelNotFoundException extends __BaseException {
|
|
|
56
43
|
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
57
44
|
}
|
|
58
45
|
}
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
PICTURE: "picture",
|
|
75
|
-
PICTURE_COLOR: "pictureColor",
|
|
76
|
-
SERVICE: "service",
|
|
77
|
-
SERVICE_RECIPIENT: "serviceRecipient",
|
|
78
|
-
SERVICE_TITLE: "serviceTitle",
|
|
79
|
-
SMS: "sms",
|
|
80
|
-
SUBJECT: "subject",
|
|
81
|
-
TELEPHONY: "telephony",
|
|
46
|
+
export class MemberAlreadyExistException extends __BaseException {
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "MemberAlreadyExistException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts
|
|
52
|
+
});
|
|
53
|
+
this.name = "MemberAlreadyExistException";
|
|
54
|
+
this.$fault = "client";
|
|
55
|
+
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export const ChannelAccess = {
|
|
59
|
+
PRIVATE: "private",
|
|
60
|
+
PUBLIC: "public",
|
|
82
61
|
};
|
|
83
|
-
export const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
62
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
63
|
+
ACCEPTED: "accepted",
|
|
64
|
+
DECLINED: "declined",
|
|
65
|
+
NONE: "none",
|
|
66
|
+
TENTATIVE: "tentative",
|
|
88
67
|
};
|
|
89
|
-
export const
|
|
90
|
-
|
|
68
|
+
export const ChannelContextSource = {
|
|
69
|
+
KITE: "kite",
|
|
91
70
|
};
|
|
92
|
-
export class
|
|
71
|
+
export class ChannelAlreadyExistException extends __BaseException {
|
|
93
72
|
constructor(opts) {
|
|
94
73
|
super({
|
|
95
|
-
name: "
|
|
74
|
+
name: "ChannelAlreadyExistException",
|
|
96
75
|
$fault: "client",
|
|
97
76
|
...opts
|
|
98
77
|
});
|
|
99
|
-
this.name = "
|
|
78
|
+
this.name = "ChannelAlreadyExistException";
|
|
100
79
|
this.$fault = "client";
|
|
101
|
-
Object.setPrototypeOf(this,
|
|
80
|
+
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
102
81
|
}
|
|
103
82
|
}
|
|
104
83
|
export class MemberNotFoundException extends __BaseException {
|
|
@@ -113,13 +92,51 @@ export class MemberNotFoundException extends __BaseException {
|
|
|
113
92
|
Object.setPrototypeOf(this, MemberNotFoundException.prototype);
|
|
114
93
|
}
|
|
115
94
|
}
|
|
95
|
+
export class MessageNotFoundException extends __BaseException {
|
|
96
|
+
constructor(opts) {
|
|
97
|
+
super({
|
|
98
|
+
name: "MessageNotFoundException",
|
|
99
|
+
$fault: "client",
|
|
100
|
+
...opts
|
|
101
|
+
});
|
|
102
|
+
this.name = "MessageNotFoundException";
|
|
103
|
+
this.$fault = "client";
|
|
104
|
+
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export const ReactionType = {
|
|
108
|
+
CLAP: "clap",
|
|
109
|
+
CONFUSED: "confused",
|
|
110
|
+
EYES: "eyes",
|
|
111
|
+
HEART: "heart",
|
|
112
|
+
SLIGHTLY_SMILING_FACE: "slightly_smiling_face",
|
|
113
|
+
SMILEY: "smiley",
|
|
114
|
+
THUMBSDOWN: "thumbsdown",
|
|
115
|
+
THUMBSUP: "thumbsup",
|
|
116
|
+
WHITE_CHECK_MARK: "white_check_mark",
|
|
117
|
+
};
|
|
118
|
+
export const MessageSmsStatus = {
|
|
119
|
+
DELIVERED: "delivered",
|
|
120
|
+
ERROR: "error",
|
|
121
|
+
SENT: "sent",
|
|
122
|
+
TRYING: "trying",
|
|
123
|
+
};
|
|
124
|
+
export const MessageType = {
|
|
125
|
+
REGULAR: "regular",
|
|
126
|
+
};
|
|
127
|
+
export const GroupChannelUnsetOptions = {
|
|
128
|
+
ACCESS: "access",
|
|
129
|
+
BROADCAST: "broadcast",
|
|
130
|
+
DESCRIPTION: "description",
|
|
131
|
+
PICTURE: "picture",
|
|
132
|
+
PICTURE_COLOR: "pictureColor",
|
|
133
|
+
SUBJECT: "subject",
|
|
134
|
+
};
|
|
116
135
|
export const MessageUnsetFields = {
|
|
117
136
|
ATTACHMENTS: "attachments",
|
|
118
|
-
EVENT: "event",
|
|
119
137
|
FORWARD: "forward",
|
|
120
138
|
QUOTE: "quote",
|
|
121
|
-
|
|
122
|
-
SMS_STATUS: "smsStatus",
|
|
139
|
+
TEXT: "text",
|
|
123
140
|
};
|
|
124
141
|
export class ConversationsServiceException extends __BaseException {
|
|
125
142
|
constructor(opts) {
|