@wildix/xbees-conversations-client 1.1.27 → 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
|
};
|
|
@@ -569,7 +573,7 @@ const se_InviteCommand = async (input, context) => {
|
|
|
569
573
|
};
|
|
570
574
|
b.bp("/v2/conversations/invite");
|
|
571
575
|
const query = (0, smithy_client_1.map)({
|
|
572
|
-
[_co]: [, input[
|
|
576
|
+
[_co]: [, input[_cIo]],
|
|
573
577
|
});
|
|
574
578
|
let body;
|
|
575
579
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
@@ -658,7 +662,7 @@ const se_ListChannelsCommand = async (input, context) => {
|
|
|
658
662
|
const headers = {};
|
|
659
663
|
b.bp("/v2/conversations/channels");
|
|
660
664
|
const query = (0, smithy_client_1.map)({
|
|
661
|
-
[_co]: [, input[
|
|
665
|
+
[_co]: [, input[_cIo]],
|
|
662
666
|
[_u]: [, input[_uI]],
|
|
663
667
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
664
668
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
@@ -887,7 +891,7 @@ const se_QueryChannelsCommand = async (input, context) => {
|
|
|
887
891
|
};
|
|
888
892
|
b.bp("/v2/conversations/query-channels");
|
|
889
893
|
const query = (0, smithy_client_1.map)({
|
|
890
|
-
[_co]: [, input[
|
|
894
|
+
[_co]: [, input[_cIo]],
|
|
891
895
|
[_u]: [, input[_uI]],
|
|
892
896
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
893
897
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
@@ -2525,7 +2529,8 @@ const deserializeMetadata = (output) => ({
|
|
|
2525
2529
|
});
|
|
2526
2530
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2527
2531
|
const _c = "category";
|
|
2528
|
-
const _cI = "
|
|
2532
|
+
const _cI = "clientId";
|
|
2533
|
+
const _cIo = "companyId";
|
|
2529
2534
|
const _co = "company";
|
|
2530
2535
|
const _d = "download";
|
|
2531
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
|
};
|
|
@@ -535,7 +539,7 @@ export const se_InviteCommand = async (input, context) => {
|
|
|
535
539
|
};
|
|
536
540
|
b.bp("/v2/conversations/invite");
|
|
537
541
|
const query = map({
|
|
538
|
-
[_co]: [, input[
|
|
542
|
+
[_co]: [, input[_cIo]],
|
|
539
543
|
});
|
|
540
544
|
let body;
|
|
541
545
|
body = JSON.stringify(take(input, {
|
|
@@ -619,7 +623,7 @@ export const se_ListChannelsCommand = async (input, context) => {
|
|
|
619
623
|
const headers = {};
|
|
620
624
|
b.bp("/v2/conversations/channels");
|
|
621
625
|
const query = map({
|
|
622
|
-
[_co]: [, input[
|
|
626
|
+
[_co]: [, input[_cIo]],
|
|
623
627
|
[_u]: [, input[_uI]],
|
|
624
628
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
625
629
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
@@ -836,7 +840,7 @@ export const se_QueryChannelsCommand = async (input, context) => {
|
|
|
836
840
|
};
|
|
837
841
|
b.bp("/v2/conversations/query-channels");
|
|
838
842
|
const query = map({
|
|
839
|
-
[_co]: [, input[
|
|
843
|
+
[_co]: [, input[_cIo]],
|
|
840
844
|
[_u]: [, input[_uI]],
|
|
841
845
|
[_l]: [() => input.limit !== void 0, () => (input[_l].toString())],
|
|
842
846
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
@@ -2390,7 +2394,8 @@ const deserializeMetadata = (output) => ({
|
|
|
2390
2394
|
});
|
|
2391
2395
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2392
2396
|
const _c = "category";
|
|
2393
|
-
const _cI = "
|
|
2397
|
+
const _cI = "clientId";
|
|
2398
|
+
const _cIo = "companyId";
|
|
2394
2399
|
const _co = "company";
|
|
2395
2400
|
const _d = "download";
|
|
2396
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: {
|
|
@@ -258,7 +258,7 @@ export type ActionTriggerStatus = typeof ActionTriggerStatus[keyof typeof Action
|
|
|
258
258
|
*/
|
|
259
259
|
export interface UserToInvite {
|
|
260
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.
|
|
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
262
|
* @public
|
|
263
263
|
*/
|
|
264
264
|
email?: string | undefined;
|
|
@@ -1959,6 +1959,11 @@ export interface GetTelephonyChannelIdOutput {
|
|
|
1959
1959
|
* @public
|
|
1960
1960
|
*/
|
|
1961
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;
|
|
1962
1967
|
}
|
|
1963
1968
|
/**
|
|
1964
1969
|
* @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.
|
|
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
|
+
}
|