@wildix/xbees-conversations-client 1.0.30 → 1.0.32

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.
Files changed (80) hide show
  1. package/dist-cjs/Conversations.js +36 -4
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
  6. package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
  7. package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
  8. package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
  9. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
  10. package/dist-cjs/commands/InviteCommand.js +41 -0
  11. package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
  12. package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
  13. package/dist-cjs/commands/MarkReadCommand.js +41 -0
  14. package/dist-cjs/commands/SendGiphyCommand.js +41 -0
  15. package/dist-cjs/commands/SendMessageCommand.js +41 -0
  16. package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
  17. package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
  18. package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
  19. package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
  20. package/dist-cjs/commands/index.js +18 -2
  21. package/dist-cjs/models/models_0.js +71 -52
  22. package/dist-cjs/protocols/Aws_restJson1.js +1208 -145
  23. package/dist-es/Conversations.js +36 -4
  24. package/dist-es/commands/AddChannelMemberCommand.js +37 -0
  25. package/dist-es/commands/AddChannelMembersCommand.js +37 -0
  26. package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
  27. package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
  28. package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
  29. package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
  30. package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
  31. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
  32. package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
  33. package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
  34. package/dist-es/commands/ListChannelMembersCommand.js +37 -0
  35. package/dist-es/commands/MarkReadCommand.js +37 -0
  36. package/dist-es/commands/SendGiphyCommand.js +37 -0
  37. package/dist-es/commands/SendMessageCommand.js +37 -0
  38. package/dist-es/commands/SendMessageReactionCommand.js +37 -0
  39. package/dist-es/commands/SendSystemMessageCommand.js +37 -0
  40. package/dist-es/commands/SendTypingStartCommand.js +37 -0
  41. package/dist-es/commands/SendTypingStopCommand.js +37 -0
  42. package/dist-es/commands/index.js +18 -2
  43. package/dist-es/models/models_0.js +67 -50
  44. package/dist-es/protocols/Aws_restJson1.js +1178 -148
  45. package/dist-types/Conversations.d.ts +122 -10
  46. package/dist-types/ConversationsClient.d.ts +20 -4
  47. package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
  48. package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
  49. package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
  50. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
  51. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
  52. package/dist-types/commands/DeleteMessageCommand.d.ts +3 -0
  53. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
  54. package/dist-types/commands/GetChannelCommand.d.ts +2 -0
  55. package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
  56. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
  57. package/dist-types/commands/GetMessageCommand.d.ts +23 -21
  58. package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
  59. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
  60. package/dist-types/commands/InviteCommand.d.ts +98 -0
  61. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  62. package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
  63. package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
  64. package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
  65. package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
  66. package/dist-types/commands/MarkReadCommand.d.ts +76 -0
  67. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
  68. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
  69. package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
  70. package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
  71. package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
  72. package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
  73. package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
  74. package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
  75. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
  76. package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
  77. package/dist-types/commands/index.d.ts +18 -2
  78. package/dist-types/models/models_0.d.ts +455 -172
  79. package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
  80. 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 "./CreateChannelCommand";
2
- export * from "./CreateMessageCommand";
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 const ChannelUnsetFields = {
60
- ACCESS: "access",
61
- ASSIGNEE: "assignee",
62
- BROADCAST: "broadcast",
63
- COMPANY: "company",
64
- CONTEXT: "context",
65
- DESCRIPTION: "description",
66
- EXTERNAL: "external",
67
- KITE: "kite",
68
- KITE_ASSIGN: "kiteAssign",
69
- KITE_DEFAULT_SUBJECT: "kiteDefaultSubject",
70
- KITE_SERVICE_NAME: "kiteServiceName",
71
- KITE_TARGET: "kiteTarget",
72
- KITE_VARIANT: "kiteVariant",
73
- MMS: "mms",
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 MessageSmsStatus = {
84
- DELIVERED: "delivered",
85
- ERROR: "error",
86
- SENT: "sent",
87
- TRYING: "trying",
62
+ export const ChannelContextEventAttendeeStatus = {
63
+ ACCEPTED: "accepted",
64
+ DECLINED: "declined",
65
+ NONE: "none",
66
+ TENTATIVE: "tentative",
88
67
  };
89
- export const MessageType = {
90
- REGULAR: "regular",
68
+ export const ChannelContextSource = {
69
+ KITE: "kite",
91
70
  };
92
- export class MessageNotFoundException extends __BaseException {
71
+ export class ChannelAlreadyExistException extends __BaseException {
93
72
  constructor(opts) {
94
73
  super({
95
- name: "MessageNotFoundException",
74
+ name: "ChannelAlreadyExistException",
96
75
  $fault: "client",
97
76
  ...opts
98
77
  });
99
- this.name = "MessageNotFoundException";
78
+ this.name = "ChannelAlreadyExistException";
100
79
  this.$fault = "client";
101
- Object.setPrototypeOf(this, MessageNotFoundException.prototype);
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
- SMS: "sms",
122
- SMS_STATUS: "smsStatus",
139
+ TEXT: "text",
123
140
  };
124
141
  export class ConversationsServiceException extends __BaseException {
125
142
  constructor(opts) {