@wildix/xbees-conversations-client 1.1.26 → 1.1.28

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.
@@ -500,9 +500,13 @@ const se_GetTokenCommand = async (input, context) => {
500
500
  const b = (0, core_2.requestBuilder)(input, context);
501
501
  const headers = {};
502
502
  b.bp("/v2/conversations/token");
503
+ const query = (0, smithy_client_1.map)({
504
+ [_cI]: [, input[_cI]],
505
+ });
503
506
  let body;
504
507
  b.m("GET")
505
508
  .h(headers)
509
+ .q(query)
506
510
  .b(body);
507
511
  return b.build();
508
512
  };
@@ -568,12 +572,16 @@ const se_InviteCommand = async (input, context) => {
568
572
  'content-type': 'application/json',
569
573
  };
570
574
  b.bp("/v2/conversations/invite");
575
+ const query = (0, smithy_client_1.map)({
576
+ [_co]: [, input[_cIo]],
577
+ });
571
578
  let body;
572
579
  body = JSON.stringify((0, smithy_client_1.take)(input, {
573
580
  'invitees': _ => (0, smithy_client_1._json)(_),
574
581
  }));
575
582
  b.m("POST")
576
583
  .h(headers)
584
+ .q(query)
577
585
  .b(body);
578
586
  return b.build();
579
587
  };
@@ -654,7 +662,7 @@ const se_ListChannelsCommand = async (input, context) => {
654
662
  const headers = {};
655
663
  b.bp("/v2/conversations/channels");
656
664
  const query = (0, smithy_client_1.map)({
657
- [_co]: [, input[_cI]],
665
+ [_co]: [, input[_cIo]],
658
666
  [_u]: [, input[_uI]],
659
667
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
660
668
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -883,7 +891,7 @@ const se_QueryChannelsCommand = async (input, context) => {
883
891
  };
884
892
  b.bp("/v2/conversations/query-channels");
885
893
  const query = (0, smithy_client_1.map)({
886
- [_co]: [, input[_cI]],
894
+ [_co]: [, input[_cIo]],
887
895
  [_u]: [, input[_uI]],
888
896
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
889
897
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -2521,7 +2529,8 @@ const deserializeMetadata = (output) => ({
2521
2529
  });
2522
2530
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
2523
2531
  const _c = "category";
2524
- const _cI = "companyId";
2532
+ const _cI = "clientId";
2533
+ const _cIo = "companyId";
2525
2534
  const _co = "company";
2526
2535
  const _d = "download";
2527
2536
  const _f = "force";
@@ -470,9 +470,13 @@ export const se_GetTokenCommand = async (input, context) => {
470
470
  const b = rb(input, context);
471
471
  const headers = {};
472
472
  b.bp("/v2/conversations/token");
473
+ const query = map({
474
+ [_cI]: [, input[_cI]],
475
+ });
473
476
  let body;
474
477
  b.m("GET")
475
478
  .h(headers)
479
+ .q(query)
476
480
  .b(body);
477
481
  return b.build();
478
482
  };
@@ -534,12 +538,16 @@ export const se_InviteCommand = async (input, context) => {
534
538
  'content-type': 'application/json',
535
539
  };
536
540
  b.bp("/v2/conversations/invite");
541
+ const query = map({
542
+ [_co]: [, input[_cIo]],
543
+ });
537
544
  let body;
538
545
  body = JSON.stringify(take(input, {
539
546
  'invitees': _ => _json(_),
540
547
  }));
541
548
  b.m("POST")
542
549
  .h(headers)
550
+ .q(query)
543
551
  .b(body);
544
552
  return b.build();
545
553
  };
@@ -615,7 +623,7 @@ export const se_ListChannelsCommand = async (input, context) => {
615
623
  const headers = {};
616
624
  b.bp("/v2/conversations/channels");
617
625
  const query = map({
618
- [_co]: [, input[_cI]],
626
+ [_co]: [, input[_cIo]],
619
627
  [_u]: [, input[_uI]],
620
628
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
621
629
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -832,7 +840,7 @@ export const se_QueryChannelsCommand = async (input, context) => {
832
840
  };
833
841
  b.bp("/v2/conversations/query-channels");
834
842
  const query = map({
835
- [_co]: [, input[_cI]],
843
+ [_co]: [, input[_cIo]],
836
844
  [_u]: [, input[_uI]],
837
845
  [_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
838
846
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
@@ -2386,7 +2394,8 @@ const deserializeMetadata = (output) => ({
2386
2394
  });
2387
2395
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
2388
2396
  const _c = "category";
2389
- const _cI = "companyId";
2397
+ const _cI = "clientId";
2398
+ const _cIo = "companyId";
2390
2399
  const _co = "company";
2391
2400
  const _d = "download";
2392
2401
  const _f = "force";
@@ -34,7 +34,9 @@ declare const GetTokenCommand_base: {
34
34
  * import { ConversationsClient, GetTokenCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
35
  * // const { ConversationsClient, GetTokenCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
36
  * const client = new ConversationsClient(config);
37
- * const input = {};
37
+ * const input = { // GetTokenInput
38
+ * clientId: "STRING_VALUE",
39
+ * };
38
40
  * const command = new GetTokenCommand(input);
39
41
  * const response = await client.send(command);
40
42
  * // { // GetTokenOutput
@@ -66,7 +68,7 @@ export declare class GetTokenCommand extends GetTokenCommand_base {
66
68
  /** @internal type navigation helper, not in runtime. */
67
69
  protected static __types: {
68
70
  api: {
69
- input: {};
71
+ input: GetTokenInput;
70
72
  output: GetTokenOutput;
71
73
  };
72
74
  sdk: {
@@ -35,6 +35,7 @@ declare const InviteCommand_base: {
35
35
  * // const { ConversationsClient, InviteCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // InviteInput
38
+ * companyId: "STRING_VALUE",
38
39
  * invitees: [ // UsersToInviteList // required
39
40
  * { // UserToInvite
40
41
  * email: "STRING_VALUE",
@@ -257,9 +257,28 @@ export type ActionTriggerStatus = typeof ActionTriggerStatus[keyof typeof Action
257
257
  * @public
258
258
  */
259
259
  export interface UserToInvite {
260
+ /**
261
+ * The email address of the invited user. If no user exists with the specified email and "colleague" flag is provided, the system will retrieve the colleague's details from the PBX.
262
+ * @public
263
+ */
260
264
  email?: string | undefined;
265
+ /**
266
+ * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided.
267
+ * @public
268
+ */
261
269
  phone?: string | undefined;
270
+ /**
271
+ * An optional name for the invited user. If the user logs in later and a different name is provided via SSO or the PBX, the system will update the user's name accordingly.
272
+ * @public
273
+ */
262
274
  name?: string | undefined;
275
+ /**
276
+ * A flag to indicate that specified email are registered colleague on the PBX.
277
+ * When provided, the system will search for the colleague on the PBX and automatically establish a connection to the organization if one does not already exist.
278
+ * If the specified colleague does not exist on the WMS, a ValidationException will be thrown and no users will be invited.
279
+ *
280
+ * @public
281
+ */
263
282
  colleague?: boolean | undefined;
264
283
  }
265
284
  /**
@@ -1940,6 +1959,11 @@ export interface GetTelephonyChannelIdOutput {
1940
1959
  * @public
1941
1960
  */
1942
1961
  export interface GetTokenInput {
1962
+ /**
1963
+ * Client ID for GetStream, based on which the correct token will be issued and signed
1964
+ * @public
1965
+ */
1966
+ clientId?: string | undefined;
1943
1967
  }
1944
1968
  /**
1945
1969
  * @public
@@ -2037,6 +2061,11 @@ export interface HideChannelOutput {
2037
2061
  * @public
2038
2062
  */
2039
2063
  export interface InviteInput {
2064
+ /**
2065
+ * The unique identifier of the tenant when a service token is used.
2066
+ * @public
2067
+ */
2068
+ companyId?: string | undefined;
2040
2069
  /**
2041
2070
  * A list of users to invite. The list must contain between 1 and 20 users.
2042
2071
  * @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.1.26",
4
+ "version": "1.1.28",
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",
@@ -80,4 +80,4 @@
80
80
  "react-native": {
81
81
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
82
82
  }
83
- }
83
+ }