@wildix/xbees-users-client 1.0.44 → 1.0.46

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,33 +1,33 @@
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.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = 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.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.BotAccess = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
- class ValidationException extends UsersServiceException_1.UsersServiceException {
6
- name = "ValidationException";
5
+ class ForbiddenException extends UsersServiceException_1.UsersServiceException {
6
+ name = "ForbiddenException";
7
7
  $fault = "client";
8
8
  constructor(opts) {
9
9
  super({
10
- name: "ValidationException",
10
+ name: "ForbiddenException",
11
11
  $fault: "client",
12
12
  ...opts
13
13
  });
14
- Object.setPrototypeOf(this, ValidationException.prototype);
14
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
15
15
  }
16
16
  }
17
- exports.ValidationException = ValidationException;
18
- class ForbiddenException extends UsersServiceException_1.UsersServiceException {
19
- name = "ForbiddenException";
17
+ exports.ForbiddenException = ForbiddenException;
18
+ class ValidationException extends UsersServiceException_1.UsersServiceException {
19
+ name = "ValidationException";
20
20
  $fault = "client";
21
21
  constructor(opts) {
22
22
  super({
23
- name: "ForbiddenException",
23
+ name: "ValidationException",
24
24
  $fault: "client",
25
25
  ...opts
26
26
  });
27
- Object.setPrototypeOf(this, ForbiddenException.prototype);
27
+ Object.setPrototypeOf(this, ValidationException.prototype);
28
28
  }
29
29
  }
30
- exports.ForbiddenException = ForbiddenException;
30
+ exports.ValidationException = ValidationException;
31
31
  exports.PbxLicenseType = {
32
32
  BASIC: "basic",
33
33
  BUSINESS: "business",
@@ -1237,6 +1237,7 @@ const se_BotLlmEmbeddedToolsList = (input, context) => {
1237
1237
  const se_BotLlmEndpoint = (input, context) => {
1238
1238
  return (0, smithy_client_1.take)(input, {
1239
1239
  'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1240
+ 'model': [],
1240
1241
  'prompt': [],
1241
1242
  'tools': _ => se_BotLlmToolsList(_, context),
1242
1243
  });
@@ -1337,6 +1338,7 @@ const de_BotLlmEmbeddedToolsList = (output, context) => {
1337
1338
  const de_BotLlmEndpoint = (output, context) => {
1338
1339
  return (0, smithy_client_1.take)(output, {
1339
1340
  'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1341
+ 'model': smithy_client_1.expectString,
1340
1342
  'prompt': smithy_client_1.expectString,
1341
1343
  'tools': (_) => de_BotLlmToolsList(_, context),
1342
1344
  });
@@ -1,26 +1,26 @@
1
1
  import { UsersServiceException as __BaseException } from "./UsersServiceException";
2
- export class ValidationException extends __BaseException {
3
- name = "ValidationException";
2
+ export class ForbiddenException extends __BaseException {
3
+ name = "ForbiddenException";
4
4
  $fault = "client";
5
5
  constructor(opts) {
6
6
  super({
7
- name: "ValidationException",
7
+ name: "ForbiddenException",
8
8
  $fault: "client",
9
9
  ...opts
10
10
  });
11
- Object.setPrototypeOf(this, ValidationException.prototype);
11
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
12
12
  }
13
13
  }
14
- export class ForbiddenException extends __BaseException {
15
- name = "ForbiddenException";
14
+ export class ValidationException extends __BaseException {
15
+ name = "ValidationException";
16
16
  $fault = "client";
17
17
  constructor(opts) {
18
18
  super({
19
- name: "ForbiddenException",
19
+ name: "ValidationException",
20
20
  $fault: "client",
21
21
  ...opts
22
22
  });
23
- Object.setPrototypeOf(this, ForbiddenException.prototype);
23
+ Object.setPrototypeOf(this, ValidationException.prototype);
24
24
  }
25
25
  }
26
26
  export const PbxLicenseType = {
@@ -1167,6 +1167,7 @@ const se_BotLlmEmbeddedToolsList = (input, context) => {
1167
1167
  const se_BotLlmEndpoint = (input, context) => {
1168
1168
  return take(input, {
1169
1169
  'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1170
+ 'model': [],
1170
1171
  'prompt': [],
1171
1172
  'tools': _ => se_BotLlmToolsList(_, context),
1172
1173
  });
@@ -1267,6 +1268,7 @@ const de_BotLlmEmbeddedToolsList = (output, context) => {
1267
1268
  const de_BotLlmEndpoint = (output, context) => {
1268
1269
  return take(output, {
1269
1270
  'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1271
+ 'model': __expectString,
1270
1272
  'prompt': __expectString,
1271
1273
  'tools': (_) => de_BotLlmToolsList(_, context),
1272
1274
  });
@@ -44,6 +44,7 @@ declare const CreateBotCommand_base: {
44
44
  * endpoint: { // BotEndpoint Union: only one key present
45
45
  * llm: { // BotLlmEndpoint
46
46
  * prompt: "STRING_VALUE", // required
47
+ * model: "STRING_VALUE",
47
48
  * embeddedTools: [ // BotLlmEmbeddedToolsList
48
49
  * { // BotLlmEmbeddedTool
49
50
  * type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
@@ -45,6 +45,7 @@ declare const GetBotCallbackCommand_base: {
45
45
  * // endpoint: { // BotEndpoint Union: only one key present
46
46
  * // llm: { // BotLlmEndpoint
47
47
  * // prompt: "STRING_VALUE", // required
48
+ * // model: "STRING_VALUE",
48
49
  * // embeddedTools: [ // BotLlmEmbeddedToolsList
49
50
  * // { // BotLlmEmbeddedTool
50
51
  * // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
@@ -41,6 +41,7 @@ declare const UpdateBotCallbackCommand_base: {
41
41
  * endpoint: { // BotEndpoint Union: only one key present
42
42
  * llm: { // BotLlmEndpoint
43
43
  * prompt: "STRING_VALUE", // required
44
+ * model: "STRING_VALUE",
44
45
  * embeddedTools: [ // BotLlmEmbeddedToolsList
45
46
  * { // BotLlmEmbeddedTool
46
47
  * type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
@@ -118,6 +119,7 @@ declare const UpdateBotCallbackCommand_base: {
118
119
  * // endpoint: { // BotEndpoint Union: only one key present
119
120
  * // llm: { // BotLlmEndpoint
120
121
  * // prompt: "STRING_VALUE", // required
122
+ * // model: "STRING_VALUE",
121
123
  * // embeddedTools: [ // BotLlmEmbeddedToolsList
122
124
  * // { // BotLlmEmbeddedTool
123
125
  * // type: "HANDOVER" || "DELEGATE" || "SUGGESTIONS", // required
@@ -4,40 +4,25 @@ import { DocumentType as __DocumentType } from "@smithy/types";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare class ValidationException extends __BaseException {
8
- readonly name: "ValidationException";
7
+ export declare class ForbiddenException extends __BaseException {
8
+ readonly name: "ForbiddenException";
9
9
  readonly $fault: "client";
10
10
  /**
11
11
  * @internal
12
12
  */
13
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
13
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
14
14
  }
15
15
  /**
16
16
  * @public
17
17
  */
18
- export declare class ForbiddenException extends __BaseException {
19
- readonly name: "ForbiddenException";
18
+ export declare class ValidationException extends __BaseException {
19
+ readonly name: "ValidationException";
20
20
  readonly $fault: "client";
21
21
  /**
22
22
  * @internal
23
23
  */
24
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
24
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
25
25
  }
26
- /**
27
- * @public
28
- * @enum
29
- */
30
- export declare const PbxLicenseType: {
31
- readonly BASIC: "basic";
32
- readonly BUSINESS: "business";
33
- readonly ESSENTIAL: "essential";
34
- readonly PREMIUM: "premium";
35
- readonly WIZYCONF: "wizyconf";
36
- };
37
- /**
38
- * @public
39
- */
40
- export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
41
26
  /**
42
27
  * @public
43
28
  */
@@ -60,6 +45,21 @@ export interface User {
60
45
  createdAt?: string | undefined;
61
46
  updatedAt?: string | undefined;
62
47
  }
48
+ /**
49
+ * @public
50
+ * @enum
51
+ */
52
+ export declare const PbxLicenseType: {
53
+ readonly BASIC: "basic";
54
+ readonly BUSINESS: "business";
55
+ readonly ESSENTIAL: "essential";
56
+ readonly PREMIUM: "premium";
57
+ readonly WIZYCONF: "wizyconf";
58
+ };
59
+ /**
60
+ * @public
61
+ */
62
+ export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
63
63
  /**
64
64
  * @public
65
65
  */
@@ -791,6 +791,11 @@ export interface BotLlmTool {
791
791
  */
792
792
  export interface BotLlmEndpoint {
793
793
  prompt: string;
794
+ /**
795
+ * The AI model to use for generating responses. If not specified, uses the default model.
796
+ * @public
797
+ */
798
+ model?: string | undefined;
794
799
  /**
795
800
  * Embedded functions to use within chat session.
796
801
  * @public
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
15
15
  streamCollector: import("@smithy/types").StreamCollector;
16
16
  env?: "stage" | "stable" | "prod" | undefined;
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
- apiVersion: string;
19
18
  cacheMiddleware?: boolean | undefined;
19
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
20
+ protocolSettings?: {
21
+ [setting: string]: unknown;
22
+ defaultNamespace?: string | undefined;
23
+ } | undefined;
24
+ apiVersion: string;
20
25
  urlParser: import("@smithy/types").UrlParser;
21
26
  base64Decoder: import("@smithy/types").Decoder;
22
27
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
16
16
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
17
17
  env?: "stage" | "stable" | "prod" | undefined;
18
18
  token: import("@wildix/smithy-utils").TokenProvider;
19
- apiVersion: string;
20
19
  cacheMiddleware?: boolean | undefined;
20
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
21
+ protocolSettings?: {
22
+ [setting: string]: unknown;
23
+ defaultNamespace?: string | undefined;
24
+ } | undefined;
25
+ apiVersion: string;
21
26
  urlParser: import("@smithy/types").UrlParser;
22
27
  base64Decoder: import("@smithy/types").Decoder;
23
28
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
8
8
  env?: "stage" | "stable" | "prod" | undefined;
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
10
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
- apiVersion: string;
12
11
  cacheMiddleware?: boolean | undefined;
12
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
13
+ protocolSettings?: {
14
+ [setting: string]: unknown;
15
+ defaultNamespace?: string | undefined;
16
+ } | undefined;
17
+ apiVersion: string;
13
18
  urlParser: import("@smithy/types").UrlParser;
14
19
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
20
  streamCollector: import("@smithy/types").StreamCollector;
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.44",
4
+ "version": "1.0.46",
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",