@wildix/xbees-kite-client 1.0.7 → 1.0.8
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-types/commands/CreateWidgetCommand.d.ts +0 -24
- package/dist-types/commands/GetConfigCommand.d.ts +66 -17
- package/dist-types/commands/GetWidgetCommand.d.ts +0 -12
- package/dist-types/commands/ListWidgetsCommand.d.ts +0 -12
- package/dist-types/commands/UpdateWidgetCommand.d.ts +0 -24
- package/dist-types/models/models_0.d.ts +47 -1
- package/package.json +1 -1
|
@@ -101,18 +101,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
101
101
|
* ],
|
|
102
102
|
* },
|
|
103
103
|
* ],
|
|
104
|
-
* attachments: [ // MessageAttachmentList
|
|
105
|
-
* { // MessageAttachment
|
|
106
|
-
* id: "STRING_VALUE", // required
|
|
107
|
-
* fsId: "STRING_VALUE", // required
|
|
108
|
-
* mime: "STRING_VALUE",
|
|
109
|
-
* name: "STRING_VALUE", // required
|
|
110
|
-
* size: Number("int"), // required
|
|
111
|
-
* width: Number("int"),
|
|
112
|
-
* height: Number("int"),
|
|
113
|
-
* thumbnail: "STRING_VALUE",
|
|
114
|
-
* },
|
|
115
|
-
* ],
|
|
116
104
|
* delay: Number("int"),
|
|
117
105
|
* },
|
|
118
106
|
* ],
|
|
@@ -201,18 +189,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
201
189
|
* // ],
|
|
202
190
|
* // },
|
|
203
191
|
* // ],
|
|
204
|
-
* // attachments: [ // MessageAttachmentList
|
|
205
|
-
* // { // MessageAttachment
|
|
206
|
-
* // id: "STRING_VALUE", // required
|
|
207
|
-
* // fsId: "STRING_VALUE", // required
|
|
208
|
-
* // mime: "STRING_VALUE",
|
|
209
|
-
* // name: "STRING_VALUE", // required
|
|
210
|
-
* // size: Number("int"), // required
|
|
211
|
-
* // width: Number("int"),
|
|
212
|
-
* // height: Number("int"),
|
|
213
|
-
* // thumbnail: "STRING_VALUE",
|
|
214
|
-
* // },
|
|
215
|
-
* // ],
|
|
216
192
|
* // delay: Number("int"),
|
|
217
193
|
* // },
|
|
218
194
|
* // ],
|
|
@@ -121,25 +121,74 @@ declare const GetConfigCommand_base: {
|
|
|
121
121
|
* // thumbnail: "STRING_VALUE",
|
|
122
122
|
* // },
|
|
123
123
|
* // ],
|
|
124
|
-
* //
|
|
125
|
-
* //
|
|
126
|
-
* //
|
|
127
|
-
* //
|
|
128
|
-
* //
|
|
129
|
-
* //
|
|
130
|
-
* //
|
|
131
|
-
* //
|
|
132
|
-
* //
|
|
133
|
-
* //
|
|
134
|
-
* //
|
|
135
|
-
* //
|
|
136
|
-
* //
|
|
137
|
-
* //
|
|
138
|
-
* //
|
|
139
|
-
* //
|
|
140
|
-
* //
|
|
124
|
+
* // quote: { // MessageQuote
|
|
125
|
+
* // messageId: "STRING_VALUE", // required
|
|
126
|
+
* // channelId: "STRING_VALUE", // required
|
|
127
|
+
* // user: {
|
|
128
|
+
* // id: "STRING_VALUE", // required
|
|
129
|
+
* // name: "STRING_VALUE",
|
|
130
|
+
* // email: "STRING_VALUE",
|
|
131
|
+
* // phone: "STRING_VALUE",
|
|
132
|
+
* // picture: "STRING_VALUE",
|
|
133
|
+
* // locale: "STRING_VALUE",
|
|
134
|
+
* // timeZone: "STRING_VALUE",
|
|
135
|
+
* // company: "STRING_VALUE",
|
|
136
|
+
* // bot: true || false,
|
|
137
|
+
* // pbxDomain: "STRING_VALUE",
|
|
138
|
+
* // pbxPort: "STRING_VALUE",
|
|
139
|
+
* // pbxExtension: "STRING_VALUE",
|
|
140
|
+
* // pbxSerial: "STRING_VALUE",
|
|
141
|
+
* // pbxUserId: "STRING_VALUE",
|
|
142
|
+
* // createdAt: "STRING_VALUE",
|
|
143
|
+
* // updatedAt: "STRING_VALUE",
|
|
144
|
+
* // },
|
|
145
|
+
* // text: "STRING_VALUE",
|
|
146
|
+
* // attachments: [
|
|
147
|
+
* // {
|
|
148
|
+
* // id: "STRING_VALUE", // required
|
|
149
|
+
* // fsId: "STRING_VALUE", // required
|
|
150
|
+
* // mime: "STRING_VALUE",
|
|
151
|
+
* // name: "STRING_VALUE", // required
|
|
152
|
+
* // size: Number("int"), // required
|
|
153
|
+
* // width: Number("int"),
|
|
154
|
+
* // height: Number("int"),
|
|
155
|
+
* // thumbnail: "STRING_VALUE",
|
|
156
|
+
* // },
|
|
157
|
+
* // ],
|
|
158
|
+
* // forward: { // MessageForward
|
|
159
|
+
* // forwardCompany: "STRING_VALUE",
|
|
160
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
161
|
+
* // forwardEmail: "STRING_VALUE",
|
|
162
|
+
* // forwardName: "STRING_VALUE",
|
|
163
|
+
* // messageId: "STRING_VALUE", // required
|
|
164
|
+
* // channelId: "STRING_VALUE", // required
|
|
165
|
+
* // },
|
|
166
|
+
* // mentions: [
|
|
167
|
+
* // "<User>",
|
|
168
|
+
* // ],
|
|
169
|
+
* // giphy: { // MessageGiphy
|
|
170
|
+
* // id: "STRING_VALUE", // required
|
|
171
|
+
* // size: "STRING_VALUE", // required
|
|
172
|
+
* // url: "STRING_VALUE", // required
|
|
173
|
+
* // height: "STRING_VALUE", // required
|
|
174
|
+
* // width: "STRING_VALUE", // required
|
|
175
|
+
* // },
|
|
176
|
+
* // createdAt: "STRING_VALUE", // required
|
|
141
177
|
* // updatedAt: "STRING_VALUE",
|
|
142
178
|
* // },
|
|
179
|
+
* // forward: {
|
|
180
|
+
* // forwardCompany: "STRING_VALUE",
|
|
181
|
+
* // forwardDate: "STRING_VALUE", // required
|
|
182
|
+
* // forwardEmail: "STRING_VALUE",
|
|
183
|
+
* // forwardName: "STRING_VALUE",
|
|
184
|
+
* // messageId: "STRING_VALUE", // required
|
|
185
|
+
* // channelId: "STRING_VALUE", // required
|
|
186
|
+
* // },
|
|
187
|
+
* // messageId: "STRING_VALUE", // required
|
|
188
|
+
* // mentions: [ // UsersIdList
|
|
189
|
+
* // "STRING_VALUE",
|
|
190
|
+
* // ],
|
|
191
|
+
* // user: "<User>", // required
|
|
143
192
|
* // },
|
|
144
193
|
* // ],
|
|
145
194
|
* // features: [ // KiteFeaturesList
|
|
@@ -107,18 +107,6 @@ declare const GetWidgetCommand_base: {
|
|
|
107
107
|
* // ],
|
|
108
108
|
* // },
|
|
109
109
|
* // ],
|
|
110
|
-
* // attachments: [ // MessageAttachmentList
|
|
111
|
-
* // { // MessageAttachment
|
|
112
|
-
* // id: "STRING_VALUE", // required
|
|
113
|
-
* // fsId: "STRING_VALUE", // required
|
|
114
|
-
* // mime: "STRING_VALUE",
|
|
115
|
-
* // name: "STRING_VALUE", // required
|
|
116
|
-
* // size: Number("int"), // required
|
|
117
|
-
* // width: Number("int"),
|
|
118
|
-
* // height: Number("int"),
|
|
119
|
-
* // thumbnail: "STRING_VALUE",
|
|
120
|
-
* // },
|
|
121
|
-
* // ],
|
|
122
110
|
* // delay: Number("int"),
|
|
123
111
|
* // },
|
|
124
112
|
* // ],
|
|
@@ -109,18 +109,6 @@ declare const ListWidgetsCommand_base: {
|
|
|
109
109
|
* // ],
|
|
110
110
|
* // },
|
|
111
111
|
* // ],
|
|
112
|
-
* // attachments: [ // MessageAttachmentList
|
|
113
|
-
* // { // MessageAttachment
|
|
114
|
-
* // id: "STRING_VALUE", // required
|
|
115
|
-
* // fsId: "STRING_VALUE", // required
|
|
116
|
-
* // mime: "STRING_VALUE",
|
|
117
|
-
* // name: "STRING_VALUE", // required
|
|
118
|
-
* // size: Number("int"), // required
|
|
119
|
-
* // width: Number("int"),
|
|
120
|
-
* // height: Number("int"),
|
|
121
|
-
* // thumbnail: "STRING_VALUE",
|
|
122
|
-
* // },
|
|
123
|
-
* // ],
|
|
124
112
|
* // delay: Number("int"),
|
|
125
113
|
* // },
|
|
126
114
|
* // ],
|
|
@@ -101,18 +101,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
101
101
|
* ],
|
|
102
102
|
* },
|
|
103
103
|
* ],
|
|
104
|
-
* attachments: [ // MessageAttachmentList
|
|
105
|
-
* { // MessageAttachment
|
|
106
|
-
* id: "STRING_VALUE", // required
|
|
107
|
-
* fsId: "STRING_VALUE", // required
|
|
108
|
-
* mime: "STRING_VALUE",
|
|
109
|
-
* name: "STRING_VALUE", // required
|
|
110
|
-
* size: Number("int"), // required
|
|
111
|
-
* width: Number("int"),
|
|
112
|
-
* height: Number("int"),
|
|
113
|
-
* thumbnail: "STRING_VALUE",
|
|
114
|
-
* },
|
|
115
|
-
* ],
|
|
116
104
|
* delay: Number("int"),
|
|
117
105
|
* },
|
|
118
106
|
* ],
|
|
@@ -202,18 +190,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
202
190
|
* // ],
|
|
203
191
|
* // },
|
|
204
192
|
* // ],
|
|
205
|
-
* // attachments: [ // MessageAttachmentList
|
|
206
|
-
* // { // MessageAttachment
|
|
207
|
-
* // id: "STRING_VALUE", // required
|
|
208
|
-
* // fsId: "STRING_VALUE", // required
|
|
209
|
-
* // mime: "STRING_VALUE",
|
|
210
|
-
* // name: "STRING_VALUE", // required
|
|
211
|
-
* // size: Number("int"), // required
|
|
212
|
-
* // width: Number("int"),
|
|
213
|
-
* // height: Number("int"),
|
|
214
|
-
* // thumbnail: "STRING_VALUE",
|
|
215
|
-
* // },
|
|
216
|
-
* // ],
|
|
217
193
|
* // delay: Number("int"),
|
|
218
194
|
* // },
|
|
219
195
|
* // ],
|
|
@@ -227,6 +227,42 @@ export declare namespace Element {
|
|
|
227
227
|
}
|
|
228
228
|
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
229
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
export interface MessageForward {
|
|
234
|
+
forwardCompany?: string;
|
|
235
|
+
forwardDate: string;
|
|
236
|
+
forwardEmail?: string;
|
|
237
|
+
forwardName?: string;
|
|
238
|
+
messageId: string;
|
|
239
|
+
channelId: string;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
export interface MessageGiphy {
|
|
245
|
+
id: string;
|
|
246
|
+
size: string;
|
|
247
|
+
url: string;
|
|
248
|
+
height: string;
|
|
249
|
+
width: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
export interface MessageQuote {
|
|
255
|
+
messageId: string;
|
|
256
|
+
channelId: string;
|
|
257
|
+
user: User;
|
|
258
|
+
text?: string;
|
|
259
|
+
attachments?: (MessageAttachment)[];
|
|
260
|
+
forward?: MessageForward;
|
|
261
|
+
mentions?: (User)[];
|
|
262
|
+
giphy?: MessageGiphy;
|
|
263
|
+
createdAt: string;
|
|
264
|
+
updatedAt?: string;
|
|
265
|
+
}
|
|
230
266
|
/**
|
|
231
267
|
* @public
|
|
232
268
|
*/
|
|
@@ -234,7 +270,18 @@ export interface WelcomeMessage {
|
|
|
234
270
|
text?: string;
|
|
235
271
|
elements?: (Element)[];
|
|
236
272
|
attachments?: (MessageAttachment)[];
|
|
273
|
+
quote?: MessageQuote;
|
|
274
|
+
forward?: MessageForward;
|
|
275
|
+
/**
|
|
276
|
+
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
237
279
|
messageId: string;
|
|
280
|
+
/**
|
|
281
|
+
* A list of user IDs mentioned in the message.
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
mentions?: (string)[];
|
|
238
285
|
user: User;
|
|
239
286
|
}
|
|
240
287
|
/**
|
|
@@ -458,7 +505,6 @@ export interface WidgetRoute {
|
|
|
458
505
|
export interface WidgetWelcomeMessage {
|
|
459
506
|
text?: string;
|
|
460
507
|
elements?: (Element)[];
|
|
461
|
-
attachments?: (MessageAttachment)[];
|
|
462
508
|
/**
|
|
463
509
|
* The time in milliseconds until the message will be visible to the end user.
|
|
464
510
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|