@wildix/stream-client 0.0.1 → 0.0.4
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/models/models_0.js +63 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/models/models_0.js +62 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -2
- package/dist-types/commands/AddReactionCommand.d.ts +57 -0
- package/dist-types/commands/EditMessageCommand.d.ts +57 -0
- package/dist-types/commands/GetInboxCommand.d.ts +48 -1
- package/dist-types/commands/GetMessageCommand.d.ts +57 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +48 -1
- package/dist-types/commands/ListMentionsCommand.d.ts +57 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +57 -0
- package/dist-types/commands/PinMessageCommand.d.ts +57 -0
- package/dist-types/commands/RemoveReactionCommand.d.ts +57 -0
- package/dist-types/commands/SendMessageCommand.d.ts +57 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +57 -0
- package/dist-types/models/models_0.d.ts +342 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MentionsFilter = exports.SectionType = exports.ChannelType = exports.ChannelsFilter = exports.MessageNotFoundException = exports.ChannelNotFoundException = exports.MessageType = exports.ValidationException = exports.UnauthorizedException = exports.RateLimitExceededException = exports.InternalServerError = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.MentionsFilter = exports.SectionType = exports.ChannelWhatsAppStatus = exports.ChannelType = exports.ChannelsFilter = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MessageNotFoundException = exports.ChannelNotFoundException = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.MessageType = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ValidationException = exports.UnauthorizedException = exports.RateLimitExceededException = exports.InternalServerError = exports.ForbiddenException = void 0;
|
|
4
4
|
const StreamServiceServiceException_1 = require("./StreamServiceServiceException");
|
|
5
5
|
class ForbiddenException extends StreamServiceServiceException_1.StreamServiceServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -75,10 +75,56 @@ class ValidationException extends StreamServiceServiceException_1.StreamServiceS
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
exports.ValidationException = ValidationException;
|
|
78
|
+
var ButtonHandler;
|
|
79
|
+
(function (ButtonHandler) {
|
|
80
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
81
|
+
if (value.link !== undefined)
|
|
82
|
+
return visitor.link(value.link);
|
|
83
|
+
if (value.reply !== undefined)
|
|
84
|
+
return visitor.reply(value.reply);
|
|
85
|
+
if (value.action !== undefined)
|
|
86
|
+
return visitor.action(value.action);
|
|
87
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
88
|
+
};
|
|
89
|
+
})(ButtonHandler || (exports.ButtonHandler = ButtonHandler = {}));
|
|
90
|
+
exports.ButtonVariant = {
|
|
91
|
+
CONTAINED: "contained",
|
|
92
|
+
OUTLINED: "outlined",
|
|
93
|
+
};
|
|
94
|
+
var ActionElement;
|
|
95
|
+
(function (ActionElement) {
|
|
96
|
+
ActionElement.visit = (value, visitor) => {
|
|
97
|
+
if (value.button !== undefined)
|
|
98
|
+
return visitor.button(value.button);
|
|
99
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
100
|
+
};
|
|
101
|
+
})(ActionElement || (exports.ActionElement = ActionElement = {}));
|
|
102
|
+
var Element;
|
|
103
|
+
(function (Element) {
|
|
104
|
+
Element.visit = (value, visitor) => {
|
|
105
|
+
if (value.template !== undefined)
|
|
106
|
+
return visitor.template(value.template);
|
|
107
|
+
if (value.actions !== undefined)
|
|
108
|
+
return visitor.actions(value.actions);
|
|
109
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
110
|
+
};
|
|
111
|
+
})(Element || (exports.Element = Element = {}));
|
|
78
112
|
exports.MessageType = {
|
|
79
113
|
REGULAR: "regular",
|
|
80
114
|
SYSTEM: "system",
|
|
81
115
|
};
|
|
116
|
+
exports.MessageSmsStatus = {
|
|
117
|
+
DELIVERED: "delivered",
|
|
118
|
+
ERROR: "error",
|
|
119
|
+
SENT: "sent",
|
|
120
|
+
TRYING: "trying",
|
|
121
|
+
};
|
|
122
|
+
exports.MessageWhatsAppStatus = {
|
|
123
|
+
DELIVERED: "delivered",
|
|
124
|
+
ERROR: "error",
|
|
125
|
+
SENT: "sent",
|
|
126
|
+
TRYING: "trying",
|
|
127
|
+
};
|
|
82
128
|
class ChannelNotFoundException extends StreamServiceServiceException_1.StreamServiceServiceException {
|
|
83
129
|
name = "ChannelNotFoundException";
|
|
84
130
|
$fault = "client";
|
|
@@ -105,6 +151,19 @@ class MessageNotFoundException extends StreamServiceServiceException_1.StreamSer
|
|
|
105
151
|
}
|
|
106
152
|
}
|
|
107
153
|
exports.MessageNotFoundException = MessageNotFoundException;
|
|
154
|
+
exports.ChannelAccess = {
|
|
155
|
+
PRIVATE: "private",
|
|
156
|
+
PUBLIC: "public",
|
|
157
|
+
};
|
|
158
|
+
exports.ChannelContextEventAttendeeStatus = {
|
|
159
|
+
ACCEPTED: "accepted",
|
|
160
|
+
DECLINED: "declined",
|
|
161
|
+
NONE: "none",
|
|
162
|
+
TENTATIVE: "tentative",
|
|
163
|
+
};
|
|
164
|
+
exports.ChannelContextSource = {
|
|
165
|
+
KITE: "kite",
|
|
166
|
+
};
|
|
108
167
|
exports.ChannelsFilter = {
|
|
109
168
|
ARCHIVED: "archived",
|
|
110
169
|
UNREAD: "unread",
|
|
@@ -114,6 +173,9 @@ exports.ChannelType = {
|
|
|
114
173
|
EXTERNAL: "external",
|
|
115
174
|
GROUP: "group",
|
|
116
175
|
};
|
|
176
|
+
exports.ChannelWhatsAppStatus = {
|
|
177
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
178
|
+
};
|
|
117
179
|
exports.SectionType = {
|
|
118
180
|
CUSTOM: "custom",
|
|
119
181
|
SYSTEM: "system",
|
|
@@ -428,7 +428,7 @@ const de_CommandError = async (output, context) => {
|
|
|
428
428
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
429
429
|
switch (errorCode) {
|
|
430
430
|
case "ChannelNotFoundException":
|
|
431
|
-
case "wildix.
|
|
431
|
+
case "wildix.stream#ChannelNotFoundException":
|
|
432
432
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
433
433
|
case "ForbiddenException":
|
|
434
434
|
case "smithy.framework#ForbiddenException":
|
|
@@ -437,7 +437,7 @@ const de_CommandError = async (output, context) => {
|
|
|
437
437
|
case "smithy.framework#InternalServerError":
|
|
438
438
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
439
439
|
case "MessageNotFoundException":
|
|
440
|
-
case "wildix.
|
|
440
|
+
case "wildix.stream#MessageNotFoundException":
|
|
441
441
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
442
442
|
case "RateLimitExceededException":
|
|
443
443
|
case "smithy.framework#RateLimitExceededException":
|
|
@@ -67,10 +67,56 @@ export class ValidationException extends __BaseException {
|
|
|
67
67
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
+
export var ButtonHandler;
|
|
71
|
+
(function (ButtonHandler) {
|
|
72
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
73
|
+
if (value.link !== undefined)
|
|
74
|
+
return visitor.link(value.link);
|
|
75
|
+
if (value.reply !== undefined)
|
|
76
|
+
return visitor.reply(value.reply);
|
|
77
|
+
if (value.action !== undefined)
|
|
78
|
+
return visitor.action(value.action);
|
|
79
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
80
|
+
};
|
|
81
|
+
})(ButtonHandler || (ButtonHandler = {}));
|
|
82
|
+
export const ButtonVariant = {
|
|
83
|
+
CONTAINED: "contained",
|
|
84
|
+
OUTLINED: "outlined",
|
|
85
|
+
};
|
|
86
|
+
export var ActionElement;
|
|
87
|
+
(function (ActionElement) {
|
|
88
|
+
ActionElement.visit = (value, visitor) => {
|
|
89
|
+
if (value.button !== undefined)
|
|
90
|
+
return visitor.button(value.button);
|
|
91
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
92
|
+
};
|
|
93
|
+
})(ActionElement || (ActionElement = {}));
|
|
94
|
+
export var Element;
|
|
95
|
+
(function (Element) {
|
|
96
|
+
Element.visit = (value, visitor) => {
|
|
97
|
+
if (value.template !== undefined)
|
|
98
|
+
return visitor.template(value.template);
|
|
99
|
+
if (value.actions !== undefined)
|
|
100
|
+
return visitor.actions(value.actions);
|
|
101
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
102
|
+
};
|
|
103
|
+
})(Element || (Element = {}));
|
|
70
104
|
export const MessageType = {
|
|
71
105
|
REGULAR: "regular",
|
|
72
106
|
SYSTEM: "system",
|
|
73
107
|
};
|
|
108
|
+
export const MessageSmsStatus = {
|
|
109
|
+
DELIVERED: "delivered",
|
|
110
|
+
ERROR: "error",
|
|
111
|
+
SENT: "sent",
|
|
112
|
+
TRYING: "trying",
|
|
113
|
+
};
|
|
114
|
+
export const MessageWhatsAppStatus = {
|
|
115
|
+
DELIVERED: "delivered",
|
|
116
|
+
ERROR: "error",
|
|
117
|
+
SENT: "sent",
|
|
118
|
+
TRYING: "trying",
|
|
119
|
+
};
|
|
74
120
|
export class ChannelNotFoundException extends __BaseException {
|
|
75
121
|
name = "ChannelNotFoundException";
|
|
76
122
|
$fault = "client";
|
|
@@ -95,6 +141,19 @@ export class MessageNotFoundException extends __BaseException {
|
|
|
95
141
|
Object.setPrototypeOf(this, MessageNotFoundException.prototype);
|
|
96
142
|
}
|
|
97
143
|
}
|
|
144
|
+
export const ChannelAccess = {
|
|
145
|
+
PRIVATE: "private",
|
|
146
|
+
PUBLIC: "public",
|
|
147
|
+
};
|
|
148
|
+
export const ChannelContextEventAttendeeStatus = {
|
|
149
|
+
ACCEPTED: "accepted",
|
|
150
|
+
DECLINED: "declined",
|
|
151
|
+
NONE: "none",
|
|
152
|
+
TENTATIVE: "tentative",
|
|
153
|
+
};
|
|
154
|
+
export const ChannelContextSource = {
|
|
155
|
+
KITE: "kite",
|
|
156
|
+
};
|
|
98
157
|
export const ChannelsFilter = {
|
|
99
158
|
ARCHIVED: "archived",
|
|
100
159
|
UNREAD: "unread",
|
|
@@ -104,6 +163,9 @@ export const ChannelType = {
|
|
|
104
163
|
EXTERNAL: "external",
|
|
105
164
|
GROUP: "group",
|
|
106
165
|
};
|
|
166
|
+
export const ChannelWhatsAppStatus = {
|
|
167
|
+
CHANNEL_CLOSED: "24h_channel_closed",
|
|
168
|
+
};
|
|
107
169
|
export const SectionType = {
|
|
108
170
|
CUSTOM: "custom",
|
|
109
171
|
SYSTEM: "system",
|
|
@@ -401,7 +401,7 @@ const de_CommandError = async (output, context) => {
|
|
|
401
401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
402
402
|
switch (errorCode) {
|
|
403
403
|
case "ChannelNotFoundException":
|
|
404
|
-
case "wildix.
|
|
404
|
+
case "wildix.stream#ChannelNotFoundException":
|
|
405
405
|
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
406
406
|
case "ForbiddenException":
|
|
407
407
|
case "smithy.framework#ForbiddenException":
|
|
@@ -410,7 +410,7 @@ const de_CommandError = async (output, context) => {
|
|
|
410
410
|
case "smithy.framework#InternalServerError":
|
|
411
411
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
412
412
|
case "MessageNotFoundException":
|
|
413
|
-
case "wildix.
|
|
413
|
+
case "wildix.stream#MessageNotFoundException":
|
|
414
414
|
throw await de_MessageNotFoundExceptionRes(parsedOutput, context);
|
|
415
415
|
case "RateLimitExceededException":
|
|
416
416
|
case "smithy.framework#RateLimitExceededException":
|
|
@@ -80,6 +80,14 @@ declare const AddReactionCommand_base: {
|
|
|
80
80
|
* // reactionCounts: { // ReactionCounts // required
|
|
81
81
|
* // "<keys>": Number("int"),
|
|
82
82
|
* // },
|
|
83
|
+
* // latestReactions: [ // ReactionList
|
|
84
|
+
* // { // Reaction
|
|
85
|
+
* // type: "STRING_VALUE",
|
|
86
|
+
* // userId: "STRING_VALUE",
|
|
87
|
+
* // messageId: "STRING_VALUE",
|
|
88
|
+
* // user: "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // ],
|
|
83
91
|
* // pinned: true || false, // required
|
|
84
92
|
* // pinnedAt: "STRING_VALUE",
|
|
85
93
|
* // pinnedBy: "STRING_VALUE",
|
|
@@ -91,6 +99,55 @@ declare const AddReactionCommand_base: {
|
|
|
91
99
|
* // createdAt: "STRING_VALUE", // required
|
|
92
100
|
* // editedAt: "STRING_VALUE",
|
|
93
101
|
* // deletedAt: "STRING_VALUE",
|
|
102
|
+
* // elements: [ // ElementsList
|
|
103
|
+
* // { // Element Union: only one key present
|
|
104
|
+
* // template: { // MessageTemplateConfig
|
|
105
|
+
* // whatsapp: { // TemplateWithParameters
|
|
106
|
+
* // name: "STRING_VALUE", // required
|
|
107
|
+
* // parameters: [ // ListTemplateParameter
|
|
108
|
+
* // { // TemplateParameter
|
|
109
|
+
* // name: "STRING_VALUE", // required
|
|
110
|
+
* // value: "STRING_VALUE", // required
|
|
111
|
+
* // },
|
|
112
|
+
* // ],
|
|
113
|
+
* // },
|
|
114
|
+
* // },
|
|
115
|
+
* // actions: [ // ActionsElementsList
|
|
116
|
+
* // { // ActionElement Union: only one key present
|
|
117
|
+
* // button: { // ButtonElement
|
|
118
|
+
* // text: "STRING_VALUE", // required
|
|
119
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
120
|
+
* // link: { // ButtonLinkHandler
|
|
121
|
+
* // url: "STRING_VALUE", // required
|
|
122
|
+
* // },
|
|
123
|
+
* // reply: { // ButtonReplyHandler
|
|
124
|
+
* // text: "STRING_VALUE",
|
|
125
|
+
* // },
|
|
126
|
+
* // action: { // ButtonActionHandler
|
|
127
|
+
* // id: "STRING_VALUE", // required
|
|
128
|
+
* // },
|
|
129
|
+
* // },
|
|
130
|
+
* // variant: "contained" || "outlined",
|
|
131
|
+
* // disabled: true || false,
|
|
132
|
+
* // },
|
|
133
|
+
* // },
|
|
134
|
+
* // ],
|
|
135
|
+
* // },
|
|
136
|
+
* // ],
|
|
137
|
+
* // whatsapp: true || false,
|
|
138
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
139
|
+
* // sms: true || false,
|
|
140
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
141
|
+
* // markdown: true || false,
|
|
142
|
+
* // giphy: { // MessageGiphy
|
|
143
|
+
* // id: "STRING_VALUE", // required
|
|
144
|
+
* // size: "STRING_VALUE", // required
|
|
145
|
+
* // url: "STRING_VALUE", // required
|
|
146
|
+
* // height: "STRING_VALUE", // required
|
|
147
|
+
* // width: "STRING_VALUE", // required
|
|
148
|
+
* // },
|
|
149
|
+
* // silent: true || false,
|
|
150
|
+
* // event: "STRING_VALUE",
|
|
94
151
|
* // },
|
|
95
152
|
* // };
|
|
96
153
|
*
|
|
@@ -94,6 +94,14 @@ declare const EditMessageCommand_base: {
|
|
|
94
94
|
* // reactionCounts: { // ReactionCounts // required
|
|
95
95
|
* // "<keys>": Number("int"),
|
|
96
96
|
* // },
|
|
97
|
+
* // latestReactions: [ // ReactionList
|
|
98
|
+
* // { // Reaction
|
|
99
|
+
* // type: "STRING_VALUE",
|
|
100
|
+
* // userId: "STRING_VALUE",
|
|
101
|
+
* // messageId: "STRING_VALUE",
|
|
102
|
+
* // user: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // ],
|
|
97
105
|
* // pinned: true || false, // required
|
|
98
106
|
* // pinnedAt: "STRING_VALUE",
|
|
99
107
|
* // pinnedBy: "STRING_VALUE",
|
|
@@ -105,6 +113,55 @@ declare const EditMessageCommand_base: {
|
|
|
105
113
|
* // createdAt: "STRING_VALUE", // required
|
|
106
114
|
* // editedAt: "STRING_VALUE",
|
|
107
115
|
* // deletedAt: "STRING_VALUE",
|
|
116
|
+
* // elements: [ // ElementsList
|
|
117
|
+
* // { // Element Union: only one key present
|
|
118
|
+
* // template: { // MessageTemplateConfig
|
|
119
|
+
* // whatsapp: { // TemplateWithParameters
|
|
120
|
+
* // name: "STRING_VALUE", // required
|
|
121
|
+
* // parameters: [ // ListTemplateParameter
|
|
122
|
+
* // { // TemplateParameter
|
|
123
|
+
* // name: "STRING_VALUE", // required
|
|
124
|
+
* // value: "STRING_VALUE", // required
|
|
125
|
+
* // },
|
|
126
|
+
* // ],
|
|
127
|
+
* // },
|
|
128
|
+
* // },
|
|
129
|
+
* // actions: [ // ActionsElementsList
|
|
130
|
+
* // { // ActionElement Union: only one key present
|
|
131
|
+
* // button: { // ButtonElement
|
|
132
|
+
* // text: "STRING_VALUE", // required
|
|
133
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
134
|
+
* // link: { // ButtonLinkHandler
|
|
135
|
+
* // url: "STRING_VALUE", // required
|
|
136
|
+
* // },
|
|
137
|
+
* // reply: { // ButtonReplyHandler
|
|
138
|
+
* // text: "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // action: { // ButtonActionHandler
|
|
141
|
+
* // id: "STRING_VALUE", // required
|
|
142
|
+
* // },
|
|
143
|
+
* // },
|
|
144
|
+
* // variant: "contained" || "outlined",
|
|
145
|
+
* // disabled: true || false,
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
148
|
+
* // ],
|
|
149
|
+
* // },
|
|
150
|
+
* // ],
|
|
151
|
+
* // whatsapp: true || false,
|
|
152
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
153
|
+
* // sms: true || false,
|
|
154
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
155
|
+
* // markdown: true || false,
|
|
156
|
+
* // giphy: { // MessageGiphy
|
|
157
|
+
* // id: "STRING_VALUE", // required
|
|
158
|
+
* // size: "STRING_VALUE", // required
|
|
159
|
+
* // url: "STRING_VALUE", // required
|
|
160
|
+
* // height: "STRING_VALUE", // required
|
|
161
|
+
* // width: "STRING_VALUE", // required
|
|
162
|
+
* // },
|
|
163
|
+
* // silent: true || false,
|
|
164
|
+
* // event: "STRING_VALUE",
|
|
108
165
|
* // },
|
|
109
166
|
* // };
|
|
110
167
|
*
|
|
@@ -46,11 +46,13 @@ declare const GetInboxCommand_base: {
|
|
|
46
46
|
* // channelId: "STRING_VALUE", // required
|
|
47
47
|
* // channelType: "direct" || "group" || "external", // required
|
|
48
48
|
* // subject: "STRING_VALUE",
|
|
49
|
+
* // description: "STRING_VALUE",
|
|
49
50
|
* // picture: "STRING_VALUE",
|
|
51
|
+
* // pictureColor: "STRING_VALUE",
|
|
50
52
|
* // memberCount: Number("int"), // required
|
|
51
53
|
* // createdAt: "STRING_VALUE", // required
|
|
52
54
|
* // createdBy: "STRING_VALUE", // required
|
|
53
|
-
* // updatedAt: "STRING_VALUE",
|
|
55
|
+
* // updatedAt: "STRING_VALUE",
|
|
54
56
|
* // channelVersion: Number("long"), // required
|
|
55
57
|
* // lastActivityAt: "STRING_VALUE", // required
|
|
56
58
|
* // lastMessage: { // LastMessagePreview
|
|
@@ -72,6 +74,51 @@ declare const GetInboxCommand_base: {
|
|
|
72
74
|
* // mutedUntil: "STRING_VALUE",
|
|
73
75
|
* // unreadMarkAt: Number("long"),
|
|
74
76
|
* // },
|
|
77
|
+
* // access: "private" || "public",
|
|
78
|
+
* // company: "STRING_VALUE",
|
|
79
|
+
* // context: { // ChannelContext
|
|
80
|
+
* // source: "kite",
|
|
81
|
+
* // target: "STRING_VALUE",
|
|
82
|
+
* // events: [ // ChannelContextEventList
|
|
83
|
+
* // { // ChannelContextEvent
|
|
84
|
+
* // id: "STRING_VALUE",
|
|
85
|
+
* // owner: "STRING_VALUE",
|
|
86
|
+
* // start: "STRING_VALUE",
|
|
87
|
+
* // end: "STRING_VALUE",
|
|
88
|
+
* // summary: "STRING_VALUE",
|
|
89
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
90
|
+
* // { // ChannelContextEventAttendee
|
|
91
|
+
* // email: "STRING_VALUE", // required
|
|
92
|
+
* // name: "STRING_VALUE",
|
|
93
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
99
|
+
* // broadcastId: "STRING_VALUE",
|
|
100
|
+
* // },
|
|
101
|
+
* // },
|
|
102
|
+
* // kite: true || false,
|
|
103
|
+
* // kiteTarget: "STRING_VALUE",
|
|
104
|
+
* // kiteVariant: "STRING_VALUE",
|
|
105
|
+
* // kiteAssign: "STRING_VALUE",
|
|
106
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
107
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
108
|
+
* // service: "STRING_VALUE",
|
|
109
|
+
* // serviceTitle: "STRING_VALUE",
|
|
110
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
111
|
+
* // assignee: "STRING_VALUE",
|
|
112
|
+
* // telephony: true || false,
|
|
113
|
+
* // sms: true || false,
|
|
114
|
+
* // mms: true || false,
|
|
115
|
+
* // whatsapp: true || false,
|
|
116
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
117
|
+
* // broadcast: true || false,
|
|
118
|
+
* // external: true || false,
|
|
119
|
+
* // autoRecord: true || false,
|
|
120
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
121
|
+
* // wizyGuestViewOnly: true || false,
|
|
75
122
|
* // },
|
|
76
123
|
* // ],
|
|
77
124
|
* // sections: [ // SectionList // required
|
|
@@ -79,6 +79,14 @@ declare const GetMessageCommand_base: {
|
|
|
79
79
|
* // reactionCounts: { // ReactionCounts // required
|
|
80
80
|
* // "<keys>": Number("int"),
|
|
81
81
|
* // },
|
|
82
|
+
* // latestReactions: [ // ReactionList
|
|
83
|
+
* // { // Reaction
|
|
84
|
+
* // type: "STRING_VALUE",
|
|
85
|
+
* // userId: "STRING_VALUE",
|
|
86
|
+
* // messageId: "STRING_VALUE",
|
|
87
|
+
* // user: "STRING_VALUE",
|
|
88
|
+
* // },
|
|
89
|
+
* // ],
|
|
82
90
|
* // pinned: true || false, // required
|
|
83
91
|
* // pinnedAt: "STRING_VALUE",
|
|
84
92
|
* // pinnedBy: "STRING_VALUE",
|
|
@@ -90,6 +98,55 @@ declare const GetMessageCommand_base: {
|
|
|
90
98
|
* // createdAt: "STRING_VALUE", // required
|
|
91
99
|
* // editedAt: "STRING_VALUE",
|
|
92
100
|
* // deletedAt: "STRING_VALUE",
|
|
101
|
+
* // elements: [ // ElementsList
|
|
102
|
+
* // { // Element Union: only one key present
|
|
103
|
+
* // template: { // MessageTemplateConfig
|
|
104
|
+
* // whatsapp: { // TemplateWithParameters
|
|
105
|
+
* // name: "STRING_VALUE", // required
|
|
106
|
+
* // parameters: [ // ListTemplateParameter
|
|
107
|
+
* // { // TemplateParameter
|
|
108
|
+
* // name: "STRING_VALUE", // required
|
|
109
|
+
* // value: "STRING_VALUE", // required
|
|
110
|
+
* // },
|
|
111
|
+
* // ],
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // actions: [ // ActionsElementsList
|
|
115
|
+
* // { // ActionElement Union: only one key present
|
|
116
|
+
* // button: { // ButtonElement
|
|
117
|
+
* // text: "STRING_VALUE", // required
|
|
118
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
119
|
+
* // link: { // ButtonLinkHandler
|
|
120
|
+
* // url: "STRING_VALUE", // required
|
|
121
|
+
* // },
|
|
122
|
+
* // reply: { // ButtonReplyHandler
|
|
123
|
+
* // text: "STRING_VALUE",
|
|
124
|
+
* // },
|
|
125
|
+
* // action: { // ButtonActionHandler
|
|
126
|
+
* // id: "STRING_VALUE", // required
|
|
127
|
+
* // },
|
|
128
|
+
* // },
|
|
129
|
+
* // variant: "contained" || "outlined",
|
|
130
|
+
* // disabled: true || false,
|
|
131
|
+
* // },
|
|
132
|
+
* // },
|
|
133
|
+
* // ],
|
|
134
|
+
* // },
|
|
135
|
+
* // ],
|
|
136
|
+
* // whatsapp: true || false,
|
|
137
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
138
|
+
* // sms: true || false,
|
|
139
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
140
|
+
* // markdown: true || false,
|
|
141
|
+
* // giphy: { // MessageGiphy
|
|
142
|
+
* // id: "STRING_VALUE", // required
|
|
143
|
+
* // size: "STRING_VALUE", // required
|
|
144
|
+
* // url: "STRING_VALUE", // required
|
|
145
|
+
* // height: "STRING_VALUE", // required
|
|
146
|
+
* // width: "STRING_VALUE", // required
|
|
147
|
+
* // },
|
|
148
|
+
* // silent: true || false,
|
|
149
|
+
* // event: "STRING_VALUE",
|
|
93
150
|
* // },
|
|
94
151
|
* // };
|
|
95
152
|
*
|
|
@@ -49,11 +49,13 @@ declare const ListChannelsCommand_base: {
|
|
|
49
49
|
* // channelId: "STRING_VALUE", // required
|
|
50
50
|
* // channelType: "direct" || "group" || "external", // required
|
|
51
51
|
* // subject: "STRING_VALUE",
|
|
52
|
+
* // description: "STRING_VALUE",
|
|
52
53
|
* // picture: "STRING_VALUE",
|
|
54
|
+
* // pictureColor: "STRING_VALUE",
|
|
53
55
|
* // memberCount: Number("int"), // required
|
|
54
56
|
* // createdAt: "STRING_VALUE", // required
|
|
55
57
|
* // createdBy: "STRING_VALUE", // required
|
|
56
|
-
* // updatedAt: "STRING_VALUE",
|
|
58
|
+
* // updatedAt: "STRING_VALUE",
|
|
57
59
|
* // channelVersion: Number("long"), // required
|
|
58
60
|
* // lastActivityAt: "STRING_VALUE", // required
|
|
59
61
|
* // lastMessage: { // LastMessagePreview
|
|
@@ -75,6 +77,51 @@ declare const ListChannelsCommand_base: {
|
|
|
75
77
|
* // mutedUntil: "STRING_VALUE",
|
|
76
78
|
* // unreadMarkAt: Number("long"),
|
|
77
79
|
* // },
|
|
80
|
+
* // access: "private" || "public",
|
|
81
|
+
* // company: "STRING_VALUE",
|
|
82
|
+
* // context: { // ChannelContext
|
|
83
|
+
* // source: "kite",
|
|
84
|
+
* // target: "STRING_VALUE",
|
|
85
|
+
* // events: [ // ChannelContextEventList
|
|
86
|
+
* // { // ChannelContextEvent
|
|
87
|
+
* // id: "STRING_VALUE",
|
|
88
|
+
* // owner: "STRING_VALUE",
|
|
89
|
+
* // start: "STRING_VALUE",
|
|
90
|
+
* // end: "STRING_VALUE",
|
|
91
|
+
* // summary: "STRING_VALUE",
|
|
92
|
+
* // attendees: [ // ChannelContextEventAttendeeList
|
|
93
|
+
* // { // ChannelContextEventAttendee
|
|
94
|
+
* // email: "STRING_VALUE", // required
|
|
95
|
+
* // name: "STRING_VALUE",
|
|
96
|
+
* // status: "accepted" || "tentative" || "declined" || "none", // required
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // ptt: { // ChannelContextPushToTalk
|
|
102
|
+
* // broadcastId: "STRING_VALUE",
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // kite: true || false,
|
|
106
|
+
* // kiteTarget: "STRING_VALUE",
|
|
107
|
+
* // kiteVariant: "STRING_VALUE",
|
|
108
|
+
* // kiteAssign: "STRING_VALUE",
|
|
109
|
+
* // kiteServiceName: "STRING_VALUE",
|
|
110
|
+
* // kiteDefaultSubject: "STRING_VALUE",
|
|
111
|
+
* // service: "STRING_VALUE",
|
|
112
|
+
* // serviceTitle: "STRING_VALUE",
|
|
113
|
+
* // serviceRecipient: "STRING_VALUE",
|
|
114
|
+
* // assignee: "STRING_VALUE",
|
|
115
|
+
* // telephony: true || false,
|
|
116
|
+
* // sms: true || false,
|
|
117
|
+
* // mms: true || false,
|
|
118
|
+
* // whatsapp: true || false,
|
|
119
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
120
|
+
* // broadcast: true || false,
|
|
121
|
+
* // external: true || false,
|
|
122
|
+
* // autoRecord: true || false,
|
|
123
|
+
* // transcriptionLanguage: "STRING_VALUE",
|
|
124
|
+
* // wizyGuestViewOnly: true || false,
|
|
78
125
|
* // },
|
|
79
126
|
* // ],
|
|
80
127
|
* // nextCursor: "STRING_VALUE",
|
|
@@ -88,6 +88,14 @@ declare const ListMentionsCommand_base: {
|
|
|
88
88
|
* // reactionCounts: { // ReactionCounts // required
|
|
89
89
|
* // "<keys>": Number("int"),
|
|
90
90
|
* // },
|
|
91
|
+
* // latestReactions: [ // ReactionList
|
|
92
|
+
* // { // Reaction
|
|
93
|
+
* // type: "STRING_VALUE",
|
|
94
|
+
* // userId: "STRING_VALUE",
|
|
95
|
+
* // messageId: "STRING_VALUE",
|
|
96
|
+
* // user: "STRING_VALUE",
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
91
99
|
* // pinned: true || false, // required
|
|
92
100
|
* // pinnedAt: "STRING_VALUE",
|
|
93
101
|
* // pinnedBy: "STRING_VALUE",
|
|
@@ -99,6 +107,55 @@ declare const ListMentionsCommand_base: {
|
|
|
99
107
|
* // createdAt: "STRING_VALUE", // required
|
|
100
108
|
* // editedAt: "STRING_VALUE",
|
|
101
109
|
* // deletedAt: "STRING_VALUE",
|
|
110
|
+
* // elements: [ // ElementsList
|
|
111
|
+
* // { // Element Union: only one key present
|
|
112
|
+
* // template: { // MessageTemplateConfig
|
|
113
|
+
* // whatsapp: { // TemplateWithParameters
|
|
114
|
+
* // name: "STRING_VALUE", // required
|
|
115
|
+
* // parameters: [ // ListTemplateParameter
|
|
116
|
+
* // { // TemplateParameter
|
|
117
|
+
* // name: "STRING_VALUE", // required
|
|
118
|
+
* // value: "STRING_VALUE", // required
|
|
119
|
+
* // },
|
|
120
|
+
* // ],
|
|
121
|
+
* // },
|
|
122
|
+
* // },
|
|
123
|
+
* // actions: [ // ActionsElementsList
|
|
124
|
+
* // { // ActionElement Union: only one key present
|
|
125
|
+
* // button: { // ButtonElement
|
|
126
|
+
* // text: "STRING_VALUE", // required
|
|
127
|
+
* // handler: { // ButtonHandler Union: only one key present
|
|
128
|
+
* // link: { // ButtonLinkHandler
|
|
129
|
+
* // url: "STRING_VALUE", // required
|
|
130
|
+
* // },
|
|
131
|
+
* // reply: { // ButtonReplyHandler
|
|
132
|
+
* // text: "STRING_VALUE",
|
|
133
|
+
* // },
|
|
134
|
+
* // action: { // ButtonActionHandler
|
|
135
|
+
* // id: "STRING_VALUE", // required
|
|
136
|
+
* // },
|
|
137
|
+
* // },
|
|
138
|
+
* // variant: "contained" || "outlined",
|
|
139
|
+
* // disabled: true || false,
|
|
140
|
+
* // },
|
|
141
|
+
* // },
|
|
142
|
+
* // ],
|
|
143
|
+
* // },
|
|
144
|
+
* // ],
|
|
145
|
+
* // whatsapp: true || false,
|
|
146
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
147
|
+
* // sms: true || false,
|
|
148
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
149
|
+
* // markdown: true || false,
|
|
150
|
+
* // giphy: { // MessageGiphy
|
|
151
|
+
* // id: "STRING_VALUE", // required
|
|
152
|
+
* // size: "STRING_VALUE", // required
|
|
153
|
+
* // url: "STRING_VALUE", // required
|
|
154
|
+
* // height: "STRING_VALUE", // required
|
|
155
|
+
* // width: "STRING_VALUE", // required
|
|
156
|
+
* // },
|
|
157
|
+
* // silent: true || false,
|
|
158
|
+
* // event: "STRING_VALUE",
|
|
102
159
|
* // },
|
|
103
160
|
* // channel: { // MentionChannelPreview
|
|
104
161
|
* // channelId: "STRING_VALUE", // required
|