@wildix/xbees-users-client 4.0.12 → 4.1.0

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.
@@ -305,8 +305,8 @@ const _ht = "http";
305
305
  const _i = "id";
306
306
  const _iAKC = "integrationApiKeysCount";
307
307
  const _iT = "integrationType";
308
- const _id = "identities";
309
- const _ide = "identity";
308
+ const _id = "identity";
309
+ const _ide = "identities";
310
310
  const _in = "instructions";
311
311
  const _inf = "info";
312
312
  const _int = "integration";
@@ -828,8 +828,8 @@ exports.GetAccountInput$ = [3, n3, _GAI,
828
828
  ];
829
829
  exports.GetAccountOutput$ = [3, n3, _GAO,
830
830
  0,
831
- [_ac, _w, _id],
832
- [() => exports.Account$, () => WorkspaceList, () => IdentityList], 3
831
+ [_ac],
832
+ [() => exports.Account$], 1
833
833
  ];
834
834
  exports.GetAppVersionInput$ = [3, n3, _GAVI,
835
835
  0,
@@ -913,7 +913,7 @@ exports.GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
913
913
  ];
914
914
  exports.Identity$ = [3, n3, _I,
915
915
  0,
916
- [_ide, _ac, _ver],
916
+ [_id, _ac, _ver],
917
917
  [0, 0, 2], 2
918
918
  ];
919
919
  exports.IntelligenceSearchInput$ = [3, n3, _ISI,
@@ -938,12 +938,12 @@ exports.InviteOutput$ = [3, n3, _IO,
938
938
  ];
939
939
  exports.LinkIdentityInput$ = [3, n3, _LII,
940
940
  0,
941
- [_aIc, _ide],
941
+ [_aIc, _id],
942
942
  [[0, 1], 0], 2
943
943
  ];
944
944
  exports.LinkIdentityOutput$ = [3, n3, _LIO,
945
945
  0,
946
- [_ide],
946
+ [_id],
947
947
  [() => exports.Identity$], 1
948
948
  ];
949
949
  exports.ListBotApiKeysInput$ = [3, n3, _LBAKI,
@@ -973,7 +973,7 @@ exports.ListIdentitiesInput$ = [3, n3, _LIIi,
973
973
  ];
974
974
  exports.ListIdentitiesOutput$ = [3, n3, _LIOi,
975
975
  0,
976
- [_id],
976
+ [_ide],
977
977
  [() => IdentityList], 1
978
978
  ];
979
979
  exports.ListWorkspacesInput$ = [3, n3, _LWI,
@@ -1068,7 +1068,7 @@ exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
1068
1068
  ];
1069
1069
  exports.UnlinkIdentityInput$ = [3, n3, _UII,
1070
1070
  0,
1071
- [_aIc, _ide],
1071
+ [_aIc, _id],
1072
1072
  [[0, 1], [0, 1]], 2
1073
1073
  ];
1074
1074
  exports.UnlinkIdentityOutput$ = [3, n3, _UIO,
@@ -1223,12 +1223,12 @@ exports.VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1223
1223
  ];
1224
1224
  exports.VerifyIdentityInput$ = [3, n3, _VII,
1225
1225
  0,
1226
- [_aIc, _ide, _o],
1226
+ [_aIc, _id, _o],
1227
1227
  [[0, 1], 0, 0], 3
1228
1228
  ];
1229
1229
  exports.VerifyIdentityOutput$ = [3, n3, _VIO,
1230
1230
  0,
1231
- [_ide],
1231
+ [_id],
1232
1232
  [() => exports.Identity$], 1
1233
1233
  ];
1234
1234
  exports.Workspace$ = [3, n3, _W,
@@ -298,8 +298,8 @@ const _ht = "http";
298
298
  const _i = "id";
299
299
  const _iAKC = "integrationApiKeysCount";
300
300
  const _iT = "integrationType";
301
- const _id = "identities";
302
- const _ide = "identity";
301
+ const _id = "identity";
302
+ const _ide = "identities";
303
303
  const _in = "instructions";
304
304
  const _inf = "info";
305
305
  const _int = "integration";
@@ -821,8 +821,8 @@ export var GetAccountInput$ = [3, n3, _GAI,
821
821
  ];
822
822
  export var GetAccountOutput$ = [3, n3, _GAO,
823
823
  0,
824
- [_ac, _w, _id],
825
- [() => Account$, () => WorkspaceList, () => IdentityList], 3
824
+ [_ac],
825
+ [() => Account$], 1
826
826
  ];
827
827
  export var GetAppVersionInput$ = [3, n3, _GAVI,
828
828
  0,
@@ -906,7 +906,7 @@ export var GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
906
906
  ];
907
907
  export var Identity$ = [3, n3, _I,
908
908
  0,
909
- [_ide, _ac, _ver],
909
+ [_id, _ac, _ver],
910
910
  [0, 0, 2], 2
911
911
  ];
912
912
  export var IntelligenceSearchInput$ = [3, n3, _ISI,
@@ -931,12 +931,12 @@ export var InviteOutput$ = [3, n3, _IO,
931
931
  ];
932
932
  export var LinkIdentityInput$ = [3, n3, _LII,
933
933
  0,
934
- [_aIc, _ide],
934
+ [_aIc, _id],
935
935
  [[0, 1], 0], 2
936
936
  ];
937
937
  export var LinkIdentityOutput$ = [3, n3, _LIO,
938
938
  0,
939
- [_ide],
939
+ [_id],
940
940
  [() => Identity$], 1
941
941
  ];
942
942
  export var ListBotApiKeysInput$ = [3, n3, _LBAKI,
@@ -966,7 +966,7 @@ export var ListIdentitiesInput$ = [3, n3, _LIIi,
966
966
  ];
967
967
  export var ListIdentitiesOutput$ = [3, n3, _LIOi,
968
968
  0,
969
- [_id],
969
+ [_ide],
970
970
  [() => IdentityList], 1
971
971
  ];
972
972
  export var ListWorkspacesInput$ = [3, n3, _LWI,
@@ -1061,7 +1061,7 @@ export var ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
1061
1061
  ];
1062
1062
  export var UnlinkIdentityInput$ = [3, n3, _UII,
1063
1063
  0,
1064
- [_aIc, _ide],
1064
+ [_aIc, _id],
1065
1065
  [[0, 1], [0, 1]], 2
1066
1066
  ];
1067
1067
  export var UnlinkIdentityOutput$ = [3, n3, _UIO,
@@ -1216,12 +1216,12 @@ export var VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1216
1216
  ];
1217
1217
  export var VerifyIdentityInput$ = [3, n3, _VII,
1218
1218
  0,
1219
- [_aIc, _ide, _o],
1219
+ [_aIc, _id, _o],
1220
1220
  [[0, 1], 0, 0], 3
1221
1221
  ];
1222
1222
  export var VerifyIdentityOutput$ = [3, n3, _VIO,
1223
1223
  0,
1224
- [_ide],
1224
+ [_id],
1225
1225
  [() => Identity$], 1
1226
1226
  ];
1227
1227
  export var Workspace$ = [3, n3, _W,
@@ -27,7 +27,7 @@ declare const GetAccountCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Retrieves the current account with identities and workspaces.
30
+ * Retrieves the account.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -47,96 +47,6 @@ declare const GetAccountCommand_base: {
47
47
  * // defaultWorkspace: "STRING_VALUE",
48
48
  * // primaryIdentity: "STRING_VALUE",
49
49
  * // },
50
- * // workspaces: [ // WorkspaceList // required
51
- * // { // Workspace
52
- * // companyId: "STRING_VALUE",
53
- * // pbxUser: { // UserPbxLinkData
54
- * // id: "STRING_VALUE", // required
55
- * // company: "STRING_VALUE", // required
56
- * // companyName: "STRING_VALUE",
57
- * // domain: "STRING_VALUE", // required
58
- * // email: "STRING_VALUE",
59
- * // info: { // UserPersonalInfo
60
- * // dn: "STRING_VALUE", // required
61
- * // id: "STRING_VALUE", // required
62
- * // name: "STRING_VALUE", // required
63
- * // extension: "STRING_VALUE", // required
64
- * // officePhone: "STRING_VALUE",
65
- * // mobilePhone: "STRING_VALUE",
66
- * // faxNumber: "STRING_VALUE",
67
- * // email: "STRING_VALUE",
68
- * // role: "STRING_VALUE", // required
69
- * // language: "STRING_VALUE", // required
70
- * // dialplan: "STRING_VALUE", // required
71
- * // faxDialplan: "STRING_VALUE", // required
72
- * // departament: "STRING_VALUE",
73
- * // picture: "STRING_VALUE", // required
74
- * // groupDn: "STRING_VALUE", // required
75
- * // groupName: "STRING_VALUE", // required
76
- * // jid: "STRING_VALUE", // required
77
- * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
78
- * // login: "STRING_VALUE",
79
- * // pbx: "STRING_VALUE",
80
- * // pbxDn: "STRING_VALUE", // required
81
- * // sourceId: "STRING_VALUE",
82
- * // sipPassword: "STRING_VALUE",
83
- * // },
84
- * // pbx: { // UserPbxInfo
85
- * // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
86
- * // "STRING_VALUE",
87
- * // ],
88
- * // ports: [ // UserPbxInfoPorts // required
89
- * // "STRING_VALUE",
90
- * // ],
91
- * // externalLinePrefix: "STRING_VALUE",
92
- * // version: "STRING_VALUE", // required
93
- * // serial: "STRING_VALUE", // required
94
- * // },
95
- * // picture: "STRING_VALUE", // required
96
- * // pictureDeleted: true || false,
97
- * // port: "STRING_VALUE", // required
98
- * // serial: "STRING_VALUE", // required
99
- * // services: { // UserPbxServices
100
- * // xcaracal: true || false,
101
- * // wizyWebinar: true || false,
102
- * // },
103
- * // personalSettings: {},
104
- * // dialplanSettings: {},
105
- * // awsRegion: "STRING_VALUE",
106
- * // updatedAt: "STRING_VALUE",
107
- * // },
108
- * // streamUser: { // User
109
- * // id: "STRING_VALUE", // required
110
- * // name: "STRING_VALUE",
111
- * // email: "STRING_VALUE",
112
- * // phone: "STRING_VALUE",
113
- * // picture: "STRING_VALUE",
114
- * // locale: "STRING_VALUE",
115
- * // timeZone: "STRING_VALUE",
116
- * // company: "STRING_VALUE",
117
- * // bot: true || false,
118
- * // pbxDomain: "STRING_VALUE",
119
- * // pbxPort: "STRING_VALUE",
120
- * // pbxExtension: "STRING_VALUE",
121
- * // pbxSerial: "STRING_VALUE",
122
- * // pbxUserId: "STRING_VALUE",
123
- * // pbxGroupId: "STRING_VALUE",
124
- * // createdAt: "STRING_VALUE",
125
- * // updatedAt: "STRING_VALUE",
126
- * // },
127
- * // type: "personal" || "work" || "support",
128
- * // id: "STRING_VALUE", // required
129
- * // accountId: "STRING_VALUE", // required
130
- * // active: true || false, // required
131
- * // },
132
- * // ],
133
- * // identities: [ // IdentityList // required
134
- * // { // Identity
135
- * // identity: "STRING_VALUE", // required
136
- * // account: "STRING_VALUE", // required
137
- * // verified: true || false,
138
- * // },
139
- * // ],
140
50
  * // };
141
51
  *
142
52
  * ```
@@ -105,7 +105,7 @@ export interface UserToInvite {
105
105
  */
106
106
  email?: string | undefined;
107
107
  /**
108
- * 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. On Facebook Messenger it is not a phone number at all: the caller passes the Page Scoped ID, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left.
108
+ * 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. On a customer messaging channel (see MessagingChannel) it is not a phone number at all: the caller passes the channel's own customer id, the Page Scoped ID on Messenger, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left, and the Instagram scoped id has to be checked against the same limit.
109
109
  * @public
110
110
  */
111
111
  phone?: string | undefined;
@@ -1315,73 +1315,11 @@ export interface GetAccountInput {
1315
1315
  */
1316
1316
  accountId: string;
1317
1317
  }
1318
- /**
1319
- * @public
1320
- */
1321
- export interface Identity {
1322
- /**
1323
- * The identity value (email address or phone number in E.164)
1324
- * @public
1325
- */
1326
- identity: string;
1327
- /**
1328
- * The unique identifier of the account.
1329
- * @public
1330
- */
1331
- account: string;
1332
- /**
1333
- * Indicates if the identity is verified.
1334
- * @public
1335
- */
1336
- verified?: boolean | undefined;
1337
- }
1338
- /**
1339
- * @public
1340
- */
1341
- export interface Workspace {
1342
- /**
1343
- * The unique identifier of the tenant (company).
1344
- * @public
1345
- */
1346
- companyId?: string | undefined;
1347
- /**
1348
- * PBX information where user connected to.
1349
- * @public
1350
- */
1351
- pbxUser?: UserPbxLinkData | undefined;
1352
- /**
1353
- * Personal information of the user. If user is not logged in yet, this field will might be empty.
1354
- * @public
1355
- */
1356
- streamUser?: User | undefined;
1357
- /**
1358
- * The type of workspace.
1359
- * @public
1360
- */
1361
- type?: WorkspaceType | undefined;
1362
- /**
1363
- * The unique identifier
1364
- * @public
1365
- */
1366
- id: string;
1367
- /**
1368
- * The unique identifier of the account.
1369
- * @public
1370
- */
1371
- accountId: string;
1372
- /**
1373
- * Indicates if the workspace is active.
1374
- * @public
1375
- */
1376
- active: boolean;
1377
- }
1378
1318
  /**
1379
1319
  * @public
1380
1320
  */
1381
1321
  export interface GetAccountOutput {
1382
1322
  account: Account;
1383
- workspaces: Workspace[];
1384
- identities: Identity[];
1385
1323
  }
1386
1324
  /**
1387
1325
  * @public
@@ -1524,6 +1462,26 @@ export interface GetUserPbxLinkSuggestionV1Output {
1524
1462
  */
1525
1463
  suggestion?: UserPbxLinkSuggestion | undefined;
1526
1464
  }
1465
+ /**
1466
+ * @public
1467
+ */
1468
+ export interface Identity {
1469
+ /**
1470
+ * The identity value (email address or phone number in E.164)
1471
+ * @public
1472
+ */
1473
+ identity: string;
1474
+ /**
1475
+ * The unique identifier of the account.
1476
+ * @public
1477
+ */
1478
+ account: string;
1479
+ /**
1480
+ * Indicates if the identity is verified.
1481
+ * @public
1482
+ */
1483
+ verified?: boolean | undefined;
1484
+ }
1527
1485
  /**
1528
1486
  * @public
1529
1487
  */
@@ -1652,6 +1610,46 @@ export interface ListWorkspacesInput {
1652
1610
  */
1653
1611
  accountId: string;
1654
1612
  }
1613
+ /**
1614
+ * @public
1615
+ */
1616
+ export interface Workspace {
1617
+ /**
1618
+ * The unique identifier of the tenant (company).
1619
+ * @public
1620
+ */
1621
+ companyId?: string | undefined;
1622
+ /**
1623
+ * PBX information where user connected to.
1624
+ * @public
1625
+ */
1626
+ pbxUser?: UserPbxLinkData | undefined;
1627
+ /**
1628
+ * Personal information of the user. If user is not logged in yet, this field will might be empty.
1629
+ * @public
1630
+ */
1631
+ streamUser?: User | undefined;
1632
+ /**
1633
+ * The type of workspace.
1634
+ * @public
1635
+ */
1636
+ type?: WorkspaceType | undefined;
1637
+ /**
1638
+ * The unique identifier
1639
+ * @public
1640
+ */
1641
+ id: string;
1642
+ /**
1643
+ * The unique identifier of the account.
1644
+ * @public
1645
+ */
1646
+ accountId: string;
1647
+ /**
1648
+ * Indicates if the workspace is active.
1649
+ * @public
1650
+ */
1651
+ active: boolean;
1652
+ }
1655
1653
  /**
1656
1654
  * @public
1657
1655
  */
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
+ ignoreConfiguredEndpointUrls?: boolean;
42
43
  serviceConfiguredEndpoint?: never;
43
44
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
45
  httpAuthSchemes: ({
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
+ ignoreConfiguredEndpointUrls?: boolean;
42
43
  serviceConfiguredEndpoint?: never;
43
44
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
45
  httpAuthSchemes: ({
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
+ ignoreConfiguredEndpointUrls?: boolean;
42
43
  serviceConfiguredEndpoint?: never;
43
44
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
44
45
  httpAuthSchemes: ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-users-client",
3
3
  "description": "@wildix/xbees-users-client client",
4
- "version": "4.0.12",
4
+ "version": "4.1.0",
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",
@@ -25,7 +25,8 @@
25
25
  "@smithy/fetch-http-handler": "^5.4.5",
26
26
  "@smithy/node-http-handler": "^4.7.5",
27
27
  "@smithy/types": "^4.14.2",
28
- "@wildix/smithy-react-native": "^1.0.0"
28
+ "@wildix/smithy-react-native": "^1.0.0",
29
+ "@smithy/middleware-endpoint": "^4.7.2"
29
30
  },
30
31
  "devDependencies": {
31
32
  "@tsconfig/node20": "20.1.8",
@@ -56,4 +57,4 @@
56
57
  "browser": {
57
58
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
58
59
  }
59
- }
60
+ }