@wildix/xbees-conversations-client 1.0.54 → 1.0.56

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.
@@ -699,6 +699,9 @@ const se_UploadFileCommand = async (input, context) => {
699
699
  };
700
700
  b.bp("/v2/conversations/channels/{channelId}/files");
701
701
  b.p('channelId', () => input.channelId, '{channelId}', false);
702
+ const query = (0, smithy_client_1.map)({
703
+ [_u]: [, input[_uI]],
704
+ });
702
705
  let body;
703
706
  body = JSON.stringify((0, smithy_client_1.take)(input, {
704
707
  'name': [],
@@ -706,6 +709,7 @@ const se_UploadFileCommand = async (input, context) => {
706
709
  }));
707
710
  b.m("POST")
708
711
  .h(headers)
712
+ .q(query)
709
713
  .b(body);
710
714
  return b.build();
711
715
  };
@@ -659,6 +659,9 @@ export const se_UploadFileCommand = async (input, context) => {
659
659
  };
660
660
  b.bp("/v2/conversations/channels/{channelId}/files");
661
661
  b.p('channelId', () => input.channelId, '{channelId}', false);
662
+ const query = map({
663
+ [_u]: [, input[_uI]],
664
+ });
662
665
  let body;
663
666
  body = JSON.stringify(take(input, {
664
667
  'name': [],
@@ -666,6 +669,7 @@ export const se_UploadFileCommand = async (input, context) => {
666
669
  }));
667
670
  b.m("POST")
668
671
  .h(headers)
672
+ .q(query)
669
673
  .b(body);
670
674
  return b.build();
671
675
  };
@@ -37,8 +37,8 @@ declare const UploadFileCommand_base: {
37
37
  * const input = { // UploadFileInput
38
38
  * channelId: "STRING_VALUE", // required
39
39
  * name: "STRING_VALUE", // required
40
+ * userId: "STRING_VALUE",
40
41
  * options: { // UploadFileOptions
41
- * userId: "STRING_VALUE",
42
42
  * category: "channels" || "recordings",
43
43
  * region: "STRING_VALUE",
44
44
  * },
@@ -1894,11 +1894,6 @@ export interface UpdateMessageOutput {
1894
1894
  * @public
1895
1895
  */
1896
1896
  export interface UploadFileOptions {
1897
- /**
1898
- * User Id. It is only for s2s, in other cases it will be ignored.
1899
- * @public
1900
- */
1901
- userId?: string;
1902
1897
  /**
1903
1898
  * File category. Channel files or conference recordings. Default: channels.
1904
1899
  * @public
@@ -1924,6 +1919,11 @@ export interface UploadFileInput {
1924
1919
  * @public
1925
1920
  */
1926
1921
  name: string;
1922
+ /**
1923
+ * The unique identifier of the user when a service token is used.
1924
+ * @public
1925
+ */
1926
+ userId?: string;
1927
1927
  /**
1928
1928
  * Additional options for the file upload.
1929
1929
  * @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.54",
4
+ "version": "1.0.56",
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",