@wildix/xbees-users-client 1.0.51 → 1.0.52

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotCapability = exports.BotToolVariableHandler = exports.BotCapabilityToolPipelineType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ForbiddenException extends UsersServiceException_1.UsersServiceException {
6
6
  name = "ForbiddenException";
@@ -69,6 +69,11 @@ exports.PbxColleaguesSearchStrategy = {
69
69
  CONTAIN: "contain",
70
70
  STARTS_WITH: "startsWith",
71
71
  };
72
+ exports.AppType = {
73
+ COLLABORATION: "collaboration",
74
+ XBEES: "xbees",
75
+ XHOPPERS: "xhoppers",
76
+ };
72
77
  exports.BotAccess = {
73
78
  EVERYBODY: "EVERYBODY",
74
79
  ORGANIZATION: "ORGANIZATION",
@@ -192,9 +192,13 @@ const se_GetAppVersionCommand = async (input, context) => {
192
192
  const b = (0, core_2.requestBuilder)(input, context);
193
193
  const headers = {};
194
194
  b.bp("/v2/users/app-version");
195
+ const query = (0, smithy_client_1.map)({
196
+ [_aT]: [, (0, smithy_client_1.expectNonNull)(input[_aT], `appType`)],
197
+ });
195
198
  let body;
196
199
  b.m("GET")
197
200
  .h(headers)
201
+ .q(query)
198
202
  .b(body);
199
203
  return b.build();
200
204
  };
@@ -1421,6 +1425,7 @@ const deserializeMetadata = (output) => ({
1421
1425
  cfId: output.headers["x-amz-cf-id"],
1422
1426
  });
1423
1427
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
1428
+ const _aT = "appType";
1424
1429
  const _c = "company";
1425
1430
  const _e = "email";
1426
1431
  const _eE = "excludeExtension";
@@ -64,6 +64,11 @@ export const PbxColleaguesSearchStrategy = {
64
64
  CONTAIN: "contain",
65
65
  STARTS_WITH: "startsWith",
66
66
  };
67
+ export const AppType = {
68
+ COLLABORATION: "collaboration",
69
+ XBEES: "xbees",
70
+ XHOPPERS: "xhoppers",
71
+ };
67
72
  export const BotAccess = {
68
73
  EVERYBODY: "EVERYBODY",
69
74
  ORGANIZATION: "ORGANIZATION",
@@ -178,9 +178,13 @@ export const se_GetAppVersionCommand = async (input, context) => {
178
178
  const b = rb(input, context);
179
179
  const headers = {};
180
180
  b.bp("/v2/users/app-version");
181
+ const query = map({
182
+ [_aT]: [, __expectNonNull(input[_aT], `appType`)],
183
+ });
181
184
  let body;
182
185
  b.m("GET")
183
186
  .h(headers)
187
+ .q(query)
184
188
  .b(body);
185
189
  return b.build();
186
190
  };
@@ -1349,6 +1353,7 @@ const deserializeMetadata = (output) => ({
1349
1353
  cfId: output.headers["x-amz-cf-id"],
1350
1354
  });
1351
1355
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
1356
+ const _aT = "appType";
1352
1357
  const _c = "company";
1353
1358
  const _e = "email";
1354
1359
  const _eE = "excludeExtension";
@@ -98,7 +98,6 @@ export interface Users {
98
98
  /**
99
99
  * @see {@link GetAppVersionCommand}
100
100
  */
101
- getAppVersion(): Promise<GetAppVersionCommandOutput>;
102
101
  getAppVersion(args: GetAppVersionCommandInput, options?: __HttpHandlerOptions): Promise<GetAppVersionCommandOutput>;
103
102
  getAppVersion(args: GetAppVersionCommandInput, cb: (err: any, data?: GetAppVersionCommandOutput) => void): void;
104
103
  getAppVersion(args: GetAppVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAppVersionCommandOutput) => void): void;
@@ -23,7 +23,7 @@ export interface GetAppVersionCommandOutput extends GetAppVersionOutput, __Metad
23
23
  }
24
24
  declare const GetAppVersionCommand_base: {
25
25
  new (input: GetAppVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetAppVersionCommandInput, GetAppVersionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetAppVersionCommandInput]): import("@smithy/smithy-client").CommandImpl<GetAppVersionCommandInput, GetAppVersionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetAppVersionCommandInput): import("@smithy/smithy-client").CommandImpl<GetAppVersionCommandInput, GetAppVersionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -34,7 +34,9 @@ declare const GetAppVersionCommand_base: {
34
34
  * import { UsersClient, GetAppVersionCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
35
  * // const { UsersClient, GetAppVersionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
36
  * const client = new UsersClient(config);
37
- * const input = {};
37
+ * const input = { // GetAppVersionInput
38
+ * appType: "xbees" || "xhoppers" || "collaboration", // required
39
+ * };
38
40
  * const command = new GetAppVersionCommand(input);
39
41
  * const response = await client.send(command);
40
42
  * // { // GetAppVersionOutput
@@ -63,7 +65,7 @@ export declare class GetAppVersionCommand extends GetAppVersionCommand_base {
63
65
  /** @internal type navigation helper, not in runtime. */
64
66
  protected static __types: {
65
67
  api: {
66
- input: {};
68
+ input: GetAppVersionInput;
67
69
  output: GetAppVersionOutput;
68
70
  };
69
71
  sdk: {
@@ -199,6 +199,19 @@ export declare const PbxColleaguesSearchStrategy: {
199
199
  * @public
200
200
  */
201
201
  export type PbxColleaguesSearchStrategy = typeof PbxColleaguesSearchStrategy[keyof typeof PbxColleaguesSearchStrategy];
202
+ /**
203
+ * @public
204
+ * @enum
205
+ */
206
+ export declare const AppType: {
207
+ readonly COLLABORATION: "collaboration";
208
+ readonly XBEES: "xbees";
209
+ readonly XHOPPERS: "xhoppers";
210
+ };
211
+ /**
212
+ * @public
213
+ */
214
+ export type AppType = typeof AppType[keyof typeof AppType];
202
215
  /**
203
216
  * @public
204
217
  */
@@ -1238,6 +1251,7 @@ export interface DirectoryItem {
1238
1251
  * @public
1239
1252
  */
1240
1253
  export interface GetAppVersionInput {
1254
+ appType: AppType;
1241
1255
  }
1242
1256
  /**
1243
1257
  * @public
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": "1.0.51",
4
+ "version": "1.0.52",
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",