@wildix/xbees-conversations-client 1.0.61 → 1.0.62
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 +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +7 -1
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +7 -1
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +2 -1
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +3 -1
- package/dist-types/commands/UploadFileCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +7 -0
- package/package.json +1 -1
|
@@ -139,6 +139,7 @@ exports.ChannelAlreadyExistException = ChannelAlreadyExistException;
|
|
|
139
139
|
exports.ConversationFileCategory = {
|
|
140
140
|
GENERAL: "channels",
|
|
141
141
|
RECORDING: "recordings",
|
|
142
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
142
143
|
};
|
|
143
144
|
class TagsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
144
145
|
constructor(opts) {
|
|
@@ -267,6 +267,7 @@ const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
267
267
|
b.p('fileId', () => input.fileId, '{fileId}', false);
|
|
268
268
|
const query = (0, smithy_client_1.map)({
|
|
269
269
|
[_c]: [, input[_c]],
|
|
270
|
+
[_d]: [() => input.download !== void 0, () => (input[_d].toString())],
|
|
270
271
|
});
|
|
271
272
|
let body;
|
|
272
273
|
b.m("GET")
|
|
@@ -1538,7 +1539,11 @@ const de_TriggerMessageActionCommand = async (output, context) => {
|
|
|
1538
1539
|
const contents = (0, smithy_client_1.map)({
|
|
1539
1540
|
$metadata: deserializeMetadata(output),
|
|
1540
1541
|
});
|
|
1541
|
-
|
|
1542
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
1543
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1544
|
+
'triggerId': smithy_client_1.expectString,
|
|
1545
|
+
});
|
|
1546
|
+
Object.assign(contents, doc);
|
|
1542
1547
|
return contents;
|
|
1543
1548
|
};
|
|
1544
1549
|
exports.de_TriggerMessageActionCommand = de_TriggerMessageActionCommand;
|
|
@@ -1933,6 +1938,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1933
1938
|
value.length != 0) &&
|
|
1934
1939
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1935
1940
|
const _c = "category";
|
|
1941
|
+
const _d = "download";
|
|
1936
1942
|
const _f = "force";
|
|
1937
1943
|
const _l = "limit";
|
|
1938
1944
|
const _o = "offset";
|
|
@@ -130,6 +130,7 @@ export class ChannelAlreadyExistException extends __BaseException {
|
|
|
130
130
|
export const ConversationFileCategory = {
|
|
131
131
|
GENERAL: "channels",
|
|
132
132
|
RECORDING: "recordings",
|
|
133
|
+
WIZY_RECORDING: "wizyconfRecordings",
|
|
133
134
|
};
|
|
134
135
|
export class TagsLimitReachedException extends __BaseException {
|
|
135
136
|
constructor(opts) {
|
|
@@ -249,6 +249,7 @@ export const se_GetFilePresignedDownloadUrlCommand = async (input, context) => {
|
|
|
249
249
|
b.p('fileId', () => input.fileId, '{fileId}', false);
|
|
250
250
|
const query = map({
|
|
251
251
|
[_c]: [, input[_c]],
|
|
252
|
+
[_d]: [() => input.download !== void 0, () => (input[_d].toString())],
|
|
252
253
|
});
|
|
253
254
|
let body;
|
|
254
255
|
b.m("GET")
|
|
@@ -1441,7 +1442,11 @@ export const de_TriggerMessageActionCommand = async (output, context) => {
|
|
|
1441
1442
|
const contents = map({
|
|
1442
1443
|
$metadata: deserializeMetadata(output),
|
|
1443
1444
|
});
|
|
1444
|
-
await
|
|
1445
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1446
|
+
const doc = take(data, {
|
|
1447
|
+
'triggerId': __expectString,
|
|
1448
|
+
});
|
|
1449
|
+
Object.assign(contents, doc);
|
|
1445
1450
|
return contents;
|
|
1446
1451
|
};
|
|
1447
1452
|
export const de_UnpinChannelCommand = async (output, context) => {
|
|
@@ -1829,6 +1834,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1829
1834
|
value.length != 0) &&
|
|
1830
1835
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1831
1836
|
const _c = "category";
|
|
1837
|
+
const _d = "download";
|
|
1832
1838
|
const _f = "force";
|
|
1833
1839
|
const _l = "limit";
|
|
1834
1840
|
const _o = "offset";
|
|
@@ -38,7 +38,8 @@ declare const GetFilePresignedDownloadUrlCommand_base: {
|
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
39
|
* messageId: "STRING_VALUE", // required
|
|
40
40
|
* fileId: "STRING_VALUE", // required
|
|
41
|
-
* category: "channels" || "recordings",
|
|
41
|
+
* category: "channels" || "recordings" || "wizyconfRecordings",
|
|
42
|
+
* download: Number("int"),
|
|
42
43
|
* };
|
|
43
44
|
* const command = new GetFilePresignedDownloadUrlCommand(input);
|
|
44
45
|
* const response = await client.send(command);
|
|
@@ -37,7 +37,7 @@ declare const GetUploadedFileInfoCommand_base: {
|
|
|
37
37
|
* const input = { // GetUploadedFileInfoInput
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
39
|
* fileId: "STRING_VALUE", // required
|
|
40
|
-
* category: "channels" || "recordings",
|
|
40
|
+
* category: "channels" || "recordings" || "wizyconfRecordings",
|
|
41
41
|
* };
|
|
42
42
|
* const command = new GetUploadedFileInfoCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
@@ -42,7 +42,9 @@ declare const TriggerMessageActionCommand_base: {
|
|
|
42
42
|
* };
|
|
43
43
|
* const command = new TriggerMessageActionCommand(input);
|
|
44
44
|
* const response = await client.send(command);
|
|
45
|
-
* // {
|
|
45
|
+
* // { // TriggerMessageActionOutput
|
|
46
|
+
* // triggerId: "STRING_VALUE", // required
|
|
47
|
+
* // };
|
|
46
48
|
*
|
|
47
49
|
* ```
|
|
48
50
|
*
|
|
@@ -39,7 +39,7 @@ declare const UploadFileCommand_base: {
|
|
|
39
39
|
* name: "STRING_VALUE", // required
|
|
40
40
|
* userId: "STRING_VALUE",
|
|
41
41
|
* options: { // UploadFileOptions
|
|
42
|
-
* category: "channels" || "recordings",
|
|
42
|
+
* category: "channels" || "recordings" || "wizyconfRecordings",
|
|
43
43
|
* region: "STRING_VALUE",
|
|
44
44
|
* },
|
|
45
45
|
* };
|
|
@@ -491,6 +491,7 @@ export declare class ChannelAlreadyExistException extends __BaseException {
|
|
|
491
491
|
export declare const ConversationFileCategory: {
|
|
492
492
|
readonly GENERAL: "channels";
|
|
493
493
|
readonly RECORDING: "recordings";
|
|
494
|
+
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
494
495
|
};
|
|
495
496
|
/**
|
|
496
497
|
* @public
|
|
@@ -1374,6 +1375,11 @@ export interface GetFilePresignedDownloadUrlInput {
|
|
|
1374
1375
|
* @public
|
|
1375
1376
|
*/
|
|
1376
1377
|
category?: ConversationFileCategory;
|
|
1378
|
+
/**
|
|
1379
|
+
* URL behavior, 0 - open(play) for audio/video, others are downloaded; 1 — always download.
|
|
1380
|
+
* @public
|
|
1381
|
+
*/
|
|
1382
|
+
download?: number;
|
|
1377
1383
|
}
|
|
1378
1384
|
/**
|
|
1379
1385
|
* @public
|
|
@@ -2303,6 +2309,7 @@ export interface TriggerMessageActionInput {
|
|
|
2303
2309
|
* @public
|
|
2304
2310
|
*/
|
|
2305
2311
|
export interface TriggerMessageActionOutput {
|
|
2312
|
+
triggerId: string;
|
|
2306
2313
|
}
|
|
2307
2314
|
/**
|
|
2308
2315
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.62",
|
|
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",
|