@wildix/xbees-users-client 4.0.2 → 4.0.3

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.
@@ -38,6 +38,11 @@ class UsersClient extends client_2.Client {
38
38
  httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultUsersHttpAuthSchemeParametersProvider,
39
39
  identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
40
40
  "smithy.api#httpBearerAuth": config.token,
41
+ "wildix.auth#apiKeys": config.token,
42
+ "wildix.auth#bot": config.token,
43
+ "wildix.auth#pbx": config.token,
44
+ "wildix.auth#s2s": config.token,
45
+ "wildix.auth#xbs": config.token,
41
46
  }),
42
47
  }));
43
48
  this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkspaceType = exports.BotLlmToolType = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmEmbeddedToolType = exports.BotCapabilityToolPipelineType = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.SearchThresholdValue = exports.SearchStrategy = exports.PbxLicenseType = void 0;
3
+ exports.WorkspaceType = exports.BotLlmToolType = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmEmbeddedToolType = exports.BotCapabilityToolPipelineType = exports.BotIntegrationType = exports.BotAccess = exports.AppType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = void 0;
4
4
  exports.PbxLicenseType = {
5
5
  BASIC: "basic",
6
6
  BUSINESS: "business",
@@ -8,16 +8,6 @@ exports.PbxLicenseType = {
8
8
  PREMIUM: "premium",
9
9
  WIZYCONF: "wizyconf",
10
10
  };
11
- exports.SearchStrategy = {
12
- BM25: "bm25",
13
- HYBRID: "hybrid",
14
- VECTOR: "vector",
15
- };
16
- exports.SearchThresholdValue = {
17
- HIGH: "high",
18
- LOW: "low",
19
- MEDIUM: "medium",
20
- };
21
11
  exports.PbxColleagueRole = {
22
12
  ADMIN: "admin",
23
13
  FAX: "fax",
@@ -29,6 +29,31 @@ const getRuntimeConfig = (config) => {
29
29
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
30
30
  signer: new core_1.NoAuthSigner(),
31
31
  },
32
+ {
33
+ schemeId: "wildix.auth#apiKeys",
34
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#apiKeys"),
35
+ signer: new core_1.HttpBearerAuthSigner(),
36
+ },
37
+ {
38
+ schemeId: "wildix.auth#bot",
39
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#bot"),
40
+ signer: new core_1.HttpBearerAuthSigner(),
41
+ },
42
+ {
43
+ schemeId: "wildix.auth#pbx",
44
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
45
+ signer: new core_1.HttpBearerAuthSigner(),
46
+ },
47
+ {
48
+ schemeId: "wildix.auth#s2s",
49
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
50
+ signer: new core_1.HttpBearerAuthSigner(),
51
+ },
52
+ {
53
+ schemeId: "wildix.auth#xbs",
54
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#xbs"),
55
+ signer: new core_1.HttpBearerAuthSigner(),
56
+ },
32
57
  ],
33
58
  logger: config?.logger ?? new client_1.NoOpLogger(),
34
59
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
@@ -369,10 +369,8 @@ const _sE = "syntheticEmail";
369
369
  const _sF = "searchFields";
370
370
  const _sI = "sourceId";
371
371
  const _sIk = "skippedInvitees";
372
- const _sL = "searchLimit";
373
372
  const _sP = "sipPassword";
374
373
  const _sS = "searchStrategy";
375
- const _sT = "searchThreshold";
376
374
  const _sU = "streamUser";
377
375
  const _sc = "scope";
378
376
  const _se = "searchable";
@@ -635,8 +633,8 @@ exports.BotDialogflowCxEndpoint$ = [3, n3, _BDCE,
635
633
  ];
636
634
  exports.BotKnowledgeBase$ = [3, n3, _BKB,
637
635
  0,
638
- [_kBI, _in, _sS, _sT, _sL, _an],
639
- [0, 0, 0, 0, 1, () => BotToolAnnotationsList]
636
+ [_kBI, _in, _an],
637
+ [0, 0, () => BotToolAnnotationsList]
640
638
  ];
641
639
  exports.BotLlmEmbeddedTool$ = [3, n3, _BLET,
642
640
  0,
@@ -35,6 +35,11 @@ export class UsersClient extends __Client {
35
35
  httpAuthSchemeParametersProvider: defaultUsersHttpAuthSchemeParametersProvider,
36
36
  identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
37
37
  "smithy.api#httpBearerAuth": config.token,
38
+ "wildix.auth#apiKeys": config.token,
39
+ "wildix.auth#bot": config.token,
40
+ "wildix.auth#pbx": config.token,
41
+ "wildix.auth#s2s": config.token,
42
+ "wildix.auth#xbs": config.token,
38
43
  }),
39
44
  }));
40
45
  this.middlewareStack.use(getHttpSigningPlugin(this.config));
@@ -5,16 +5,6 @@ export const PbxLicenseType = {
5
5
  PREMIUM: "premium",
6
6
  WIZYCONF: "wizyconf",
7
7
  };
8
- export const SearchStrategy = {
9
- BM25: "bm25",
10
- HYBRID: "hybrid",
11
- VECTOR: "vector",
12
- };
13
- export const SearchThresholdValue = {
14
- HIGH: "high",
15
- LOW: "low",
16
- MEDIUM: "medium",
17
- };
18
8
  export const PbxColleagueRole = {
19
9
  ADMIN: "admin",
20
10
  FAX: "fax",
@@ -26,6 +26,31 @@ export const getRuntimeConfig = (config) => {
26
26
  identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
27
27
  signer: new NoAuthSigner(),
28
28
  },
29
+ {
30
+ schemeId: "wildix.auth#apiKeys",
31
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#apiKeys"),
32
+ signer: new HttpBearerAuthSigner(),
33
+ },
34
+ {
35
+ schemeId: "wildix.auth#bot",
36
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#bot"),
37
+ signer: new HttpBearerAuthSigner(),
38
+ },
39
+ {
40
+ schemeId: "wildix.auth#pbx",
41
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#pbx"),
42
+ signer: new HttpBearerAuthSigner(),
43
+ },
44
+ {
45
+ schemeId: "wildix.auth#s2s",
46
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#s2s"),
47
+ signer: new HttpBearerAuthSigner(),
48
+ },
49
+ {
50
+ schemeId: "wildix.auth#xbs",
51
+ identityProvider: (ipc) => ipc.getIdentityProvider("wildix.auth#xbs"),
52
+ signer: new HttpBearerAuthSigner(),
53
+ },
29
54
  ],
30
55
  logger: config?.logger ?? new NoOpLogger(),
31
56
  protocol: config?.protocol ?? AwsRestJsonProtocol,
@@ -362,10 +362,8 @@ const _sE = "syntheticEmail";
362
362
  const _sF = "searchFields";
363
363
  const _sI = "sourceId";
364
364
  const _sIk = "skippedInvitees";
365
- const _sL = "searchLimit";
366
365
  const _sP = "sipPassword";
367
366
  const _sS = "searchStrategy";
368
- const _sT = "searchThreshold";
369
367
  const _sU = "streamUser";
370
368
  const _sc = "scope";
371
369
  const _se = "searchable";
@@ -628,8 +626,8 @@ export var BotDialogflowCxEndpoint$ = [3, n3, _BDCE,
628
626
  ];
629
627
  export var BotKnowledgeBase$ = [3, n3, _BKB,
630
628
  0,
631
- [_kBI, _in, _sS, _sT, _sL, _an],
632
- [0, 0, 0, 0, 1, () => BotToolAnnotationsList]
629
+ [_kBI, _in, _an],
630
+ [0, 0, () => BotToolAnnotationsList]
633
631
  ];
634
632
  export var BotLlmEmbeddedTool$ = [3, n3, _BLET,
635
633
  0,
@@ -173,9 +173,6 @@ declare const CreateBotCommand_base: {
173
173
  * kb: { // BotKnowledgeBase
174
174
  * knowledgeBaseId: "STRING_VALUE",
175
175
  * instructions: "STRING_VALUE",
176
- * searchStrategy: "bm25" || "vector" || "hybrid",
177
- * searchThreshold: "low" || "medium" || "high",
178
- * searchLimit: Number("int"),
179
176
  * annotations: [
180
177
  * {// Union: only one key present
181
178
  * tag: {
@@ -172,9 +172,6 @@ declare const GetBotCallbackCommand_base: {
172
172
  * // kb: { // BotKnowledgeBase
173
173
  * // knowledgeBaseId: "STRING_VALUE",
174
174
  * // instructions: "STRING_VALUE",
175
- * // searchStrategy: "bm25" || "vector" || "hybrid",
176
- * // searchThreshold: "low" || "medium" || "high",
177
- * // searchLimit: Number("int"),
178
175
  * // annotations: [
179
176
  * // {// Union: only one key present
180
177
  * // tag: {
@@ -168,9 +168,6 @@ declare const UpdateBotCallbackCommand_base: {
168
168
  * kb: { // BotKnowledgeBase
169
169
  * knowledgeBaseId: "STRING_VALUE",
170
170
  * instructions: "STRING_VALUE",
171
- * searchStrategy: "bm25" || "vector" || "hybrid",
172
- * searchThreshold: "low" || "medium" || "high",
173
- * searchLimit: Number("int"),
174
171
  * annotations: [
175
172
  * {// Union: only one key present
176
173
  * tag: {
@@ -345,9 +342,6 @@ declare const UpdateBotCallbackCommand_base: {
345
342
  * // kb: { // BotKnowledgeBase
346
343
  * // knowledgeBaseId: "STRING_VALUE",
347
344
  * // instructions: "STRING_VALUE",
348
- * // searchStrategy: "bm25" || "vector" || "hybrid",
349
- * // searchThreshold: "low" || "medium" || "high",
350
- * // searchLimit: Number("int"),
351
345
  * // annotations: [
352
346
  * // {// Union: only one key present
353
347
  * // tag: {
@@ -13,32 +13,6 @@ export declare const PbxLicenseType: {
13
13
  * @public
14
14
  */
15
15
  export type PbxLicenseType = (typeof PbxLicenseType)[keyof typeof PbxLicenseType];
16
- /**
17
- * @public
18
- * @enum
19
- */
20
- export declare const SearchStrategy: {
21
- readonly BM25: "bm25";
22
- readonly HYBRID: "hybrid";
23
- readonly VECTOR: "vector";
24
- };
25
- /**
26
- * @public
27
- */
28
- export type SearchStrategy = (typeof SearchStrategy)[keyof typeof SearchStrategy];
29
- /**
30
- * @public
31
- * @enum
32
- */
33
- export declare const SearchThresholdValue: {
34
- readonly HIGH: "high";
35
- readonly LOW: "low";
36
- readonly MEDIUM: "medium";
37
- };
38
- /**
39
- * @public
40
- */
41
- export type SearchThresholdValue = (typeof SearchThresholdValue)[keyof typeof SearchThresholdValue];
42
16
  /**
43
17
  * @public
44
18
  * @enum
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, GetPbxColleaguesDir, PbxColleagueRole, PbxColleaguesQueryField, PbxColleaguesSearchStrategy, PbxLicenseType, SearchStrategy, SearchThresholdValue, WorkspaceType } from "./enums";
2
+ import type { AppType, BotAccess, BotCapabilityToolPipelineType, BotIntegrationType, BotLlmEmbeddedToolType, BotLlmFunctionIntegrationMethod, BotLlmToolType, GetPbxColleaguesDir, PbxColleagueRole, PbxColleaguesQueryField, PbxColleaguesSearchStrategy, PbxLicenseType, WorkspaceType } from "./enums";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -705,21 +705,6 @@ export interface BotKnowledgeBase {
705
705
  * @public
706
706
  */
707
707
  instructions?: string | undefined;
708
- /**
709
- * Search algorithm strategy used for this knowledge base capability.
710
- * @public
711
- */
712
- searchStrategy?: SearchStrategy | undefined;
713
- /**
714
- * Minimum similarity threshold used for this knowledge base capability.
715
- * @public
716
- */
717
- searchThreshold?: SearchThresholdValue | undefined;
718
- /**
719
- * Maximum number of search results returned by this knowledge base capability.
720
- * @public
721
- */
722
- searchLimit?: number | undefined;
723
708
  annotations?: BotToolAnnotation[] | undefined;
724
709
  }
725
710
  /**
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.2",
4
+ "version": "4.0.3",
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",
@@ -54,4 +54,4 @@
54
54
  "react-native": {
55
55
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
56
56
  }
57
- }
57
+ }